SbSphericalProjection Class |
Spherical coordinate projection.
Namespace: OIV.Inventor.Projection
The SbSphericalProjection type exposes the following members.
Name | Description | |
---|---|---|
SbSphericalProjection | Constructor. | |
SbSphericalProjection(SoProjection) | Constructor. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Exit | Exit method. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetNumFloatParameters | Get number of used float parameters. | |
GetNumStringParameters | Get number of used string parameters. | |
GetParameter(Int32, Single) | Get float parameter at position pos. | |
GetParameter(Int32, String) | Get string parameter at position pos. | |
GetProjectedBoundingBox | Return projected bounding box if available. | |
GetProjectionNode | Return associated projection node. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Init | Initialisation method. | |
Inverse | Apply the inverse coordinate to one point. | |
Project(SbVec3f) | Apply the complete computation (matrix, pre-projection, projection, post-projection) to one point. | |
Project(SbVec3f, SbVec3f) | Apply the complete computation to a set of coordinates. | |
SetNumFloatParameters | Set number of float parameters to use. | |
SetNumStringParameters | Set number of string parameters to use. | |
SetParameter(Int32, Single) | Set float parameter. | |
SetParameter(Int32, String) | Set string parameter. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class performs a spherical coordinate projection and is normally used with an OIV.Inventor.Nodes.SoProjection or OIV.Inventor.Nodes.SoGeoProjection node.
Spherical coordinates can be represented using the usual coordinate classes (OIV.Inventor.SbVec3f, OIV.Inventor.Fields.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)