Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 {
23  //##Documentation
24  //## @brief represents an action, that is executed after a certain event (in statemachine-mechanism)
25  //##
26  //## @ingroup Interaction
27  class MITKCORE_EXPORT Action : public itk::Object
28  {
29  public:
30  mitkClassMacroItkParent(Action, itk::Object);
31 
35  mitkNewMacro1Param(Self, int);
36 
40  void AddProperty(const char *propertyKey, BaseProperty *property);
41 
45  int GetActionId() const;
46 
50  mitk::BaseProperty *GetProperty(const char *propertyKey) const;
51 
52  protected:
57  Action(int actionId);
58 
62  ~Action() override;
63 
64  private:
68  int m_ActionId;
69 
73  PropertyList::Pointer m_PropertiesList;
74  };
75 
76 } // namespace mitk
77 
78 #endif
mitk::Action
represents an action, that is executed after a certain event (in statemachine-mechanism)
Definition: mitkAction.h:27
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
itk::SmartPointer< Self >
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitkPropertyList.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15