Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
Numerics
FEM
itkFEMLightObject.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Insight Segmentation & Registration Toolkit
4
Module: $RCSfile: itkFEMLightObject.h,v $
5
Language: C++
6
Date: $Date: 2009-01-29 21:55:14 $
7
Version: $Revision: 1.18 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
17
18
#ifndef __itkFEMLightObject_h
19
#define __itkFEMLightObject_h
20
21
#include "
itkFEMMacro.h
"
22
#include "
itkFEMException.h
"
23
#include <iostream>
24
25
namespace
itk {
26
namespace
fem {
27
38
class
FEMLightObject
39
#ifdef FEM_USE_SMART_POINTERS
40
:
public
itk::LightObject
41
#endif
42
{
48
#ifndef FEM_USE_SMART_POINTERS
49
FEM_ABSTRACT_CLASS
(
FEMLightObject
,
FEMLightObject
)
50
#else
51
54
FEM_ABSTRACT_CLASS
(
FEMLightObject
,
itk::LightObject
)
55
#endif
56
57
public
:
62
typedef
Self
Baseclass
;
63
69
virtual
Baseclass::Pointer
Clone
()
const
= 0;
70
79
virtual
int
ClassID
()
const
= 0;
80
96
virtual
void
Read
( std::istream& f,
void
* info );
97
110
virtual
void
Write
( std::ostream& f )
const
;
111
121
static
FEMLightObject::Pointer
CreateFromStream
( std::istream& f,
void
*info );
122
127
static
void
SkipWhiteSpace
( std::istream& f );
128
133
static
const
std::string
whitespaces
;
134
135
136
#ifdef FEM_USE_SMART_POINTERS
137
protected
:
// If we're using smart pointers, constructors and destructors should be protected.
138
#endif
139
142
FEMLightObject
() :
GN
(-1) {}
143
147
virtual
~FEMLightObject
() {}
148
152
FEMLightObject
(
const
FEMLightObject
& o) {
GN
=o.
GN
; }
153
154
155
public
:
163
int
GN
;
164
165
};
166
167
171
typedef
FEMObjectFactory<FEMLightObject>
FEMOF
;
172
173
174
}}
// end namespace itk::fem
175
176
#endif // #ifndef __itkFEMLightObject_h
Generated at Sat Feb 2 2013 23:36:46 for
Orfeo Toolbox
with
doxygen 1.8.1.1