Inviwo  0.9.10.1
Inviwo documentation
inviwo::discretedata::Channel Class Referenceabstract

An untyped scalar or vector component of a data set. More...

#include <channel.h>

+ Inheritance diagram for inviwo::discretedata::Channel:

Public Member Functions

 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
 
- Public Member Functions inherited from inviwo::MetaDataOwner
 MetaDataOwner (const MetaDataOwner &rhs)=default
 
MetaDataOwneroperator= (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 >
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
 
MetaDataMapgetMetaDataMap ()
 
const MetaDataMapgetMetaDataMap () const
 
template<typename T >
bool hasMetaData (const std::string &key) const
 
virtual void serialize (Serializer &s) const
 
virtual void deserialize (Deserializer &d)
 

Protected Member Functions

void setGridPrimitiveType (GridPrimitive)
 
void setDataFormatId (DataFormatId)
 
void setNumComponents (ind)
 

Additional Inherited Members

- Protected Attributes inherited from inviwo::MetaDataOwner
MetaDataMap metaData_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Channel()

inviwo::discretedata::Channel::Channel ( ind  numComponents,
const std::string &  name,
DataFormatId  dataFormat,
GridPrimitive  definedOn = GridPrimitive::Vertex 
)

Direct construction.

Parameters
numComponentsSize of vector at each position
nameName associated with the channel
dataFormatData format
definedOnGridPrimitive the data is defined on, default: 0D vertices

Member Function Documentation

◆ 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: