public class SoProfileCoordinateElement 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:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
SbVec2f |
get2(int index)
Returns the indexed coordinate from an element as a 2D vector, converting if necessary.
|
SbVec3f |
get3(int index)
Returns the indexed coordinate from an element as a 3D vector, converting if necessary.
|
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
static SbVec2f |
getDefault2()
Returns the default 2D profile coordinate.
|
static SbVec3f |
getDefault3()
Returns the default 3D profile coordinate.
|
static SoProfileCoordinateElement |
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 |
is2D()
true if
set2() was called. |
static void |
set2(SoState state,
SoNode node,
SbVec2f[] coords)
Sets the current 2D profile coordinates.
|
static void |
set3(SoState state,
SoNode node,
SbVec3f[] coords)
Sets the current 3D profile coordinates.
|
getClassStackIndex, pop, push
dispose, getNativeResourceHandle
public static void set2(SoState state, SoNode node, SbVec2f[] coords)
public int getNum()
public SbVec3f get3(int index)
@Deprecated public static int getClassStackIndex()
public static void set3(SoState state, SoNode node, SbVec3f[] coords)
public static SoProfileCoordinateElement getInstance(SoState state)
public static SbVec2f getDefault2()
public SbVec2f get2(int index)
public boolean is2D()
set2()
was called.public static SbVec3f getDefault3()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com