Generic data set implementation.
More...
#include <MeshVizXLM/mesh/data/MbDataSet.h>
Public Member Functions | |
MbDataSet () | |
MbDataSet (const std::string &name, DataBinding binding) | |
virtual size_t | getTimeStamp () const |
virtual std::string | getName () const |
virtual void | setName (const std::string &name) |
virtual DataBinding | getBinding () const |
virtual void | setBinding (DataBinding binding) |
void | touch () |
A generic abstract template interface for a data set usable in any extract or geometry of a mesh.
MbDataSet::MbDataSet | ( | ) | [inline] |
Constructor for an empty default dataset.
Initializes name to empty string, data binding to PER_NODE and timestamp to 1.
MbDataSet::MbDataSet | ( | const std::string & | name, | |
DataBinding | binding | |||
) | [inline] |
Constructor for dataset with specific name and specific data binding.
Initializes timestamp to 1.
virtual DataBinding MbDataSet::getBinding | ( | ) | const [inline, virtual] |
Returns the binding of this dataset.
Implements MiDataSet.
virtual std::string MbDataSet::getName | ( | ) | const [inline, virtual] |
Returns the name of this dataset.
Implements MiDataSet.
virtual size_t MbDataSet::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 MbDataSet::setBinding | ( | DataBinding | binding | ) | [inline, virtual] |
Define the data binding of this dataset (default is PER_NODE).
virtual void MbDataSet::setName | ( | const std::string & | name | ) | [inline, virtual] |
Define the name of this dataset (default is empty string).
void MbDataSet::touch | ( | ) | [inline] |