NASA World Wind

gov.nasa.worldwind.view
Class ViewSupport

java.lang.Object
  extended by gov.nasa.worldwind.view.ViewSupport

public class ViewSupport
extends Object


Constructor Summary
ViewSupport()
           
 
Method Summary
 double computeElevationAboveSurface(DrawContext dc, Position position)
           
 double computeHorizonDistance(Globe globe, double elevation)
           
 double computePixelSizeAtDistance(double distance, Angle fieldOfView, Rectangle viewport)
           
 Line computeRayFromScreenPoint(double x, double y, Matrix modelview, Matrix projection, Rectangle viewport)
           
 void loadGLViewState(DrawContext dc, Matrix modelview, Matrix projection)
           
 Vec4 project(Vec4 point, Matrix modelview, Matrix projection, Rectangle viewport)
           
 Vec4 unProject(Vec4 windowPoint, Matrix modelview, Matrix projection, Rectangle viewport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewSupport

public ViewSupport()
Method Detail

computeElevationAboveSurface

public double computeElevationAboveSurface(DrawContext dc,
                                           Position position)

computeHorizonDistance

public double computeHorizonDistance(Globe globe,
                                     double elevation)

computePixelSizeAtDistance

public double computePixelSizeAtDistance(double distance,
                                         Angle fieldOfView,
                                         Rectangle viewport)

computeRayFromScreenPoint

public Line computeRayFromScreenPoint(double x,
                                      double y,
                                      Matrix modelview,
                                      Matrix projection,
                                      Rectangle viewport)

loadGLViewState

public void loadGLViewState(DrawContext dc,
                            Matrix modelview,
                            Matrix projection)

project

public Vec4 project(Vec4 point,
                    Matrix modelview,
                    Matrix projection,
                    Rectangle viewport)

unProject

public Vec4 unProject(Vec4 windowPoint,
                      Matrix modelview,
                      Matrix projection,
                      Rectangle viewport)

NASA World Wind