Class SoProfileCoordinateElement

  • public class SoProfileCoordinateElement
    extends SoReplacedElement
    Stores the current profile coordinates. This element stores the current profile coordinates, as either 2D or 3D points.

    This class allows read-only access to the top element in the state to make accessing several values in it more efficient. Individual values must be accessed through this instance.

    See Also:
    SoProfileCoordinate2, SoProfileCoordinate3
    • Method Detail

      • set2

        public static void set2​(SoState state,
                                SoNode node,
                                SbVec2f[] coords)
        Sets the current 2D profile coordinates.
      • getNum

        public int getNum()
        Returns the number of coordinate points in an instance.
      • get3

        public SbVec3f get3​(int index)
        Returns the indexed coordinate from an element as a 3D vector, converting if necessary.
      • getClassStackIndex

        public static int getClassStackIndex()
        As of Open Inventor replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *
      • set3

        public static void set3​(SoState state,
                                SoNode node,
                                SbVec3f[] coords)
        Sets the current 3D profile coordinates.
      • getDefault2

        public static SbVec2f getDefault2()
        Returns the default 2D profile coordinate.
      • get2

        public SbVec2f get2​(int index)
        Returns the indexed coordinate from an element as a 2D vector, converting if necessary.
      • is2D

        public boolean is2D()
        true if set2() was called.
      • getDefault3

        public static SbVec3f getDefault3()
        Returns the default 3D profile coordinate.