Medical Imaging Interaction Toolkit  2025.12.02
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 {
23  class PlaneGeometryData;
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 
65 
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
#define MITKCORE_EXPORT
BaseGeometry Describes the geometry of a data object.
Data class only having a BaseGeometry but not containing any specific data.
Data class containing PlaneGeometry objects.
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
void SetRequestedRegion(const itk::DataObject *data) override
Set the requested region from this data object to match the requested region of the data object passe...
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
mitkClassMacro(PlaneGeometryData, GeometryData)
void SetGeometry(mitk::BaseGeometry *geometry) override
Set the reference to a PlaneGeometry that is stored by the object.
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
virtual mitk::PlaneGeometry * GetPlaneGeometry() const
Get the reference to the PlaneGeometry that is stored by the object.
virtual void SetPlaneGeometry(mitk::PlaneGeometry *geometry2d)
Set the reference to the PlaneGeometry that is stored by the object.
void CopyInformation(const itk::DataObject *data) override
void UpdateOutputInformation() override
~PlaneGeometryData() override
const PlaneGeometry * GetGeometry2D()
void SetGeometry2D(PlaneGeometry *geo)
Describes a two-dimensional, rectangular plane.
#define DEPRECATED(func)
Definition: mitkCommon.h:175
Find image slices visible on a given plane.