Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
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);
44 
45  itkCloneMacro(Self)
47 
48  bool GetClippingEnabled() const;
49  void SetClippingEnabled(bool enabled);
50 
51  const Point3D &GetOrigin() const;
52  void SetOrigin(const Point3D &origin);
53 
54  const Vector3D &GetNormal() const;
55  void SetNormal(const Vector3D &normal);
56 
57  std::string GetValueAsString() const override;
58 
59  using BaseProperty::operator=;
60 
61  protected:
62  bool m_ClippingEnabled;
63 
64  Point3D m_Origin;
65  Vector3D m_Normal;
66 
67  ClippingProperty();
68  ClippingProperty(const ClippingProperty &other);
69  ClippingProperty(const Point3D &origin, const Vector3D &normal);
70 
71  private:
72  // purposely not implemented
73  ClippingProperty &operator=(const ClippingProperty &);
74 
75  bool IsEqual(const BaseProperty &property) const override;
76  bool Assign(const BaseProperty &property) override;
77 
78  itk::LightObject::Pointer InternalClone() const override;
79  };
80 
81 #ifdef _MSC_VER
82 #pragma warning(pop)
83 #endif
84 
85 } // namespace mitk
86 
87 #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