18 #ifndef itkHDF5TransformIO_h
19 #define itkHDF5TransformIO_h
21 #include "ITKIOTransformHDF5Export.h"
81 template<
typename TParametersValueType>
108 virtual bool CanReadFile(
const char *) ITK_OVERRIDE;
112 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE;
115 virtual
void Read() ITK_OVERRIDE;
120 virtual
void Write() ITK_OVERRIDE;
124 virtual ~HDF5TransformIOTemplate() ITK_OVERRIDE;
128 ParametersType ReadParameters(const std::
string &DataSetName) const;
133 void WriteParameters(const std::
string &name,
135 void WriteFixedParameters(const std::
string &name,
140 void WriteString(const std::
string &path, const std::
string &value);
141 void WriteString(const std::
string &path, const
char *value);
142 void WriteOneTransform(const
int transformIndex,
157 #endif // itkHDF5TransformIO_h
160 #ifndef ITK_TEMPLATE_EXPLICIT_HDF5TransformIO
169 # if defined( ITKIOTransformHDF5_EXPORTS )
171 # define ITKIOTransformHDF5_EXPORT_EXPLICIT ITK_FORWARD_EXPORT
174 # define ITKIOTransformHDF5_EXPORT_EXPLICIT ITKIOTransformHDF5_EXPORT
178 #ifdef ITK_HAS_GCC_PRAGMA_DIAG_PUSHPOP
179 ITK_GCC_PRAGMA_DIAG_PUSH()
181 ITK_GCC_PRAGMA_DIAG(ignored
"-Wattributes")
186 #ifdef ITK_HAS_GCC_PRAGMA_DIAG_PUSHPOP
187 ITK_GCC_PRAGMA_DIAG_POP()
189 ITK_GCC_PRAGMA_DIAG(warning
"-Wattributes")
193 # undef ITKIOTransformHDF5_EXPORT_EXPLICIT
template class ITKIOTransformHDF5_EXPORT_EXPLICIT HDF5TransformIOTemplate< float >
Light weight base class for most itk classes.
static const std::string transformFixedName
static const std::string transformParamsName
static const std::string HDFVersion
const std::string ITKIOTransformHDF5_EXPORT GetTransformName(int)
template class ITKIOTransformHDF5_EXPORT_EXPLICIT HDF5TransformIOTemplate< double >
static const std::string transformTypeName
static const std::string OSVersion
Class to hold and manage different parameter types used during optimization.
Secondary bass class of HDF5CommonPathNames common between templates.
static const std::string ItkVersion
static const std::string OSName
Implements an Automatic Pointer to an object.
static const std::string transformGroupName