28 #include "WDataSetDTI.h"
42 WAssert( newValueSet,
"No value set given." );
43 WAssert( newGrid,
"No grid given." );
44 WAssert( newValueSet->size() == newGrid->size(),
"Number of values unequal number of positions in grid." );
45 WAssert( newValueSet->order() == 1,
"The value set does not contain vectors." );
46 WAssert( newValueSet->dimension() == 6,
"The size of the vetors does not match symmetric matrices: must be equal to 6." );
75 std::shared_ptr< WValueSet< float > > values = std::dynamic_pointer_cast< WValueSet< float > >(
m_valueSet );
76 WAssert( values,
"The value set of a WDataSetDTI must be a WValueSet< float >, nothing else!" );
87 return "Contains Diffusion Tensors.";
virtual const std::string getName() const
Gets the name of this prototype.
virtual WDataSetSingle::SPtr clone() const
Creates a copy (clone) of this instance.
WDataSetDTI()
Constructs a new set of tracts.
virtual const std::string getDescription() const
Gets the description for this prototype.
WTensorSym< 2, 3, float > getTensor(size_t index) const
Retrieves the i'th tensor.
static std::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
~WDataSetDTI()
Destructs this dataset.
static std::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
A data set consisting of a set of values based on a grid.
std::shared_ptr< WValueSetBase > getValueSet() const
std::shared_ptr< WGrid > getGrid() const
std::shared_ptr< WValueSetBase > m_valueSet
Stores the reference of the WValueSet of this DataSetSingle instance.
std::shared_ptr< WDataSetSingle > SPtr
Convenience typedef for a std::shared_ptr.
Implements a symmetric tensor that has the same number of components in every direction.