Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkFloatPropertyExtension.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 mitkFloatPropertyExtension_h
18 #define mitkFloatPropertyExtension_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, float, float);
35  mitkNewMacro3Param(Self, float, float, float);
36  mitkNewMacro4Param(Self, float, float, float, int);
37 
38  int GetDecimals() const;
39  void SetDecimals(int decimals);
40 
41  float GetMaximum() const;
42  void SetMaximum(float maximum);
43 
44  float GetMinimum() const;
45  void SetMinimum(float minimum);
46 
47  float GetSingleStep() const;
48  void SetSingleStep(float singleStep);
49 
50  private:
52  FloatPropertyExtension(float minimum, float maximum, float singleStep = 0.1f, int decimals = 2);
53 
55 
56  struct Impl;
57  Impl *m_Impl;
58  };
59 }
60 
61 #endif
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:89
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
Definition: mitkCommon.h:115
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for all property extensions.
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:102
Property extension for mitk::FloatProperty.