Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
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 MITKGEOMETRY2DDATA_H_HEADER_INCLUDED_C19C01E2
14 #define MITKGEOMETRY2DDATA_H_HEADER_INCLUDED_C19C01E2
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 /* MITKGEOMETRY2DDATA_H_HEADER_INCLUDED_C19C01E2 */
#define MITKCORE_EXPORT
void SetGeometry2D(PlaneGeometry *geo)
Base of all data objects.
Definition: mitkBaseData.h:37
const PlaneGeometry * GetGeometry2D()
DataCollection - Class to facilitate loading/accessing structured data.
#define DEPRECATED(func)
Definition: mitkCommon.h:179
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Data class containing PlaneGeometry objects.
Data class only having a BaseGeometry but not containing any specific data.
Describes a two-dimensional, rectangular plane.
virtual mitk::PlaneGeometry * GetPlaneGeometry() const
Get the reference to the PlaneGeometry that is stored by the object.
BaseGeometry Describes the geometry of a data object.