Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
MoMaterialElement Class Reference

MeshViz Stores the current material. More...

#include <MeshVizXLM/mapping/elements/MoMaterialElement.h>

+ Inheritance diagram for MoMaterialElement:

Public Member Functions

virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
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.
 
- Public Member Functions inherited from SoTypedObject
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 Public Member Functions

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 Public Member Functions inherited from SoReplacedElement
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Detailed Description

MeshViz Stores the current material.

This element stores the current colors and coloring options.

SEE ALSO

MoMaterial

Definition at line 54 of file MoMaterialElement.h.

Member Function Documentation

◆ 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()

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.

◆ getDefault()

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.

◆ getEnhancedColoring()

static bool MoMaterialElement::getEnhancedColoring ( SoState state)
static

◆ getMaterial()

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.

◆ print()

virtual void MoMaterialElement::print ( FILE *  fp) const
virtual

Prints element (for debugging).

Reimplemented from SoReplacedElement.

◆ set()

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.


The documentation for this class was generated from the following file: