Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkIntPropertyExtension_h
18 #define mitkIntPropertyExtension_h
19 
20 #include <MitkCoreExports.h>
21 #include <mitkPropertyExtension.h>
22 
23 namespace mitk
24 {
30  {
31  public:
33 
34  itkFactorylessNewMacro(Self) itkCloneMacro(Self) mitkNewMacro2Param(Self, int, int);
35  mitkNewMacro3Param(Self, int, int, int);
36 
37  int GetMaximum() const;
38  void SetMaximum(int maximum);
39 
40  int GetMinimum() const;
41  void SetMinimum(int minimum);
42 
43  int GetSingleStep() const;
44  void SetSingleStep(int singleStep);
45 
46  private:
48  IntPropertyExtension(int minimum, int maximum, int singleStep = 1);
49 
51 
52  struct Impl;
53  Impl *m_Impl;
54  };
55 }
56 
57 #endif
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:89
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Property extension for mitk::IntProperty.
Base class for all property extensions.
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:102