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
mitkPlane.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 MITKPLANE_H_HEADER_INCLUDED
18 #define MITKPLANE_H_HEADER_INCLUDED
19 
21 #include "mitkBoundingObject.h"
22 
23 class vtkPlaneSource;
24 class vtkDoubleArray;
25 
26 namespace mitk
27 {
36  {
37  public:
39  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
40 
41  void SetExtent(const double x, const double y);
42  void GetExtent(double &x, double &y) const;
43 
44  void SetResolution(const int xR, const int yR);
45  void GetResolution(int &xR, int &yR) const;
46 
47  virtual mitk::ScalarType GetVolume() override;
48  virtual bool IsInside(const Point3D &p) const override;
49 
50  protected:
51  Plane();
52  virtual ~Plane();
53 
54  vtkPlaneSource *m_PlaneSource;
55 
56  vtkPolyData *m_Plane;
57 
58  vtkDoubleArray *m_PlaneNormal;
59  };
60 }
61 #endif /* MITKPLANE_H_HEADER_INCLUDED */
Base of all data objects.
Definition: mitkBaseData.h:39
#define MITKDATATYPESEXT_EXPORT
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
vtkPlaneSource * m_PlaneSource
Definition: mitkPlane.h:54
vtkDoubleArray * m_PlaneNormal
Definition: mitkPlane.h:58
Plane surface representation.
Definition: mitkPlane.h:35
superclass of all bounding objects (cylinder, cuboid,...)
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
vtkPolyData * m_Plane
Definition: mitkPlane.h:56