Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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) itkCloneMacro(Self)
36 
37  //##Documentation
38  //## @brief Set the reference to a PlaneGeometry that is stored
39  //## by the object
40  //##
41  //## @warning Accepts only instances of PlaneGeometry or sub-classes.
42  void SetGeometry(mitk::BaseGeometry *geometry) override;
43 
44  //##Documentation
45  //## @brief Set the reference to the PlaneGeometry that is stored
46  //## by the object
47  virtual void SetPlaneGeometry(mitk::PlaneGeometry *geometry2d);
51  DEPRECATED(void SetGeometry2D(PlaneGeometry *geo)) { SetPlaneGeometry(geo); };
52  //##Documentation
53  //## @brief Get the reference to the PlaneGeometry that is stored
54  //## by the object
55  virtual mitk::PlaneGeometry *GetPlaneGeometry() const { return static_cast<mitk::PlaneGeometry *>(GetGeometry()); };
59  DEPRECATED(const PlaneGeometry *GetGeometry2D()) { return GetPlaneGeometry(); };
60  void UpdateOutputInformation() override;
61 
62  void SetRequestedRegionToLargestPossibleRegion() override;
63 
64  bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
65 
66  bool VerifyRequestedRegion() override;
67 
68  void SetRequestedRegion(const itk::DataObject *data) override;
69 
70  void CopyInformation(const itk::DataObject *data) override;
71 
72  protected:
74 
75  ~PlaneGeometryData() override;
76  };
77 } // namespace mitk
78 #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.