open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
iADataSet Class Reference

abstract interface for datasets More...

#include <iADataSet.h>

Inheritance diagram for iADataSet:
[legend]

Public Member Functions

virtual ~iADataSet ()
 called when the dataset is removed/unloaded and its related resources should be released
 
QVariantMap const & allMetaData () const
 return the key, value map of all metadata items associated with the dataset
 
bool hasMetaData (QString const &key) const
 true if the dataset has metadata with the given key set, false otherwise
 
virtual QString info () const
 should deliver information about the dataset interesting to users viewing it
 
QVariant metaData (QString const &key) const
 retrieve (optional) additional parameters for the dataset
 
QString name () const
 convenience method for accessing value for NameKey in m_metaData
 
void setMetaData (QString const &key, QVariant const &value)
 set an (optional) metadata key/value pair
 
void setMetaData (QVariantMap const &other)
 set bulk metadata from another key/value map
 
iADataSetType type () const
 get type of data stored in this dataset
 
virtual std::array< double, 3 > unitDistance () const
 a sensible unit distance for this dataset (e.g. the spacing of a single voxel, for volume datasets)
 

Static Public Attributes

static const QString FileNameKey
 metadata key for filename of the dataset
 
static const QString NameKey
 metadata key for name of the dataset
 

Protected Member Functions

 iADataSet (iADataSetType type)
 derived classes need to construct the dataset by giving a (proposed) filename and an (optional) name
 

Detailed Description

abstract interface for datasets

Constructor & Destructor Documentation

◆ ~iADataSet()

iADataSet::~iADataSet ( )
virtual

called when the dataset is removed/unloaded and its related resources should be released

◆ iADataSet()

iADataSet::iADataSet ( iADataSetType  type)
protected

derived classes need to construct the dataset by giving a (proposed) filename and an (optional) name

Member Function Documentation

◆ allMetaData()

QVariantMap const & iADataSet::allMetaData ( ) const

return the key, value map of all metadata items associated with the dataset

◆ hasMetaData()

bool iADataSet::hasMetaData ( QString const &  key) const

true if the dataset has metadata with the given key set, false otherwise

◆ info()

QString iADataSet::info ( ) const
virtual

should deliver information about the dataset interesting to users viewing it

Reimplemented in iAPolyData, iAGraphData, iAImageData, iADataCollection, and iAGeometricObject.

◆ metaData()

QVariant iADataSet::metaData ( QString const &  key) const

retrieve (optional) additional parameters for the dataset

◆ name()

QString iADataSet::name ( ) const

convenience method for accessing value for NameKey in m_metaData

◆ setMetaData() [1/2]

void iADataSet::setMetaData ( QString const &  key,
QVariant const &  value 
)

set an (optional) metadata key/value pair

◆ setMetaData() [2/2]

void iADataSet::setMetaData ( QVariantMap const &  other)

set bulk metadata from another key/value map

◆ type()

iADataSetType iADataSet::type ( ) const

get type of data stored in this dataset

◆ unitDistance()

std::array< double, 3 > iADataSet::unitDistance ( ) const
virtual

a sensible unit distance for this dataset (e.g. the spacing of a single voxel, for volume datasets)

Reimplemented in iAPolyData, iAImageData, and iAGeometricObject.

Member Data Documentation

◆ FileNameKey

const QString iADataSet::FileNameKey
static

metadata key for filename of the dataset

◆ NameKey

const QString iADataSet::NameKey
static

metadata key for name of the dataset


The documentation for this class was generated from the following files: