Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkPlaneGeometryData.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 mitkPlaneGeometryData_h
14 #define mitkPlaneGeometryData_h
15 
16 #include "mitkBaseData.h"
17 #include "mitkGeometryData.h"
18 #include "mitkPlaneGeometry.h"
19 #include <MitkCoreExports.h>
20 
21 namespace mitk
22 {
26  //##Documentation
27  //## @brief Data class containing PlaneGeometry objects
28  //## @ingroup Geometry
29  //##
31  {
32  public:
34 
35  itkFactorylessNewMacro(Self);
36 
37  itkCloneMacro(Self);
38 
39  //##Documentation
40  //## @brief Set the reference to a PlaneGeometry that is stored
41  //## by the object
42  //##
43  //## @warning Accepts only instances of PlaneGeometry or sub-classes.
44  void SetGeometry(mitk::BaseGeometry *geometry) override;
45 
46  //##Documentation
47  //## @brief Set the reference to the PlaneGeometry that is stored
48  //## by the object
49  virtual void SetPlaneGeometry(mitk::PlaneGeometry *geometry2d);
53  DEPRECATED(void SetGeometry2D(PlaneGeometry *geo)) { SetPlaneGeometry(geo); };
54  //##Documentation
55  //## @brief Get the reference to the PlaneGeometry that is stored
56  //## by the object
57  virtual mitk::PlaneGeometry *GetPlaneGeometry() const { return static_cast<mitk::PlaneGeometry *>(GetGeometry()); };
61  DEPRECATED(const PlaneGeometry *GetGeometry2D()) { return GetPlaneGeometry(); };
62  void UpdateOutputInformation() override;
63 
64  void SetRequestedRegionToLargestPossibleRegion() override;
65 
66  bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
67 
68  bool VerifyRequestedRegion() override;
69 
70  void SetRequestedRegion(const itk::DataObject *data) override;
71 
72  void CopyInformation(const itk::DataObject *data) override;
73 
74  protected:
76 
77  ~PlaneGeometryData() override;
78  };
79 } // namespace mitk
80 #endif
mitk::GeometryData
Data class only having a BaseGeometry but not containing any specific data.
Definition: mitkGeometryData.h:26
mitk::PlaneGeometry
Describes a two-dimensional, rectangular plane.
Definition: mitkPlaneGeometry.h:78
mitk::PlaneGeometryData::GetPlaneGeometry
virtual mitk::PlaneGeometry * GetPlaneGeometry() const
Get the reference to the PlaneGeometry that is stored by the object.
Definition: mitkPlaneGeometryData.h:57
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::PlaneGeometryData::SetGeometry2D
void SetGeometry2D(PlaneGeometry *geo)
Definition: mitkPlaneGeometryData.h:53
mitk::PlaneGeometryData::GetGeometry2D
const PlaneGeometry * GetGeometry2D()
Definition: mitkPlaneGeometryData.h:61
MitkCoreExports.h
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::PlaneGeometryData
Data class containing PlaneGeometry objects.
Definition: mitkPlaneGeometryData.h:30
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkGeometryData.h
mitkBaseData.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitkPlaneGeometry.h