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