ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkDCMTKTransformIO.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 itkDCMTKTransformIO_h
19#define itkDCMTKTransformIO_h
20
21#include "IOTransformDCMTKExport.h"
22
23#include "itkTransformIOBase.h"
24
25namespace itk
26{
27
41template <typename TInternalComputationValueType>
42class DCMTKTransformIO : public TransformIOBaseTemplate<TInternalComputationValueType>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(DCMTKTransformIO);
46
50
54
56 itkOverrideGetNameOfClassMacro(DCMTKTransformIO);
57
58 itkNewMacro(Self);
59
62 bool
63 CanReadFile(const char *) override;
64
67 bool
68 CanWriteFile(const char *) override;
69
71 void
72 Read() override;
73
77 void
78 Write() override;
79
82 itkSetStringMacro(FrameOfReferenceUID);
83 itkGetStringMacro(FrameOfReferenceUID);
84
85protected:
88
89 void
90 PrintSelf(std::ostream & os, Indent indent) const override;
91
92private:
94};
95
96} // end namespace itk
97
98#endif // itkDCMTKTransformIO_h
99
100#ifndef ITK_TEMPLATE_EXPLICIT_DCMTKTransformIO
101// Explicit instantiation is required to ensure correct dynamic_cast
102// behavior across shared libraries.
103//
104// IMPORTANT: Since within the same compilation unit,
105// ITK_TEMPLATE_EXPLICIT_<classname> defined and undefined states
106// need to be considered. This code *MUST* be *OUTSIDE* the header
107// guards.
108//
109#if defined(IOTransformDCMTK_EXPORTS)
110// We are building this library
111# define IOTransformDCMTK_EXPORT_EXPLICIT
112#else
113// We are using this library
114# define IOTransformDCMTK_EXPORT_EXPLICIT IOTransformDCMTK_EXPORT
115#endif
116namespace itk
117{
118
119ITK_GCC_PRAGMA_DIAG_PUSH()
120ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
123ITK_GCC_PRAGMA_DIAG_POP()
124
125} // end namespace itk
126#undef IOTransformDCMTK_EXPORT_EXPLICIT
127#endif
TransformIOBaseTemplate< TInternalComputationValueType > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
typename Superclass::TransformType TransformType
void Write() override
bool CanWriteFile(const char *) override
bool CanReadFile(const char *) override
SmartPointer< Self > Pointer
typename Superclass::TransformListType TransformListType
typename Superclass::ConstTransformListType ConstTransformListType
~DCMTKTransformIO() override
void Read() override
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
TransformBaseTemplate< ParametersValueType > TransformType
#define IOTransformDCMTK_EXPORT_EXPLICIT
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
template class IOTransformDCMTK_EXPORT_EXPLICIT DCMTKTransformIO< double >
template class IOTransformDCMTK_EXPORT_EXPLICIT DCMTKTransformIO< float >