Medical Imaging Interaction Toolkit  2018.04.99-aba3194f
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 BOUNDINGOBJECT_H_HEADER_INCLUDED
14 #define BOUNDINGOBJECT_H_HEADER_INCLUDED
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  bool WriteXMLData(XMLWriter &xmlWriter);
52 
53  //##Documentation
54  //## \brief If \a true, the Boundingobject describes a positive volume,
55  //## if \a false a negative volume.
56  //##
57  bool m_Positive;
58 
59  private:
61  BoundingObject &operator=(const BoundingObject &);
62  };
63 }
64 #endif /* BOUNDINGOBJECT_H_HEADER_INCLUDED */
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:28
#define MITKDATATYPESEXT_EXPORT
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
superclass of all bounding objects (cylinder, cuboid,...)
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
bool m_Positive
If true, the Boundingobject describes a positive volume, if false a negative volume.
BaseGeometry Describes the geometry of a data object.