ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
IO
NRRD
include
itkNrrdImageIO.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 __itkNrrdImageIO_h
19
#define __itkNrrdImageIO_h
20
21
22
#include "
itkImageIOBase.h
"
23
#include <fstream>
24
25
namespace
itk
26
{
36
class
ITK_EXPORT
NrrdImageIO
:
public
ImageIOBase
37
{
38
public
:
40
typedef
NrrdImageIO
Self
;
41
typedef
ImageIOBase
Superclass
;
42
typedef
SmartPointer< Self >
Pointer
;
43
45
itkNewMacro(
Self
);
46
48
itkTypeMacro(
NrrdImageIO
,
ImageIOBase
);
49
55
virtual
bool
SupportsDimension(
unsigned
long
);
56
59
virtual
bool
CanReadFile(
const
char
*);
60
62
virtual
void
ReadImageInformation();
63
65
virtual
void
Read(
void
*buffer);
66
69
virtual
bool
CanWriteFile(
const
char
*);
70
72
virtual
void
WriteImageInformation();
73
76
virtual
void
Write(
const
void
*buffer);
77
78
protected
:
79
NrrdImageIO
();
80
~
NrrdImageIO
();
81
void
PrintSelf(std::ostream & os,
Indent
indent)
const
;
82
85
int
ITKToNrrdComponentType(
const
ImageIOBase::IOComponentType
)
const
;
86
87
ImageIOBase::IOComponentType
NrrdToITKComponentType(
const
int
)
const
;
88
89
private
:
90
NrrdImageIO
(
const
Self
&);
//purposely not implemented
91
void
operator=(
const
Self
&);
//purposely not implemented
92
};
93
}
// end namespace itk
94
95
#endif // __itkNrrdImageIO_h
96
Generated on Sun Dec 9 2012 01:21:16 for ITK by
1.8.2