public class SoGLLazyElement extends SoLazyElement
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:
SoLazyElement.Cases, SoLazyElement.LightModels, SoLazyElement.Masks
Inventor.ConstructorCommand
ALL_MASK, AMBIENT_CASE, AMBIENT_MASK, BASE_COLOR, BLENDING_CASE, BLENDING_MASK, COLOR_MATERIAL_CASE, COLOR_MATERIAL_MASK, DIFFUSE_CASE, DIFFUSE_MASK, EMISSIVE_CASE, EMISSIVE_MASK, LIGHT_MODEL_CASE, LIGHT_MODEL_MASK, LINE_WIDTH_CASE, LINE_WIDTH_MASK, PATTERN_CASE, PATTERN_MASK, PHONG, SHININESS_CASE, SHININESS_MASK, SMOOTHING_CASE, SMOOTHING_MASK, SPECULAR_CASE, SPECULAR_MASK, TRANSPARENCY_CASE, TRANSPARENCY_MASK
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
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.
|
static boolean |
isColorIndex(SoState state)
true if Indexed color Mode.
|
void |
pop(SoState state,
SoElement prevTopElement)
Overrides
pop() method to maintain GL state. |
void |
push(SoState state)
Overrides
push() 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.
|
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, setAmbient, setBlending, setColorIndices, setColorMaterial, setDiffuse, setEmissive, setEmissive, setLightModel, setPacked, setShininess, setSmoothing, setSpecular, setSpecular, setTransparency
getClassStackIndex
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static int getClassStackIndex()
public void reset(SoState state, int bitmask)
public void pop(SoState state, SoElement prevTopElement)
pop()
method to maintain GL state.public static void sendAllMaterial(SoState state)
public static SoGLLazyElement getInstance(SoState state)
public void sendDiffuseByIndex(int index)
public void push(SoState state)
push()
method to maintain GL state.push
in class SoLazyElement
public static void sendNoMaterial(SoState state)
public static void sendOnlyDiffuseColor(SoState state)
public static boolean isColorIndex(SoState state)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com