ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
IO
TransformHDF5
include
itkHDF5TransformIO.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 __itkHDF5TransformIO_h
19
#define __itkHDF5TransformIO_h
20
#include "
itkTransformIOBase.h
"
21
22
#include <string>
23
24
// Avoids KWStyle error from forward declaration below.
25
namespace
itk
26
{
27
}
28
29
// Forward declaration of class H5::H5File
30
namespace
H5
31
{
32
class
H5File;
33
}
34
35
namespace
itk
36
{
46
class
HDF5TransformIO
:
public
TransformIOBase
47
{
48
public
:
49
typedef
HDF5TransformIO
Self
;
50
typedef
TransformIOBase
Superclass
;
51
typedef
SmartPointer< Self >
Pointer
;
52
typedef
TransformBase
TransformType
;
53
typedef
Superclass::TransformPointer
TransformPointer
;
54
typedef
Superclass::TransformListType
TransformListType
;
55
typedef
TransformType::ParametersType
ParametersType
;
57
itkTypeMacro(
HDF5TransformIO
,
TransformIOBase
);
58
itkNewMacro(
Self
);
60
63
virtual
bool
CanReadFile
(
const
char
*);
64
67
virtual
bool
CanWriteFile
(
const
char
*);
68
70
virtual
void
Read
();
71
75
virtual
void
Write
();
76
77
protected
:
78
HDF5TransformIO
();
79
virtual
~HDF5TransformIO
();
80
private
:
82
ParametersType
ReadParameters
(
const
std::string &DataSetName);
83
85
void
WriteParameters
(
const
std::string &name,
86
const
ParametersType
¶meters);
87
89
void
WriteString
(
const
std::string &path,
const
std::string &value);
90
void
WriteString
(
const
std::string &path,
const
char
*value);
91
void
WriteOneTransform
(
const
int
transformIndex,
92
const
TransformType
*transform);
94
95
H5::H5File *
m_H5File
;
96
};
97
}
98
#endif // __itkHDF5TransformIO_h
99
Generated on Tue Jul 10 2012 23:28:08 for ITK by
1.8.1