Property node that stores any kind of scalar data set. More...
#include <MeshVizXLM/mapping/nodes/MoScalarSet.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoScalarSet () | |
virtual void | setScalarSet (const MiScalardSet *scalarSet) |
virtual void | reset () |
virtual const MiScalardSet * | getScalarSet () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
This node adds a reference to an object implementing the MiScalardSetI, MiScalardSetIj or MiScalarSetIjk interface to the list of scalar data sets in the traversal state.
Subsequent mesh representations will be able to use this data set for extraction, coloring, etc. During traversal of the scene graph, MoScalarSet nodes are accumulated into a list so that an extraction can use multiple scalar sets during the same computation. For example, the first set (located at index 0 in the list) for computing an isosurface and the second set (located at index 1) for coloring it.
This node is recommended over MoScalarSetI, MoScalarSetIj or MoScalarSetIjk.
Note:
MoScalarSetElement, MiScalardSetI, MiScalardSetIj, MiScalardSetIjk
MoScalarSet::MoScalarSet | ( | ) |
Constructor.
static SoType MoScalarSet::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoActionNode.
virtual const MiScalardSet* MoScalarSet::getScalarSet | ( | ) | [virtual] |
Gets the associated scalar set interface.
Use RTTI to find out which derived class it is.
virtual SoType MoScalarSet::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoActionNode.
virtual void MoScalarSet::reset | ( | ) | [virtual] |
Reset the associated scalar set to null (as if setScalarSet was called with null).
Marks the node as modified by calling touch()
virtual void MoScalarSet::setScalarSet | ( | const MiScalardSet * | scalarSet | ) | [virtual] |
Provides a common interface for setting any scalar set type (MiScalardSetI, MiScalardSetIj or MiScalardSetIjk) and marks the node as modified by calling touch().
The given scalarSet is checked to ensure that a required type is provided. If not, NULL is set instead.