|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wts.ViewPoint_Impl
-----------------------------------------------------------------------
Field Summary | |
private double |
aov
|
private Point3d[] |
footprint
|
private double |
hdir
|
private Point3d |
observerPosition
|
private static double |
rad0
|
private static double |
rad180
|
private static double |
rad270
|
private static double |
rad360
|
private static double |
rad90
|
private Point3d |
targetPoint
|
private double |
vdir
|
Constructor Summary | |
ViewPoint_Impl(double hdir,
double vdir,
double distance,
Point3d targetPoint,
double aov)
Creates a new instance of ViewPoint_Impl |
|
ViewPoint_Impl(Point3d observerPosition,
double hdir,
double vdir,
double aov)
Creates a new instance of ViewPoint_Impl |
|
ViewPoint_Impl(Point3d observerPosition,
Point3d targetPoint,
double aov)
Creates a new instance of ViewPoint_Impl |
Method Summary | |
private double |
calcDir(double height,
double dist)
|
private double[] |
calcDirections()
calculates the vertical and horizontal direction of the observer's view |
private Point3d[] |
calcFootprint(double height)
calculates footprint |
private Point3d |
calcObserverPosition(double distance)
calculates the observers position for a given target point, distance and view directions. |
private Point3d |
calcTargetPoint(double height)
calculates the target point of the view for the submitted height VP | \ | \ | \______________ height = XX | |\ |___|_\_____________ height = 0 TP1 TP2 |
double |
getAoV()
gets the field of view of the observer in radians |
Point3d[] |
getFootprint()
get footprint or rather the field of view |
Point3d[] |
getFootprint(double height)
get footprint or rather the field of view |
double |
getHDirection()
gets the horizontal direction in radians the observer looks |
Point3d |
getObserverPosition()
gets the position of the observer, the directions he looks and his field of view in radians |
Point3d |
getTarget()
gets the directions the observer looks and his field of view in radians |
double |
getVDirection()
gets vertical direction in radians the observer looks |
void |
setAoV(double aov)
defines the field of view of the observer in radians |
void |
setHDirection(double hdir)
defines the horizontal direction in radians the observer looks |
void |
setObserverPosition(Point3d observerPosition)
defines the position of the observer, the directions he looks and his field of view in radians |
void |
setTarget(Point3d targetPoint)
defines the directions the observer looks and his field of view in radians |
void |
setVDirection(double vdir)
defines vertical direction in radians the observer looks |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static double rad0
private static double rad90
private static double rad180
private static double rad270
private static double rad360
private Point3d observerPosition
private Point3d targetPoint
private Point3d[] footprint
private double aov
private double hdir
private double vdir
Constructor Detail |
public ViewPoint_Impl(double hdir, double vdir, double distance, Point3d targetPoint, double aov)
public ViewPoint_Impl(Point3d observerPosition, Point3d targetPoint, double aov)
public ViewPoint_Impl(Point3d observerPosition, double hdir, double vdir, double aov) throws InvalidArcException
Method Detail |
private Point3d calcObserverPosition(double distance)
VP | \ | \ | \ | \ |_____\_____________ TP
private Point3d calcTargetPoint(double height)
VP | \ | \ | \______________ height = XX | |\ |___|_\_____________ height = 0 TP1 TP2
private double[] calcDirections()
private double calcDir(double height, double dist)
height
- dist
-
private Point3d[] calcFootprint(double height)
public double getAoV()
getAoV
in interface ViewPoint
public void setAoV(double aov)
setAoV
in interface ViewPoint
public double getHDirection()
getHDirection
in interface ViewPoint
public void setHDirection(double hdir)
setHDirection
in interface ViewPoint
public Point3d getTarget()
getTarget
in interface ViewPoint
public void setTarget(Point3d targetPoint)
setTarget
in interface ViewPoint
public double getVDirection()
getVDirection
in interface ViewPoint
public void setVDirection(double vdir)
setVDirection
in interface ViewPoint
public Point3d getObserverPosition()
getObserverPosition
in interface ViewPoint
public void setObserverPosition(Point3d observerPosition)
setObserverPosition
in interface ViewPoint
public Point3d[] getFootprint()
getFootprint
in interface ViewPoint
public Point3d[] getFootprint(double height)
getFootprint
in interface ViewPoint
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |