Class SoGLLazyElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoLazyElement
com.openinventor.inventor.elements.SoGLLazyElement
Manages the GL state for the
SoLazyElement
.
This element manages the GL state for the SoLazyElement
.
Note that this class relies on SoLazyElement
to store the Open Inventor color(s), etc. in the instance. This element keeps GL shadow copies of colors.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.elements.SoLazyElement
SoLazyElement.Cases, SoLazyElement.Masks
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
Deprecated.As of Open Inventor 9.3.0.0.static SoGLLazyElement
getInstance
(SoState state) Returns the top (current) instance of the element in the state Note it does NOT cause cache dependency! It also casts away the const.void
Overridespop()
method to maintain GL state.void
Overridespush()
method to maintain GL state.void
Destroys knowledge of GL state.static void
sendAllMaterial
(SoState state) Static send, always send top-of-stack.void
sendDiffuseByIndex
(int index) Sends diffuse color and transparency, by index.static void
sendNoMaterial
(SoState state) Static send, always send top-of-stack.static void
sendOnlyDiffuseColor
(SoState state) Static send, always send top-of-stack.Methods inherited from class com.openinventor.inventor.elements.SoLazyElement
getAmbient, getBlending, getColorIndex, getColorIndices, getColorMaterial, getDefaultAmbient, getDefaultAmbientIntensity, getDefaultColorIndex, getDefaultDiffuse, getDefaultEmissive, getDefaultLightModel, getDefaultLineWidth, getDefaultPacked, getDefaultPackedInternal, getDefaultShininess, getDefaultSpecular, getDefaultTransparency, getDiffuse, getDirectColorIndices, getEmissive, getLightModel, getNumColorIndices, getNumDiffuse, getNumTransparencies, getPackedColors, getShininess, getSmoothing, getSpecular, getTransparency, isPacked, isTransparent, setAmbient, setBlending, setColorIndices, setColorMaterial, setDiffuse, setEmissive, setLightModel, setPacked, setShininess, setSmoothing, setSpecular, setTransparency
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
push
Overridespush()
method to maintain GL state.- Overrides:
push
in classSoLazyElement
-
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
pop
Overridespop()
method to maintain GL state. -
reset
Destroys knowledge of GL state. -
getInstance
Returns the top (current) instance of the element in the state Note it does NOT cause cache dependency! It also casts away the const. -
sendDiffuseByIndex
public void sendDiffuseByIndex(int index) Sends diffuse color and transparency, by index. Included for compatibility with SoMaterialBundle. To be used by a shape to send additional colors after first send(). Should NEVER be the first send of a shape! -
sendOnlyDiffuseColor
Static send, always send top-of-stack. Intended for extender use. -
sendAllMaterial
Static send, always send top-of-stack. Intended for extender use. -
sendNoMaterial
Static send, always send top-of-stack. Intended for extender use.
-