Medical Imaging Interaction Toolkit  2018.04.99-aba3194f
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 MITKRTSTRUCTURESETREADER_H
14 #define MITKRTSTRUCTURESETREADER_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 {
26  {
27 
31  class RoiEntry
32  {
33  public:
34  RoiEntry();
35  RoiEntry(const RoiEntry& src);
36  virtual ~RoiEntry();
37  RoiEntry& operator=(const RoiEntry& src);
38 
39  void SetPolyData(ContourModelSet::Pointer roiPolyData);
40 
41  unsigned int Number;
42  std::string Name;
43  std::string Description;
44  double DisplayColor[3];
46  };
47 
48  public:
51 
52  ~RTStructureSetReaderService() override;
53 
61 
62  protected:
63  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
64 
65  private:
66  RTStructureSetReaderService* Clone() const override;
67 
71  std::vector<RoiEntry> ROISequenceVector;
72 
76  size_t GetNumberOfROIs() const;
77 
81  RoiEntry* FindRoiByNumber(unsigned int roiNum);
82 
83  us::ServiceRegistration<mitk::IFileReader> m_FileReaderServiceReg;
84  };
85 }
86 
87 #endif // MITKRTSTRUCTURESETREADER_H
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
Base class for creating mitk::BaseData objects from files or streams.
#define MITKDICOMRTIO_EXPORT