Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkAction.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkAction_h
14 #define mitkAction_h
15 
16 #include <mitkPropertyList.h>
17 #include <MitkCoreExports.h>
18 #include <itkObject.h>
19 #include <itkObjectFactory.h>
20 
21 namespace mitk
22 {
33  class MITKCORE_EXPORT Action : public itk::Object
34  {
35  public:
37 
41  mitkNewMacro1Param(Self, int);
42 
49  void AddProperty(const char *propertyKey, BaseProperty *property);
50 
55  int GetActionId() const;
56 
63  mitk::BaseProperty *GetProperty(const char *propertyKey) const;
64 
65  protected:
70  Action(int actionId);
71 
73  ~Action() override;
74 
75  private:
76  int m_ActionId;
77  PropertyList::Pointer m_PropertiesList;
78  };
79 
80 } // namespace mitk
81 
82 #endif
#define MITKCORE_EXPORT
Represents an action that is executed after a certain event in the state machine mechanism.
Definition: mitkAction.h:34
Action(int actionId)
Construct an action with the given ID.
int GetActionId() const
Get the ID of this action.
mitk::BaseProperty * GetProperty(const char *propertyKey) const
Get a property by its key.
void AddProperty(const char *propertyKey, BaseProperty *property)
Add a property to the action's property list.
mitkClassMacroItkParent(Action, itk::Object)
~Action() override
Destructor.
mitkNewMacro1Param(Self, int)
Static New method for SmartPointer-based construction.
Abstract base class for properties.
Find image slices visible on a given plane.