Cache projected coordinates. More...
#include <Inventor/projection/SbProjectionCoordinates.h>
Public Member Functions | |
SbProjectionCoordinates (SoProjection *projection) | |
SbProjectionCoordinates () | |
~SbProjectionCoordinates () | |
SbVec3f * | getCoordinates () |
void | setProjection (SoProjection *projection) |
void | resetCache (SoNode *node) |
void | initCoordinates (SoNode *node, int size) |
SbBool | cacheIsValid (SoNode *node) |
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.
SbProjectionCoordinates::SbProjectionCoordinates | ( | SoProjection * | projection | ) |
Constructor.
SbProjectionCoordinates::SbProjectionCoordinates | ( | ) |
Constructor.
SbProjectionCoordinates::~SbProjectionCoordinates | ( | ) |
Destructor.
Return whether the cache is valid or not.
SbVec3f* SbProjectionCoordinates::getCoordinates | ( | ) | [inline] |
Return coordinates.
void SbProjectionCoordinates::initCoordinates | ( | SoNode * | node, | |
int | size | |||
) |
Initialisation.
void SbProjectionCoordinates::resetCache | ( | SoNode * | node | ) |
Reset the cache.
void SbProjectionCoordinates::setProjection | ( | SoProjection * | projection | ) | [inline] |
Set associated projection.