Class SoNormalElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoReplacedElement
-
- com.openinventor.inventor.elements.SoNormalElement
-
public class SoNormalElement extends SoReplacedElement
Allows read-only access to the top element in the state. 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:
SoNormal
,SoVertexProperty
-
-
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 SbVec3f
get(int index)
Returns the indexed normal from an element.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9300.static SoNormalElement
getInstance(SoState state)
Returns the top (current) instance of the element in the state.int
getNum()
Returns the number of normal vectors in an instance.static void
set(SoState state, SoNode node, SbVec3f[] normals)
Sets the current normals.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getClassStackIndex
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
getInstance
public static SoNormalElement getInstance(SoState state)
Returns the top (current) instance of the element in the state.
-
get
public SbVec3f get(int index)
Returns the indexed normal from an element.
-
getNum
public int getNum()
Returns the number of normal vectors in an instance.
-
-