Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkBoundingObject.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 mitkBoundingObject_h
14 #define mitkBoundingObject_h
15 
17 #include <mitkSurface.h>
18 
19 namespace mitk
20 {
36  {
37  public:
39 
46  virtual bool IsInside(const mitk::Point3D &p) const = 0;
47 
57 
59  itkGetMacro(Positive, bool);
61  itkSetMacro(Positive, bool);
63  itkBooleanMacro(Positive);
64 
74  virtual void FitGeometry(BaseGeometry *aGeometry3D);
75 
76  protected:
78  ~BoundingObject() override;
79 
80  //##Documentation
81  //## \brief If \a true, the Boundingobject describes a positive volume,
82  //## if \a false a negative volume.
83  //##
84  bool m_Positive;
85 
86  private:
88  BoundingObject &operator=(const BoundingObject &);
89  };
90 }
91 #endif
#define MITKDATATYPESEXT_EXPORT
Abstract base class describing the geometry of a data object.
Abstract superclass of all bounding objects (cylinder, cuboid, cone, ellipsoid, etc....
virtual void FitGeometry(BaseGeometry *aGeometry3D)
Sets the Geometry3D of the bounding object to fit the given geometry.
bool m_Positive
If true, the Boundingobject describes a positive volume, if false a negative volume.
virtual bool IsInside(const mitk::Point3D &p) const =0
Test whether a world-coordinate point lies inside this bounding object.
mitkClassMacro(BoundingObject, mitk::Surface)
~BoundingObject() override
virtual mitk::ScalarType GetVolume()
Calculate and return the volume of this bounding object.
Data class for storing polygonal surfaces (vtkPolyData).
Definition: mitkSurface.h:37
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.