Medical Imaging Interaction Toolkit  2024.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 {
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
mitk::Plane::m_PlaneNormal
vtkDoubleArray * m_PlaneNormal
Definition: mitkPlane.h:55
MitkDataTypesExtExports.h
mitk::Plane
Plane surface representation.
Definition: mitkPlane.h:31
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition: MitkDataTypesExtExports.h:15
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::Point< ScalarType, 3 >
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitk::Plane::m_Plane
vtkPolyData * m_Plane
Definition: mitkPlane.h:53
mitkBoundingObject.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BoundingObject
superclass of all bounding objects (cylinder, cuboid,...)
Definition: mitkBoundingObject.h:27
mitk::Plane::m_PlaneSource
vtkPlaneSource * m_PlaneSource
Definition: mitkPlane.h:51
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20