RTK
2.4.1
Reconstruction Toolkit
RTK
include
rtkHncImageIOFactory.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright RTK Consortium
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* https://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
19
#ifndef rtkHncImageIOFactory_h
20
#define rtkHncImageIOFactory_h
21
22
#include "RTKExport.h"
23
#include "
rtkHncImageIO.h
"
24
25
// itk include
26
#include <
itkImageIOBase.h
>
27
#include <
itkObjectFactoryBase.h
>
28
#include <
itkVersion.h
>
29
30
namespace
rtk
31
{
32
41
class
RTK_EXPORT
HncImageIOFactory
:
public
itk::ObjectFactoryBase
42
{
43
public
:
45
using
Self
=
HncImageIOFactory
;
46
using
Superclass
=
itk::ObjectFactoryBase
;
47
using
Pointer
=
itk::SmartPointer<Self>
;
48
using
ConstPointer
=
itk::SmartPointer<const Self>
;
49
51
const
char
*
52
GetITKSourceVersion
()
const override
53
{
54
return
ITK_SOURCE_VERSION
;
55
}
56
57
const
char
*
58
GetDescription
()
const override
59
{
60
return
"Hnc ImageIO Factory, allows the loading of Hnc images into insight"
;
61
}
62
64
itkFactorylessNewMacro(
Self
);
65
67
itkTypeMacro(
HncImageIOFactory
,
itk::ObjectFactoryBase
);
68
70
static
void
71
RegisterOneFactory
()
72
{
73
ObjectFactoryBase::RegisterFactory
(Self::New());
74
}
75
76
HncImageIOFactory
(
const
Self
&) =
delete
;
77
void
78
operator=(
const
Self
&) =
delete
;
79
80
protected
:
81
HncImageIOFactory
();
82
~
HncImageIOFactory
()
override
=
default
;
83
using
myProductType
=
HncImageIOFactory
;
84
const
myProductType
*
m_MyProduct
;
85
};
86
87
}
// namespace rtk
88
89
#endif // rtkHncImageIOFactory_h
rtk::HncImageIOFactory::GetDescription
const char * GetDescription() const override
Definition:
rtkHncImageIOFactory.h:58
rtkHncImageIO.h
itk::LightObject
ITK_SOURCE_VERSION
#define ITK_SOURCE_VERSION
rtk::HncImageIOFactory
Definition:
rtkHncImageIOFactory.h:41
rtk::HncImageIOFactory::RegisterOneFactory
static void RegisterOneFactory()
Definition:
rtkHncImageIOFactory.h:71
rtk::HncImageIOFactory::m_MyProduct
const myProductType * m_MyProduct
Definition:
rtkHncImageIOFactory.h:84
rtk
Definition:
rtkMatlabSparseMatrix.h:24
AddImageFilter
itk::ObjectFactoryBase
itkImageIOBase.h
itkVersion.h
itk::ObjectFactoryBase::RegisterFactory
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionEnum where=InsertionPositionEnum::INSERT_AT_BACK, vcl_size_t position=0)
itkObjectFactoryBase.h
rtk::HncImageIOFactory::GetITKSourceVersion
const char * GetITKSourceVersion() const override
Definition:
rtkHncImageIOFactory.h:52
itk::SmartPointer< Self >
Generated on Wed Dec 6 2023 05:24:05 for RTK by
1.8.14