ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkTransformFileReader.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 #ifndef itkTransformFileReader_h
19 #define itkTransformFileReader_h
20 
21 #include "itkTransformIOBase.h"
22 
23 namespace itk
24 {
34 template<typename TParametersValueType>
36 {
37 public:
38 
43 
48 
52 
54  itkNewMacro(Self);
55 
57  typedef Object Superclass;
60 
62  itkSetStringMacro(FileName);
63 
65  itkGetStringMacro(FileName);
66 
68  virtual void Update();
69 
70 #if !defined( ITK_FUTURE_LEGACY_REMOVE )
71 
75 #else
76 
79 #endif
80 
82  itkSetObjectMacro( TransformIO, TransformIOType );
83  itkGetConstObjectMacro( TransformIO, TransformIOType );
85 
86 protected:
87  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
88 
91  void CreateTransform(TransformPointer & ptr, const std::string & ClassName);
92 
95  std::string m_FileName;
96 
97 private:
98  TransformFileReaderTemplate(const Self &); //purposely not implemented
99  void operator=(const Self &); //purposely not implemented
100 };
101 
104 
105 } // namespace itk
106 
107 #ifdef ITK_IO_FACTORY_REGISTER_MANAGER
108 #include "itkTransformIOFactoryRegisterManager.h"
109 #endif
110 
111 #ifndef ITK_MANUAL_INSTANTIATION
112 #include "itkTransformFileReader.hxx"
113 #endif
114 
115 #endif // itkTransformFileReade_h
Light weight base class for most itk classes.
TransformFileReaderTemplate Self
TransformIOType::TransformListType TransformListType
TransformIOType::Pointer m_TransformIO
TParametersValueType ParametersValueType
TransformBaseTemplate< TParametersValueType > TransformType
TransformType::FixedParametersValueType FixedParametersValueType
ParametersValueType FixedParametersValueType
Class to hold and manage different parameter types used during optimization.
TransformType::FixedParametersType FixedParametersType
TransformType::ParametersType ParametersType
TransformIOType::TransformPointer TransformPointer
itk::TransformFileReaderTemplate< double > TransformFileReader
TransformIOBaseTemplate< ParametersValueType > TransformIOType
void CreateTransform(TransformPointer &ptr, const std::string &ClassName)
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
virtual void PrintSelf(std::ostream &os, Indent indent) const override
TransformType::ParametersValueType ParametersValueType
Base class for most ITK classes.
Definition: itkObject.h:57