Generic geometry interface. More...
#include <MeshVizXLM/mesh/geometry/MiGeometry.h>
Public Member Functions | |
virtual | ~MiGeometry () |
virtual size_t | getTimeStamp () const =0 |
Protected Member Functions | |
virtual std::ostream & | toStream (std::ostream &s) const |
Friends | |
std::ostream & | operator<< (std::ostream &s, const MiGeometry &dataset) |
Deprecated | |
| |
virtual SoDEPRECATED MbVec3d | getMin () const |
virtual SoDEPRECATED MbVec3d | getMax () const |
Generic base class of geometry interfaces used by mesh interfaces.
virtual MiGeometry::~MiGeometry | ( | ) | [inline, virtual] |
virtual SoDEPRECATED MbVec3d MiGeometry::getMax | ( | ) | const [inline, virtual] |
Returns the maximum value of this set.
Reimplemented in MeXGeometry, MeXGeometryRegular, and MiGeometryRegular.
virtual SoDEPRECATED MbVec3d MiGeometry::getMin | ( | ) | const [inline, virtual] |
Returns the minimum value of this set.
Reimplemented in MeXGeometry, MeXGeometryRegular, and MiGeometryRegular.
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.
virtual std::ostream& MiGeometry::toStream | ( | std::ostream & | s | ) | const [inline, protected, 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.
Reimplemented in MiGeometryRegular.
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.