Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
Loading...
Searching...
No Matches
Common
itkTransformixInputPointFileReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright UMC Utrecht and contributors
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
* http://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 itkTransformixInputPointFileReader_h
20
#define itkTransformixInputPointFileReader_h
21
22
#include "
itkMeshFileReaderBase.h
"
23
24
#include <fstream>
25
26
namespace
itk
27
{
28
45
template
<
class
TOutputMesh>
46
class
ITK_TEMPLATE_EXPORT
TransformixInputPointFileReader
:
public
MeshFileReaderBase
<TOutputMesh>
47
{
48
public
:
49
ITK_DISALLOW_COPY_AND_MOVE
(
TransformixInputPointFileReader
);
50
52
using
Self
=
TransformixInputPointFileReader
;
53
using
Superclass
=
MeshFileReaderBase<TOutputMesh>
;
54
using
Pointer
= SmartPointer<Self>;
55
using
ConstPointer
= SmartPointer<const Self>;
56
58
itkNewMacro(
Self
);
59
61
itkTypeMacro(
TransformixInputPointFileReader
,
MeshFileReaderBase
);
62
64
using
typename Superclass::DataObjectPointer;
65
using
typename Superclass::OutputMeshType;
66
using
typename Superclass::OutputMeshPointer;
67
71
itkGetConstMacro(PointsAreIndices,
bool
);
72
84
itkGetConstMacro(NumberOfPoints,
unsigned
long
);
85
89
void
90
GenerateOutputInformation
()
override
;
91
92
protected
:
93
TransformixInputPointFileReader
() =
default
;
94
~TransformixInputPointFileReader
()
override
=
default
;
95
97
void
98
GenerateData
()
override
;
99
100
private
:
101
unsigned
long
m_NumberOfPoints{ 0 };
102
bool
m_PointsAreIndices{
false
};
103
104
std::ifstream m_Reader{};
105
};
106
107
}
// end namespace itk
108
109
#ifndef ITK_MANUAL_INSTANTIATION
110
# include "itkTransformixInputPointFileReader.hxx"
111
#endif
112
113
#endif
SmartPointer< Self >
itk::MeshFileReaderBase
Base class for mesh readers.
Definition
itkMeshFileReaderBase.h:38
itk::TransformixInputPointFileReader
A reader that understands transformix input point files.
Definition
itkTransformixInputPointFileReader.h:47
itk::TransformixInputPointFileReader::GenerateData
void GenerateData() override
itk::TransformixInputPointFileReader::GenerateOutputInformation
void GenerateOutputInformation() override
itk::TransformixInputPointFileReader::~TransformixInputPointFileReader
~TransformixInputPointFileReader() override=default
itk::TransformixInputPointFileReader::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(TransformixInputPointFileReader)
itk::TransformixInputPointFileReader::TransformixInputPointFileReader
TransformixInputPointFileReader()=default
itk::TransformixInputPointFileReader::ConstPointer
SmartPointer< const Self > ConstPointer
Definition
itkTransformixInputPointFileReader.h:55
itkMeshFileReaderBase.h
itk
Definition
itkAdvancedImageToImageMetric.h:43
Generated on 1739326392 for elastix by
1.9.8