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.MasksNested 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 intDeprecated.As of Open Inventor 9.3.0.0.static SoGLLazyElementgetInstance(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.voidOverridespop()method to maintain GL state.voidOverridespush()method to maintain GL state.voidDestroys knowledge of GL state.static voidsendAllMaterial(SoState state) Static send, always send top-of-stack.voidsendDiffuseByIndex(int index) Sends diffuse color and transparency, by index.static voidsendNoMaterial(SoState state) Static send, always send top-of-stack.static voidsendOnlyDiffuseColor(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, setTransparencyMethods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndexMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
push
Overridespush()method to maintain GL state.- Overrides:
pushin 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.
-