Medical Imaging Interaction Toolkit  2025.12.02
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 {
21  //##Documentation
22  //## @brief superclass of all bounding objects (cylinder, cuboid,...)
23  //##
24  //## Manages generic functions and provides an interface for IsInside()
25  //## calculates a generic bounding box
26  //## @ingroup Data
28  {
29  public:
31 
32  virtual bool IsInside(const mitk::Point3D &p) const = 0;
33 
35  itkGetMacro(Positive, bool);
36  itkSetMacro(Positive, bool);
37  itkBooleanMacro(Positive);
38 
39  //##Documentation
40  //## @brief Sets the Geometry3D of the bounding object to fit the given
41  //## geometry.
42  //##
43  //## The fit is done once, so if the given geometry changes it will
44  //## \em not effect the bounding object.
45  virtual void FitGeometry(BaseGeometry *aGeometry3D);
46 
47  protected:
49  ~BoundingObject() override;
50 
51  //##Documentation
52  //## \brief If \a true, the Boundingobject describes a positive volume,
53  //## if \a false a negative volume.
54  //##
55  bool m_Positive;
56 
57  private:
59  BoundingObject &operator=(const BoundingObject &);
60  };
61 }
62 #endif
#define MITKDATATYPESEXT_EXPORT
BaseGeometry Describes the geometry of a data object.
superclass of all bounding objects (cylinder, cuboid,...)
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
mitkClassMacro(BoundingObject, mitk::Surface)
~BoundingObject() override
virtual mitk::ScalarType GetVolume()
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:29
Find image slices visible on a given plane.
double ScalarType