Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkIntPropertyExtension.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 mitkIntPropertyExtension_h
14 #define mitkIntPropertyExtension_h
15 
16 #include <MitkCoreExports.h>
17 #include <mitkPropertyExtension.h>
18 
19 namespace mitk
20 {
26  {
27  public:
29 
30  itkFactorylessNewMacro(Self);
31 
32  itkCloneMacro(Self);
33  mitkNewMacro2Param(Self, int, int);
34  mitkNewMacro3Param(Self, int, int, int);
35 
39  int GetMaximum() const;
40 
42  void SetMaximum(int maximum);
43 
47  int GetMinimum() const;
48 
50  void SetMinimum(int minimum);
51 
55  int GetSingleStep() const;
56 
58  void SetSingleStep(int singleStep);
59 
60  private:
62  IntPropertyExtension(int minimum, int maximum, int singleStep = 1);
63 
64  ~IntPropertyExtension() override;
65 
66  struct Impl;
67  Impl *m_Impl;
68  };
69 }
70 
71 #endif
#define MITKCORE_EXPORT
Property extension for mitk::IntProperty.
int GetMinimum() const
Get the minimum allowed value. Defaults to 0.
int GetSingleStep() const
Get the single step increment. Defaults to 1.
int GetMaximum() const
Get the maximum allowed value. Defaults to 100.
void SetMinimum(int minimum)
Set the minimum allowed value.
mitkNewMacro2Param(Self, int, int)
void SetMaximum(int maximum)
Set the maximum allowed value.
void SetSingleStep(int singleStep)
Set the single step increment.
mitkClassMacro(IntPropertyExtension, PropertyExtension)
mitkNewMacro3Param(Self, int, int, int)
Base class for all property extensions.
Find image slices visible on a given plane.