public class SoMaterialElement extends SoReplacedElement
Includes:
Transparencies
GLColorMaterial
PolygonStipple
Color index
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoMaterialElement.Masks
Masks.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static SbColor |
getAmbient(SoState name_15218) |
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
static int |
getColorIndex(SoState name_15216,
int num) |
static int[] |
getColorIndices(SoState state) |
static boolean |
getColorMaterial(SoState name_15222) |
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 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_15219) |
int |
getNumColorIndices()
Method to inquire about current colors.
|
static long |
getNumColorIndices(SoState state)
Method to inquire about current colors.
|
int |
getNumDiffuse()
Method to inquire about current colors.
|
static long |
getNumDiffuse(SoState state)
Return number of diffuse colors.
|
static int |
getNumTransparencies(SoState state)
Method to inquire about current colors.
|
static SoCpuBufferObject |
getPackedColors(SoState state)
Return packed colors if any.
|
static float |
getShininess(SoState name_15221) |
static SbColor |
getSpecular(SoState name_15220) |
static float |
getTransparency(SoState name_15212,
int index)
get() methods get value from Inventor state.
|
static boolean |
isTransparent(SoState state)
Method to inquire about current colors.
|
void |
pop(SoState state,
SoElement prevTopElement)
Unref buffer object of the popped element.
|
void |
push(SoState state)
Copy current material into the pushed element.
|
static void |
setAmbient(SoState state,
SoNode node,
SbColor color) |
static void |
setColorIndices(SoState state,
SoNode node,
int[] indices)
Static set method.
|
static void |
setColorMaterial(SoState state,
SoNode node,
boolean value) |
static void |
setDiffuse(SoState state,
SoNode node,
SbColor[] colors)
Static set method.
|
static void |
setEmissive(SoState state,
SoNode node,
SbColor color) |
static void |
setPacked(SoState state,
SoNode node,
int[] colors) |
static void |
setShininess(SoState state,
SoNode node,
float value) |
static void |
setSpecular(SoState state,
SoNode node,
SbColor color) |
static void |
setTransparency(SoState state,
SoNode node,
float[] transp)
Static set method.
|
getClassStackIndex
dispose, getNativeResourceHandle
public void push(SoState state)
public static SoCpuBufferObject getPackedColors(SoState state)
public static int[] getColorIndices(SoState state)
public static float getTransparency(SoState name_15212, int index)
public void pop(SoState state, SoElement prevTopElement)
public static java.nio.IntBuffer getDirectColorIndices(SoState state)
public static SbColor getDiffuse(SoState state, int index)
public static void setTransparency(SoState state, SoNode node, float[] transp)
public static void setDiffuse(SoState state, SoNode node, SbColor[] colors)
public static SbColor getDefaultAmbient()
@Deprecated public static int getClassStackIndex()
public static void setColorIndices(SoState state, SoNode node, int[] indices)
public static float getDefaultAmbientIntensity()
public static SbColor getDefaultDiffuse()
public static int getNumTransparencies(SoState state)
public static boolean isTransparent(SoState state)
public static SbColor getDefaultSpecular()
public static float getDefaultTransparency()
public static int getDefaultColorIndex()
public static SbColor getDefaultEmissive()
public static float getDefaultShininess()
public static long getNumColorIndices(SoState state)
public int getNumDiffuse()
public int getNumColorIndices()
public static int getColorIndex(SoState name_15216, int num)
public static boolean getColorMaterial(SoState name_15222)
public static long getNumDiffuse(SoState state)
public static float getShininess(SoState name_15221)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com