Class SoLazyElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoLazyElement
-
- Direct Known Subclasses:
SoGLLazyElement
@Deprecated(since="10.0.0.0") public class SoLazyElement extends SoElement
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoLazyElement.Cases
Deprecated.Following masks and cases define the components of the lazy element.static class
SoLazyElement.Masks
Deprecated.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 SbColor
getAmbient(SoState name_14044)
Deprecated.static boolean
getBlending(SoState name_14049)
Deprecated.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static int
getColorIndex(SoState name_14042, int num)
Deprecated.static int[]
getColorIndices(SoState state)
Deprecated.static boolean
getColorMaterial(SoState name_14048)
Deprecated.static SbColor
getDefaultAmbient()
Deprecated.Specify Open Inventor defaults for colors, etc.static float
getDefaultAmbientIntensity()
Deprecated.Specify Open Inventor defaults for colors, etc.static int
getDefaultColorIndex()
Deprecated.Specify Open Inventor defaults for colors, etc.static SbColor
getDefaultDiffuse()
Deprecated.Specify Open Inventor defaults for colors, etc.static SbColor
getDefaultEmissive()
Deprecated.Specify Open Inventor defaults for colors, etc.static int
getDefaultLightModel()
Deprecated.Specify Open Inventor defaults for colors, etc.static float
getDefaultLineWidth()
Deprecated.Specify Open Inventor defaults for colors, etc.static int
getDefaultPacked()
Deprecated.Specify Open Inventor defaults for colors, etc.static int
getDefaultPackedInternal()
Deprecated.Specify Open Inventor defaults for colors, etc.static float
getDefaultShininess()
Deprecated.Specify Open Inventor defaults for colors, etc.static SbColor
getDefaultSpecular()
Deprecated.Specify Open Inventor defaults for colors, etc.static float
getDefaultTransparency()
Deprecated.Specify Open Inventor defaults for colors, etc.static SbColor
getDiffuse(SoState state, int index)
Deprecated.get() methods get value from Inventor state.static java.nio.IntBuffer
getDirectColorIndices(SoState state)
Deprecated.static SbColor
getEmissive(SoState name_14045)
Deprecated.static SoLazyElement
getInstance(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.getConstElement
that is used by standard elements, but which causes cache dependency.static int
getLightModel(SoState name_14051)
Deprecated.int
getNumColorIndices()
Deprecated.Method to inquire about current colors.int
getNumDiffuse()
Deprecated.Method to inquire about current colors.int
getNumTransparencies()
Deprecated.Method to inquire about current colors.static int[]
getPackedColors(SoState state)
Deprecated.static float
getShininess(SoState name_14047)
Deprecated.static boolean
getSmoothing(SoState name_14050)
Deprecated.static SbColor
getSpecular(SoState name_14046)
Deprecated.static float
getTransparency(SoState name_14038, int index)
Deprecated.get() methods get value from Inventor state.boolean
isPacked()
Deprecated.Method to inquire about current colors.boolean
isTransparent()
Deprecated.Method to inquire about current colors.void
push(SoState state)
Deprecated.push (for non-GL elements)static void
setAmbient(SoState state, SoNode node, SbColor color)
Deprecated.static void
setBlending(SoState state, boolean value)
Deprecated.static void
setColorIndices(SoState state, SoNode node, int[] indices)
Deprecated.Static set method.static void
setColorMaterial(SoState state, SoNode node, boolean value)
Deprecated.static void
setDiffuse(SoState state, SoNode node, SbColor[] colors, SoColorPacker cPacker)
Deprecated.Static set method.static void
setEmissive(SoState state, SoNode node, SbColor color)
Deprecated.static void
setLightModel(SoState state, int model)
Deprecated.static void
setPacked(SoState state, SoNode node, SoColorPacker cPacker, int[] colors)
Deprecated.Static set method.static void
setShininess(SoState state, SoNode node, float value)
Deprecated.static void
setSmoothing(SoState state, boolean value)
Deprecated.static void
setSpecular(SoState state, SoNode node, SbColor color)
Deprecated.static void
setTransparency(SoState state, SoNode node, float[] transp, SoColorPacker cPacker)
Deprecated.Static set method.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getTransparency
public static float getTransparency(SoState name_14038, int index)
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
public static int[] getPackedColors(SoState state)
Deprecated.
-
getDiffuse
public static SbColor getDiffuse(SoState state, int index)
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
public static void setSmoothing(SoState state, boolean value)
Deprecated.
-
setLightModel
public static void setLightModel(SoState state, int model)
Deprecated.
-
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. ] *
-
getColorIndex
public static int getColorIndex(SoState name_14042, int num)
Deprecated.
-
getDirectColorIndices
public static java.nio.IntBuffer getDirectColorIndices(SoState state)
Deprecated.
-
getColorIndices
public static int[] getColorIndices(SoState state)
Deprecated.
-
getDefaultTransparency
public static float getDefaultTransparency()
Deprecated.Specify Open Inventor defaults for colors, etc.
-
setPacked
public static void setPacked(SoState state, SoNode node, SoColorPacker cPacker, int[] colors)
Deprecated.Static set method.
-
setColorIndices
public static void setColorIndices(SoState state, SoNode node, int[] indices)
Deprecated.Static set method.
-
setTransparency
public static void setTransparency(SoState state, SoNode node, float[] transp, SoColorPacker cPacker)
Deprecated.Static set method.
-
setColorMaterial
public static void setColorMaterial(SoState state, SoNode node, boolean value)
Deprecated.
-
setBlending
public static void setBlending(SoState state, boolean value)
Deprecated.
-
setDiffuse
public static void setDiffuse(SoState state, SoNode node, SbColor[] colors, SoColorPacker cPacker)
Deprecated.Static set method.
-
getDefaultAmbient
public static SbColor getDefaultAmbient()
Deprecated.Specify Open Inventor defaults for colors, etc.
-
getDefaultSpecular
public static SbColor getDefaultSpecular()
Deprecated.Specify Open Inventor defaults for colors, etc.
-
getDefaultEmissive
public static SbColor getDefaultEmissive()
Deprecated.Specify Open Inventor defaults for colors, etc.
-
getInstance
public static SoLazyElement getInstance(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.getConstElement
that 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
public static SbColor 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
public static float getShininess(SoState name_14047)
Deprecated.
-
isPacked
public boolean isPacked()
Deprecated.Method to inquire about current colors.
-
getColorMaterial
public static boolean getColorMaterial(SoState name_14048)
Deprecated.
-
push
public void push(SoState state)
Deprecated.push (for non-GL elements)
-
isTransparent
public boolean isTransparent()
Deprecated.Method to inquire about current colors.
-
getSmoothing
public static boolean getSmoothing(SoState name_14050)
Deprecated.
-
getNumDiffuse
public int getNumDiffuse()
Deprecated.Method to inquire about current colors.
-
getLightModel
public static int getLightModel(SoState name_14051)
Deprecated.
-
getNumColorIndices
public int getNumColorIndices()
Deprecated.Method to inquire about current colors.
-
getBlending
public static boolean getBlending(SoState name_14049)
Deprecated.
-
getNumTransparencies
public int getNumTransparencies()
Deprecated.Method to inquire about current colors.
-
-