OpenWalnut
1.4.0
|
Represents a Diffusion-Tensor-Image dataset. More...
#include <WDataSetDTI.h>
Public Member Functions | |
WDataSetDTI (boost::shared_ptr< WValueSetBase > newValueSet, boost::shared_ptr< WGrid > newGrid) | |
Creates a new DTI dataset out of a value set and a grid. | |
~WDataSetDTI () | |
Destructs this dataset. | |
virtual WDataSetSingle::SPtr | clone (boost::shared_ptr< WValueSetBase > newValueSet) const |
Creates a copy (clone) of this instance but allows one to change the valueset. | |
virtual WDataSetSingle::SPtr | clone (boost::shared_ptr< WGrid > newGrid) const |
Creates a copy (clone) of this instance but allows one to change the grid. | |
virtual WDataSetSingle::SPtr | clone () const |
Creates a copy (clone) of this instance. | |
WTensorSym< 2, 3, float > | getTensor (size_t index) const |
Retrieves the i'th tensor. | |
Static Protected Attributes | |
static boost::shared_ptr < WPrototyped > | m_prototype = boost::shared_ptr< WPrototyped >() |
The prototype as singleton. |
Represents a Diffusion-Tensor-Image dataset.
Diffusion tensors are symmetric matrices.
Definition at line 37 of file WDataSetDTI.h.
WDataSetDTI::WDataSetDTI | ( | boost::shared_ptr< WValueSetBase > | newValueSet, |
boost::shared_ptr< WGrid > | newGrid | ||
) |
Creates a new DTI dataset out of a value set and a grid.
newValueSet | Valueset having vectors of dimension 6. |
newGrid |
Definition at line 31 of file WDataSetDTI.cpp.
Referenced by clone().
Destructs this dataset.
Definition at line 41 of file WDataSetDTI.cpp.
WDataSetSingle::SPtr WDataSetDTI::clone | ( | boost::shared_ptr< WValueSetBase > | newValueSet | ) | const [virtual] |
Creates a copy (clone) of this instance but allows one to change the valueset.
Unlike copy construction, this is a very useful function if you want to keep the dynamic type of your dataset even if you just have a WDataSetSingle.
newValueSet | the new valueset. |
Reimplemented from WDataSetSingle.
Definition at line 45 of file WDataSetDTI.cpp.
References WDataSetSingle::getGrid(), and WDataSetDTI().
WDataSetSingle::SPtr WDataSetDTI::clone | ( | boost::shared_ptr< WGrid > | newGrid | ) | const [virtual] |
Creates a copy (clone) of this instance but allows one to change the grid.
Unlike copy construction, this is a very useful function if you want to keep the dynamic type of your dataset even if you just have a WDataSetSingle.
newGrid | the new grid. |
Reimplemented from WDataSetSingle.
Definition at line 50 of file WDataSetDTI.cpp.
References WDataSetSingle::getValueSet(), and WDataSetDTI().
WDataSetSingle::SPtr WDataSetDTI::clone | ( | ) | const [virtual] |
Creates a copy (clone) of this instance.
Unlike copy construction, this is a very useful function if you want to keep the dynamic type of your dataset even if you just have a WDataSetSingle.
Reimplemented from WDataSetSingle.
Definition at line 55 of file WDataSetDTI.cpp.
References WDataSetSingle::getGrid(), WDataSetSingle::getValueSet(), and WDataSetDTI().
WTensorSym< 2, 3, float > WDataSetDTI::getTensor | ( | size_t | index | ) | const |
Retrieves the i'th tensor.
index | The position of the tensor to retrieve |
Definition at line 60 of file WDataSetDTI.cpp.
References WDataSetSingle::m_valueSet.
Referenced by WDataSetDTITest::testTensorAccess().
boost::shared_ptr< WPrototyped > WDataSetDTI::m_prototype = boost::shared_ptr< WPrototyped >() [static, protected] |
The prototype as singleton.
Reimplemented from WDataSetSingle.
Definition at line 96 of file WDataSetDTI.h.