MoMesh Class Reference
[Attributes]

MeshViz Property node that defines a mesh. More...

#include <MeshVizXLM/mapping/nodes/MoMesh.h>

Inheritance diagram for MoMesh:
MoActionNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 MoMesh ()
virtual void setMesh (const MiMesh *mesh)
virtual void reset ()
virtual void connectFrom (MoMeshRepresentation *inputRep)
virtual const MiMeshgetMesh (MeshType &meshType)

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

MeshViz Property node that defines a mesh.

This node stores the object implementing a mesh interface in the scene graph. Any kind of mesh derived from MiMesh can be stored in the scene graph. 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.

Note:
Each time the current mesh geometry and/or topology are updated (see MiTopology::getTimeStamp() and MiGeometry::getTimeStamp()), touch() must be called to mark the node as modified.

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

MiMesh

See related examples:

EclipseMeshViz, PEBIMeshViz, QuadraticWheelHexa27, Turbine, TessellatedLine, TessellatedPolyhedralMesh, TessellatedSkin, TessellatedSurface, CellShape, CellShapeConnectedFromSkin, ClipLine, ClipLineOnSkin, ClipPoint, ColorMapping, 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


Constructor & Destructor Documentation

MoMesh::MoMesh (  ) 

Constructor.


Member Function Documentation

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.

virtual const MiMesh* MoMesh::getMesh ( MeshType meshType  )  [virtual]

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.

Note:
When the current mesh geometry and topology have simply been updated (see MiTopology::getTimeStamp() and MiGeometry::getTimeStamp()), it is then better to just call touch() instead.

If the mesh must come from the output of another representation, use the connectFrom() method instead of setMesh().

Supported volume meshes are MiVolumeMeshUnstructured, MiVolumeMeshUnstructuredIjk, 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.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/