Class SbProjectionCoordinates
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.projection.SbProjectionCoordinates
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancacheIsValid(SoNode node) Return whether the cache is valid or not.SbVec3f[]Return coordinates .Return coordinates .voidinitCoordinates(SoNode node, int size) Initialisation.voidresetCache(SoNode node) Reset the cache.voidsetProjection(SoProjection projection) Set associated projection.voidsetValue(SbProjectionCoordinates copyFrom) static SbProjectionCoordinates[]toArray(long nativeArray, long length) Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SbProjectionCoordinates
-
SbProjectionCoordinates
Constructor. -
SbProjectionCoordinates
public SbProjectionCoordinates()Constructor.
-
-
Method Details
-
setValue
-
resetCache
Reset the cache. -
toArray
-
getCoordinates
Return coordinates . -
initCoordinates
Initialisation. -
cacheIsValid
Return whether the cache is valid or not. -
setProjection
Set associated projection. -
getDirectCoordinates
Return coordinates .
-