Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 
36  int GetMaximum() const;
37  void SetMaximum(int maximum);
38 
39  int GetMinimum() const;
40  void SetMinimum(int minimum);
41 
42  int GetSingleStep() const;
43  void SetSingleStep(int singleStep);
44 
45  private:
47  IntPropertyExtension(int minimum, int maximum, int singleStep = 1);
48 
49  ~IntPropertyExtension() override;
50 
51  struct Impl;
52  Impl *m_Impl;
53  };
54 }
55 
56 #endif
#define MITKCORE_EXPORT
void GetMinimum(itk::Image< TPixel, VImageDimension > *itkImage, double &minimum)
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Property extension for mitk::IntProperty.
Base class for all property extensions.
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:98