Medical Imaging Interaction Toolkit  2018.4.99-eed36131
Medical Imaging Interaction Toolkit
mitkIntPropertyExtension.cpp
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 
14 
15 namespace mitk
16 {
17  struct IntPropertyExtension::Impl
18  {
19  Impl();
20  Impl(int minimum, int maximum, int singleStep);
21  ~Impl();
22 
23  int Maximum;
24  int Minimum;
25  int SingleStep;
26  };
27 
28  IntPropertyExtension::Impl::Impl() : Maximum(100), Minimum(0), SingleStep(1) {}
29  IntPropertyExtension::Impl::Impl(int minimum, int maximum, int singleStep)
30  : Maximum(maximum), Minimum(minimum), SingleStep(singleStep)
31  {
32  }
33 
34  IntPropertyExtension::Impl::~Impl() {}
35 }
36 
37 mitk::IntPropertyExtension::IntPropertyExtension() : m_Impl(new Impl)
38 {
39 }
40 
41 mitk::IntPropertyExtension::IntPropertyExtension(int minimum, int maximum, int singleStep)
42  : m_Impl(new Impl(minimum, maximum, singleStep))
43 {
44 }
45 
46 mitk::IntPropertyExtension::~IntPropertyExtension()
47 {
48  delete m_Impl;
49 }
50 
52 {
53  return m_Impl->Maximum;
54 }
55 
57 {
58  m_Impl->Maximum = maximum;
59 }
60 
62 {
63  return m_Impl->Minimum;
64 }
65 
67 {
68  m_Impl->Minimum = minimum;
69 }
70 
72 {
73  return m_Impl->SingleStep;
74 }
75 
77 {
78  m_Impl->SingleStep = singleStep;
79 }
DataCollection - Class to facilitate loading/accessing structured data.