Medical Imaging Interaction Toolkit  2023.12.99-ed252ae7
Medical Imaging Interaction Toolkit
mitkMultiStepper.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 mitkMultiStepper_h
14 #define mitkMultiStepper_h
15 
17 #include "mitkCommon.h"
18 #include "mitkStepper.h"
19 #include "mitkVector.h"
20 #include <itkObject.h>
21 #include <itkObjectFactory.h>
22 #include <set>
23 
24 namespace mitk
25 {
26  //##Documentation
27  //## @brief Helper class to step through a list
28  //##
29  //## A helper class to step through a list. Does not contain the list, just the
30  //## position in the list (between 0 and GetSteps()). Provides methods like
31  //## First (go to the first element), Next (go to the next one), etc.
32  //## @ingroup NavigationControl
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self) void AddStepper(Stepper::Pointer stepper, unsigned int repeat = 1);
39  void RemoveStepper(Stepper::Pointer stepper, unsigned int repeat = 1);
40  /*void Next();
41  void Previous();
42  void First();
43  void Last(); */
44  // unsigned int GetPos();
45  void SetPos(unsigned int pos) override;
46  void SetSteps(const unsigned int steps) override;
47 
48  protected:
49  MultiStepper();
50  ~MultiStepper() override;
51  typedef std::set<Stepper::Pointer> StepperSet;
52  typedef std::map<Stepper::Pointer, unsigned int> ScaleFactorMap;
56  void UpdateStepCount();
57  };
58 
59 } // namespace mitk
60 
61 #endif
MitkDataTypesExtExports.h
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition: MitkDataTypesExtExports.h:15
itk::SmartPointer< Self >
mitk::MultiStepper::m_SubSteppers
StepperSet m_SubSteppers
Definition: mitkMultiStepper.h:53
mitk::MultiStepper::StepperSet
std::set< Stepper::Pointer > StepperSet
Definition: mitkMultiStepper.h:51
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::MultiStepper::m_ScaleFactors
ScaleFactorMap m_ScaleFactors
Definition: mitkMultiStepper.h:54
mitk::Stepper
Helper class to step through a list.
Definition: mitkStepper.h:47
mitkCommon.h
mitkStepper.h
mitk::MultiStepper
Helper class to step through a list.
Definition: mitkMultiStepper.h:33
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkVector.h
mitk::MultiStepper::ScaleFactorMap
std::map< Stepper::Pointer, unsigned int > ScaleFactorMap
Definition: mitkMultiStepper.h:52
mitk::MultiStepper::m_LargestRangeStepper
Stepper::Pointer m_LargestRangeStepper
Definition: mitkMultiStepper.h:55