Medical Imaging Interaction Toolkit  2024.06.00
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 mitkContourSet_h
14 #define mitkContourSet_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::ContourSet::ContourVectorType
std::map< unsigned long, Contour::Pointer > ContourVectorType
Definition: mitkContourSet.h:35
mitk::ContourSet::ContourIterator
ContourVectorType::iterator ContourIterator
Definition: mitkContourSet.h:38
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkContour.h
mitkCommon.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitk::ContourSet::BoundingBoxType
itk::BoundingBox< unsigned long, 3, ScalarType > BoundingBoxType
Definition: mitkContourSet.h:39
mitk::ContourSet
Definition: mitkContourSet.h:28
mitkBaseData.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h