Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkClippingProperty.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 MITKCLIPPINGPROPERTY_H_HEADER_INCLUDED
14 #define MITKCLIPPINGPROPERTY_H_HEADER_INCLUDED
15 
16 #include "mitkBaseProperty.h"
17 #include "mitkNumericTypes.h"
18 #include <MitkCoreExports.h>
19 
20 #include <itkConfigure.h>
21 
22 #include <string>
23 
24 namespace mitk
25 {
26 #ifdef _MSC_VER
27 #pragma warning(push)
28 #pragma warning(disable : 4522)
29 #endif
30 
37  {
38  public:
40 
41  typedef std::string ValueType;
42 
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
45 
46  bool GetClippingEnabled() const;
47  void SetClippingEnabled(bool enabled);
48 
49  const Point3D &GetOrigin() const;
50  void SetOrigin(const Point3D &origin);
51 
52  const Vector3D &GetNormal() const;
53  void SetNormal(const Vector3D &normal);
54 
55  std::string GetValueAsString() const override;
56 
57  using BaseProperty::operator=;
58 
59  protected:
60  bool m_ClippingEnabled;
61 
62  Point3D m_Origin;
63  Vector3D m_Normal;
64 
65  ClippingProperty();
66  ClippingProperty(const ClippingProperty &other);
67  ClippingProperty(const Point3D &origin, const Vector3D &normal);
68 
69  private:
70  // purposely not implemented
71  ClippingProperty &operator=(const ClippingProperty &);
72 
73  bool IsEqual(const BaseProperty &property) const override;
74  bool Assign(const BaseProperty &property) override;
75 
76  itk::LightObject::Pointer InternalClone() const override;
77  };
78 
79 #ifdef _MSC_VER
80 #pragma warning(pop)
81 #endif
82 
83 } // namespace mitk
84 
85 #endif /* MITKCLIPPINGPROPERTY_H_HEADER_INCLUDED */
#define MITKCORE_EXPORT
Property for clipping datasets; currently only clipping planes are possible.
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40