Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef ACTION_H_HEADER_INCLUDED_C19AE06B
18 #define ACTION_H_HEADER_INCLUDED_C19AE06B
19 
20 #include "mitkPropertyList.h"
21 #include <MitkCoreExports.h>
22 #include <itkObject.h>
23 #include <itkObjectFactory.h>
24 
25 namespace mitk
26 {
27  //##Documentation
28  //## @brief represents an action, that is executed after a certain event (in statemachine-mechanism)
29  //##
30  //## @ingroup Interaction
31  class MITKCORE_EXPORT Action : public itk::Object
32  {
33  public:
35 
40 
44  void AddProperty(const char *propertyKey, BaseProperty *property);
45 
49  int GetActionId() const;
50 
54  mitk::BaseProperty *GetProperty(const char *propertyKey) const;
55 
56  protected:
61  Action(int actionId);
62 
66  ~Action();
67 
68  private:
72  int m_ActionId;
73 
77  PropertyList::Pointer m_PropertiesList;
78  };
79 
80 } // namespace mitk
81 
82 #endif /* ACTION_H_HEADER_INCLUDED_C19AE06B */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
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:31
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53