OpenWalnut  1.4.0
Public Member Functions | Static Protected Attributes
WDataSetDTI Class Reference

Represents a Diffusion-Tensor-Image dataset. More...

#include <WDataSetDTI.h>

+ Inheritance diagram for WDataSetDTI:

List of all members.

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.

Detailed Description

Represents a Diffusion-Tensor-Image dataset.

Diffusion tensors are symmetric matrices.

Definition at line 37 of file WDataSetDTI.h.


Constructor & Destructor Documentation

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.

Parameters:
newValueSetValueset 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.


Member Function Documentation

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.

Parameters:
newValueSetthe new valueset.
Returns:
the clone

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.

Parameters:
newGridthe new grid.
Returns:
the clone

Reimplemented from WDataSetSingle.

Definition at line 50 of file WDataSetDTI.cpp.

References WDataSetSingle::getValueSet(), and WDataSetDTI().

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.

Returns:
the clone

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.

Warning:
Here is dynamical allocation used inside, this may be a problem when used with multithreading.
Parameters:
indexThe position of the tensor to retrieve
Returns:
The new constructed symmetrical matrix as tensor.

Definition at line 60 of file WDataSetDTI.cpp.

References WDataSetSingle::m_valueSet.

Referenced by WDataSetDTITest::testTensorAccess().


Member Data Documentation

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.


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