Scale/recenter projection class More...
#include <Inventor/projection/SbTransformProjection.h>
Public Member Functions | |
SbTransformProjection (SoProjection *node) | |
Constructor. | |
virtual | ~SbTransformProjection () |
Destructor. | |
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. | |
virtual void | inverse (SbVec3f &point) |
Apply the inverse coordinate to one point. | |
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. | |
Scale/recenter projection class
This class implements a projection that applies a scale and recenter to geometry.
This class can be used with an SoProjection node, but mainly exists to be used internally by the SoTransformProjection node.
SbProjection, SoTransformProjection
Definition at line 58 of file SbTransformProjection.h.
|
inline |
Constructor.
Definition at line 89 of file SbTransformProjection.h.
|
inlinevirtual |
Destructor.
Definition at line 70 of file SbTransformProjection.h.
|
inlinevirtual |
Compute projected bounding box.
As this projection is linear, projecting a bounding box is equivalent to the bbox of the projected points. Defining this method speeds up some rendering nodes.
Reimplemented from SbProjection.
Definition at line 114 of file SbTransformProjection.h.