MiDataSet Class Reference
[DataSets]

MeshViz Generic data set interface. More...

#include <MeshVizXLM/mesh/data/MiDataSet.h>

Inheritance diagram for MiDataSet:
MbDataSet MiBoundedDataSet< _T > MiBoundedDataSet< double > MiBoundedDataSet< MbVec3d > MbScalarSetI< _T > MbScalarSetIj< _T > MbScalarSetIjk< _T, _Layout > MbVec3SetI< _Vec3T > MbVec3SetIj< _Vec3T > MbVec3SetIjk< _Vec3T, _Layout > MeXDataSet< _T > MiDataSetI< _T > MiDataSetIj< _T > MiDataSetIjk< _T > MiDataSetI< double > MiDataSetIj< double > MiDataSetIjk< double > MiDataSetI< MbVec3d > MiDataSetIj< MbVec3d > MiDataSetIjk< MbVec3d >

List of all members.

Public Types

enum  DataBinding {
  PER_CELL,
  PER_NODE
}

Public Member Functions

virtual ~MiDataSet ()
virtual size_t getTimeStamp () const =0
virtual std::string getName () const =0
virtual DataBinding getBinding () const =0

Protected Member Functions

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

Friends

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

Detailed Description

MeshViz Generic data set interface.

A generic abstract interface for a data set usable in any extract of a mesh.


Member Enumeration Documentation

Data binding.

Enumerator:
PER_CELL 

The data set contains one data value per cell.

PER_NODE 

The data set contains one data value per node.


Constructor & Destructor Documentation

virtual MiDataSet::~MiDataSet (  )  [inline, virtual]

Member Function Documentation

virtual DataBinding MiDataSet::getBinding (  )  const [pure virtual]
virtual std::string MiDataSet::getName (  )  const [pure virtual]
virtual size_t MiDataSet::getTimeStamp (  )  const [pure virtual]

Returns for this dataset a unique time stamp across all datasets in the application.

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

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

Implemented in MbDataSet, MyScalarSetI, MyVectorSetI, MyScalarSetI, MyVectorSetI, MyScalarSetI, MyVectorSetI, MyScalarSetIj, MyVectorSetIj, MyScalarSetIj, MyVectorSetIj, MyScalarSetIj, MyVectorSetIj, MyScalarSetI, MyVectorSetI, MyScalarSetIjk, MyVectorSetIjk, MyScalarSetI, MyScalarSetIjk, MyVectorSetI, MyVectorSetIjk, MyScalarSetIjk, MyVectorSetIjk, MyScalarSetIjk, MyVectorSetIjk, MyScalarSetI, MyVectorSetI, MyScalarSetIjk, and MyVectorSetIjk.

virtual std::ostream& MiDataSet::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 MiBoundedDataSet< _T >, MiBoundedDataSet< double >, and MiBoundedDataSet< MbVec3d >.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const MiDataSet dataset 
) [friend]

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


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/