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

mitk::Action Class Reference
[Interaction Classes]

represents an action, that is executed after a certain event (in statemachine-mechanism) More...

#include <mitkAction.h>

List of all members.

Public Types

typedef Action Self
typedef itk::Object Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
void AddProperty (const char *propertyKey, BaseProperty *property)
 Adds a property to the list of properties.
int GetActionId () const
 Returns the Id of this action.
mitk::BasePropertyGetProperty (const char *propertyKey) const
 returns the specified property

Static Public Member Functions

static Pointer New (int _arg)
 static New method to use SmartPointer

Protected Member Functions

 Action (int actionId)
 Default Constructor. Set the actionId.
 ~Action ()
 Default Destructor.

Detailed Description

represents an action, that is executed after a certain event (in statemachine-mechanism)

Definition at line 33 of file mitkAction.h.


Member Typedef Documentation

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

Definition at line 36 of file mitkAction.h.

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

Definition at line 36 of file mitkAction.h.

Definition at line 36 of file mitkAction.h.

typedef itk::Object mitk::Action::Superclass

Definition at line 36 of file mitkAction.h.


Constructor & Destructor Documentation

mitk::Action::Action ( int  actionId ) [protected]

Default Constructor. Set the actionId.

Default Constructor

Definition at line 24 of file mitkAction.cpp.

:m_ActionId( actionId ), m_PropertiesList(NULL)
mitk::Action::~Action (  ) [protected]

Default Destructor.

Definition at line 28 of file mitkAction.cpp.

{}

Member Function Documentation

void mitk::Action::AddProperty ( const char *  propertyKey,
BaseProperty property 
)

Adds a property to the list of properties.

add a property

Definition at line 34 of file mitkAction.cpp.

{
  if (m_PropertiesList.IsNull())
    m_PropertiesList = PropertyList::New();
  m_PropertiesList->SetProperty( propertyKey, property );
int mitk::Action::GetActionId (  ) const
virtual const char* mitk::Action::GetClassName (  ) const [virtual]
mitk::BaseProperty * mitk::Action::GetProperty ( const char *  propertyKey ) const

returns the specified property

return the property with the given property key

Definition at line 54 of file mitkAction.cpp.

Referenced by mitk::PointSelectorInteractor::ExecuteAction(), mitk::PointInteractor::ExecuteAction(), and mitk::MoveSurfaceInteractor::ExecuteAction().

{
  if (m_PropertiesList.IsNotNull())
    return m_PropertiesList->GetProperty( propertyKey );
  else 
    return NULL;
static Pointer mitk::Action::New ( int  _arg ) [inline, static]

static New method to use SmartPointer

Definition at line 41 of file mitkAction.h.

Referenced by mitkActionTest(), mitkStateMachineFactoryTest(), mitkTransitionTest(), and mitk::StateMachineFactory::StartElement().


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