Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
12 #ifndef mitkIOAdapter_h
13 #define mitkIOAdapter_h
17 #include "itkObject.h"
38 const std::string filePrefix,
39 const std::string filePattern) = 0;
40 virtual bool CanReadFile(
const std::string filename,
41 const std::string filePrefix,
42 const std::string filePattern) = 0;
49 void operator=(
const Self &);
69 itkFactorylessNewMacro(
Self);
71 const std::string filePrefix,
72 const std::string filePattern)
override
74 typename T::Pointer ioProcessObject = T::New();
75 ioProcessObject->SetFileName(filename.c_str());
76 ioProcessObject->SetFilePrefix(filePrefix.c_str());
77 ioProcessObject->SetFilePattern(filePattern.c_str());
78 return ioProcessObject.GetPointer();
82 const std::string filePrefix,
83 const std::string filePattern)
override
85 return T::CanReadFile(filename, filePrefix, filePattern);
93 void operator=(
const Self &);
mitk::BaseDataSource::Pointer CreateIOProcessObject(const std::string filename, const std::string filePrefix, const std::string filePattern) override
Create an object and return a pointer to it as a mitk::BaseProcess.
itk::SmartPointer< Self > Pointer
IOAdapterBase class is an abstract adapter class for IO process objects.
virtual itk::SmartPointer< BaseDataSource > CreateIOProcessObject(const std::string filename, const std::string filePrefix, const std::string filePattern)=0
Create an object and return a pointer to it as a mitk::BaseProcess.
itk::SmartPointer< Self > Pointer
Find image slices visible on a given plane.
bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern) override
virtual bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern)=0
IOAdapter class is an adapter class for instantiation of IO process objects. Additional this interfac...
~IOAdapterBase() override
itk::SmartPointer< const Self > ConstPointer