Medical Imaging Interaction Toolkit
2024.06.99-692c34ce
Medical Imaging Interaction Toolkit
mitkLegacyFileReaderService.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 mitkLegacyFileReaderService_h
14
#define mitkLegacyFileReaderService_h
15
16
#include <
mitkAbstractFileReader.h
>
17
18
namespace
mitk
19
{
20
// This class wraps mitk::FileReader instances registered as
21
// "mitkIOAdapter" via the ITK object factory system as a
22
// micro service.
23
class
LegacyFileReaderService
:
public
mitk::AbstractFileReader
24
{
25
public
:
26
LegacyFileReaderService
(
const
LegacyFileReaderService
&other);
27
28
LegacyFileReaderService
(
const
std::vector<std::string> &extensions,
const
std::string &category);
29
~LegacyFileReaderService
()
override
;
30
31
using
AbstractFileReader::Read
;
32
33
protected
:
34
std::vector<itk::SmartPointer<BaseData>>
DoRead
()
override
;
35
36
private
:
37
LegacyFileReaderService
*Clone()
const override
;
38
39
us::ServiceRegistration<mitk::IFileReader>
m_ServiceReg;
40
};
41
42
}
// namespace mitk
43
44
#endif
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition:
mitkAbstractFileReader.h:42
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::LegacyFileReaderService::LegacyFileReaderService
LegacyFileReaderService(const LegacyFileReaderService &other)
mitkAbstractFileReader.h
mitk::LegacyFileReaderService::~LegacyFileReaderService
~LegacyFileReaderService() override
mitk::LegacyFileReaderService
Definition:
mitkLegacyFileReaderService.h:23
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::LegacyFileReaderService::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override
src
MITK
Modules
Core
src
IO
mitkLegacyFileReaderService.h
Generated on Wed Nov 27 2024 02:14:09 for Medical Imaging Interaction Toolkit by
1.8.17