Stores the current material.
More...
#include <MeshVizXLM/mapping/elements/MoMaterialElement.h>
|
| virtual void | print (FILE *fp) const |
| | Prints element (for debugging).
|
| |
| virtual void | push (SoState *state) |
| | Pushes element.
|
| |
| virtual void | pop (SoState *state, const SoElement *prevTopElement) |
| | Pops 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 | set (SoState *state, SoNode *node, MoMaterial::ColoringType coloring, const SbColor &color, MoMaterial::ColoringType lineColoring, const SbColor &lineColor, MoMaterial::ColoringType markerColoring, const SbColor &markerColor, float transparency, bool enhancedColoring) |
| | Sets the current material.
|
| |
| static bool | getMaterial (SoState *state, MoMaterial::ColoringType &coloring, SbColor &color, MoMaterial::ColoringType &lineColoring, SbColor &lineColor, MoMaterial::ColoringType &markerColoring, SbColor &markerColor, float &transparency, bool &enhancedColoring) |
| | Returns the current Material from the state.
|
| |
| static bool | getColoringTypes (SoState *state, MoMaterial::ColoringType &coloring, MoMaterial::ColoringType &lineColoring, MoMaterial::ColoringType &markerColoring) |
| | Returns the current coloring type Material from the state.
|
| |
| static bool | getEnhancedColoring (SoState *state) |
| |
| static bool | getDefault (MoMaterial::ColoringType &coloring, SbColor &color, MoMaterial::ColoringType &lineColoring, SbColor &lineColor, MoMaterial::ColoringType &markerColoring, SbColor &markerColor, float &transparency, bool &enhancedColoring) |
| | Returns the default Material from the state.
|
| |
| 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.
|
| |
Stores the current material.
This element stores the current colors and coloring options.
SEE ALSO
MoMaterial
Definition at line 54 of file MoMaterialElement.h.
◆ getClassStackIndex()
| static int MoMaterialElement::getClassStackIndex |
( |
| ) |
|
|
static |
Returns the stack id for this element.
◆ getClassTypeId()
| static SoType MoMaterialElement::getClassTypeId |
( |
| ) |
|
|
static |
Returns the type identifier for this class.
◆ getColoringTypes()
Returns the current coloring type Material from the state.
◆ getDefault()
Returns the default Material from the state.
◆ getEnhancedColoring()
| static bool MoMaterialElement::getEnhancedColoring |
( |
SoState * | state | ) |
|
|
static |
◆ getMaterial()
Returns the current Material from the state.
◆ print()
| virtual void MoMaterialElement::print |
( |
FILE * | fp | ) |
const |
|
virtual |
◆ set()
Sets the current material.
The documentation for this class was generated from the following file: