ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkDCMTKTransformIO.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 itkDCMTKTransformIO_h
19 #define itkDCMTKTransformIO_h
20 
21 #include "IOTransformDCMTKExport.h"
22 
23 #include "itkTransformIOBase.h"
24 
25 namespace itk
26 {
27 
36 template< typename TInternalComputationValueType >
37 class DCMTKTransformIO: public TransformIOBaseTemplate< TInternalComputationValueType >
38 {
39 public:
43 
47 
50 
51  itkNewMacro( Self );
52 
55  virtual bool CanReadFile(const char *);
56 
59  virtual bool CanWriteFile(const char *);
60 
62  virtual void Read();
63 
67  virtual void Write();
68 
71  itkSetStringMacro( FrameOfReferenceUID );
72  itkGetStringMacro( FrameOfReferenceUID );
74 
75 protected:
77  virtual ~DCMTKTransformIO();
78 
79 private:
80  DCMTKTransformIO( const Self & ); // purposely not implemented
81  void operator=( const Self & ); // purposely not implemented
82 
83  std::string m_FrameOfReferenceUID;
84 };
85 
86 } // end namespace itk
87 
88 // Note: Explicit instantiation is done in itkDCMTKTransformIO.cxx
89 
90 #endif // itkDCMTKTransformIO_h
91 
92 #ifndef ITK_TEMPLATE_EXPLICIT_DCMTKTransformIO
93 // Explicit instantiation is required to ensure correct dynamic_cast
94 // behavior across shared libraries.
95 //
96 // IMPORTANT: Since within the same compilation unit,
97 // ITK_TEMPLATE_EXPLICIT_<classname> defined and undefined states
98 // need to be considered. This code *MUST* be *OUTSIDE* the header
99 // guards.
100 //
101 # if defined( IOTransformDCMTK_EXPORTS )
102 // We are building this library
103 # define IOTransformDCMTK_EXPORT_EXPLICIT
104 # else
105 // We are using this library
106 # define IOTransformDCMTK_EXPORT_EXPLICIT IOTransformDCMTK_EXPORT
107 # endif
108 namespace itk
109 {
110 
111 #if defined( __GNUC__ )
112 #pragma GCC diagnostic push
113 #pragma GCC diagnostic ignored "-Wattributes"
114 #endif
115 
118 
119 #if defined( __GNUC__ )
120 #pragma GCC diagnostic pop
121 #endif
122 
123 } // end namespace itk
124 # undef IOTransformDCMTK_EXPORT_EXPLICIT
125 #endif
SmartPointer< Self > Pointer
virtual void Write()
Light weight base class for most itk classes.
virtual bool CanReadFile(const char *)
void operator=(const Self &)
Abstract superclass defining the Transform IO interface.
Read transforms in DICOM format.
template class IOTransformDCMTK_EXPORT_EXPLICIT DCMTKTransformIO< double >
virtual ~DCMTKTransformIO()
template class IOTransformDCMTK_EXPORT_EXPLICIT DCMTKTransformIO< float >
TransformBaseTemplate< ParametersValueType > TransformType
Superclass::ConstTransformListType ConstTransformListType
Superclass::TransformType TransformType
virtual bool CanWriteFile(const char *)
virtual void Read()
#define IOTransformDCMTK_EXPORT_EXPLICIT
Superclass::TransformListType TransformListType
TransformIOBaseTemplate< TInternalComputationValueType > Superclass