Medical Imaging Interaction Toolkit  2026.06.00
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
14 #define mitkPlane_h
15 
17 #include <mitkBoundingObject.h>
18 
19 class vtkPlaneSource;
20 class vtkDoubleArray;
21 
22 namespace mitk
23 {
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
46  void SetExtent(const double x, const double y);
47 
54  void GetExtent(double &x, double &y) const;
55 
62  void SetResolution(const int xR, const int yR);
63 
70  void GetResolution(int &xR, int &yR) const;
71 
77 
84  bool IsInside(const Point3D &p) const override;
85 
86  protected:
87  Plane();
88  ~Plane() override;
89 
90  vtkPlaneSource *m_PlaneSource;
91 
92  vtkPolyData *m_Plane;
93 
94  vtkDoubleArray *m_PlaneNormal;
95  };
96 }
97 #endif
#define MITKDATATYPESEXT_EXPORT
Abstract superclass of all bounding objects (cylinder, cuboid, cone, ellipsoid, etc....
Bounding object representing a flat plane surface.
Definition: mitkPlane.h:34
vtkPlaneSource * m_PlaneSource
Definition: mitkPlane.h:90
~Plane() override
void GetExtent(double &x, double &y) const
Get the extent (size) of the plane.
void GetResolution(int &xR, int &yR) const
Get the tessellation resolution of the plane.
void SetResolution(const int xR, const int yR)
Set the tessellation resolution of the plane.
vtkDoubleArray * m_PlaneNormal
Definition: mitkPlane.h:94
vtkPolyData * m_Plane
Definition: mitkPlane.h:92
void SetExtent(const double x, const double y)
Set the extent (size) of the plane.
bool IsInside(const Point3D &p) const override
Always returns false, as a plane has no interior.
mitk::ScalarType GetVolume() override
Returns 0, as a plane has no volume.
mitkClassMacro(Plane, BoundingObject)
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.