An untyped scalar or vector component of a data set.
More...
#include <channel.h>
|
| 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) |
|
An untyped scalar or vector component of a data set.
General version of a DataChannel for use in general containers (see DataSet).
- Author
- Anke Friederici and Tino Weinkauf
◆ Channel()
inviwo::discretedata::Channel::Channel |
( |
ind |
numComponents, |
|
|
const std::string & |
name, |
|
|
DataFormatId |
dataFormat, |
|
|
GridPrimitive |
definedOn = GridPrimitive::Vertex |
|
) |
| |
Direct construction.
- Parameters
-
numComponents | Size of vector at each position |
name | Name associated with the channel |
dataFormat | Data format |
definedOn | GridPrimitive the data is defined on, default: 0D vertices |
◆ setGridPrimitiveType()
void inviwo::discretedata::Channel::setGridPrimitiveType |
( |
GridPrimitive |
prim | ) |
|
|
protected |
Sets the "GridPrimitiveType" meta data Should be constant, only DataSet is allowed to write.
◆ setNumComponents()
void inviwo::discretedata::Channel::setNumComponents |
( |
ind |
numComp | ) |
|
|
protected |
Sets the "NumComponents" meta data Should be constant, only DataSet is allowed to write.
The documentation for this class was generated from the following files: