Medical Imaging Interaction Toolkit  2026.06.00
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 
40  class MITKCORE_EXPORT BaseController : public OperationActor, public itk::Object
41  {
42  public:
43 
45  itkFactorylessNewMacro(Self);
46 
52 
57  const Stepper* GetStepper() const;
58 
59  protected:
62 
64  ~BaseController() override;
65 
69  void ExecuteOperation(Operation *) override;
70 
71  Stepper::Pointer m_Stepper;
72 
73  unsigned long m_LastUpdateTime;
74  };
75 
76 } // namespace mitk
77 
78 #endif
#define MITKCORE_EXPORT
Base class for renderer slice, camera, and time control.
mitkClassMacroItkParent(BaseController, OperationActor)
BaseController()
Default constructor.
Stepper * GetStepper()
Get the stepper for stepping through the controlled dimension.
const Stepper * GetStepper() const
Get the stepper for stepping through the controlled dimension (const).
Stepper::Pointer m_Stepper
Stepper through the controlled dimension.
void ExecuteOperation(Operation *) override
Execute an undo/redo operation.
~BaseController() override
Destructor.
unsigned long m_LastUpdateTime
Timestamp of the last update.
abstract class, that can be used by Undo to undo an operation.
Base class for all operations in the undo/redo framework.
Definition: mitkOperation.h:38
Helper class to step through a list.
Definition: mitkStepper.h:48
Find image slices visible on a given plane.