ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkMatlabTransformIO.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 itkMatlabTransformIO_h
19#define itkMatlabTransformIO_h
20
21#include "ITKIOTransformMatlabExport.h"
22
23#include "itkTransformIOBase.h"
24
25namespace itk
26{
31template <typename ParametersValueType>
32class ITK_TEMPLATE_EXPORT MatlabTransformIOTemplate : public TransformIOBaseTemplate<ParametersValueType>
33{
34public:
38 using typename Superclass::TransformType;
39 using typename Superclass::TransformPointer;
40 using typename Superclass::TransformListType;
41
43
46 itkOverrideGetNameOfClassMacro(MatlabTransformIOTemplate);
47 itkNewMacro(Self);
51 bool
52 CanReadFile(const char *) override;
53
56 bool
57 CanWriteFile(const char *) override;
58
60 void
61 Read() override;
62
66 void
67 Write() override;
68
69protected:
72};
73
76
77} // namespace itk
78
79// Note: Explicit instantiation is done in itkMatlabTransformIO.cxx
80
81#endif // itkMatlabTransformIO_h
82
84#ifndef ITK_TEMPLATE_EXPLICIT_MatlabTransformIO
85// Explicit instantiation is required to ensure correct dynamic_cast
86// behavior across shared libraries.
87//
88// IMPORTANT: Since within the same compilation unit,
89// ITK_TEMPLATE_EXPLICIT_<classname> defined and undefined states
90// need to be considered. This code *MUST* be *OUTSIDE* the header
91// guards.
92//
93#if defined(ITKIOTransformMatlab_EXPORTS)
94// We are building this library
95# define ITKIOTransformMatlab_EXPORT_EXPLICIT ITK_FORWARD_EXPORT
96#else
97// We are using this library
98# define ITKIOTransformMatlab_EXPORT_EXPLICIT ITKIOTransformMatlab_EXPORT
99#endif
100namespace itk
101{
102ITK_GCC_PRAGMA_DIAG_PUSH()
103ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
106ITK_GCC_PRAGMA_DIAG_POP()
107} // end namespace itk
108#undef ITKIOTransformMatlab_EXPORT_EXPLICIT
109#endif
Create instances of MatlabTransformIOTemplate objects.
bool CanReadFile(const char *) override
typename TransformIOBaseTemplate< ParametersValueType >::ConstTransformListType ConstTransformListType
bool CanWriteFile(const char *) override
TransformIOBaseTemplate< ParametersValueType > Superclass
MatlabTransformIOTemplate Self
Implements transparent reference counting.
TransformBaseTemplate< ParametersValueType > TransformType
std::list< ConstTransformPointer > ConstTransformListType
#define ITKIOTransformMatlab_EXPORT_EXPLICIT
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
template class ITKIOTransformMatlab_EXPORT_EXPLICIT MatlabTransformIOTemplate< double >
MatlabTransformIOTemplate< double > MatlabTransformIO
template class ITKIOTransformMatlab_EXPORT_EXPLICIT MatlabTransformIOTemplate< float >