Cache projected coordinates. More...
#include <Inventor/projection/SbProjectionCoordinates.h>
Public Member Functions | |
SbProjectionCoordinates (SoProjection *projection) | |
Constructor. | |
SbProjectionCoordinates () | |
Constructor. | |
~SbProjectionCoordinates () | |
Destructor. | |
SbVec3f * | getCoordinates () |
Return coordinates. | |
void | setProjection (SoProjection *projection) |
Set associated projection. | |
void | resetCache (SoNode *node) |
Reset the cache. | |
void | initCoordinates (SoNode *node, int size) |
Initialisation. | |
SbBool | cacheIsValid (SoNode *node) |
Return whether the cache is valid or not. | |
Cache projected coordinates.
This class stores the projected coordinates associated with a given geometry node and a given SoProjection node during a scene graph traversal. Each instance of SbProjectionCoordinates maintains a cache, based on the node IDs of the associated node and projection node. Calling resetCache() will force the projected coordinates to be recomputed during the next traversal.
Definition at line 60 of file SbProjectionCoordinates.h.
SbProjectionCoordinates::SbProjectionCoordinates | ( | SoProjection * | projection | ) |
Constructor.
SbProjectionCoordinates::SbProjectionCoordinates | ( | ) |
Constructor.
SbProjectionCoordinates::~SbProjectionCoordinates | ( | ) |
Destructor.
Return whether the cache is valid or not.
|
inline |
Return coordinates.
Definition at line 83 of file SbProjectionCoordinates.h.
void SbProjectionCoordinates::initCoordinates | ( | SoNode * | node, |
int | size | ||
) |
Initialisation.
void SbProjectionCoordinates::resetCache | ( | SoNode * | node | ) |
Reset the cache.
|
inline |
Set associated projection.
Definition at line 88 of file SbProjectionCoordinates.h.