Medical Imaging Interaction Toolkit  2018.4.99-6ca56567
Medical Imaging Interaction Toolkit
mitkContourSet.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 _MITK_CONTOUR_SET_H_
14 #define _MITK_CONTOUR_SET_H_
15 
16 #include "mitkBaseData.h"
17 #include "mitkCommon.h"
18 #include "mitkContour.h"
20 #include <map>
21 
22 namespace mitk
23 {
29  {
30  public:
32 
33  itkFactorylessNewMacro(Self);
34 
35  itkCloneMacro(Self);
36 
37  typedef std::map<unsigned long, Contour::Pointer> ContourVectorType;
38  typedef ContourVectorType::iterator ContourIterator;
39  typedef itk::BoundingBox<unsigned long, 3, ScalarType> BoundingBoxType;
40 
44  void Initialize() override;
45 
49  void AddContour(unsigned int index, mitk::Contour::Pointer contour);
50 
54  void RemoveContour(unsigned long index);
55 
59  unsigned int GetNumberOfContours();
60 
64  ContourVectorType GetContours();
65 
69  void UpdateOutputInformation() override;
70 
74  void SetRequestedRegionToLargestPossibleRegion() override;
75 
79  bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
80 
84  bool VerifyRequestedRegion() override;
85 
89  void SetRequestedRegion(const itk::DataObject *data) override;
90 
91  protected:
92  ContourSet();
93  ~ContourSet() override;
94 
95  private:
99  BoundingBoxType::Pointer m_BoundingBox;
100 
101  ContourVectorType m_ContourVector;
102 
103  };
104 
105 } // namespace mitk
106 
107 #endif //_MITK_CONTOUR_SET_H_
Base of all data objects.
Definition: mitkBaseData.h:42
ContourVectorType::iterator ContourIterator
itk::BoundingBox< unsigned long, 3, ScalarType > BoundingBoxType
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
std::map< unsigned long, Contour::Pointer > ContourVectorType