35#ifndef _MO_COLORMAPPING_ELEMENT_
36#define _MO_COLORMAPPING_ELEMENT_
38#include <MeshVizXLM/mapping/MoMeshVizDataMapping.h>
39#include <Inventor/elements/SoReplacedElement.h>
40#include <Inventor/SbColorRGBA.h>
41#include <MeshVizXLM/mapping/interfaces/MiColorMapping.h>
55class MESHVIZXLM_DMAP_API MoColorMappingElement :
public SoReplacedElement {
57 SO_ELEMENT_HEADER(MoColorMappingElement);
70 virtual void print(FILE *fp)
const;
75 virtual void init(
SoState *state);
80 virtual SbBool matches(
const SoElement* elt)
const;
85 virtual SoElement *copyMatchInfo()
const;
89 static void initClass();
90 static void exitClass() ;
94 virtual ~MoColorMappingElement();
97 size_t m_colorMapTimeStamp;
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Interface class defining...
virtual void print(FILE *fp) const
Prints element (for debugging).
static void set(SoState *state, SoNode *node, const MiColorMapping< double, SbColorRGBA > *colorMapping)
Sets the current color mapping.
static const MiColorMapping< double, SbColorRGBA > * getColorMapping(SoState *state)
Returns the current color mapping from the state.
Abstract base class for all database nodes.