Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Core
Install
elxBaseComponent.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
27
#ifndef __elxBaseComponent_h
28
#define __elxBaseComponent_h
29
31
#ifdef _MSC_VER
32
#pragma warning ( disable : 4786 )
33
#pragma warning ( disable : 4503 )
34
#endif
35
36
#include <iostream>
37
#include <sstream>
38
40
#define __ELASTIX_VERSION 4.500
41
43
namespace
elastix
44
{
45
61
class
BaseComponent
62
{
63
public
:
64
71
virtual
int
BeforeAllBase
(
void
) {
return
0;};
72
virtual
int
BeforeAll
(
void
) {
return
0;};
73
80
virtual
void
BeforeRegistrationBase
(
void
) {};
81
virtual
void
BeforeEachResolutionBase
(
void
) {};
82
virtual
void
AfterEachResolutionBase
(
void
) {};
83
virtual
void
AfterEachIterationBase
(
void
) {};
84
virtual
void
AfterRegistrationBase
(
void
) {};
85
92
virtual
void
BeforeRegistration
(
void
) {};
93
virtual
void
BeforeEachResolution
(
void
) {};
94
virtual
void
AfterEachResolution
(
void
) {};
95
virtual
void
AfterEachIteration
(
void
) {};
96
virtual
void
AfterRegistration
(
void
) {};
97
103
virtual
const
char
*
elxGetClassName
(
void
)
const
104
{
105
return
"BaseComponent"
;
106
}
107
115
virtual
void
SetComponentLabel
(
const
char
* label,
unsigned
int
idx)
116
{
117
std::ostringstream makestring;
118
makestring << label << idx;
119
this->
m_ComponentLabel
= makestring.str();
120
}
121
123
virtual
const
char
*
GetComponentLabel
(
void
)
const
124
{
125
return
this->
m_ComponentLabel
.c_str();
126
}
127
128
protected
:
129
130
BaseComponent
() {}
131
virtual
~BaseComponent
() {}
132
133
private
:
134
135
BaseComponent
(
const
BaseComponent
& );
// purposely not implemented
136
void
operator=
(
const
BaseComponent
& );
// purposely not implemented
137
138
std::string
m_ComponentLabel
;
139
140
};
// end class BaseComponent
141
142
143
}
// end namespace elastix
144
146
namespace
elx = elastix;
147
148
149
#endif // end #ifndef __elxBaseComponent_h
150
Generated on 27-06-2013 for elastix by
1.8.3.1