public class SoCoordinateElement extends SoReplacedElement
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:
SoCoordinate3
, SoCoordinate4
, SoProjection
, SoVertexProperty
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
SbVec3f |
get3(int index)
Returns the indexed coordinate from an element as a 3-vector, converting if necessary.
|
SbVec4f |
get4(int index)
Returns the indexed coordinate from an element as a 4-vector, converting if necessary.
|
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
static SbVec3f |
getDefault3()
Returns the default 3-D coordinate.
|
static SbVec4f |
getDefault4()
Returns the default 4-D coordinate.
|
static SoCoordinateElement |
getInstance(SoState state)
Returns the top (current) instance of the element in the state.
|
int |
getNum()
Returns the number of coordinate points in an instance.
|
boolean |
is3D()
Returns true if the coordinates were specified as 3-vectors, false if 4-vectors.
|
static void |
set3(SoState state,
SoNode node,
SbVec3f[] coords)
Sets the current coordinates in the state as 3-vectors.
|
static void |
set4(SoState state,
SoNode node,
SbVec4f[] coords)
Sets the current coordinates in the state as 4-vectors.
|
getClassStackIndex, pop, push
dispose, getNativeResourceHandle
public static void set4(SoState state, SoNode node, SbVec4f[] coords)
public SbVec3f get3(int index)
get4()
method.@Deprecated public static int getClassStackIndex()
public static void set3(SoState state, SoNode node, SbVec3f[] coords)
public int getNum()
public static SbVec3f getDefault3()
public static SbVec4f getDefault4()
public SbVec4f get4(int index)
get3()
method.public boolean is3D()
public static SoCoordinateElement getInstance(SoState state)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com