Generic geometry interface. More...
#include <MeshVizXLM/mesh/geometry/MiGeometry.h>
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. | |
Generic base class of geometry interfaces used by mesh interfaces.
Definition at line 43 of file MiGeometry.h.
|
inlinevirtual |
Definition at line 46 of file MiGeometry.h.
|
inlinevirtual |
Returns the maximum value of this set.
Reimplemented in MeXGeometry, MeXGeometryRegular, and MiGeometryRegular.
Definition at line 78 of file MiGeometry.h.
|
inlinevirtual |
Returns the minimum value of this set.
Reimplemented in MeXGeometry, MeXGeometryRegular, and MiGeometryRegular.
Definition at line 70 of file MiGeometry.h.
|
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.
|
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.
|
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.