Class SoGLLazyElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoLazyElement
-
- com.openinventor.inventor.elements.SoGLLazyElement
-
public class SoGLLazyElement extends SoLazyElement
Manages the GL state for theSoLazyElement
. This element manages the GL state for theSoLazyElement
.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:
SoLazyElement
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
getClassStackIndex()
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
pop(SoState state, SoElement prevTopElement)
Overridespop()
method to maintain GL state.void
push(SoState state)
Overridespush()
method to maintain GL state.void
reset(SoState state, int bitmask)
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 Detail
-
push
public void push(SoState state)
Overridespush()
method to maintain GL state.- Overrides:
push
in classSoLazyElement
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
pop
public void pop(SoState state, SoElement prevTopElement)
Overridespop()
method to maintain GL state.
-
reset
public void reset(SoState state, int bitmask)
Destroys knowledge of GL state.
-
getInstance
public 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.
-
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
public static void sendOnlyDiffuseColor(SoState state)
Static send, always send top-of-stack. Intended for extender use.
-
sendAllMaterial
public static void sendAllMaterial(SoState state)
Static send, always send top-of-stack. Intended for extender use.
-
sendNoMaterial
public static void sendNoMaterial(SoState state)
Static send, always send top-of-stack. Intended for extender use.
-
-