Stores the current material. More...
#include <MeshVizXLM/mapping/elements/MoMaterialElement.h>
Public Member Functions | |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
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) |
static bool | getMaterial (SoState *state, MoMaterial::ColoringType &coloring, SbColor &color, MoMaterial::ColoringType &lineColoring, SbColor &lineColor, MoMaterial::ColoringType &markerColoring, SbColor &markerColor, float &transparency, bool &enhancedColoring) |
static bool | getColoringTypes (SoState *state, MoMaterial::ColoringType &coloring, MoMaterial::ColoringType &lineColoring, MoMaterial::ColoringType &markerColoring) |
static bool | getDefault (MoMaterial::ColoringType &coloring, SbColor &color, MoMaterial::ColoringType &lineColoring, SbColor &lineColor, MoMaterial::ColoringType &markerColoring, SbColor &markerColor, float &transparency, bool &enhancedColoring) |
This element stores the current colors and coloring options.
static int MoMaterialElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoReplacedElement.
static SoType MoMaterialElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoReplacedElement.
static bool MoMaterialElement::getColoringTypes | ( | SoState * | state, | |
MoMaterial::ColoringType & | coloring, | |||
MoMaterial::ColoringType & | lineColoring, | |||
MoMaterial::ColoringType & | markerColoring | |||
) | [static] |
Returns the current coloring type Material from the state.
static bool MoMaterialElement::getDefault | ( | MoMaterial::ColoringType & | coloring, | |
SbColor & | color, | |||
MoMaterial::ColoringType & | lineColoring, | |||
SbColor & | lineColor, | |||
MoMaterial::ColoringType & | markerColoring, | |||
SbColor & | markerColor, | |||
float & | transparency, | |||
bool & | enhancedColoring | |||
) | [static] |
Returns the default Material from the state.
static bool MoMaterialElement::getMaterial | ( | SoState * | state, | |
MoMaterial::ColoringType & | coloring, | |||
SbColor & | color, | |||
MoMaterial::ColoringType & | lineColoring, | |||
SbColor & | lineColor, | |||
MoMaterial::ColoringType & | markerColoring, | |||
SbColor & | markerColor, | |||
float & | transparency, | |||
bool & | enhancedColoring | |||
) | [static] |
Returns the current Material from the state.
virtual void MoMaterialElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoReplacedElement.
static void MoMaterialElement::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 | |||
) | [static] |
Sets the current material.