Class SoSwitchElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoInt32Element
-
- com.openinventor.inventor.elements.SoSwitchElement
-
public class SoSwitchElement extends SoInt32Element
Stores the current switch index. This element stores the current switch index. This is set by several nodes and is used to allowSoSwitch
nodes to inherit the index.- See Also:
SoArray
,SoMultipleCopy
,SoSwitch
-
-
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 Concrete Methods Deprecated Methods Modifier and Type Method Description static int
get(SoState state)
Returns current switch index from the state.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static int
getDefault()
Returns the default switch index.static void
set(SoState state, int index)
Sets the current switch index in the state.static void
set(SoState state, SoNode name_21555, int index)
Sets the current switch index in the state.-
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(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
getDefault
public static int getDefault()
Returns the default switch index.
-
set
public static void set(SoState state, int index)
Sets the current switch index in the state.
-
get
public static int get(SoState state)
Returns current switch index from the state.
-
-