Class SbSphericalProjection
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.projection.SbProjection
-
- com.openinventor.inventor.projection.SbSphericalProjection
-
public class SbSphericalProjection extends SbProjection
Spherical coordinate projection. This class performs a spherical coordinate projection and is normally used with anSoProjection
orSoGeoProjection
node.Spherical coordinates can be represented using the usual coordinate classes (
SbVec3f
,SoMFVec3f
, etc) but the three values are considered to be- Longitude: an angle measured in degrees in the interval [-180,180]
- Latitude: an angle measured in degrees in the interval [-90,90]
- Altitude (or radius): a distance in 3D units greater than zero
The parameters are :
Name Type Index Default radius float 0 0 scaleRatio float 1 1 The radius parameter is an offset added to each altitude value before projection. This is useful when the altitude values are, for example, relative to sea level.
The scaleRatio parameter is a multiplicative ratio applied to altitude values before projection. This is useful to exaggerate altitudes for visualization purposes.
The spherical projection of a point P(lon,lat,alt) is computed as follows:
newLon = lon * degreeToRadians newLat = lat * degreeToRadians newRadius = radius + alt * scaleRatio x = newRadius*cos(newlat)*cos(newlon) y = newRadius*cos(newlat)*sin(newlon) z = newRadius*sin(newlat)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SbSphericalProjection()
Constructor.SbSphericalProjection(SoProjection node)
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.projection.SbProjection
exit, getFloatParameter, getNumFloatParameters, getNumStringParameters, getProjectedBoundingBox, getProjectionNode, getStringParameter, init, inverse, project, setNumFloatParameters, setNumStringParameters, setParameter, setParameter
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SbSphericalProjection
public SbSphericalProjection()
Constructor.
-
SbSphericalProjection
public SbSphericalProjection(SoProjection node)
Constructor.
-
-