Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Core
ComponentBaseClasses
elxImageSamplerBase.h
Go to the documentation of this file.
1
/*======================================================================
2
3
This file is part of the elastix software.
4
5
Copyright (c) University Medical Center Utrecht. All rights reserved.
6
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7
details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
======================================================================*/
14
15
#ifndef __elxImageSamplerBase_h
16
#define __elxImageSamplerBase_h
17
19
#include "
elxMacro.h
"
20
21
#include "
elxBaseComponentSE.h
"
22
23
#include "
itkImageSamplerBase.h
"
24
25
26
namespace
elastix
27
{
28
//using namespace itk; not here because itk::ImageSamplerBase exists also.
29
40
template
<
class
TElastix>
41
class
ImageSamplerBase
:
public
BaseComponentSE
<TElastix>
42
{
43
public
:
44
46
typedef
ImageSamplerBase
Self
;
47
typedef
BaseComponentSE<TElastix>
Superclass
;
48
50
itkTypeMacro(
ImageSamplerBase
,
BaseComponentSE
);
51
53
typedef
typename
Superclass::ElastixType
ElastixType
;
54
typedef
typename
Superclass::ElastixPointer
ElastixPointer
;
55
typedef
typename
Superclass::ConfigurationType
ConfigurationType
;
56
typedef
typename
Superclass::ConfigurationPointer
ConfigurationPointer
;
57
typedef
typename
Superclass::RegistrationType
RegistrationType
;
58
typedef
typename
Superclass::RegistrationPointer
RegistrationPointer
;
59
61
typedef
typename
ElastixType::FixedImageType
InputImageType
;
62
64
typedef
itk::ImageSamplerBase< InputImageType >
ITKBaseType
;
65
67
virtual
ITKBaseType
*
GetAsITKBaseType
(
void
)
68
{
69
return
dynamic_cast<
ITKBaseType
*
>
(
this
);
70
}
71
73
virtual
const
ITKBaseType
*
GetAsITKBaseType
(
void
)
const
74
{
75
return
dynamic_cast<
const
ITKBaseType
*
>
(
this
);
76
}
77
82
virtual
void
BeforeEachResolutionBase(
void
);
83
84
protected
:
85
87
ImageSamplerBase
() {}
89
virtual
~ImageSamplerBase
() {}
90
91
private
:
92
94
ImageSamplerBase
(
const
Self
& );
// purposely not implemented
96
void
operator=
(
const
Self
& );
// purposely not implemented
97
98
};
// end class ImageSamplerBase
99
100
101
}
// end namespace elastix
102
103
104
105
#ifndef ITK_MANUAL_INSTANTIATION
106
#include "elxImageSamplerBase.hxx"
107
#endif
108
109
#endif // end #ifndef __elxImageSamplerBase_h
110
Generated on 27-06-2013 for elastix by
1.8.3.1