ITK  4.7.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 ScalarType>
36 {
37 public:
38 
43 
48 
50  itkNewMacro(Self);
51 
53  typedef Object Superclass;
56 
58  itkSetStringMacro(FileName);
59 
61  itkGetStringMacro(FileName);
62 
64  virtual void Update();
65 
68 
70  itkSetObjectMacro( TransformIO, TransformIOType );
71  itkGetConstObjectMacro( TransformIO, TransformIOType );
73 
74 protected:
75  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
76 
79  void CreateTransform(TransformPointer & ptr, const std::string & ClassName);
80 
83  std::string m_FileName;
84 
85 private:
86  TransformFileReaderTemplate(const Self &); //purposely not implemented
87  void operator=(const Self &); //purposely not implemented
88 };
89 
92 
93 } // namespace itk
94 
95 #ifdef ITK_IO_FACTORY_REGISTER_MANAGER
96 #include "itkTransformIOFactoryRegisterManager.h"
97 #endif
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkTransformFileReader.hxx"
101 #endif
102 
103 #endif // __itkTransformFileReade_h
Light weight base class for most itk classes.
TransformIOBaseTemplate< ScalarType > TransformIOType
TransformType::ParametersType ParametersType
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
Abstract superclass defining the Transform IO interface.
TransformFileReaderTemplate Self
TransformIOType::TransformListType TransformListType
std::list< TransformPointer > TransformListType
void CreateTransform(TransformPointer &ptr, const std::string &ClassName)
Class to hold and manage different parameter types used during optimization.
itk::TransformFileReaderTemplate< double > TransformFileReader
TransformIOType::TransformPointer TransformPointer
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:57
TransformBaseTemplate< ScalarType > TransformType
TransformIOType::Pointer m_TransformIO