represents an action, that is executed after a certain event (in statemachine-mechanism) More...
#include <mitkAction.h>
Public Types | |
| typedef Action | Self |
| typedef itk::Object | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| 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::BaseProperty * | GetProperty (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. | |
represents an action, that is executed after a certain event (in statemachine-mechanism)
Definition at line 33 of file mitkAction.h.
| 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.
| typedef Action mitk::Action::Self |
Definition at line 36 of file mitkAction.h.
| typedef itk::Object mitk::Action::Superclass |
Definition at line 36 of file mitkAction.h.
| 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] |
| 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 |
Returns the Id of this action.
return the actionId of this object
Definition at line 45 of file mitkAction.cpp.
Referenced by mitk::SurfaceDeformationInteractor3D::ExecuteAction(), mitk::StateMachine::ExecuteAction(), mitk::SlicesRotator::ExecuteAction(), mitk::SeedsInteractor::ExecuteAction(), mitk::PointSetInteractor::ExecuteAction(), mitk::PointSelectorInteractor::ExecuteAction(), mitk::PointInteractor::ExecuteAction(), mitk::PlanarFigureInteractor::ExecuteAction(), mitk::MoveSurfaceInteractor::ExecuteAction(), mitk::GlobalInteraction::ExecuteAction(), mitk::ExtrudedContourInteractor::ExecuteAction(), mitk::DisplayVectorInteractor::ExecuteAction(), mitk::DisplayPointSetInteractor::ExecuteAction(), mitk::CoordinateSupplier::ExecuteAction(), mitk::ContourInteractor::ExecuteAction(), mitk::ConnectPointsInteractor::ExecuteAction(), and mitk::AffineInteractor::ExecuteAction().
{
return m_ActionId;
| 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().
1.7.2