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 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:
  • Constructor Details

    • SbProjectionCoordinates

      public SbProjectionCoordinates(SbProjectionCoordinates copyFrom)
    • SbProjectionCoordinates

      public SbProjectionCoordinates(SoProjection projection)
      Constructor.
    • SbProjectionCoordinates

      public SbProjectionCoordinates()
      Constructor.
  • Method Details

    • 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 FloatBuffer getDirectCoordinates()
      Return coordinates .