Class SoLazyElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoLazyElement
- Direct Known Subclasses:
SoGLLazyElement
Deprecated.
As of Open Inventor 10.0.0.0. Use #SoMaterialElement, #SoBlendElement or #SoLightModelElement instead.
Manages several properties that need to be lazily tracked for OpenGL.
This element manages several properties such as colors, that need to be lazily tracked for OpenGL. Allows Open Inventor property nodes to set these properties without immediately making any OpenGL calls. Thus we avoid making redundant OpenGL calls to set, for example, the material color. Open Inventor rendering nodes then request that the values of any properties that are relevant to that shape and "out of date" (not current with OpenGL state) be sent to OpenGL.
Includes:
Transparencies
GLColorMaterial
GLBlendEnablement
PolygonStipple
Light model
Color index
Line width
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Following masks and cases define the components of the lazy element.static enumDeprecated.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 SbColorgetAmbient(SoState name_14072) Deprecated.static booleangetBlending(SoState name_14077) Deprecated.static intDeprecated.As of Open Inventor 9.3.0.0.static intgetColorIndex(SoState name_14070, int num) Deprecated.static int[]getColorIndices(SoState state) Deprecated.static booleangetColorMaterial(SoState name_14076) Deprecated.static SbColorDeprecated.Specify Open Inventor defaults for colors, etc.static floatDeprecated.Specify Open Inventor defaults for colors, etc.static intDeprecated.Specify Open Inventor defaults for colors, etc.static SbColorDeprecated.Specify Open Inventor defaults for colors, etc.static SbColorDeprecated.Specify Open Inventor defaults for colors, etc.static intDeprecated.Specify Open Inventor defaults for colors, etc.static floatDeprecated.Specify Open Inventor defaults for colors, etc.static intDeprecated.Specify Open Inventor defaults for colors, etc.static intDeprecated.Specify Open Inventor defaults for colors, etc.static floatDeprecated.Specify Open Inventor defaults for colors, etc.static SbColorDeprecated.Specify Open Inventor defaults for colors, etc.static floatDeprecated.Specify Open Inventor defaults for colors, etc.static SbColorgetDiffuse(SoState state, int index) Deprecated.get() methods get value from Inventor state.static IntBuffergetDirectColorIndices(SoState state) Deprecated.static SbColorgetEmissive(SoState name_14073) Deprecated.static SoLazyElementgetInstance(SoState state) Deprecated.Returns the top (current) instance of the element in the state Note that the cache dependencies associated with this element are managed differently from other elements: this replaces theSoElement.getConstElementthat is used by standard elements, but which causes cache dependency.static intgetLightModel(SoState name_14079) Deprecated.intDeprecated.Method to inquire about current colors.intDeprecated.Method to inquire about current colors.intDeprecated.Method to inquire about current colors.static int[]getPackedColors(SoState state) Deprecated.static floatgetShininess(SoState name_14075) Deprecated.static booleangetSmoothing(SoState name_14078) Deprecated.static SbColorgetSpecular(SoState name_14074) Deprecated.static floatgetTransparency(SoState name_14066, int index) Deprecated.get() methods get value from Inventor state.booleanisPacked()Deprecated.Method to inquire about current colors.booleanDeprecated.Method to inquire about current colors.voidDeprecated.push (for non-GL elements)static voidsetAmbient(SoState state, SoNode node, SbColor color) Deprecated.static voidsetBlending(SoState state, boolean value) Deprecated.static voidsetColorIndices(SoState state, SoNode node, int[] indices) Deprecated.Static set method.static voidsetColorMaterial(SoState state, SoNode node, boolean value) Deprecated.static voidsetDiffuse(SoState state, SoNode node, SbColor[] colors, SoColorPacker cPacker) Deprecated.Static set method.static voidsetEmissive(SoState state, SoNode node, SbColor color) Deprecated.static voidsetLightModel(SoState state, int model) Deprecated.static voidsetPacked(SoState state, SoNode node, SoColorPacker cPacker, int[] colors) Deprecated.Static set method.static voidsetShininess(SoState state, SoNode node, float value) Deprecated.static voidsetSmoothing(SoState state, boolean value) Deprecated.static voidsetSpecular(SoState state, SoNode node, SbColor color) Deprecated.static voidsetTransparency(SoState state, SoNode node, float[] transp, SoColorPacker cPacker) Deprecated.Static set method.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, popMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getTransparency
Deprecated.get() methods get value from Inventor state. The public methods are static, they get an instance of the element. If there is a cache, the appropriate virtual registerGetDependence is called. -
getPackedColors
Deprecated. -
getDiffuse
Deprecated.get() methods get value from Inventor state. The public methods are static, they get an instance of the element. If there is a cache, the appropriate virtual registerGetDependence is called. -
setSmoothing
Deprecated. -
setLightModel
Deprecated. -
getAmbient
Deprecated. -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
getColorIndex
Deprecated. -
getDirectColorIndices
Deprecated. -
getColorIndices
Deprecated. -
getDefaultTransparency
public static float getDefaultTransparency()Deprecated.Specify Open Inventor defaults for colors, etc. -
setEmissive
Deprecated. -
setAmbient
Deprecated. -
setPacked
Deprecated.Static set method. -
setColorIndices
Deprecated.Static set method. -
setTransparency
public static void setTransparency(SoState state, SoNode node, float[] transp, SoColorPacker cPacker) Deprecated.Static set method. -
setColorMaterial
Deprecated. -
setBlending
Deprecated. -
setShininess
Deprecated. -
setSpecular
Deprecated. -
setDiffuse
Deprecated.Static set method. -
getEmissive
Deprecated. -
getDefaultAmbient
Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultSpecular
Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultEmissive
Deprecated.Specify Open Inventor defaults for colors, etc. -
getInstance
Deprecated.Returns the top (current) instance of the element in the state Note that the cache dependencies associated with this element are managed differently from other elements: this replaces theSoElement.getConstElementthat is used by standard elements, but which causes cache dependency. Note that this element is not const; however modifications to it can cause problems. SoEXTENDER apps should use only SoEXTENDER methods on this element. -
getDefaultAmbientIntensity
public static float getDefaultAmbientIntensity()Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultDiffuse
Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultLightModel
public static int getDefaultLightModel()Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultColorIndex
public static int getDefaultColorIndex()Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultLineWidth
public static float getDefaultLineWidth()Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultShininess
public static float getDefaultShininess()Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultPackedInternal
public static int getDefaultPackedInternal()Deprecated.Specify Open Inventor defaults for colors, etc. -
getDefaultPacked
public static int getDefaultPacked()Deprecated.Specify Open Inventor defaults for colors, etc. -
getShininess
Deprecated. -
isPacked
public boolean isPacked()Deprecated.Method to inquire about current colors. -
getColorMaterial
Deprecated. -
push
Deprecated.push (for non-GL elements) -
getSpecular
Deprecated. -
isTransparent
public boolean isTransparent()Deprecated.Method to inquire about current colors. -
getSmoothing
Deprecated. -
getNumDiffuse
public int getNumDiffuse()Deprecated.Method to inquire about current colors. -
getLightModel
Deprecated. -
getNumColorIndices
public int getNumColorIndices()Deprecated.Method to inquire about current colors. -
getBlending
Deprecated. -
getNumTransparencies
public int getNumTransparencies()Deprecated.Method to inquire about current colors.
-