VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
101
#ifndef vtkMetaImageWriter_h
102
#define vtkMetaImageWriter_h
103
104
#include "vtkIOImageModule.h"
// For export macro
105
#include "
vtkImageWriter.h
"
106
107
namespace
vtkmetaio
108
{
109
class
MetaImage;
110
}
// forward declaration
111
112
class
VTKIOIMAGE_EXPORT
vtkMetaImageWriter
:
public
vtkImageWriter
113
{
114
public
:
115
vtkTypeMacro(
vtkMetaImageWriter
,
vtkImageWriter
);
116
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
117
121
static
vtkMetaImageWriter
*
New
();
122
126
void
SetFileName
(
VTK_FILEPATH
const
char
* fname)
override
;
127
VTK_FILEPATH
char
*
GetFileName
()
override
{
return
this->MHDFileName; }
128
130
133
virtual
void
SetRAWFileName
(
VTK_FILEPATH
const
char
* fname);
134
virtual
VTK_FILEPATH
char
*
GetRAWFileName
();
136
137
virtual
void
SetCompression
(
bool
compress) { this->Compress = compress; }
138
virtual
bool
GetCompression
(
void
) {
return
this->Compress; }
139
140
// This is called by the superclass.
141
// This is the method you should override.
142
void
Write
()
override
;
143
144
protected
:
145
vtkMetaImageWriter
();
146
~vtkMetaImageWriter
()
override
;
147
148
vtkSetFilePathMacro
(MHDFileName);
149
char
*
MHDFileName
;
150
bool
Compress
;
151
152
private
:
153
vtkMetaImageWriter
(
const
vtkMetaImageWriter
&) =
delete
;
154
void
operator=(
const
vtkMetaImageWriter
&) =
delete
;
155
156
vtkmetaio::MetaImage* MetaImagePtr;
157
};
158
159
#endif
vtkImageWriter
Writes images to files.
Definition:
vtkImageWriter.h:82
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkMetaImageWriter
write a binary UNC meta image data
Definition:
vtkMetaImageWriter.h:113
vtkMetaImageWriter::SetRAWFileName
virtual void SetRAWFileName(VTK_FILEPATH const char *fname)
Specify the file name of the raw image data.
vtkMetaImageWriter::vtkSetFilePathMacro
vtkSetFilePathMacro(MHDFileName)
vtkMetaImageWriter::Write
void Write() override
The main interface which triggers the writer to start.
vtkMetaImageWriter::~vtkMetaImageWriter
~vtkMetaImageWriter() override
vtkMetaImageWriter::GetFileName
VTK_FILEPATH char * GetFileName() override
Definition:
vtkMetaImageWriter.h:127
vtkMetaImageWriter::vtkMetaImageWriter
vtkMetaImageWriter()
vtkMetaImageWriter::SetCompression
virtual void SetCompression(bool compress)
Definition:
vtkMetaImageWriter.h:137
vtkMetaImageWriter::GetCompression
virtual bool GetCompression(void)
Definition:
vtkMetaImageWriter.h:138
vtkMetaImageWriter::New
static vtkMetaImageWriter * New()
Construct object with FlipNormals turned off and Normals set to true.
vtkMetaImageWriter::GetRAWFileName
virtual VTK_FILEPATH char * GetRAWFileName()
Specify the file name of the raw image data.
vtkMetaImageWriter::SetFileName
void SetFileName(VTK_FILEPATH const char *fname) override
Specify file name of meta file.
vtkMetaImageWriter::MHDFileName
char * MHDFileName
Definition:
vtkMetaImageWriter.h:149
vtkMetaImageWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMetaImageWriter::Compress
bool Compress
Definition:
vtkMetaImageWriter.h:150
vtkmetaio
Definition:
vtkMetaImageReader.h:176
vtkImageWriter.h
VTK_FILEPATH
#define VTK_FILEPATH
Definition:
vtkWrappingHints.h:46
Generated on Fri Apr 21 2023 10:28:57 for VTK by
1.9.6