Class SoProfileCoordinateElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoReplacedElement
-
- com.openinventor.inventor.elements.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
-
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SbVec2fget2(int index)Returns the indexed coordinate from an element as a 2D vector, converting if necessary.SbVec3fget3(int index)Returns the indexed coordinate from an element as a 3D vector, converting if necessary.static intgetClassStackIndex()Deprecated.As of Open Inventor 9300.static SbVec2fgetDefault2()Returns the default 2D profile coordinate.static SbVec3fgetDefault3()Returns the default 3D profile coordinate.static SoProfileCoordinateElementgetInstance(SoState state)Returns the top (current) instance of the element in the state.intgetNum()Returns the number of coordinate points in an instance.booleanis2D()true ifset2()was called.static voidset2(SoState state, SoNode node, SbVec2f[] coords)Sets the current 2D profile coordinates.static voidset3(SoState state, SoNode node, SbVec3f[] coords)Sets the current 3D profile coordinates.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
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
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. 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.
-
getInstance
public static SoProfileCoordinateElement getInstance(SoState state)
Returns the top (current) instance of the element in the state.
-
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 ifset2()was called.
-
getDefault3
public static SbVec3f getDefault3()
Returns the default 3D profile coordinate.
-
-