Medical Imaging Interaction Toolkit  2023.04.00
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
14 #define mitkClippingProperty_h
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 
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
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:35
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
itk::SmartPointer< Self >
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::ClippingProperty
Property for clipping datasets; currently only clipping planes are possible.
Definition: mitkClippingProperty.h:36
mitk::Vector< ScalarType, 3 >
MitkCoreExports.h
mitk::Point< ScalarType, 3 >
mitkNumericTypes.h
mitk::ClippingProperty::ValueType
std::string ValueType
Definition: mitkClippingProperty.h:39
itk
SET FUNCTIONS.
Definition: itkIntelligentBinaryClosingFilter.h:30
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkBaseProperty.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15