Medical Imaging Interaction Toolkit  2025.12.02
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 {
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 
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
#define MITKDATATYPESEXT_EXPORT
superclass of all bounding objects (cylinder, cuboid,...)
Plane surface representation.
Definition: mitkPlane.h:32
vtkPlaneSource * m_PlaneSource
Definition: mitkPlane.h:51
~Plane() override
void GetExtent(double &x, double &y) const
void GetResolution(int &xR, int &yR) const
void SetResolution(const int xR, const int yR)
vtkDoubleArray * m_PlaneNormal
Definition: mitkPlane.h:55
vtkPolyData * m_Plane
Definition: mitkPlane.h:53
void SetExtent(const double x, const double y)
bool IsInside(const Point3D &p) const override
mitk::ScalarType GetVolume() override
mitkClassMacro(Plane, BoundingObject)
Find image slices visible on a given plane.
double ScalarType