Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::BValueMapProperty Class Reference

#include <mitkBValueMapProperty.h>

Inheritance diagram for mitk::BValueMapProperty:
Collaboration diagram for mitk::BValueMapProperty:

Public Types

typedef std::map< unsigned int, std::vector< unsigned int > > BValueMap
 The BValueMap contains seperated IndicesVectors for each b value (index for GradientDirectionContainer) key := b value value := indicesVector. More...
 
typedef unsigned int IndexType
 
typedef vnl_vector_fixed< double, 3 > ValueType
 
typedef ValueType GradientDirectionType
 
typedef itk::VectorContainer< IndexType, GradientDirectionTypeGradientDirectionsContainerType
 
- Public Types inherited from mitk::BaseProperty
typedef BaseProperty Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

 mitkClassMacro (BValueMapProperty, BaseProperty) static Pointer New()
 
Pointer Clone () const
 
 mitkNewMacro1Param (BValueMapProperty, const BValueMapProperty &) mitkNewMacro1Param(BValueMapProperty
 
const BValueMap &const BValueMapGetBValueMap () const
 
void SetBValueMap (const BValueMap &map)
 
- Public Member Functions inherited from mitk::BaseProperty
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
bool operator== (const BaseProperty &property) const
 Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More...
 
BasePropertyoperator= (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 
bool AssignProperty (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 
virtual std::string GetValueAsString () const
 

Static Public Member Functions

static BValueMap CreateBValueMap (const GradientDirectionsContainerType *gdc, float referenceBValue)
 
static float GetBValueOfGradientDirection (unsigned int i, float referenceBValue, const GradientDirectionsContainerType *gdc)
 
- Static Public Member Functions inherited from mitk::BaseProperty
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 BValueMapProperty ()
 
 ~BValueMapProperty ()
 
 BValueMapProperty (const BValueMapProperty &other)
 
 BValueMapProperty (const BValueMap &bValueMap)
 
virtual bool IsEqual (const BaseProperty &property) const override
 
virtual bool Assign (const BaseProperty &property) override
 
virtual itk::LightObject::Pointer InternalClone () const override
 
- Protected Member Functions inherited from mitk::BaseProperty
 BaseProperty ()
 
 BaseProperty (const BaseProperty &other)
 
virtual ~BaseProperty ()
 

Protected Attributes

BValueMap m_BValueMap
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::BaseProperty
static const std::string VALUE_CANNOT_BE_CONVERTED_TO_STRING
 Default return value if a property which can not be returned as string. More...
 

Detailed Description

This property will store the b value map

Definition at line 32 of file mitkBValueMapProperty.h.

Member Typedef Documentation

typedef std::map< unsigned int , std::vector< unsigned int > > mitk::BValueMapProperty::BValueMap

The BValueMap contains seperated IndicesVectors for each b value (index for GradientDirectionContainer) key := b value value := indicesVector.

Definition at line 40 of file mitkBValueMapProperty.h.

typedef unsigned int mitk::BValueMapProperty::IndexType

Definition at line 41 of file mitkBValueMapProperty.h.

typedef vnl_vector_fixed< double, 3 > mitk::BValueMapProperty::ValueType

Definition at line 42 of file mitkBValueMapProperty.h.

Constructor & Destructor Documentation

mitk::BValueMapProperty::BValueMapProperty ( )
protected

Definition at line 19 of file mitkBValueMapProperty.cpp.

mitk::BValueMapProperty::~BValueMapProperty ( )
protected

Definition at line 35 of file mitkBValueMapProperty.cpp.

mitk::BValueMapProperty::BValueMapProperty ( const BValueMapProperty other)
protected

Definition at line 24 of file mitkBValueMapProperty.cpp.

References GetBValueMap(), and m_BValueMap.

mitk::BValueMapProperty::BValueMapProperty ( const BValueMap bValueMap)
protected

Definition at line 30 of file mitkBValueMapProperty.cpp.

Member Function Documentation

bool mitk::BValueMapProperty::Assign ( const BaseProperty )
overrideprotectedvirtual

Override this method in subclasses to implement a meaningful assignment. The property argument is guaranteed to be castable to the type of the implementing subclass.

Warning
This is not yet exception aware/safe and if this method returns false, this property's state might be undefined.
Returns
True if the argument could be assigned to this property.

Implements mitk::BaseProperty.

Definition at line 54 of file mitkBValueMapProperty.cpp.

Pointer mitk::BValueMapProperty::Clone ( ) const
const mitk::BValueMapProperty::BValueMap & mitk::BValueMapProperty::GetBValueMap ( ) const

Definition at line 39 of file mitkBValueMapProperty.cpp.

Referenced by BValueMapProperty().

float mitk::BValueMapProperty::GetBValueOfGradientDirection ( unsigned int  i,
float  referenceBValue,
const GradientDirectionsContainerType gdc 
)
static

Definition at line 75 of file mitkBValueMapProperty.cpp.

Referenced by CreateBValueMap().

itk::LightObject::Pointer mitk::BValueMapProperty::InternalClone ( ) const
overrideprotectedvirtual

Definition at line 98 of file mitkBValueMapProperty.cpp.

bool mitk::BValueMapProperty::IsEqual ( const BaseProperty property) const
overrideprotectedvirtual

Override this method in subclasses to implement a meaningful comparison. The property argument is guaranteed to be castable to the type of the implementing subclass.

Implements mitk::BaseProperty.

Definition at line 49 of file mitkBValueMapProperty.cpp.

mitk::BValueMapProperty::mitkClassMacro ( BValueMapProperty  ,
BaseProperty   
)
mitk::BValueMapProperty::mitkNewMacro1Param ( BValueMapProperty  ,
const BValueMapProperty  
)
void mitk::BValueMapProperty::SetBValueMap ( const BValueMap map)

Definition at line 44 of file mitkBValueMapProperty.cpp.

References mitk::ImageMappingHelper::map().

Member Data Documentation

BValueMap mitk::BValueMapProperty::m_BValueMap
protected

Definition at line 69 of file mitkBValueMapProperty.h.

Referenced by BValueMapProperty().


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