Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
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
{
25
class
MITKDICOMRTIO_EXPORT
RTStructureSetReaderService
:
public
mitk::AbstractFileReader
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];
45
mitk::ContourModelSet::Pointer
ContourModelSet
;
46
};
47
48
public
:
49
RTStructureSetReaderService
();
50
RTStructureSetReaderService
(
const
RTStructureSetReaderService
& other);
51
52
~
RTStructureSetReaderService
()
override
;
53
60
using
AbstractFileReader::Read
;
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
MitkDICOMRTIOExports.h
MITKDICOMRTIO_EXPORT
#define MITKDICOMRTIO_EXPORT
Definition:
MitkDICOMRTIOExports.h:15
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition:
mitkAbstractFileReader.h:42
mitkContourModelSet.h
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitkAbstractFileReader.h
usModuleContext.h
mitk::ContourModelSet
Definition:
mitkContourModelSet.h:26
us::ServiceRegistration< mitk::IFileReader >
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
mitk::RTStructureSetReaderService
Definition:
mitkRTStructureSetReaderService.h:25
src
MITK
Modules
RT
autoload
DICOMRTIO
mitkRTStructureSetReaderService.h
Generated on Mon Dec 23 2024 02:13:21 for Medical Imaging Interaction Toolkit by
1.8.17