Spherical coordinate projection. More...
#include <Inventor/projection/SbSphericalProjection.h>
Public Member Functions | |
SbSphericalProjection () | |
Constructor. | |
SbSphericalProjection (SoProjection *node) | |
Constructor. | |
virtual | ~SbSphericalProjection () |
Destructor. | |
virtual void | inverse (SbVec3f &point) |
Apply the inverse coordinate to one point. | |
virtual bool | getProjectedBoundingBox (SbBox3f &bbox) |
Compute projected bounding box. | |
Public Member Functions inherited from SbProjection | |
SbProjection () | |
Constructor. | |
SbProjection (SoProjection *node) | |
Constructor. | |
SbProjection (const SbProjection &proj) | |
Copy constructor. | |
virtual | ~SbProjection () |
Destructor. | |
virtual void | init () |
Initialisation method. | |
virtual void | exit () |
Exit method. | |
void | project (SbVec3f &point) |
Apply the complete computation (matrix, pre-projection, projection, post-projection) to one point. | |
void | project (int numPoints, float *points) |
Apply the complete computation to a set of points. | |
void | project (int32_t numCoords, const SbVec3f *coords, SbVec3f *projectedCoords) |
Apply the complete computation to a set of coordinates. | |
SoProjection * | getProjectionNode () const |
Return associated projection node. | |
virtual void | setParameter (int parameterId, const SbString ¶meterString) |
Set string parameter. | |
virtual void | setParameter (int parameterId, const float ¶meterFloat) |
Set float parameter. | |
void | setNumStringParameters (int numParameters) |
Set number of string parameters to use. | |
void | setNumFloatParameters (int numParameters) |
Set number of float parameters to use. | |
int | getNumStringParameters () const |
Get number of used string parameters. | |
int | getNumFloatParameters () const |
Get number of used float parameters. | |
SbBool | getParameter (int pos, SbString ¶meter) const |
Get string parameter at position pos. | |
SbBool | getParameter (int pos, float ¶meter) const |
Get float parameter at position pos. | |
Spherical coordinate projection.
This class performs a spherical coordinate projection and is normally used with an SoProjection or SoGeoProjection node.
Spherical coordinates can be represented using the usual coordinate classes (SbVec3f, SoMFVec3f, etc) but the three values are considered to be
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:
Definition at line 82 of file SbSphericalProjection.h.
SbSphericalProjection::SbSphericalProjection | ( | ) |
Constructor.
SbSphericalProjection::SbSphericalProjection | ( | SoProjection * | node | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Compute projected bounding box.
Reimplemented from SbProjection.
|
virtual |
Apply the inverse coordinate to one point.
Modifies the given object.
Reimplemented from SbProjection.