#include <mitkOdfScaleByProperty.h>
Public Types | |
typedef OdfScaleByProperty | Self |
typedef EnumerationProperty | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual int | GetScaleBy () |
virtual void | SetScaleByNothing () |
virtual void | SetScaleByGFA () |
virtual void | SetScaleByPrincipalCurvature () |
Static Public Member Functions | |
static Pointer | New () |
static Pointer | New (const IdType &_arg) |
static Pointer | New (const std::string &_arg) |
Protected Member Functions | |
OdfScaleByProperty () | |
OdfScaleByProperty (const IdType &value) | |
OdfScaleByProperty (const std::string &value) | |
virtual bool | AddEnum (const std::string &name, const IdType &id) |
virtual void | AddInterpolationTypes () |
Encapsulates the enumeration for ODF normalization. Valid values are ODFSB_NONE, ODFSB_GFA, ODFSB_PC Default is ODFSB_NONE
Definition at line 39 of file mitkOdfScaleByProperty.h.
typedef itk::SmartPointer<const Self> mitk::OdfScaleByProperty::ConstPointer |
Reimplemented from mitk::EnumerationProperty.
Definition at line 43 of file mitkOdfScaleByProperty.h.
typedef itk::SmartPointer<Self> mitk::OdfScaleByProperty::Pointer |
Reimplemented from mitk::EnumerationProperty.
Definition at line 43 of file mitkOdfScaleByProperty.h.
Reimplemented from mitk::EnumerationProperty.
Definition at line 43 of file mitkOdfScaleByProperty.h.
Reimplemented from mitk::EnumerationProperty.
Definition at line 43 of file mitkOdfScaleByProperty.h.
mitk::OdfScaleByProperty::OdfScaleByProperty | ( | ) | [protected] |
Sets reslice interpolation mode to default (ODFSB_NONE).
Definition at line 22 of file mitkOdfScaleByProperty.cpp.
References AddInterpolationTypes(), mitk::ODFSB_NONE, and mitk::EnumerationProperty::SetValue().
{ this->AddInterpolationTypes(); this->SetValue( static_cast<IdType>( ODFSB_NONE ) ); }
mitk::OdfScaleByProperty::OdfScaleByProperty | ( | const IdType & | value ) | [protected] |
Constructor. Sets reslice interpolation to the given value.
Definition at line 29 of file mitkOdfScaleByProperty.cpp.
References mitk::ODFSB_NONE.
{ this->AddInterpolationTypes(); if ( IsValidEnumerationValue( value ) ) { this->SetValue( value ) ; } else { this->SetValue( static_cast<IdType>( ODFSB_NONE ) ); } }
mitk::OdfScaleByProperty::OdfScaleByProperty | ( | const std::string & | value ) | [protected] |
Constructor. Sets reslice interpolation to the given value.
Definition at line 42 of file mitkOdfScaleByProperty.cpp.
References mitk::ODFSB_NONE.
{ this->AddInterpolationTypes(); if ( IsValidEnumerationValue( value ) ) { this->SetValue( value ); } else { this->SetValue( static_cast<IdType>( ODFSB_NONE ) ); } }
bool mitk::OdfScaleByProperty::AddEnum | ( | const std::string & | name, |
const IdType & | id | ||
) | [protected, virtual] |
this function is overridden as protected, so that the user may not add additional invalid interpolation types.
Reimplemented from mitk::EnumerationProperty.
Definition at line 83 of file mitkOdfScaleByProperty.cpp.
{ return Superclass::AddEnum( name, id ); }
void mitk::OdfScaleByProperty::AddInterpolationTypes | ( | ) | [protected, virtual] |
Adds the enumeration types as defined by vtk to the list of known enumeration values.
Definition at line 61 of file mitkOdfScaleByProperty.cpp.
References mitk::ODFSB_GFA, mitk::ODFSB_NONE, and mitk::ODFSB_PC.
Referenced by OdfScaleByProperty().
virtual const char* mitk::OdfScaleByProperty::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::EnumerationProperty.
int mitk::OdfScaleByProperty::GetScaleBy | ( | ) | [virtual] |
Returns the current interpolation value as defined by VTK constants.
Definition at line 56 of file mitkOdfScaleByProperty.cpp.
Referenced by mitk::OdfVtkMapper2D< TPixelType, NrOdfDirections >::ApplyPropertySettings().
{ return static_cast<int>( this->GetValueAsId() ); }
static Pointer mitk::OdfScaleByProperty::New | ( | const std::string & | _arg ) | [inline, static] |
Definition at line 48 of file mitkOdfScaleByProperty.h.
:
static Pointer mitk::OdfScaleByProperty::New | ( | ) | [static] |
Definition at line 46 of file mitkOdfScaleByProperty.h.
void mitk::OdfScaleByProperty::SetScaleByGFA | ( | ) | [virtual] |
Definition at line 73 of file mitkOdfScaleByProperty.cpp.
References mitk::ODFSB_GFA.
void mitk::OdfScaleByProperty::SetScaleByNothing | ( | ) | [virtual] |
Definition at line 68 of file mitkOdfScaleByProperty.cpp.
References mitk::ODFSB_NONE.
{ SetValue(ODFSB_NONE); }
void mitk::OdfScaleByProperty::SetScaleByPrincipalCurvature | ( | ) | [virtual] |
Definition at line 78 of file mitkOdfScaleByProperty.cpp.
References mitk::ODFSB_PC.