Class SoMaterialElement
SoBaseColor, SoMaterial, SoPhysicalMaterial.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFaces.static enumMasks.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 state) Deprecated.As of Open Inventor 2025.1.static SbColorgetAmbient(SoState state, SoMaterialElement.Faces face) static intDeprecated.As of Open Inventor 9.3.0.0.static intgetColorIndex(SoState state, int num) Deprecated.As of Open Inventor 2025.1.static intgetColorIndex(SoState state, SoMaterialElement.Faces face, int num) static int[]getColorIndices(SoState state, SoMaterialElement.Faces face) static booleangetColorMaterial(SoState state) Deprecated.As of Open Inventor 2025.1.static booleangetColorMaterial(SoState state, SoMaterialElement.Faces face) static SbColorSpecify Open Inventor defaults for colors, etc.static floatSpecify Open Inventor defaults for colors, etc.static intSpecify Open Inventor defaults for colors, etc.static SbColorSpecify Open Inventor defaults for colors, etc.static SbColorSpecify Open Inventor defaults for colors, etc.static floatstatic floatstatic floatSpecify Open Inventor defaults for colors, etc.static SbColorSpecify Open Inventor defaults for colors, etc.static floatstatic floatSpecify Open Inventor defaults for colors, etc.static SbColorgetDiffuse(SoState state, int index) Deprecated.As of Open Inventor 2025.1.static SbColorgetDiffuse(SoState state, SoMaterialElement.Faces face, int index) get() methods get value from Inventor state.static IntBuffergetDirectColorIndices(SoState state, SoMaterialElement.Faces face) static SbColorgetEmissive(SoState state) Deprecated.As of Open Inventor 2025.1.static SbColorgetEmissive(SoState state, SoMaterialElement.Faces face) static floatgetMetallic(SoState state) Deprecated.As of Open Inventor 2025.1.static floatgetMetallic(SoState state, SoMaterialElement.Faces face) static longgetNumColorIndices(SoState state) Deprecated.As of Open Inventor 2025.1.static longgetNumColorIndices(SoState state, SoMaterialElement.Faces face) Method to inquire about current colors.static longgetNumDiffuse(SoState state) Deprecated.As of Open Inventor 2025.1.static longgetNumDiffuse(SoState state, SoMaterialElement.Faces face) Returns the number of diffuse colors.static intgetNumTransparencies(SoState state) Deprecated.As of Open Inventor 2025.1.static intgetNumTransparencies(SoState state, SoMaterialElement.Faces face) Method to inquire about current colors.static SoCpuBufferObjectgetPackedColors(SoState state) Deprecated.As of Open Inventor 2025.1.static SoCpuBufferObjectgetPackedColors(SoState state, SoMaterialElement.Faces face) Return packed colors if any.static floatgetRoughness(SoState state) Deprecated.As of Open Inventor 2025.1.static floatgetRoughness(SoState state, SoMaterialElement.Faces face) static floatgetShininess(SoState state) Deprecated.As of Open Inventor 2025.1.static floatgetShininess(SoState state, SoMaterialElement.Faces face) static SbColorgetSpecular(SoState state) Deprecated.As of Open Inventor 2025.1.static SbColorgetSpecular(SoState state, SoMaterialElement.Faces face) static floatgetSpecularFactor(SoState state) Deprecated.As of Open Inventor 2025.1.static floatgetSpecularFactor(SoState state, SoMaterialElement.Faces face) static floatgetTransparency(SoState state, int index) Deprecated.As of Open Inventor 2025.1.static floatgetTransparency(SoState state, SoMaterialElement.Faces face, int index) get() methods get value from Inventor state.static booleanisTransparent(SoState state) Method to inquire about current colors.voidUnref buffer object of the popped element.voidCopy current material into the pushed element.static voidsetAmbient(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor color) static voidsetAmbient(SoState state, SoNode node, SbColor color) Deprecated.As of Open Inventor 2025.1.static voidsetColorIndices(SoState state, SoMaterialElement.Faces face, SoNode node, int[] indices) Static set method.static voidsetColorIndices(SoState state, SoNode node, int[] indices) Deprecated.As of Open Inventor 2025.1.static voidsetColorMaterial(SoState state, SoMaterialElement.Faces face, SoNode node, boolean value) static voidsetColorMaterial(SoState state, SoNode node, boolean value) Deprecated.As of Open Inventor 2025.1.static voidsetDiffuse(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor[] colors) Static set method.static voidsetDiffuse(SoState state, SoNode node, SbColor[] colors) Deprecated.As of Open Inventor 2025.1.static voidsetEmissive(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor color) static voidsetEmissive(SoState state, SoNode node, SbColor color) Deprecated.As of Open Inventor 2025.1.static voidsetMetallic(SoState state, SoMaterialElement.Faces face, SoNode node, float value) static voidsetMetallic(SoState state, SoNode node, float value) Deprecated.As of Open Inventor 2025.1.static voidsetPacked(SoState state, SoMaterialElement.Faces face, SoNode node, int[] colors) static voidDeprecated.As of Open Inventor 2025.1.static voidsetRoughness(SoState state, SoMaterialElement.Faces face, SoNode node, float value) static voidsetRoughness(SoState state, SoNode node, float value) Deprecated.As of Open Inventor 2025.1.static voidsetShininess(SoState state, SoMaterialElement.Faces face, SoNode node, float value) static voidsetShininess(SoState state, SoNode node, float value) Deprecated.As of Open Inventor 2025.1.static voidsetSpecular(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor color) static voidsetSpecular(SoState state, SoNode node, SbColor color) Deprecated.As of Open Inventor 2025.1.static voidsetSpecularFactor(SoState state, SoMaterialElement.Faces face, SoNode node, float value) static voidsetSpecularFactor(SoState state, SoNode node, float value) Deprecated.As of Open Inventor 2025.1.static voidsetTransparency(SoState state, SoMaterialElement.Faces face, SoNode node, float[] transp) Static set method.static voidsetTransparency(SoState state, SoNode node, float[] transp) Deprecated.As of Open Inventor 2025.1.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndexMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getPackedColors
Return packed colors if any. -
getEmissive
-
getColorIndices
-
getDirectColorIndices
-
getAmbient
-
getColorIndex
-
setShininess
@Deprecated(since="2025.1") public static void setShininess(SoState state, SoNode node, float value) Deprecated.As of Open Inventor 2025.1. Use the setShininess() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setShininess()method that takes a Face parameter instead. -
setPacked
Deprecated.As of Open Inventor 2025.1. Use the setPacked() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setPacked()method that takes a Face parameter instead. -
setColorMaterial
@Deprecated(since="2025.1") public static void setColorMaterial(SoState state, SoNode node, boolean value) Deprecated.As of Open Inventor 2025.1. Use the setColorMaterial() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setColorMaterial()method that takes a Face parameter instead. -
setTransparency
@Deprecated(since="2025.1") public static void setTransparency(SoState state, SoNode node, float[] transp) Deprecated.As of Open Inventor 2025.1. Use the setTransparency() method that takes a Face parameter instead.Static set method.Warning Deprecated since Open Inventor 2025.1. Use the
setTransparency()method that takes a Face parameter instead. -
getShininess
-
getSpecular
-
setSpecular
@Deprecated(since="2025.1") public static void setSpecular(SoState state, SoNode node, SbColor color) Deprecated.As of Open Inventor 2025.1. Use the setSpecular() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setSpecular()method that takes a Face parameter instead. -
setColorIndices
@Deprecated(since="2025.1") public static void setColorIndices(SoState state, SoNode node, int[] indices) Deprecated.As of Open Inventor 2025.1. Use the setColorIndices() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setColorIndices()method that takes a Face parameter instead. -
push
Copy current material into the pushed element. -
setColorIndices
public static void setColorIndices(SoState state, SoMaterialElement.Faces face, SoNode node, int[] indices) Static set method. -
setPacked
public static void setPacked(SoState state, SoMaterialElement.Faces face, SoNode node, int[] colors) -
setEmissive
public static void setEmissive(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor color) -
setAmbient
public static void setAmbient(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor color) -
setTransparency
public static void setTransparency(SoState state, SoMaterialElement.Faces face, SoNode node, float[] transp) Static set method. -
setEmissive
@Deprecated(since="2025.1") public static void setEmissive(SoState state, SoNode node, SbColor color) Deprecated.As of Open Inventor 2025.1. Use the setEmissive() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setEmissive()method that takes a Face parameter instead. -
setAmbient
@Deprecated(since="2025.1") public static void setAmbient(SoState state, SoNode node, SbColor color) Deprecated.As of Open Inventor 2025.1. Use the setAmbient() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setAmbient()method that takes a Face parameter instead. -
setDiffuse
public static void setDiffuse(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor[] colors) Static set method. -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
getDiffuse
get() methods get value from Inventor state. The public methods are static, they get an instance of the element. -
setMetallic
public static void setMetallic(SoState state, SoMaterialElement.Faces face, SoNode node, float value) -
getTransparency
get() methods get value from Inventor state. The public methods are static, they get an instance of the element. -
pop
Unref buffer object of the popped element. -
setRoughness
public static void setRoughness(SoState state, SoMaterialElement.Faces face, SoNode node, float value) -
setShininess
public static void setShininess(SoState state, SoMaterialElement.Faces face, SoNode node, float value) -
setSpecular
public static void setSpecular(SoState state, SoMaterialElement.Faces face, SoNode node, SbColor color) -
setSpecularFactor
public static void setSpecularFactor(SoState state, SoMaterialElement.Faces face, SoNode node, float value) -
setColorMaterial
public static void setColorMaterial(SoState state, SoMaterialElement.Faces face, SoNode node, boolean value) -
getNumTransparencies
Method to inquire about current colors. -
getColorMaterial
Deprecated.As of Open Inventor 2025.1. Use the getColorMaterial() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getColorMaterial()method that takes a Face parameter instead. -
getNumColorIndices
Method to inquire about current colors. -
getSpecularFactor
Deprecated.As of Open Inventor 2025.1. Use the getSpecularFactor() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getSpecularFactor()method that takes a Face parameter instead. -
isTransparent
Method to inquire about current colors. -
getSpecular
Deprecated.As of Open Inventor 2025.1. Use the getSpecular() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getSpecular()method that takes a Face parameter instead. -
getDefaultDiffuse
Specify Open Inventor defaults for colors, etc. -
getShininess
Deprecated.As of Open Inventor 2025.1. Use the getShininess() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getShininess()method that takes a Face parameter instead. -
getDefaultAmbientIntensity
public static float getDefaultAmbientIntensity()Specify Open Inventor defaults for colors, etc. -
getRoughness
Deprecated.As of Open Inventor 2025.1. Use the getRoughness() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getRoughness()method that takes a Face parameter instead. -
getSpecularFactor
-
getNumColorIndices
Deprecated.As of Open Inventor 2025.1. Use the getNumColorIndices() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getNumColorIndices()method that takes a Face parameter instead. -
getColorMaterial
-
getNumTransparencies
Deprecated.As of Open Inventor 2025.1. Use the getNumTransparencies() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getNumTransparencies()method that takes a Face parameter instead. -
getRoughness
-
getMetallic
Deprecated.As of Open Inventor 2025.1. Use the getMetallic() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getMetallic()method that takes a Face parameter instead. -
getNumDiffuse
Returns the number of diffuse colors. -
getNumDiffuse
Deprecated.As of Open Inventor 2025.1. Use the getNumDiffuse() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getNumDiffuse()method that takes a Face parameter instead. -
getMetallic
-
getEmissive
Deprecated.As of Open Inventor 2025.1. Use the getEmissive() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getEmissive()method that takes a Face parameter instead. -
getDefaultMetallic
public static float getDefaultMetallic() -
setMetallic
Deprecated.As of Open Inventor 2025.1. Use the setMetallic() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setMetallic()method that takes a Face parameter instead. -
getDefaultRoughness
public static float getDefaultRoughness() -
getDiffuse
Deprecated.As of Open Inventor 2025.1. Use the getDiffuse() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getDiffuse()method that takes a Face parameter instead. -
getDefaultTransparency
public static float getDefaultTransparency()Specify Open Inventor defaults for colors, etc. -
setSpecularFactor
@Deprecated(since="2025.1") public static void setSpecularFactor(SoState state, SoNode node, float value) Deprecated.As of Open Inventor 2025.1. Use the setSpecularFactor() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setSpecularFactor()method that takes a Face parameter instead. -
setDiffuse
@Deprecated(since="2025.1") public static void setDiffuse(SoState state, SoNode node, SbColor[] colors) Deprecated.As of Open Inventor 2025.1. Use the setDiffuse() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setDiffuse()method that takes a Face parameter instead. -
setRoughness
@Deprecated(since="2025.1") public static void setRoughness(SoState state, SoNode node, float value) Deprecated.As of Open Inventor 2025.1. Use the setRoughness() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
setRoughness()method that takes a Face parameter instead. -
getDefaultColorIndex
public static int getDefaultColorIndex()Specify Open Inventor defaults for colors, etc. -
getTransparency
Deprecated.As of Open Inventor 2025.1. Use the getTransparency() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getTransparency()method that takes a Face parameter instead. -
getDefaultSpecular
Specify Open Inventor defaults for colors, etc. -
getColorIndex
Deprecated.As of Open Inventor 2025.1. Use the getColorIndex() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getColorIndex()method that takes a Face parameter instead. -
getDefaultAmbient
Specify Open Inventor defaults for colors, etc. -
getAmbient
Deprecated.As of Open Inventor 2025.1. Use the getAmbient() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getAmbient()method that takes a Face parameter instead. -
getDefaultEmissive
Specify Open Inventor defaults for colors, etc. -
getPackedColors
Deprecated.As of Open Inventor 2025.1. Use the getPackedColors() method that takes a Face parameter instead.Warning Deprecated since Open Inventor 2025.1. Use the
getPackedColors()method that takes a Face parameter instead. -
getDefaultSpecularFactor
public static float getDefaultSpecularFactor() -
getDefaultShininess
public static float getDefaultShininess()Specify Open Inventor defaults for colors, etc.
-