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

mitk::GridVolumeMapperProperty Class Reference

#include <mitkGridVolumeMapperProperty.h>

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

List of all members.

Public Types

enum  MapperType { RAYCAST = 0 }
typedef GridVolumeMapperProperty Self
typedef EnumerationProperty Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
virtual void SetVolumeMapperToRayCast ()

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Extends the enumeration prop mitkEnumerationPropery. Adds the value (constant/Id/string representation): PT/0/Projected Tetrahedra, ZSWEEP/1/ZSweep, RAYCAST/2/Ray Cast Default is the Wireframe representation

Definition at line 33 of file mitkGridVolumeMapperProperty.h.


Member Typedef Documentation

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

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkGridVolumeMapperProperty.h.

typedef itk::SmartPointer<Self> mitk::GridVolumeMapperProperty::Pointer

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkGridVolumeMapperProperty.h.

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkGridVolumeMapperProperty.h.

Reimplemented from mitk::EnumerationProperty.

Definition at line 44 of file mitkGridVolumeMapperProperty.h.


Member Enumeration Documentation

Enumerator:
RAYCAST 

Definition at line 37 of file mitkGridVolumeMapperProperty.h.

                  { RAYCAST = 0
  #if (VTK_MAJOR_VERSION >= 5)
    , PT = 1, ZSWEEP = 2 
  #endif
  };

Constructor & Destructor Documentation

mitk::GridVolumeMapperProperty::GridVolumeMapperProperty (  ) [protected]

Constructor. Sets the representation to a default value of Wireframe(1)

Definition at line 22 of file mitkGridVolumeMapperProperty.cpp.

References AddRepresentationTypes(), RAYCAST, and mitk::EnumerationProperty::SetValue().

{
  AddRepresentationTypes();
  #if (VTK_MAJOR_VERSION >= 5)
  SetValue( PT );
  #else
  SetValue( RAYCAST );
  #endif
}
mitk::GridVolumeMapperProperty::GridVolumeMapperProperty ( const IdType value ) [protected]

Constructor. Sets the representation to the given value. If it is not valid, the representation is set to Wireframe(1)

Parameters:
valuethe integer representation of the representation

Definition at line 33 of file mitkGridVolumeMapperProperty.cpp.

{
  AddRepresentationTypes();
  if ( IsValidEnumerationValue( value ) )
  {
    SetValue( value );
  }
  else
  {
    #if (VTK_MAJOR_VERSION >= 5)
    SetValue( PT );
    #else
    SetValue( RAYCAST );
    #endif
  }
}
mitk::GridVolumeMapperProperty::GridVolumeMapperProperty ( const std::string &  value ) [protected]

Constructor. Sets the representation to the given value. If it is not valid, the representation is set to Wireframe(1)

Parameters:
valuethe string representation of the representation

Definition at line 51 of file mitkGridVolumeMapperProperty.cpp.

{
  AddRepresentationTypes();
  if ( IsValidEnumerationValue( value ) )
  {
    SetValue( value );
  }
  else
  {
    #if (VTK_MAJOR_VERSION >= 5)
    SetValue( PT );
    #else
    SetValue( RAYCAST );
    #endif
  }
}

Member Function Documentation

bool mitk::GridVolumeMapperProperty::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 representation types.

Reimplemented from mitk::EnumerationProperty.

Definition at line 101 of file mitkGridVolumeMapperProperty.cpp.

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

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

Definition at line 89 of file mitkGridVolumeMapperProperty.cpp.

Referenced by GridVolumeMapperProperty().

{
  AddEnum( "Ray Cast", RAYCAST );
  
  #if (VTK_MAJOR_VERSION >= 5)
  AddEnum( "Projected Tetrahedra", PT );
  AddEnum( "ZSweep", ZSWEEP );
  #endif
  
}
virtual const char* mitk::GridVolumeMapperProperty::GetClassName (  ) const [virtual]

Reimplemented from mitk::EnumerationProperty.

static Pointer mitk::GridVolumeMapperProperty::New (  ) [static]
static Pointer mitk::GridVolumeMapperProperty::New ( const std::string &  _arg ) [inline, static]

Definition at line 50 of file mitkGridVolumeMapperProperty.h.

:

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

Definition at line 48 of file mitkGridVolumeMapperProperty.h.

void mitk::GridVolumeMapperProperty::SetVolumeMapperToRayCast (  ) [virtual]

Sets the mapper to ray casting.

Definition at line 83 of file mitkGridVolumeMapperProperty.cpp.

{
  SetValue( RAYCAST );
}

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