Class SbProjectionCoordinates
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.projection.SbProjectionCoordinates
-
public class SbProjectionCoordinates extends Inventor
Cache projected coordinates. This class stores the projected coordinates associated with a given geometry node and a givenSoProjection
node during a scene graph traversal. Each instance ofSbProjectionCoordinates
maintains a cache, based on the node IDs of the associated node and projection node. CallingresetCache()
will force the projected coordinates to be recomputed during the next traversal.- See Also:
SoProjection
,SoGeoProjection
-
-
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 Constructor Description SbProjectionCoordinates()
Constructor.SbProjectionCoordinates(SoProjection projection)
Constructor.SbProjectionCoordinates(SbProjectionCoordinates copyFrom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cacheIsValid(SoNode node)
Return whether the cache is valid or not.SbVec3f[]
getCoordinates()
Return coordinates .java.nio.FloatBuffer
getDirectCoordinates()
Return coordinates .void
initCoordinates(SoNode node, int size)
Initialisation.void
resetCache(SoNode node)
Reset the cache.void
setProjection(SoProjection projection)
Set associated projection.void
setValue(SbProjectionCoordinates copyFrom)
static SbProjectionCoordinates[]
toArray(long nativeArray, long length)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SbProjectionCoordinates
public SbProjectionCoordinates(SbProjectionCoordinates copyFrom)
-
SbProjectionCoordinates
public SbProjectionCoordinates(SoProjection projection)
Constructor.
-
SbProjectionCoordinates
public SbProjectionCoordinates()
Constructor.
-
-
Method Detail
-
setValue
public void setValue(SbProjectionCoordinates copyFrom)
-
resetCache
public void resetCache(SoNode node)
Reset the cache.
-
toArray
public static SbProjectionCoordinates[] toArray(long nativeArray, long length)
-
getCoordinates
public SbVec3f[] getCoordinates()
Return coordinates .
-
initCoordinates
public void initCoordinates(SoNode node, int size)
Initialisation.
-
cacheIsValid
public boolean cacheIsValid(SoNode node)
Return whether the cache is valid or not.
-
setProjection
public void setProjection(SoProjection projection)
Set associated projection.
-
getDirectCoordinates
public java.nio.FloatBuffer getDirectCoordinates()
Return coordinates .
-
-