Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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 ACTION_H_HEADER_INCLUDED_C19AE06B
14 #define ACTION_H_HEADER_INCLUDED_C19AE06B
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:
31 
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 /* ACTION_H_HEADER_INCLUDED_C19AE06B */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
represents an action, that is executed after a certain event (in statemachine-mechanism) ...
Definition: mitkAction.h:27
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45