35#ifndef  _MO_DRAWSTYLE_ELEMENT_ 
   36#define  _MO_DRAWSTYLE_ELEMENT_ 
   38#include <Inventor/elements/SoReplacedElement.h> 
   39#include <MeshVizXLM/mapping/MoMeshVizDataMapping.h> 
   40#include <MeshVizXLM/mapping/nodes/MoDrawStyle.h> 
   54class MESHVIZXLM_DMAP_API MoDrawStyleElement : 
public SoReplacedElement {
 
   56  SO_ELEMENT_HEADER(MoDrawStyleElement);
 
   63  static void set( 
SoState* state, 
SoNode* node, 
bool displaySolid, 
bool displayEdges, 
bool displayPoints, 
float fadingThreshold );
 
   66  static bool getDrawStyle(
SoState *state, 
bool& displaySolid, 
bool& displayEdges, 
bool& displayPoints);
 
   71  static bool getDefault(
bool& displaySolid, 
bool& displayEdges, 
bool& displayPoints, 
float& fadingThreshold);
 
   76  virtual void        print(FILE *fp) 
const;
 
   81  virtual void init(
SoState *state);
 
   86  virtual SbBool matches(
const SoElement* elt) 
const;
 
   91  virtual SoElement *copyMatchInfo() 
const;
 
   95  static void initClass();
 
   96  static void exitClass() ;
 
  101  bool m_displayPoints;
 
  102  float m_fadingThreshold;
 
  105  virtual ~MoDrawStyleElement();
 
 
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Property node that defin...
static bool getDrawStyle(SoState *state, bool &displaySolid, bool &displayEdges, bool &displayPoints)
Returns the current DrawStyle from the state.
static void set(SoState *state, SoNode *node, bool displaySolid, bool displayEdges, bool displayPoints, float fadingThreshold)
static bool getDefault(bool &displaySolid, bool &displayEdges, bool &displayPoints, float &fadingThreshold)
Returns the default Drawstyle from the state.
static void set(SoState *state, MoDrawStyle *node)
Sets the current draw style.
virtual void print(FILE *fp) const
Prints element (for debugging).
static float getFadingThreshold(SoState *state)
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Property node that defin...
Abstract base class for all database nodes.