Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SbProjectionCoordinates Class Reference

Cache projected coordinates. More...

#include <Inventor/projection/SbProjectionCoordinates.h>

Public Member Functions

 SbProjectionCoordinates (SoProjection *projection)
 Constructor.
 
 SbProjectionCoordinates ()
 Constructor.
 
 ~SbProjectionCoordinates ()
 Destructor.
 
SbVec3fgetCoordinates ()
 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.
 

Detailed Description

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.

SEE ALSO

SoProjection, SoGeoProjection

Definition at line 60 of file SbProjectionCoordinates.h.

Constructor & Destructor Documentation

◆ SbProjectionCoordinates() [1/2]

SbProjectionCoordinates::SbProjectionCoordinates ( SoProjection projection)

Constructor.

◆ SbProjectionCoordinates() [2/2]

SbProjectionCoordinates::SbProjectionCoordinates ( )

Constructor.

◆ ~SbProjectionCoordinates()

SbProjectionCoordinates::~SbProjectionCoordinates ( )

Destructor.

Member Function Documentation

◆ cacheIsValid()

SbBool SbProjectionCoordinates::cacheIsValid ( SoNode node)

Return whether the cache is valid or not.

◆ getCoordinates()

SbVec3f * SbProjectionCoordinates::getCoordinates ( )
inline

Return coordinates.

Definition at line 83 of file SbProjectionCoordinates.h.

◆ initCoordinates()

void SbProjectionCoordinates::initCoordinates ( SoNode node,
int  size 
)

Initialisation.

◆ resetCache()

void SbProjectionCoordinates::resetCache ( SoNode node)

Reset the cache.

◆ setProjection()

void SbProjectionCoordinates::setProjection ( SoProjection projection)
inline

Set associated projection.

Definition at line 88 of file SbProjectionCoordinates.h.


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