Class SoInteractiveSwitchElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoInt32Element
com.openinventor.inventor.elements.SoInteractiveSwitchElement
Stores the current interactive switch index.
This element stores the current interactive switch index. This is set by several nodes and is used to allow
SoInteractiveSwitch
nodes to inherit the index.
- 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 TypeMethodDescriptionstatic int
Returns current switch index from the state.static int
Deprecated.As of Open Inventor 9.3.0.0.static int
Returns the default switch index.static void
Sets the current switch index in the state.static void
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 Details
-
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
Sets the current switch index in the state. -
get
Returns current switch index from the state. -
set
Sets the current switch index in the state.
-