|
| DataChannel (const std::string &name, GridPrimitive definedOn=GridPrimitive::Vertex) |
| Direct construction. More...
|
|
template<typename VecNT > |
void | fill (VecNT &dest, ind index) const |
| Indexed point access, copy data Thread safe. More...
|
|
template<typename VecNT > |
void | operator() (VecNT &dest, ind index) const |
|
template<typename VecNT = DefaultVec> |
iterator< VecNT > | begin () |
|
template<typename VecNT = DefaultVec> |
iterator< VecNT > | end () |
|
template<typename VecNT = DefaultVec> |
const_iterator< VecNT > | begin () const |
|
template<typename VecNT = DefaultVec> |
const_iterator< VecNT > | end () const |
|
template<typename VecNT = DefaultVec> |
ChannelRange< VecNT > | all () |
| Get iterator range Templated iterator return type, only specified once. More...
|
|
template<typename VecNT = DefaultVec> |
ConstChannelRange< VecNT > | all () const |
| Get const iterator range Templated iterator return type, only specified once. More...
|
|
template<typename VecNT > |
void | getMin (VecNT &dest) const |
|
template<typename VecNT > |
void | getMax (VecNT &dest) const |
|
template<typename VecNT > |
void | getMinMax (VecNT &min, VecNT &max) const |
|
| BaseChannel (const std::string &name, DataFormatId dataFormat, GridPrimitive definedOn=GridPrimitive::Vertex) |
|
| Channel (ind numComponents, const std::string &name, DataFormatId dataFormat, GridPrimitive definedOn=GridPrimitive::Vertex) |
| Direct construction. More...
|
|
const std::string | getName () const |
|
void | setName (const std::string &) |
|
GridPrimitive | getGridPrimitiveType () const |
|
DataFormatId | getDataFormatId () const |
|
ind | getNumComponents () const |
|
virtual ind | size () const =0 |
|
| MetaDataOwner (const MetaDataOwner &rhs)=default |
|
MetaDataOwner & | operator= (const MetaDataOwner &rhs)=default |
|
void | copyMetaDataFrom (const MetaDataOwner &src) |
|
void | copyMetaDataTo (MetaDataOwner &dst) |
|
template<typename T > |
T * | createMetaData (const std::string &key) |
|
template<typename T , typename U > |
void | setMetaData (const std::string &key, U value) |
|
template<typename T > |
bool | unsetMetaData (const std::string &key) |
| unset, i.e. remove the metadata entry matching the given key and type More...
|
|
template<typename T , typename U > |
U | getMetaData (const std::string &key, U val) const |
|
template<typename T > |
T * | getMetaData (const std::string &key) |
|
template<typename T > |
const T * | getMetaData (const std::string &key) const |
|
MetaDataMap * | getMetaDataMap () |
|
const MetaDataMap * | getMetaDataMap () const |
|
template<typename T > |
bool | hasMetaData (const std::string &key) const |
|
virtual void | serialize (Serializer &s) const |
|
virtual void | deserialize (Deserializer &d) |
|
template<typename T, ind N>
class inviwo::discretedata::DataChannel< T, N >
A single vector component of a data set.
The type is arbitrary but is expected to support the basic arithmetic operations. It is specified via type, base type and number of components.
Several realizations extend this pure virtual class that differ in data storage/generation. Direct indexing is virtual, avoid where possible.
- Author
- Anke Friederici and Tino Weinkauf