Open Inventor Release 2024.1.1
No Matches
SbTransformProjection Class Reference

VSG extension Scale/recenter projection class More...

#include <Inventor/projection/SbTransformProjection.h>

+ Inheritance diagram for SbTransformProjection:

Public Member Functions

 SbTransformProjection (SoProjection *node)
virtual ~SbTransformProjection ()
virtual bool getProjectedBoundingBox (SbBox3f &bbox)
 Compute projected bounding box.
- Public Member Functions inherited from SbProjection
 SbProjection ()
 SbProjection (SoProjection *node)
 SbProjection (const SbProjection &proj)
 Copy constructor.
virtual ~SbProjection ()
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.
SoProjectiongetProjectionNode () const
 Return associated projection node.
virtual void setParameter (int parameterId, const SbString &parameterString)
 Set string parameter.
virtual void setParameter (int parameterId, const float &parameterFloat)
 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 &parameter) const
 Get string parameter at position pos.
SbBool getParameter (int pos, float &parameter) const
 Get float parameter at position pos.

Detailed Description

VSG extension 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.

Constructor & Destructor Documentation

◆ SbTransformProjection()

SbTransformProjection::SbTransformProjection ( SoProjection node)


Definition at line 89 of file SbTransformProjection.h.

◆ ~SbTransformProjection()

virtual SbTransformProjection::~SbTransformProjection ( )


Definition at line 70 of file SbTransformProjection.h.

Member Function Documentation

◆ getProjectedBoundingBox()

bool SbTransformProjection::getProjectedBoundingBox ( SbBox3f bbox)

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.

The documentation for this class was generated from the following file: