35#ifndef _MO_MATERIAL_ELEMENT_
36#define _MO_MATERIAL_ELEMENT_
38#include <Inventor/elements/SoReplacedElement.h>
39#include <MeshVizXLM/mapping/MoMeshVizDataMapping.h>
40#include <MeshVizXLM/mapping/nodes/MoMaterial.h>
54class MESHVIZXLM_DMAP_API MoMaterialElement :
public SoReplacedElement {
56 SO_ELEMENT_HEADER(MoMaterialElement);
64 float transparency,
bool enhancedColoring);
70 float& transparency,
bool& enhancedColoring);
83 float& transparency,
bool& enhancedColoring);
88 virtual void print(FILE *fp)
const;
93 virtual void init(
SoState *state);
98 virtual SbBool matches(
const SoElement* elt)
const;
103 virtual SoElement* copyMatchInfo()
const;
107 static void initClass();
108 static void exitClass() ;
117 float m_transparency;
118 bool m_enhancedColoring;
121 virtual ~MoMaterialElement();
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Property node that defin...
virtual void print(FILE *fp) const
Prints element (for debugging).
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 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 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 getEnhancedColoring(SoState *state)
static bool getColoringTypes(SoState *state, MoMaterial::ColoringType &coloring, MoMaterial::ColoringType &lineColoring, MoMaterial::ColoringType &markerColoring)
Returns the current coloring type Material from the state.
ColoringType
Color Coloring type.
Abstract base class for all database nodes.