|
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 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 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 | 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.
|
|
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
Definition at line 63 of file SoMaterialElement.h.