Defines a set of scalars.
More...
#include <MeshVizXLM/mesh/data/MbScalarSetI.h>
Public Member Functions | |
MbScalarSetI () | |
template<typename _TIter > | |
MbScalarSetI (_TIter begin, _TIter end) | |
template<typename _TIter > | |
MbScalarSetI (_TIter begin, _TIter end, const std::string &name, DataBinding binding=PER_NODE) | |
MbScalarSetI (const MiScalardSetI &scalarset, size_t numData) | |
MbScalarSetI (const MeXScalardSetI &scalarset) | |
template<typename _TIter > | |
void | assign (_TIter begin, _TIter end) |
virtual double | get (size_t i) const |
virtual size_t | getSize () const |
virtual double | getMin () const |
virtual double | getMax () const |
MbScalarSetI< _T >::MbScalarSetI | ( | ) | [inline] |
Constructor for an empty default dataset.
This dataset has a default name depending on the number of instances created. Its binding is set to PER_NODE by default.
MbScalarSetI< _T >::MbScalarSetI | ( | _TIter | begin, | |
_TIter | end | |||
) | [inline] |
Defines a new dataset by copying the given data from the interval [begin,end[.
This dataset has a default name depending on the number of instances created. Its binding is set to PER_NODE by default.
begin | start iterator. | |
end | end iterator. |
MbScalarSetI< _T >::MbScalarSetI | ( | _TIter | begin, | |
_TIter | end, | |||
const std::string & | name, | |||
DataBinding | binding = PER_NODE | |||
) | [inline] |
Defines a new dataset by copying the given data from the interval [begin,end[.
Its binding is set to PER_NODE by default.
begin | start iterator. | |
end | end iterator. | |
name | the name of this dataset. | |
binding | the binding of this dataset. |
MbScalarSetI< _T >::MbScalarSetI | ( | const MiScalardSetI & | scalarset, | |
size_t | numData | |||
) | [inline] |
Defines a new dataset by copying the given data from a MiScalarSetI.
scalarset | scalar set to copy from. | |
numData | number of data to copy. |
MbScalarSetI< _T >::MbScalarSetI | ( | const MeXScalardSetI & | scalarset | ) | [inline] |
Defines a new dataset by copying the given data from a MeXScalarSetI.
scalarset | scalar set to copy from. |
void MbScalarSetI< _T >::assign | ( | _TIter | begin, | |
_TIter | end | |||
) | [inline] |
Change the content of this dataset.
Clears the current content and copy the data from the interval [begin,end[. The timestamp of this dataset is incremented.
begin | start iterator. | |
end | end iterator. |
double MbScalarSetI< _T >::get | ( | size_t | i | ) | const [inline, virtual] |
Returns the i-th value of this set.
Implements MiDataSetI< double >.
double MbScalarSetI< _T >::getMax | ( | ) | const [inline, virtual] |
Returns the max of this set.
Reimplemented from MiBoundedDataSet< double >.
double MbScalarSetI< _T >::getMin | ( | ) | const [inline, virtual] |
Returns the min of this set.
Reimplemented from MiBoundedDataSet< double >.
size_t MbScalarSetI< _T >::getSize | ( | void | ) | const [inline, virtual] |
Returns the number of values in this set.