Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
mitk::FloatPropertyExtension
Property extension for mitk::FloatProperty.
Definition: mitkFloatPropertyExtension.h:25
mitkNewMacro3Param
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:94
mitkPropertyExtension.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkNewMacro4Param
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
Definition: mitkCommon.h:107
mitk::PropertyExtension
Base class for all property extensions.
Definition: mitkPropertyExtension.h:24
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15