Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkRTStructureSetReaderService.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 mitkRTStructureSetReaderService_h
14 #define mitkRTStructureSetReaderService_h
15 
16 #include <mitkAbstractFileReader.h>
17 
18 #include <MitkDICOMRTIOExports.h>
19 #include <mitkContourModelSet.h>
20 
21 #include <usModuleContext.h>
22 
23 namespace mitk
24 {
32  {
33 
37  class RoiEntry
38  {
39  public:
40  RoiEntry();
41  RoiEntry(const RoiEntry& src);
42  virtual ~RoiEntry();
43  RoiEntry& operator=(const RoiEntry& src);
44 
45  void SetPolyData(ContourModelSet::Pointer roiPolyData);
46 
47  unsigned int Number;
48  std::string Name;
49  std::string Description;
50  double DisplayColor[3];
51  mitk::ContourModelSet::Pointer ContourModelSet;
52  };
53 
54  public:
57 
60 
62 
70 
71  protected:
72  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
73 
74  private:
75  RTStructureSetReaderService* Clone() const override;
76 
80  std::vector<RoiEntry> ROISequenceVector;
81 
85  size_t GetNumberOfROIs() const;
86 
90  RoiEntry* FindRoiByNumber(unsigned int roiNum);
91 
92  us::ServiceRegistration<mitk::IFileReader> m_FileReaderServiceReg;
93  };
94 }
95 
96 #endif
#define MITKDICOMRTIO_EXPORT
Base class for creating mitk::BaseData objects from files or streams.
std::vector< itk::SmartPointer< BaseData > > Read() override
Read data and create a list of BaseData objects.
A collection of ContourModel instances managed as a single BaseData object.
Reader service for DICOM files of modality RT Structure Set.
RTStructureSetReaderService(const RTStructureSetReaderService &other)
Copy constructor.
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Perform the actual reading operation.
RTStructureSetReaderService()
Default constructor. Registers reader for the RT Structure Set MIME type.
Find image slices visible on a given plane.