ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTransformFileReader.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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#ifndef itkTransformFileReader_h
19#define itkTransformFileReader_h
20
21#include "ITKIOTransformBaseExport.h"
22
23#include "itkTransformIOBase.h"
24
25namespace itk
26{
36template <typename TParametersValueType>
37class ITK_TEMPLATE_EXPORT TransformFileReaderTemplate : public LightProcessObject
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(TransformFileReaderTemplate);
41
47
52
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(TransformFileReaderTemplate);
62
64 itkSetStringMacro(FileName);
65
67 itkGetStringMacro(FileName);
68
70 virtual void
72
73#if !defined(ITK_LEGACY_REMOVE)
79 {
80 return &m_TransformList;
81 }
82
83#else
84 const TransformListType *
86 {
87 return &m_TransformList;
88 }
89
90#endif
91 TransformListType *
96
98 itkSetObjectMacro(TransformIO, TransformIOType);
99 itkGetConstObjectMacro(TransformIO, TransformIOType);
101
102protected:
103 void
104 PrintSelf(std::ostream & os, Indent indent) const override;
105
108
111 std::string m_FileName{};
112};
113
116
117} // namespace itk
118
119#if defined ITK_TRANSFORMIO_FACTORY_REGISTER_MANAGER || defined ITK_IO_FACTORY_REGISTER_MANAGER
120# include "itkTransformIOFactoryRegisterManager.h"
121#endif
122
123// Note: Explicit instantiation is done in itkTransformFileReader.cxx
124
125#endif // itkTransformFileReader_h
126
128#ifndef ITK_TEMPLATE_EXPLICIT_TransformFileReader
129// Explicit instantiation is required to ensure correct dynamic_cast
130// behavior across shared libraries.
131//
132// IMPORTANT: Since within the same compilation unit,
133// ITK_TEMPLATE_EXPLICIT_<classname> defined and undefined states
134// need to be considered. This code *MUST* be *OUTSIDE* the header
135// guards.
136//
137#if defined(ITKIOTransformBase_EXPORTS)
138// We are building this library
139# define ITKIOTransformBase_EXPORT_EXPLICIT ITK_FORWARD_EXPORT
140#else
141// We are using this library
142# define ITKIOTransformBase_EXPORT_EXPLICIT ITKIOTransformBase_EXPORT
143#endif
144namespace itk
145{
146
147ITK_GCC_PRAGMA_DIAG_PUSH()
148ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
149
152
153ITK_GCC_PRAGMA_DIAG_POP()
154
155} // end namespace itk
156#undef ITKIOTransformBase_EXPORT_EXPLICIT
157#endif
OptimizerParameters< FixedParametersValueType > FixedParametersType
TParametersValueType ParametersValueType
OptimizerParameters< ParametersValueType > ParametersType
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
typename TransformType::ParametersType ParametersType
TransformListType * GetModifiableTransformList()
TransformBaseTemplate< TParametersValueType > TransformType
typename TransformIOType::TransformListType TransformListType
void PrintSelf(std::ostream &os, Indent indent) const override
typename TransformType::ParametersValueType ParametersValueType
typename TransformType::FixedParametersValueType FixedParametersValueType
typename TransformType::FixedParametersType FixedParametersType
typename TransformIOType::TransformPointer TransformPointer
TransformIOBaseTemplate< ParametersValueType > TransformIOType
Abstract superclass defining the Transform IO interface.
#define ITKIOTransformBase_EXPORT_EXPLICIT
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
itk::TransformFileReaderTemplate< double > TransformFileReader
template class ITKIOTransformBase_EXPORT_EXPLICIT TransformFileReaderTemplate< float >
template class ITKIOTransformBase_EXPORT_EXPLICIT TransformFileReaderTemplate< double >