Property node that defines a mesh. More...
#include <MeshVizXLM/mapping/nodes/MoMesh.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
MoMesh () | |
virtual void | setMesh (const MiMesh *mesh) |
virtual void | reset () |
virtual void | connectFrom (MoMeshRepresentation *inputRep) |
virtual const MiMesh * | getMesh (MeshType &meshType) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
This node stores the object implementing a mesh interface in the scene graph. Several types of meshes can be stored in the scene graph (see setMesh method for more details) All mesh representation nodes derived from MoMeshRepresentation use this mesh. The mesh can be set explicitly using the setMesh method or implicitly using the connectFrom() method to use the result of a previous representation.
EclipseMeshViz, PEBIMeshViz, QuadraticWheelHexa27, Turbine, TessellatedLine, TessellatedPolyhedralMesh, TessellatedSkin, TessellatedSurface, CellShape, CellShapeConnectedFromSkin, ClipLine, ClipLineOnSkin, ClipPoint, MeshVizColorMapping, ElevatedPlaneSLice, EnhancedColoring, FenceSlice, FenceSliceSelection, GridPlaneSlice, InterpolatedLogicalSlice, Isoline, IsolineOnIsosurface, Isosurface, Legend, LogicalSlice, MaterialAndDrawStyle, Outline, OutlineOnPlaneSlice, Picking, PickingAndProbing, PlaneSlice, PolyhedralIsosurface, Polyhedron, Probing, QuadraticHexa20, QuadraticHexa27, QuadraticLine, QuadraticSkin, QuadraticSurface, QuadraticTetra10, QuadraticTube, QuadraticWedge18, QuadraticWheelHexa20, QuadraticWheelTetra10, QuadraticWheelWedge18, SampleLine, SampleSurface, Skin, Slab, SphereCylinderPlaneSlices, Streamlines, SurfaceCellFilter, TutorialCombineColorMapping, TutorialPicking1, TutorialPicking2, TutorialPicking4, TutorialPicking5, TutorialPicking6, TutorialPicking7, TutorialPicking8, TutorialPicking9, Vectors, VolumeMesh, WheelHexa8
MoMesh::MoMesh | ( | ) |
Constructor.
virtual void MoMesh::connectFrom | ( | MoMeshRepresentation * | inputRep | ) | [virtual] |
Sets the mesh interface by giving the mesh representation node from which the input mesh will be created.
When calling this method, the mesh is set internally each time the inputRep representation changes during traversal. This is useful when a representation must be made on top of another one such as isolines on top of an isosurface.
static SoType MoMesh::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoActionNode.
Gets the mesh interface and the type of mesh stored.
virtual SoType MoMesh::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoActionNode.
virtual void MoMesh::reset | ( | ) | [virtual] |
Resets the mesh interface to NULL (as if setMesh was given a NULL pointer).
Sets the node as modified by calling touch().
virtual void MoMesh::setMesh | ( | const MiMesh * | mesh | ) | [virtual] |
Sets the mesh interface to be stored in the scene graph.
The node will automatically be marked as modified by calling touch() and all associated representations will be cleared, resutling in a full rendering of the corresponding scenegraph.
If the mesh must come from the output of another representation, use the connectFrom() method instead of setMesh().
Supported volume meshes are MiVolumeMeshUnstructured, MiVolumeMeshHexahedronIjk, MiVolumeMeshVertexHexahedronIjk, MiVolumeMeshRegular, MiVolumeMeshRectilinear and MiVolumeMeshCurvilinear. Supported surface meshes are MiSurfaceMeshUnstructured, MiSurfaceMeshRegular, MiSurfaceMeshRectilinear and MiSurfaceMeshCurvilinear.
Supported line meshes are MiLineMeshUnstructured, MiLineMeshRegular and MiLineMeshCurvilinear.
The given mesh is checked to ensure that a supported type is provided. If not, NULL is set instead.