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 floatReturns current accumulated offset from the state.static intDeprecated.As of Open Inventor 9.3.0.0.static floatgetMaxOffset(SoState state) Returns current accumulated offset from the state.voidPop the element from the state.voidPush the element into the state.static voidSets the current offset in the state.static voidSets the current offset in the state.static voidSets the current offset in the state.static voidsetMaxOffset(SoState state, float offset) Sets the current offset in the state.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndexMethods 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.
-