Class SoMaterialElement
- java.lang.Object
- 
- com.openinventor.inventor.Inventor
- 
- com.openinventor.inventor.elements.SoElement
- 
- com.openinventor.inventor.elements.SoReplacedElement
- 
- com.openinventor.inventor.elements.SoMaterialElement
 
 
 
 
- 
 public class SoMaterialElement extends SoReplacedElement Manages several properties that need to be lazily tracked for rendering. This element manages several properties such as colors, that need to be lazily tracked for rendering. Allows Open Inventor property nodes to set these properties without immediately making any rendering calls. Thus we avoid making redundant rendering 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 rendering state) be sent to the rendering engine.Includes: 
 Transparencies
 GLColorMaterial
 PolygonStipple
 Color index
 - See Also:
- SoBaseColor,- SoMaterial,- SoPackedColor,- SoVertexProperty
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSoMaterialElement.MasksMasks.- 
Nested classes/interfaces inherited from class com.openinventor.inventor.InventorInventor.ConstructorCommand
 
- 
 - 
Field Summary- 
Fields inherited from class com.openinventor.inventor.InventorVERBOSE_LEVEL, ZeroHandle
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SbColorgetAmbient(SoState name_15484)static intgetClassStackIndex()Deprecated.As of Open Inventor 9300.static intgetColorIndex(SoState name_15482, int num)static int[]getColorIndices(SoState state)static booleangetColorMaterial(SoState name_15488)static SbColorgetDefaultAmbient()Specify Open Inventor defaults for colors, etc.static floatgetDefaultAmbientIntensity()Specify Open Inventor defaults for colors, etc.static intgetDefaultColorIndex()Specify Open Inventor defaults for colors, etc.static SbColorgetDefaultDiffuse()Specify Open Inventor defaults for colors, etc.static SbColorgetDefaultEmissive()Specify Open Inventor defaults for colors, etc.static floatgetDefaultShininess()Specify Open Inventor defaults for colors, etc.static SbColorgetDefaultSpecular()Specify Open Inventor defaults for colors, etc.static floatgetDefaultTransparency()Specify Open Inventor defaults for colors, etc.static SbColorgetDiffuse(SoState state, int index)get() methods get value from Inventor state.static java.nio.IntBuffergetDirectColorIndices(SoState state)static SbColorgetEmissive(SoState name_15485)intgetNumColorIndices()Method to inquire about current colors.static longgetNumColorIndices(SoState state)Method to inquire about current colors.intgetNumDiffuse()Method to inquire about current colors.static longgetNumDiffuse(SoState state)Return number of diffuse colors.static intgetNumTransparencies(SoState state)Method to inquire about current colors.static SoCpuBufferObjectgetPackedColors(SoState state)Return packed colors if any.static floatgetShininess(SoState name_15487)static SbColorgetSpecular(SoState name_15486)static floatgetTransparency(SoState name_15478, int index)get() methods get value from Inventor state.static booleanisTransparent(SoState state)Method to inquire about current colors.voidpop(SoState state, SoElement prevTopElement)Unref buffer object of the popped element.voidpush(SoState state)Copy current material into the pushed element.static voidsetAmbient(SoState state, SoNode node, SbColor color)static voidsetColorIndices(SoState state, SoNode node, int[] indices)Static set method.static voidsetColorMaterial(SoState state, SoNode node, boolean value)static voidsetDiffuse(SoState state, SoNode node, SbColor[] colors)Static set method.static voidsetEmissive(SoState state, SoNode node, SbColor color)static voidsetPacked(SoState state, SoNode node, int[] colors)static voidsetShininess(SoState state, SoNode node, float value)static voidsetSpecular(SoState state, SoNode node, SbColor color)static voidsetTransparency(SoState state, SoNode node, float[] transp)Static set method.- 
Methods inherited from class com.openinventor.inventor.elements.SoElementgetClassStackIndex
 - 
Methods inherited from class com.openinventor.inventor.Inventordispose, getNativeResourceHandle
 
- 
 
- 
- 
- 
Method Detail- 
getTransparencypublic static float getTransparency(SoState name_15478, int index) 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.
 - 
pushpublic void push(SoState state) Copy current material into the pushed element.
 - 
getDiffusepublic static SbColor getDiffuse(SoState state, int index) get() methods get value from Inventor state. The public methods are static, they get an instance of the element.
 - 
poppublic void pop(SoState state, SoElement prevTopElement) Unref buffer object of the popped element.
 - 
getDefaultDiffusepublic static SbColor getDefaultDiffuse() Specify Open Inventor defaults for colors, etc.
 - 
getDefaultEmissivepublic static SbColor getDefaultEmissive() Specify Open Inventor defaults for colors, etc.
 - 
getDefaultAmbientpublic static SbColor getDefaultAmbient() Specify Open Inventor defaults for colors, etc.
 - 
getDefaultSpecularpublic static SbColor getDefaultSpecular() Specify Open Inventor defaults for colors, etc.
 - 
getClassStackIndex@Deprecated public static int getClassStackIndex() Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
 - 
setColorIndicespublic static void setColorIndices(SoState state, SoNode node, int[] indices) Static set method.
 - 
setDiffusepublic static void setDiffuse(SoState state, SoNode node, SbColor[] colors) Static set method.
 - 
setTransparencypublic static void setTransparency(SoState state, SoNode node, float[] transp) Static set method.
 - 
getPackedColorspublic static SoCpuBufferObject getPackedColors(SoState state) Return packed colors if any.
 - 
isTransparentpublic static boolean isTransparent(SoState state) Method to inquire about current colors.
 - 
getColorMaterialpublic static boolean getColorMaterial(SoState name_15488) 
 - 
getDefaultShininesspublic static float getDefaultShininess() Specify Open Inventor defaults for colors, etc.
 - 
getShininesspublic static float getShininess(SoState name_15487) 
 - 
getNumDiffusepublic static long getNumDiffuse(SoState state) Return number of diffuse colors.
 - 
getDefaultColorIndexpublic static int getDefaultColorIndex() Specify Open Inventor defaults for colors, etc.
 - 
getNumColorIndicespublic static long getNumColorIndices(SoState state) Method to inquire about current colors.
 - 
getDefaultTransparencypublic static float getDefaultTransparency() Specify Open Inventor defaults for colors, etc.
 - 
getNumTransparenciespublic static int getNumTransparencies(SoState state) Method to inquire about current colors.
 - 
getNumDiffusepublic int getNumDiffuse() Method to inquire about current colors.
 - 
getColorIndicespublic static int[] getColorIndices(SoState state) 
 - 
getNumColorIndicespublic int getNumColorIndices() Method to inquire about current colors.
 - 
getDirectColorIndicespublic static java.nio.IntBuffer getDirectColorIndices(SoState state) 
 - 
getColorIndexpublic static int getColorIndex(SoState name_15482, int num) 
 - 
getDefaultAmbientIntensitypublic static float getDefaultAmbientIntensity() Specify Open Inventor defaults for colors, etc.
 
- 
 
-