|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.wpvs.j3d.ViewPoint
public class ViewPoint
This class represents the view point for a WPVS request. That is, it represents the point where the observer is at, and looking to a target point. An angle of view must be also given.
Constructor Summary | |
---|---|
ViewPoint(double yaw,
double pitch,
double viewerToPOIDistance,
javax.vecmath.Point3d pointOfInterest,
double angleOfView,
double farClippingPlane,
double distanceToSealevel,
CoordinateSystem crs)
Creates a new instance of ViewPoint_Impl |
|
ViewPoint(GetView request)
|
|
ViewPoint(GetView request,
double distanceToSeaLevel)
|
Method Summary | |
---|---|
double |
getAngleOfView()
|
CoordinateSystem |
getCrs()
|
javax.vecmath.Point3d[] |
getFakeFootprint()
|
double |
getFarClippingPlane()
|
javax.vecmath.Point3d[] |
getFootprint()
The footprint in object space: f[0] = (FarclippingPlaneRight) = angleOfView/2 + viewDirection.x, farclippingplaneDistance, distanceToSealevel f[1] = (FarclippingPlaneLeft) = angleOfView/2 - viewDirection.x, farclippingplaneDistance, distanceToSealevel f[2] = (NearclippingPlaneRight) = angleOfView/2 + viewDirection.x, nearclippingplaneDistance, distanceToSealevel f[3] = (NearclippingPlaneLeft) = angleOfView/2 - viewDirection.x, nearclippingplaneDistance, distanceToSealevel |
javax.vecmath.Point3d[] |
getFootprint(double distanceToSeaLevel)
|
java.lang.String |
getFootPrintAsWellKnownText()
|
javax.vecmath.Point3d |
getObserverPosition()
|
java.lang.String |
getObserverPositionAsWKT()
|
javax.vecmath.Point3d[] |
getOldFootprint()
|
double |
getPitch()
|
javax.vecmath.Point3d |
getPointOfInterest()
|
javax.media.j3d.Transform3D |
getSimpleTransform()
|
double |
getTerrainDistanceToSeaLevel()
|
double |
getViewerToPOIDistance()
|
javax.media.j3d.Transform3D |
getViewMatrix()
|
Surface |
getVisibleArea()
|
double |
getYaw()
|
boolean |
isNearClippingplaneBehindViewPoint()
|
void |
setAngleOfView(double aov)
|
void |
setObserverPosition(javax.vecmath.Point3d observerPosition)
|
void |
setPitch(double pitch)
|
void |
setPointOfInterest(javax.vecmath.Point3d pointOfInterest)
|
void |
setSimpleTransform(javax.media.j3d.Transform3D transform)
|
void |
setTerrainDistanceToSeaLevel(double distanceToSeaLevel)
|
void |
setViewerToPOIDistance(double viewerToPOIDistance)
|
void |
setYaw(double yaw)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ViewPoint(double yaw, double pitch, double viewerToPOIDistance, javax.vecmath.Point3d pointOfInterest, double angleOfView, double farClippingPlane, double distanceToSealevel, CoordinateSystem crs)
yaw
- rotation on the Z-Axis in radians of the viewerpitch
- rotation on the X-Axis in radiansviewerToPOIDistance
- from the point of interest to the viewerspositionpointOfInterest
- the point of interestangleOfView
- farClippingPlane
- where the view endsdistanceToSealevel
- crs
- The Coordinatesystem in which the given residepublic ViewPoint(GetView request)
request
- a server request.public ViewPoint(GetView request, double distanceToSeaLevel)
request
- a server request.distanceToSeaLevel
- Method Detail |
---|
public javax.vecmath.Point3d[] getOldFootprint()
public javax.vecmath.Point3d[] getFakeFootprint()
public boolean isNearClippingplaneBehindViewPoint()
public double getAngleOfView()
public void setAngleOfView(double aov)
aov
- the field of view of the observer in radianspublic double getYaw()
public void setYaw(double yaw)
yaw
- the horizontal direction in radians the observer lookspublic double getPitch()
public void setPitch(double pitch)
pitch
- the vertical direction in radians the observer lookspublic double getTerrainDistanceToSeaLevel()
public void setTerrainDistanceToSeaLevel(double distanceToSeaLevel)
distanceToSeaLevel
- of the terrain beneath the viewpointpublic javax.vecmath.Point3d getObserverPosition()
public void setObserverPosition(javax.vecmath.Point3d observerPosition)
observerPosition
- the position of the observer, the directions he looks and his field of view in radianspublic javax.vecmath.Point3d getPointOfInterest()
public void setPointOfInterest(javax.vecmath.Point3d pointOfInterest)
pointOfInterest
- the directions the observer looks and his field of view in radianspublic javax.vecmath.Point3d[] getFootprint()
public javax.vecmath.Point3d[] getFootprint(double distanceToSeaLevel)
distanceToSeaLevel
- the new height for which the footprint should be calculated
public java.lang.String toString()
toString
in class java.lang.Object
public double getFarClippingPlane()
public javax.media.j3d.Transform3D getSimpleTransform()
public void setSimpleTransform(javax.media.j3d.Transform3D transform)
transform
- The transform to set.public javax.media.j3d.Transform3D getViewMatrix()
public double getViewerToPOIDistance()
public void setViewerToPOIDistance(double viewerToPOIDistance)
viewerToPOIDistance
- An other viewerToPOIDistance value.public Surface getVisibleArea()
public java.lang.String getFootPrintAsWellKnownText() throws GeometryException
GeometryException
- if the footprint could not be transformed to wkt.public java.lang.String getObserverPositionAsWKT() throws GeometryException
GeometryException
- if the conversion fails.public CoordinateSystem getCrs()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org