Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions

mitk::OdfNormalizationMethodProperty Class Reference

#include <mitkOdfNormalizationMethodProperty.h>

Inheritance diagram for mitk::OdfNormalizationMethodProperty:
Inheritance graph
[legend]
Collaboration diagram for mitk::OdfNormalizationMethodProperty:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
OdfNormalizationMethodProperty 
Self
typedef EnumerationProperty Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
virtual int GetNormalization ()
virtual void SetNormalizationToMinMax ()
virtual void SetNormalizationToMax ()
virtual void SetNormalizationToNone ()
virtual void SetNormalizationToGlobalMax ()

Static Public Member Functions

static Pointer New ()
static Pointer New (const IdType &_arg)
static Pointer New (const std::string &_arg)

Protected Member Functions

 OdfNormalizationMethodProperty ()
 OdfNormalizationMethodProperty (const IdType &value)
 OdfNormalizationMethodProperty (const std::string &value)
virtual bool AddEnum (const std::string &name, const IdType &id)
virtual void AddInterpolationTypes ()

Detailed Description

Encapsulates the enumeration for ODF normalization. Valid values are ODFN_MINMAX, ODFN_MAX, ODFN_NONE ODFN_GLOBAL_MAX Default is ODFN_MINMAX

Definition at line 40 of file mitkOdfNormalizationMethodProperty.h.


Member Typedef Documentation

typedef itk::SmartPointer<const Self> mitk::OdfNormalizationMethodProperty::ConstPointer

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkOdfNormalizationMethodProperty.h.

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkOdfNormalizationMethodProperty.h.

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkOdfNormalizationMethodProperty.h.

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkOdfNormalizationMethodProperty.h.


Constructor & Destructor Documentation

mitk::OdfNormalizationMethodProperty::OdfNormalizationMethodProperty (  ) [protected]

Sets reslice interpolation mode to default (VTK_RESLICE_NEAREST).

Definition at line 22 of file mitkOdfNormalizationMethodProperty.cpp.

References AddInterpolationTypes(), mitk::ODFN_MINMAX, and mitk::EnumerationProperty::SetValue().

{
  this->AddInterpolationTypes();
  this->SetValue( static_cast<IdType>( ODFN_MINMAX ) );
}
mitk::OdfNormalizationMethodProperty::OdfNormalizationMethodProperty ( const IdType value ) [protected]

Constructor. Sets reslice interpolation to the given value.

Definition at line 29 of file mitkOdfNormalizationMethodProperty.cpp.

References mitk::ODFN_MINMAX.

{
  this->AddInterpolationTypes();
  if ( IsValidEnumerationValue( value ) )
  {
    this->SetValue( value ) ;
  }
  else
  {
    this->SetValue( static_cast<IdType>( ODFN_MINMAX ) );
  }
}
mitk::OdfNormalizationMethodProperty::OdfNormalizationMethodProperty ( const std::string &  value ) [protected]

Constructor. Sets reslice interpolation to the given value.

Definition at line 42 of file mitkOdfNormalizationMethodProperty.cpp.

References mitk::ODFN_MINMAX.

{
  this->AddInterpolationTypes();
  if ( IsValidEnumerationValue( value ) )
  {
    this->SetValue( value );
  }
  else
  {
    this->SetValue( static_cast<IdType>( ODFN_MINMAX ) );
  }
}

Member Function Documentation

bool mitk::OdfNormalizationMethodProperty::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 95 of file mitkOdfNormalizationMethodProperty.cpp.

{
  return Superclass::AddEnum( name, id );  
}
void mitk::OdfNormalizationMethodProperty::AddInterpolationTypes (  ) [protected, virtual]

Adds the enumeration types as defined by vtk to the list of known enumeration values.

Definition at line 86 of file mitkOdfNormalizationMethodProperty.cpp.

References mitk::ODFN_GLOBAL_MAX, mitk::ODFN_MAX, mitk::ODFN_MINMAX, and mitk::ODFN_NONE.

Referenced by OdfNormalizationMethodProperty().

{
  AddEnum( "Min-Max", static_cast<IdType>( ODFN_MINMAX ) );
  AddEnum( "Maximum", static_cast<IdType>( ODFN_MAX ) );
  AddEnum( "None", static_cast<IdType>( ODFN_NONE ) );
  AddEnum( "Global Maximum", static_cast<IdType>( ODFN_GLOBAL_MAX ) );
}
virtual const char* mitk::OdfNormalizationMethodProperty::GetClassName (  ) const [virtual]

Reimplemented from mitk::EnumerationProperty.

int mitk::OdfNormalizationMethodProperty::GetNormalization (  ) [virtual]

Returns the current interpolation value as defined by VTK constants.

Definition at line 56 of file mitkOdfNormalizationMethodProperty.cpp.

Referenced by mitk::OdfVtkMapper2D< TPixelType, NrOdfDirections >::ApplyPropertySettings().

{
  return static_cast<int>( this->GetValueAsId() );
}
static Pointer mitk::OdfNormalizationMethodProperty::New ( const std::string &  _arg ) [inline, static]

Definition at line 49 of file mitkOdfNormalizationMethodProperty.h.

:
  
static Pointer mitk::OdfNormalizationMethodProperty::New (  ) [static]
static Pointer mitk::OdfNormalizationMethodProperty::New ( const IdType _arg ) [inline, static]

Definition at line 47 of file mitkOdfNormalizationMethodProperty.h.

void mitk::OdfNormalizationMethodProperty::SetNormalizationToGlobalMax (  ) [virtual]

Sets the interpolation type to ODFN_GLOBAL_MAX.

Definition at line 80 of file mitkOdfNormalizationMethodProperty.cpp.

References mitk::ODFN_GLOBAL_MAX.

{
  this->SetValue( static_cast<IdType>( ODFN_GLOBAL_MAX ) );
}
void mitk::OdfNormalizationMethodProperty::SetNormalizationToMax (  ) [virtual]

Sets the interpolation type to ODFN_MAX.

Definition at line 68 of file mitkOdfNormalizationMethodProperty.cpp.

References mitk::ODFN_MAX.

{
  this->SetValue( static_cast<IdType>( ODFN_MAX ) );
}
void mitk::OdfNormalizationMethodProperty::SetNormalizationToMinMax (  ) [virtual]

Sets the interpolation type to ODFN_MINMAX.

Definition at line 62 of file mitkOdfNormalizationMethodProperty.cpp.

References mitk::ODFN_MINMAX.

{
  this->SetValue( static_cast<IdType>( ODFN_MINMAX ) );
}
void mitk::OdfNormalizationMethodProperty::SetNormalizationToNone (  ) [virtual]

Sets the interpolation type to ODFN_NONE.

Definition at line 74 of file mitkOdfNormalizationMethodProperty.cpp.

References mitk::ODFN_NONE.

{
  this->SetValue( static_cast<IdType>( ODFN_NONE ) );
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines