|
int32_t | getNumDiffuse () const |
| Method to inquire about current colors.
|
|
int32_t | getNumColorIndices () const |
| Method to inquire about current colors.
|
|
virtual void | push (SoState *state) |
| Copy current material into the pushed element.
|
|
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
| Unref buffer object of the popped element.
|
|
virtual SoType | getTypeId () const |
| Returns type identifier for element instance.
|
|
SbBool | isOfType (const SoType &type) const |
| Returns TRUE if this object is of the type specified in type or is derived from that type.
|
|
template<typename TypedObjectClass > |
SbBool | isOfType () const |
| Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
|
|
|
static SoType | getClassTypeId () |
| Returns the type identifier for this class.
|
|
static int | getClassStackIndex () |
| Returns the stack id for this element.
|
|
static void | setDiffuse (SoState *state, SoNode *node, int32_t numColors, const SbColor *colors) |
| Static set method.
|
|
static void | setTransparency (SoState *state, SoNode *node, int32_t numTransp, const float *transp) |
| Static set method.
|
|
static void | setPacked (SoState *state, SoNode *node, int32_t numColors, const uint32_t *colors) |
|
static void | setColorIndices (SoState *state, SoNode *node, int32_t numIndices, const int32_t *indices) |
| Static set method.
|
|
static void | setAmbient (SoState *state, SoNode *node, const SbColor &color) |
|
static void | setEmissive (SoState *state, SoNode *node, const SbColor &color) |
|
static void | setSpecular (SoState *state, SoNode *node, const SbColor &color) |
|
static void | setShininess (SoState *state, SoNode *node, float value) |
|
static void | setColorMaterial (SoState *state, SoNode *node, SbBool value) |
|
static void | setSpecularFactor (SoState *state, SoNode *node, float value) |
|
static void | setRoughness (SoState *state, SoNode *node, float value) |
|
static void | setMetallic (SoState *state, SoNode *node, float value) |
|
static SbColor | getDiffuse (SoState *state, int index) |
| get() methods get value from Inventor state.
|
|
static float | getTransparency (SoState *, int index) |
| get() methods get value from Inventor state.
|
|
static SoCpuBufferObject * | getPackedColors (SoState *state) |
| Return packed colors if any.
|
|
static const int32_t * | getColorIndices (SoState *state) |
|
static int32_t | getColorIndex (SoState *, int num) |
|
static const SbColor & | getAmbient (SoState *) |
|
static const SbColor & | getEmissive (SoState *) |
|
static const SbColor & | getSpecular (SoState *) |
|
static float | getShininess (SoState *) |
|
static SbBool | getColorMaterial (SoState *) |
|
static float | getSpecularFactor (SoState *state) |
|
static float | getRoughness (SoState *state) |
|
static float | getMetallic (SoState *state) |
|
static size_t | getNumDiffuse (SoState *state) |
| Return number of diffuse colors.
|
|
static size_t | getNumColorIndices (SoState *state) |
| Method to inquire about current colors.
|
|
static int32_t | getNumTransparencies (SoState *state) |
| Method to inquire about current colors.
|
|
static bool | isTransparent (SoState *state) |
| Method to inquire about current colors.
|
|
static float | getDefaultAmbientIntensity () |
| Specify Open Inventor defaults for colors, etc.
|
|
static SbColor | getDefaultDiffuse () |
| Specify Open Inventor defaults for colors, etc.
|
|
static SbColor | getDefaultAmbient () |
| Specify Open Inventor defaults for colors, etc.
|
|
static SbColor | getDefaultSpecular () |
| 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 float | getDefaultSpecularFactor () |
|
static float | getDefaultRoughness () |
|
static float | getDefaultMetallic () |
|
static float | getDefaultTransparency () |
| Specify Open Inventor defaults for colors, etc.
|
|
static int32_t | getDefaultColorIndex () |
| Specify Open Inventor defaults for colors, etc.
|
|
static SoType | getClassTypeId () |
| Returns the type identifier for this class.
|
|
static int | getClassStackIndex () |
| Returns the stack id for this element.
|
|
static SoType | getClassTypeId () |
| Returns type identifier for SoElement class.
|
|
static SoType | getClassTypeId () |
| Returns the type identifier for this class.
|
|
Store in the state the material properties set by some property nodes.
The values of this element are modified by property nodes that affects the material characteristics such as: SoBaseColor, SoMaterial, SoPhysicalMaterial.
SEE ALSO
SoBaseColor, SoPhysicalMaterial, SoMaterial, SoPackedColor, SoVertexProperty
Definition at line 53 of file SoMaterialElement.h.