VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkMetaImageWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMetaImageWriter.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
64
#ifndef __vtkMetaImageWriter_h
65
#define __vtkMetaImageWriter_h
66
67
#include "
vtkImageWriter.h
"
68
69
//BTX
70
namespace
vtkmetaio {
class
MetaImage; }
// forward declaration
71
//ETX
72
73
class
VTK_IO_EXPORT
vtkMetaImageWriter
:
public
vtkImageWriter
74
{
75
public
:
76
vtkTypeMacro(
vtkMetaImageWriter
,
vtkImageWriter
);
77
void
PrintSelf
(ostream& os,
vtkIndent
indent);
78
80
static
vtkMetaImageWriter
*
New
();
81
83
84
virtual
void
SetFileName
(
const
char
* fname);
85
virtual
char
*
GetFileName
() {
return
this->MHDFileName; }
87
89
90
virtual
void
SetRAWFileName(
const
char
* fname);
91
virtual
char
* GetRAWFileName();
93
94
virtual
void
SetCompression(
bool
compress )
95
{
96
this->Compress = compress;
97
}
98
virtual
bool
GetCompression(
void
)
99
{
100
return
this->Compress;
101
}
102
103
// This is called by the superclass.
104
// This is the method you should override.
105
virtual
void
Write
();
106
107
protected
:
108
vtkMetaImageWriter
();
109
~
vtkMetaImageWriter
();
110
111
vtkSetStringMacro(MHDFileName);
112
char
*
MHDFileName
;
113
bool
Compress
;
114
115
private
:
116
vtkMetaImageWriter
(
const
vtkMetaImageWriter
&);
// Not implemented.
117
void
operator=(
const
vtkMetaImageWriter
&);
// Not implemented.
118
119
//BTX
120
vtkmetaio::MetaImage * MetaImagePtr;
121
//ETX
122
123
};
124
125
#endif
126
127
128
Generated on Wed May 30 2012 13:22:17 for VTK by
1.8.1