Class SoDepthOffsetElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoFloatElement
com.openinventor.inventor.elements.SoDepthOffsetElement
Manage
SoDepthOffset
nodes accumulation in state.
This element stores SoDepthOffset
nodes encountered during traversal at any given time. Requesting for current offset at a given time (throught get()
method) returns the global accumulated offset, computed from all previously SoDepthOffset
nodes encountered in current path traversal.-
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 float
Returns current accumulated offset from the state.static int
Deprecated.As of Open Inventor 9.3.0.0.static float
getMaxOffset
(SoState state) Returns current accumulated offset from the state.void
Pop the element from the state.void
Push the element into the state.static void
Sets the current offset in the state.static void
Sets the current offset in the state.static void
Sets the current offset in the state.static void
setMaxOffset
(SoState state, float offset) Sets the current offset in the state.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
set
Sets the current offset in the state. -
set
Sets the current offset in the state. -
getMaxOffset
Returns current accumulated offset from the state. -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
set
Sets the current offset in the state. -
push
Push the element into the state. -
setMaxOffset
Sets the current offset in the state. -
pop
Pop the element from the state. -
get
Returns current accumulated offset from the state.
-