Class SoCoordinateElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoReplacedElement
com.openinventor.inventor.elements.SoCoordinateElement
Stores the current coordinates.
This element stores the current coordinates. Coordinates may be specified as 3-D or 4-D vectors. This element remembers the last type of value stored.
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:
-
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
Modifier and TypeMethodDescriptionget3(int index) Returns the indexed coordinate from an element as a 3-vector, converting if necessary.get4(int index) Returns the indexed coordinate from an element as a 4-vector, converting if necessary.static intDeprecated.As of Open Inventor 9.3.0.0.static SbVec3fReturns the default 3-D coordinate.static SbVec4fReturns the default 4-D coordinate.static SoCoordinateElementgetInstance(SoState state) Returns the top (current) instance of the element in the state.intgetNum()Returns the number of coordinate points in an instance.booleanis3D()Returns true if the coordinates were specified as 3-vectors, false if 4-vectors.static voidSets the current coordinates in the state as 3-vectors.static voidSets the current coordinates in the state as 4-vectors.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, pushMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
set4
Sets the current coordinates in the state as 4-vectors. -
get3
Returns the indexed coordinate from an element as a 3-vector, converting if necessary. A returned reference may be invalid after the next call to this method or theget4()method. -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
set3
Sets the current coordinates in the state as 3-vectors. -
getNum
public int getNum()Returns the number of coordinate points in an instance. -
getDefault3
Returns the default 3-D coordinate. -
getDefault4
Returns the default 4-D coordinate. -
get4
Returns the indexed coordinate from an element as a 4-vector, converting if necessary. A returned reference may be invalid after the next call to this method or theget3()method. -
is3D
public boolean is3D()Returns true if the coordinates were specified as 3-vectors, false if 4-vectors. -
getInstance
Returns the top (current) instance of the element in the state.
-