Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkBoundingObjectGroup.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef BOUNDINGOBJECTGROUP_H_HEADER_INCLUDED
17 #define BOUNDINGOBJECTGROUP_H_HEADER_INCLUDED
18 
20 #include <deque>
21 #include <mitkBoundingObject.h>
22 
23 namespace mitk
24 {
25  //##Documentation
26  //## @brief group object, that contains several mitk::BoundingObjects
27  //##
28  //## Calculates a bounding box that contains all sub-bounding boxes.
29  //## @ingroup Data
31  {
32  public:
33  enum CSGMode
34  {
37  Difference
38  };
39 
41  mitk::BoundingObject); // itk::VectorContainer<unsigned int ,mitk::BoundingObject::Pointer>);
42  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
43 
44  virtual void UpdateOutputInformation() override;
45  virtual bool IsInside(const mitk::Point3D &p) const override;
46 
47  void SetBoundingObjects(const std::deque<mitk::BoundingObject::Pointer> boundingObjects);
48  std::deque<mitk::BoundingObject::Pointer> GetBoundingObjects();
49 
50  itkSetMacro(CSGMode, mitk::BoundingObjectGroup::CSGMode);
51  itkGetMacro(CSGMode, mitk::BoundingObjectGroup::CSGMode);
52 
53  void AddBoundingObject(mitk::BoundingObject::Pointer boundingObject);
54  void RemoveBoundingObject(mitk::BoundingObject::Pointer boundingObject);
55  unsigned int GetCount() const;
56  mitk::BaseGeometry *GetGeometry(int t = 0) const;
57 
58  virtual bool VerifyRequestedRegion() override;
59 
60  protected:
62  virtual ~BoundingObjectGroup();
63 
64  std::deque<mitk::BoundingObject::Pointer> m_BoundingObjects;
65  unsigned int m_Counter;
66  CSGMode m_CSGMode;
67  };
68 }
69 #endif /* BOUNDINGOBJECTGROUP_H_HEADER_INCLUDED */
#define MITKDATATYPESEXT_EXPORT
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
superclass of all bounding objects (cylinder, cuboid,...)
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
group object, that contains several mitk::BoundingObjects
BaseGeometry Describes the geometry of a data object.