VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Image
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 "vtkIOImageModule.h"
// For export macro
68
#include "
vtkImageWriter.h
"
69
70
//BTX
71
namespace
vtkmetaio {
class
MetaImage; }
// forward declaration
72
//ETX
73
74
class
VTKIOIMAGE_EXPORT
vtkMetaImageWriter
:
public
vtkImageWriter
75
{
76
public
:
77
vtkTypeMacro(
vtkMetaImageWriter
,
vtkImageWriter
);
78
void
PrintSelf
(ostream& os,
vtkIndent
indent);
79
81
static
vtkMetaImageWriter
*
New
();
82
84
85
virtual
void
SetFileName
(
const
char
* fname);
86
virtual
char
*
GetFileName
() {
return
this->MHDFileName; }
88
90
91
virtual
void
SetRAWFileName(
const
char
* fname);
92
virtual
char
* GetRAWFileName();
94
95
virtual
void
SetCompression(
bool
compress )
96
{
97
this->Compress = compress;
98
}
99
virtual
bool
GetCompression(
void
)
100
{
101
return
this->Compress;
102
}
103
104
// This is called by the superclass.
105
// This is the method you should override.
106
virtual
void
Write
();
107
108
protected
:
109
vtkMetaImageWriter
();
110
~
vtkMetaImageWriter
();
111
112
vtkSetStringMacro(MHDFileName);
113
char
*
MHDFileName
;
114
bool
Compress
;
115
116
private
:
117
vtkMetaImageWriter
(
const
vtkMetaImageWriter
&);
// Not implemented.
118
void
operator=(
const
vtkMetaImageWriter
&);
// Not implemented.
119
120
//BTX
121
vtkmetaio::MetaImage * MetaImagePtr;
122
//ETX
123
124
};
125
126
#endif
127
128
129
Generated on Thu May 24 2012 22:22:29 for VTK by
1.8.1