Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
ExampleImageInteractor.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 ExampleImageInteractor_h
14 #define ExampleImageInteractor_h
15 
16 #include <mitkDataInteractor.h>
17 #include <itkIndex.h>
18 
20 
21 // See ExampleImageFilter.h for details on typical class declarations
22 // in MITK. The actual functionality of this class is commented in its
23 // implementation file.
24 
26 {
27 public:
28  mitkClassMacro(ExampleImageInteractor, DataInteractor)
29  itkFactorylessNewMacro(Self)
30 
31 private:
34 
35  void ConnectActionsAndFunctions() override;
36  void DataNodeChanged() override;
37 
38  void Paint(mitk::StateMachineAction* action, mitk::InteractionEvent* event);
39 
40  itk::Index<3> m_LastPixelIndex;
41 };
42 
43 #endif
ExampleImageInteractor
Definition: ExampleImageInteractor.h:25
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
MITKEXAMPLEMODULE_EXPORT
#define MITKEXAMPLEMODULE_EXPORT
Definition: MitkExampleModuleExports.h:15
mitk::DataInteractor::DataNodeChanged
virtual void DataNodeChanged()
Is called when a DataNode is initially set or changed To be implemented by sub-classes for initializa...
mitk::DataInteractor::ConnectActionsAndFunctions
void ConnectActionsAndFunctions() override
Overwrite this function to connect actions from StateMachine description with functions.
mitkDataInteractor.h
mitk::StateMachineAction
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
Definition: mitkStateMachineAction.h:30
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkExampleModuleExports.h
mitk::DataInteractor
Base class from with interactors that handle DataNodes are to be derived.
Definition: mitkDataInteractor.h:48