25 #include "WDataSetDTI.h"
34 WAssert( newValueSet,
"No value set given." );
35 WAssert( newGrid,
"No grid given." );
36 WAssert( newValueSet->size() == newGrid->size(),
"Number of values unequal number of positions in grid." );
37 WAssert( newValueSet->order() == 1,
"The value set does not contain vectors." );
38 WAssert( newValueSet->dimension() == 6,
"The size of the vetors does not match symmetric matrices: must be equal to 6." );
63 WAssert( values,
"The value set of a WDataSetDTI must be a WValueSet< float >, nothing else!" );
Implements a symmetric tensor that has the same number of components in every direction.
WDataSetDTI(boost::shared_ptr< WValueSetBase > newValueSet, boost::shared_ptr< WGrid > newGrid)
Creates a new DTI dataset out of a value set and a grid.
boost::shared_ptr< WValueSetBase > getValueSet() const
WTensorSym< 2, 3, float > getTensor(size_t index) const
Retrieves the i'th tensor.
~WDataSetDTI()
Destructs this dataset.
boost::shared_ptr< WGrid > getGrid() const
boost::shared_ptr< WValueSetBase > m_valueSet
Stores the reference of the WValueSet of this DataSetSingle instance.
A data set consisting of a set of values based on a grid.
boost::shared_ptr< WDataSetSingle > SPtr
Convenience typedef for a boost::shared_ptr.
Base Class for all value set types.
static boost::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
virtual WDataSetSingle::SPtr clone() const
Creates a copy (clone) of this instance.