Generic data set implementation.
More...
#include <MeshVizXLM/mesh/data/MbTypedDataSet.h>
Public Member Functions | |
MbTypedDataSet () | |
MbTypedDataSet (const std::string &name, MiDataSet::DataBinding binding) | |
virtual size_t | getTimeStamp () const |
virtual std::string | getName () const |
virtual void | setName (const std::string &name) |
virtual MiDataSet::DataBinding | getBinding () const |
virtual void | setBinding (MiDataSet::DataBinding binding) |
void | touch () |
A generic abstract template interface for a data set usable in any extract or geometry of a mesh.
MbTypedDataSet< _T >::MbTypedDataSet | ( | ) | [inline] |
Constructor for an empty default dataset.
Initializes name to empty string, data binding to PER_NODE and timestamp to 1.
MbTypedDataSet< _T >::MbTypedDataSet | ( | const std::string & | name, | |
MiDataSet::DataBinding | binding | |||
) | [inline] |
Constructor for dataset with specific name and specific data binding.
Initializes timestamp to 1.
virtual MiDataSet::DataBinding MbTypedDataSet< _T >::getBinding | ( | ) | const [inline, virtual] |
Returns the binding of this dataset.
Implements MiDataSet.
virtual std::string MbTypedDataSet< _T >::getName | ( | ) | const [inline, virtual] |
Returns the name of this dataset.
Implements MiDataSet.
virtual size_t MbTypedDataSet< _T >::getTimeStamp | ( | ) | const [inline, virtual] |
Returns the time stamp on this data set.
When the content of the dataset changes, the time stamp must also change. The time stamp allows MeshViz to be aware of any change to this dataset.
Implements MiDataSet.
virtual void MbTypedDataSet< _T >::setBinding | ( | MiDataSet::DataBinding | binding | ) | [inline, virtual] |
Define the data binding of this dataset (default is PER_NODE).
virtual void MbTypedDataSet< _T >::setName | ( | const std::string & | name | ) | [inline, virtual] |
Define the name of this dataset (default is empty string).
void MbTypedDataSet< _T >::touch | ( | ) | [inline] |