Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
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 (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 mitkFloatPropertyExtension_h
14 #define mitkFloatPropertyExtension_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, float, float);
34  mitkNewMacro3Param(Self, float, float, float);
35  mitkNewMacro4Param(Self, float, float, float, int);
36 
37  int GetDecimals() const;
38  void SetDecimals(int decimals);
39 
40  float GetMaximum() const;
41  void SetMaximum(float maximum);
42 
43  float GetMinimum() const;
44  void SetMinimum(float minimum);
45 
46  float GetSingleStep() const;
47  void SetSingleStep(float singleStep);
48 
49  private:
51  FloatPropertyExtension(float minimum, float maximum, float singleStep = 0.1f, int decimals = 2);
52 
53  ~FloatPropertyExtension() override;
54 
55  struct Impl;
56  Impl *m_Impl;
57  };
58 }
59 
60 #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 mitkNewMacro4Param(classname, typea, typeb, typec, typed)
Definition: mitkCommon.h:111
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Base class for all property extensions.
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:98
Property extension for mitk::FloatProperty.