VTK
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=========================================================================*/
65#ifndef vtkMetaImageWriter_h
66#define vtkMetaImageWriter_h
67
68#include "vtkIOImageModule.h" // For export macro
69#include "vtkImageWriter.h"
70
71namespace vtkmetaio { class MetaImage; } // forward declaration
72
73class VTKIOIMAGE_EXPORT vtkMetaImageWriter : public vtkImageWriter
74{
75public:
77 void PrintSelf(ostream& os, vtkIndent indent);
78
83
87 virtual void SetFileName(const char* fname);
88 virtual char* GetFileName() { return this->MHDFileName; }
89
91
94 virtual void SetRAWFileName(const char* fname);
95 virtual char* GetRAWFileName();
97
98 virtual void SetCompression( bool compress )
99 {
100 this->Compress = compress;
101 }
102 virtual bool GetCompression( void )
103 {
104 return this->Compress;
105 }
106
107 // This is called by the superclass.
108 // This is the method you should override.
109 virtual void Write();
110
111protected:
114
115 vtkSetStringMacro(MHDFileName);
118
119private:
120 vtkMetaImageWriter(const vtkMetaImageWriter&) VTK_DELETE_FUNCTION;
121 void operator=(const vtkMetaImageWriter&) VTK_DELETE_FUNCTION;
122
123 vtkmetaio::MetaImage * MetaImagePtr;
124
125};
126
127#endif
128
129
130
Writes images to files.
a simple class to control print indentation
Definition: vtkIndent.h:40
write a binary UNC meta image data
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetRAWFileName(const char *fname)
Specify the file name of the raw image data.
virtual void Write()
The main interface which triggers the writer to start.
virtual void SetCompression(bool compress)
virtual bool GetCompression(void)
static vtkMetaImageWriter * New()
Construct object with FlipNormals turned off and Normals set to true.
virtual char * GetFileName()
virtual void SetFileName(const char *fname)
Specify file name of meta file.
virtual char * GetRAWFileName()