public class SoLazyElement extends SoElement
Includes:
Transparencies
GLColorMaterial
GLBlendEnablement
PolygonStipple
Light model
Color index
Line width
See also:
SoBaseColor
, SoMaterial
, SoPackedColor
, SoTransparencyType
, SoVertexProperty
Modifier and Type | Class and Description |
---|---|
static class |
SoLazyElement.Cases
Following masks and cases define the components of the lazy element.
|
static class |
SoLazyElement.LightModels
Enum values to be used in setting/getting light model.
|
static class |
SoLazyElement.Masks
Masks.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static SbColor |
getAmbient(SoState name_16927) |
static boolean |
getBlending(SoState name_16932) |
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
static int |
getColorIndex(SoState name_16925,
int num) |
static int[] |
getColorIndices(SoState state) |
static boolean |
getColorMaterial(SoState name_16931) |
static SbColor |
getDefaultAmbient()
Specify Open Inventor defaults for colors, etc.
|
static float |
getDefaultAmbientIntensity()
Specify Open Inventor defaults for colors, etc.
|
static int |
getDefaultColorIndex()
Specify Open Inventor defaults for colors, etc.
|
static SbColor |
getDefaultDiffuse()
Specify Open Inventor defaults for colors, etc.
|
static SbColor |
getDefaultEmissive()
Specify Open Inventor defaults for colors, etc.
|
static int |
getDefaultLightModel()
Specify Open Inventor defaults for colors, etc.
|
static float |
getDefaultLineWidth()
Specify Open Inventor defaults for colors, etc.
|
static int |
getDefaultPacked()
Specify Open Inventor defaults for colors, etc.
|
static int |
getDefaultPackedInternal()
Specify Open Inventor defaults for colors, etc.
|
static float |
getDefaultShininess()
Specify Open Inventor defaults for colors, etc.
|
static SbColor |
getDefaultSpecular()
Specify Open Inventor defaults for colors, etc.
|
static float |
getDefaultTransparency()
Specify Open Inventor defaults for colors, etc.
|
static SbColor |
getDiffuse(SoState state,
int index)
get() methods get value from Inventor state.
|
static java.nio.IntBuffer |
getDirectColorIndices(SoState state) |
static SbColor |
getEmissive(SoState name_16928) |
static SoLazyElement |
getInstance(SoState state)
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 the
SoElement.getConstElement that is used by standard elements, but which causes cache dependency. |
static int |
getLightModel(SoState name_16934) |
int |
getNumColorIndices()
Method to inquire about current colors.
|
int |
getNumDiffuse()
Method to inquire about current colors.
|
int |
getNumTransparencies()
Method to inquire about current colors.
|
static int[] |
getPackedColors(SoState state) |
static float |
getShininess(SoState name_16930) |
static boolean |
getSmoothing(SoState name_16933) |
static SbColor |
getSpecular(SoState name_16929) |
static float |
getTransparency(SoState name_16921,
int index)
get() methods get value from Inventor state.
|
boolean |
isPacked()
Method to inquire about current colors.
|
boolean |
isTransparent()
Method to inquire about current colors.
|
void |
push(SoState state)
push (for non-GL elements)
|
static void |
setAmbient(SoState state,
SbColor color) |
static void |
setAmbient(SoState state,
SbColor[] color)
Deprecated.
As of Open Inventor 8.0, no longer used.
|
static void |
setBlending(SoState state,
boolean value) |
static void |
setColorIndices(SoState state,
SoNode node,
int[] indices)
Static set method.
|
static void |
setColorMaterial(SoState state,
boolean value) |
static void |
setDiffuse(SoState state,
SoNode node,
SbColor[] colors,
SoColorPacker cPacker)
Static set method.
|
static void |
setEmissive(SoState state,
SbColor color) |
static void |
setEmissive(SoState state,
SbColor[] color)
Deprecated.
As of Open Inventor 8.0, no longer used.
|
static void |
setLightModel(SoState state,
int model) |
static void |
setPacked(SoState state,
SoNode node,
SoColorPacker cPacker,
int[] colors)
Static set method.
|
static void |
setShininess(SoState state,
float value) |
static void |
setSmoothing(SoState state,
boolean value) |
static void |
setSpecular(SoState state,
SbColor color) |
static void |
setSpecular(SoState state,
SbColor[] color)
Deprecated.
As of Open Inventor 8.0, no longer used.
|
static void |
setTransparency(SoState state,
SoNode node,
float[] transp,
SoColorPacker cPacker)
Static set method.
|
getClassStackIndex, pop
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int LIGHT_MODEL_CASE
SoLazyElement.Cases.LIGHT_MODEL_CASE
instead.@Deprecated public static final int COLOR_MATERIAL_CASE
SoLazyElement.Cases.COLOR_MATERIAL_CASE
instead.@Deprecated public static final int DIFFUSE_CASE
SoLazyElement.Cases.DIFFUSE_CASE
instead.@Deprecated public static final int AMBIENT_CASE
SoLazyElement.Cases.AMBIENT_CASE
instead.@Deprecated public static final int EMISSIVE_CASE
SoLazyElement.Cases.EMISSIVE_CASE
instead.@Deprecated public static final int SPECULAR_CASE
SoLazyElement.Cases.SPECULAR_CASE
instead.@Deprecated public static final int SHININESS_CASE
SoLazyElement.Cases.SHININESS_CASE
instead.@Deprecated public static final int BLENDING_CASE
SoLazyElement.Cases.BLENDING_CASE
instead.@Deprecated public static final int TRANSPARENCY_CASE
SoLazyElement.Cases.TRANSPARENCY_CASE
instead.@Deprecated public static final int PATTERN_CASE
SoLazyElement.Cases.PATTERN_CASE
instead.@Deprecated public static final int SMOOTHING_CASE
SoLazyElement.Cases.SMOOTHING_CASE
instead.@Deprecated public static final int LINE_WIDTH_CASE
SoLazyElement.Cases.LINE_WIDTH_CASE
instead.@Deprecated public static final int LIGHT_MODEL_MASK
SoLazyElement.Masks.LIGHT_MODEL_MASK
instead.@Deprecated public static final int COLOR_MATERIAL_MASK
SoLazyElement.Masks.COLOR_MATERIAL_MASK
instead.@Deprecated public static final int DIFFUSE_MASK
SoLazyElement.Masks.DIFFUSE_MASK
instead.@Deprecated public static final int AMBIENT_MASK
SoLazyElement.Masks.AMBIENT_MASK
instead.@Deprecated public static final int EMISSIVE_MASK
SoLazyElement.Masks.EMISSIVE_MASK
instead.@Deprecated public static final int SPECULAR_MASK
SoLazyElement.Masks.SPECULAR_MASK
instead.@Deprecated public static final int SHININESS_MASK
SoLazyElement.Masks.SHININESS_MASK
instead.@Deprecated public static final int TRANSPARENCY_MASK
SoLazyElement.Masks.TRANSPARENCY_MASK
instead.@Deprecated public static final int BLENDING_MASK
SoLazyElement.Masks.BLENDING_MASK
instead.@Deprecated public static final int SMOOTHING_MASK
SoLazyElement.Masks.SMOOTHING_MASK
instead.@Deprecated public static final int ALL_MASK
SoLazyElement.Masks.ALL_MASK
instead.@Deprecated public static final int PATTERN_MASK
SoLazyElement.Masks.PATTERN_MASK
instead.@Deprecated public static final int LINE_WIDTH_MASK
SoLazyElement.Masks.LINE_WIDTH_MASK
instead.@Deprecated public static final int BASE_COLOR
SoLazyElement.LightModels.BASE_COLOR
instead.@Deprecated public static final int PHONG
SoLazyElement.LightModels.PHONG
instead.@Deprecated public static void setAmbient(SoState state, SbColor[] color)
@Deprecated public static void setEmissive(SoState state, SbColor[] color)
@Deprecated public static void setSpecular(SoState state, SbColor[] color)
public static SbColor getDefaultAmbient()
public static void setColorIndices(SoState state, SoNode node, int[] indices)
public static void setPacked(SoState state, SoNode node, SoColorPacker cPacker, int[] colors)
public static SbColor getDefaultDiffuse()
public static SbColor getDefaultEmissive()
public static void setShininess(SoState state, float value)
public static SbColor getDefaultSpecular()
public static boolean getSmoothing(SoState name_16933)
public static int getLightModel(SoState name_16934)
public static float getShininess(SoState name_16930)
public static boolean getColorMaterial(SoState name_16931)
public static boolean getBlending(SoState name_16932)
public static float getDefaultAmbientIntensity()
public static void setTransparency(SoState state, SoNode node, float[] transp, SoColorPacker cPacker)
public static void setDiffuse(SoState state, SoNode node, SbColor[] colors, SoColorPacker cPacker)
@Deprecated public static int getClassStackIndex()
public static SoLazyElement getInstance(SoState state)
SoElement.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.public static void setBlending(SoState state, boolean value)
public int getNumColorIndices()
public boolean isPacked()
public static void setColorMaterial(SoState state, boolean value)
public boolean isTransparent()
public static float getTransparency(SoState name_16921, int index)
public static void setLightModel(SoState state, int model)
public static SbColor getDiffuse(SoState state, int index)
public int getNumDiffuse()
public int getNumTransparencies()
public static void setSmoothing(SoState state, boolean value)
public static int[] getColorIndices(SoState state)
public static int getDefaultPacked()
public static int getDefaultPackedInternal()
public static int getColorIndex(SoState name_16925, int num)
public static float getDefaultShininess()
public static float getDefaultTransparency()
public static int[] getPackedColors(SoState state)
public static float getDefaultLineWidth()
public static int getDefaultColorIndex()
public static java.nio.IntBuffer getDirectColorIndices(SoState state)
public static int getDefaultLightModel()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com