Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkBaseController.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 mitkBaseController_h
14 #define mitkBaseController_h
15 
16 #include "mitkEventStateMachine.h"
17 #include "mitkOperationActor.h"
18 #include "mitkStepper.h"
19 #include <MitkCoreExports.h>
20 #include <itkObjectFactory.h>
21 
22 namespace mitk
23 {
24  class BaseRenderer;
25 
35  class MITKCORE_EXPORT BaseController : public OperationActor, public itk::Object
36  {
37  public:
38 
40  itkFactorylessNewMacro(Self);
41 
46  const Stepper* GetStepper() const;
47 
48  protected:
53 
57  ~BaseController() override;
58 
59  void ExecuteOperation(Operation *) override;
60 
61  //## @brief Stepper through the different dimensions
62  Stepper::Pointer m_Stepper;
63 
64  unsigned long m_LastUpdateTime;
65  };
66 
67 } // namespace mitk
68 
69 #endif
#define MITKCORE_EXPORT
Baseclass for renderer slice-/camera-/time-control.
BaseController()
Default Constructor.
Stepper * GetStepper()
Get the stepper through the corresponding dimension.
const Stepper * GetStepper() const
Stepper::Pointer m_Stepper
void ExecuteOperation(Operation *) override
~BaseController() override
Default Destructor.
unsigned long m_LastUpdateTime
abstract class, that can be used by Undo to undo an operation.
Base class of all Operation-classes.
Definition: mitkOperation.h:30
Helper class to step through a list.
Definition: mitkStepper.h:48
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
Find image slices visible on a given plane.