Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
itkTransformixInputPointFileReader.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 __itkTransformixInputPointFileReader_h
16
#define __itkTransformixInputPointFileReader_h
17
18
#include "
itkMeshFileReaderBase.h
"
19
20
#include <fstream>
21
22
namespace
itk
23
{
24
41
template
<
class
TOutputMesh>
42
class
TransformixInputPointFileReader
:
public
MeshFileReaderBase
<TOutputMesh>
43
{
44
public
:
46
typedef
TransformixInputPointFileReader
Self
;
47
typedef
MeshFileReaderBase<TOutputMesh>
Superclass
;
48
typedef
SmartPointer<Self>
Pointer
;
49
typedef
SmartPointer<const Self>
ConstPointer
;
50
52
itkNewMacro(
Self
);
53
55
itkTypeMacro(
TransformixInputPointFileReader
,
MeshFileReaderBase
);
56
58
typedef
typename
Superclass::DataObjectPointer
DatabObjectPointer
;
59
typedef
typename
Superclass::OutputMeshType
OutputMeshType
;
60
typedef
typename
Superclass::OutputMeshPointer
OutputMeshPointer
;
61
65
itkGetConstMacro( PointsAreIndices,
bool
);
66
78
itkGetConstMacro( NumberOfPoints,
unsigned
long
);
79
83
virtual
void
GenerateOutputInformation
(
void
);
84
85
protected
:
86
TransformixInputPointFileReader
();
87
virtual
~TransformixInputPointFileReader
();
88
90
virtual
void
GenerateData
(
void
);
91
92
unsigned
long
m_NumberOfPoints
;
93
bool
m_PointsAreIndices
;
94
95
std::ifstream
m_Reader
;
96
97
private
:
98
TransformixInputPointFileReader
(
const
Self
&);
//purposely not implemented
99
void
operator=
(
const
Self
&);
//purposely not implemented
100
101
};
// end class
102
103
}
// end namespace itk
104
105
#ifndef ITK_MANUAL_INSTANTIATION
106
#include "itkTransformixInputPointFileReader.hxx"
107
#endif
108
109
#endif
Generated on 21-03-2014 for elastix by
1.8.1.2