Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKGEOMETRY2DDATA_H_HEADER_INCLUDED_C19C01E2
18 #define MITKGEOMETRY2DDATA_H_HEADER_INCLUDED_C19C01E2
19 
20 #include "mitkBaseData.h"
21 #include "mitkGeometryData.h"
22 #include "mitkPlaneGeometry.h"
23 #include <MitkCoreExports.h>
24 
25 namespace mitk
26 {
30  //##Documentation
31  //## @brief Data class containing PlaneGeometry objects
32  //## @ingroup Geometry
33  //##
35  {
36  public:
38 
39  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
40 
41  //##Documentation
42  //## @brief Set the reference to a PlaneGeometry that is stored
43  //## by the object
44  //##
45  //## @warning Accepts only instances of PlaneGeometry or sub-classes.
46  virtual void SetGeometry(mitk::BaseGeometry *geometry) override;
47 
48  //##Documentation
49  //## @brief Set the reference to the PlaneGeometry that is stored
50  //## by the object
51  virtual void SetPlaneGeometry(mitk::PlaneGeometry *geometry2d);
55  DEPRECATED(void SetGeometry2D(PlaneGeometry *geo)) { SetPlaneGeometry(geo); };
56  //##Documentation
57  //## @brief Get the reference to the PlaneGeometry that is stored
58  //## by the object
59  virtual mitk::PlaneGeometry *GetPlaneGeometry() const { return static_cast<mitk::PlaneGeometry *>(GetGeometry()); };
63  DEPRECATED(const PlaneGeometry *GetGeometry2D()) { return GetPlaneGeometry(); };
64  virtual void UpdateOutputInformation() override;
65 
66  virtual void SetRequestedRegionToLargestPossibleRegion() override;
67 
68  virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
69 
70  virtual bool VerifyRequestedRegion() override;
71 
72  virtual void SetRequestedRegion(const itk::DataObject *data) override;
73 
74  virtual void CopyInformation(const itk::DataObject *data) override;
75 
76  protected:
78 
79  virtual ~PlaneGeometryData();
80  };
81 } // namespace mitk
82 #endif /* MITKGEOMETRY2DDATA_H_HEADER_INCLUDED_C19C01E2 */
#define MITKCORE_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:39
const PlaneGeometry * GetGeometry2D()
DataCollection - Class to facilitate loading/accessing structured data.
virtual mitk::PlaneGeometry * GetPlaneGeometry() const
Get the reference to the PlaneGeometry that is stored by the object.
#define DEPRECATED(func)
Definition: mitkCommon.h:183
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Data class containing PlaneGeometry objects.
Data class only having a BaseGeometry but not containing any specific data.
Describes a two-dimensional, rectangular plane.
BaseGeometry Describes the geometry of a data object.