Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
MiGeometry Class Referenceabstract

MeshViz Generic geometry interface. More...

#include <MeshVizXLM/mesh/geometry/MiGeometry.h>

+ Inheritance diagram for MiGeometry:

Public Member Functions

virtual ~MiGeometry ()
 
virtual size_t getTimeStamp () const =0
 Returns for this geometry a unique time stamp across all geometries in the application.
 
Deprecated
virtual SoDEPRECATED MbVec3d getMin () const
 Returns the minimum value of this set.
 
virtual SoDEPRECATED MbVec3d getMax () const
 Returns the maximum value of this set.
 

Protected Member Functions

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

Friends

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

Detailed Description

MeshViz Generic geometry interface.

Generic base class of geometry interfaces used by mesh interfaces.

Definition at line 43 of file MiGeometry.h.

Constructor & Destructor Documentation

◆ ~MiGeometry()

virtual MiGeometry::~MiGeometry ( )
inlinevirtual

Definition at line 46 of file MiGeometry.h.

Member Function Documentation

◆ getMax()

virtual SoDEPRECATED MbVec3d MiGeometry::getMax ( ) const
inlinevirtual

Returns the maximum value of this set.

Reimplemented in MeXGeometry, MeXGeometryRegular, and MiGeometryRegular.

Definition at line 78 of file MiGeometry.h.

◆ getMin()

virtual SoDEPRECATED MbVec3d MiGeometry::getMin ( ) const
inlinevirtual

Returns the minimum value of this set.

Reimplemented in MeXGeometry, MeXGeometryRegular, and MiGeometryRegular.

Definition at line 70 of file MiGeometry.h.

◆ getTimeStamp()

virtual size_t MiGeometry::getTimeStamp ( ) const
pure virtual

Returns for this geometry a unique time stamp across all geometries in the application.

When the content of the geometry changes, the time stamp must increase. The time stamp allows extractors to identify this geometry and to be aware of any changes to it.

Note
MxTimeStamp can be used to generate a valid time stamp.

◆ toStream()

virtual std::ostream & MiGeometry::toStream ( std::ostream &  s) const
inlineprotectedvirtual

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.

Reimplemented in MiGeometryRegular.

Definition at line 89 of file MiGeometry.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  s,
const MiGeometry dataset 
)
friend

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

Definition at line 59 of file MiGeometry.h.


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