Open Inventor Release 2024.1.2
 
Loading...
Searching...
No Matches
MiMesh Class Referenceabstract

MeshViz Abstract mesh interface. More...

#include <MeshVizXLM/mesh/MiMesh.h>

+ Inheritance diagram for MiMesh:

Public Types

enum  Dimension {
  DIMENSION_I = 0 ,
  DIMENSION_J = 1 ,
  DIMENSION_K = 2
}
 Defines the dimensions in a one, two, or three-dimensional array. More...
 

Public Member Functions

virtual ~MiMesh ()
 

Protected Member Functions

virtual std::ostream & toStream (std::ostream &s) const =0
 Performs an output operation on a stream which is returned afterward.
 

Friends

std::ostream & operator<< (std::ostream &s, const MiMesh &mesh)
 Outputs the mesh to a stream using the toStream protected method implemented in all derived classes.
 

Detailed Description

MeshViz Abstract mesh interface.

This interface defines an abstract mesh. An abstract mesh organizes the domain by using a geometry and a topology. Thus, any implementing class of MiMesh must implement the methods getGeometry() and getTopology().

See also
MiLineMeshRegular
MiLineMeshCurvilinear
MiLineMeshUnstructured
MiSurfaceMeshRegular
MiSurfaceMeshRectilinear
MiSurfaceMeshCurvilinear
MiSurfaceMeshUnstructured
MiVolumeMeshRegular
MiVolumeMeshRectilinear
MiVolumeMeshCurvilinear
MiVolumeMeshUnstructured
MiVolumeMeshHexahedronIjk
MiVolumeMeshVertexHexahedronIjk

Definition at line 61 of file MiMesh.h.

Member Enumeration Documentation

◆ Dimension

Defines the dimensions in a one, two, or three-dimensional array.

Enumerator
DIMENSION_I 
DIMENSION_J 
DIMENSION_K 

Definition at line 71 of file MiMesh.h.

Constructor & Destructor Documentation

◆ ~MiMesh()

virtual MiMesh::~MiMesh ( )
inlinevirtual

Definition at line 64 of file MiMesh.h.

Member Function Documentation

◆ toStream()

virtual std::ostream & MiMesh::toStream ( std::ostream &  s) const
protectedpure virtual

Performs an output operation on a stream which is returned afterward.

This method is protected since only called by the output operator <<. This method is not pure virtual and output by default the geometry and topology of a mesh. Whenever a different output is needed, this method can be implemented in the subclass to get a different output format. No std::ostream& operator << needs to be defined in any subclass. This allows you to benefit from the virtual inheritance when using the output operator on an abstract class.

Implemented in MiLineMeshCurvilinear, MiLineMeshRegular, MiLineMeshUnstructured, MiMeshIjk, MiPointMeshCurvilinear, MiSurfaceMeshCurvilinear, MiSurfaceMeshRectilinear, MiSurfaceMeshRegular, MiSurfaceMeshUnstructured, MiVolumeMeshCurvilinear, MiVolumeMeshHexahedronIjk, MiVolumeMeshRectilinear, MiVolumeMeshRegular, MiVolumeMeshUnstructured, and MiVolumeMeshVertexHexahedronIjk.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  s,
const MiMesh mesh 
)
friend

Outputs the mesh to a stream using the toStream protected method implemented in all derived classes.

Definition at line 80 of file MiMesh.h.


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