Medical Imaging Interaction Toolkit  2024.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
34  virtual mitk::ScalarType GetVolume();
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
MitkDataTypesExtExports.h
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition: MitkDataTypesExtExports.h:15
mitk::BoundingObject::m_Positive
bool m_Positive
If true, the Boundingobject describes a positive volume, if false a negative volume.
Definition: mitkBoundingObject.h:55
mitk::Surface
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:28
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkSurface.h
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::Point< ScalarType, 3 >
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BoundingObject
superclass of all bounding objects (cylinder, cuboid,...)
Definition: mitkBoundingObject.h:27
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20