VTK  9.1.0
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=========================================================================*/
71#ifndef vtkMetaImageWriter_h
72#define vtkMetaImageWriter_h
73
74#include "vtkIOImageModule.h" // For export macro
75#include "vtkImageWriter.h"
76
77namespace vtkmetaio
78{
79class MetaImage;
80} // forward declaration
81
82class VTKIOIMAGE_EXPORT vtkMetaImageWriter : public vtkImageWriter
83{
84public:
86 void PrintSelf(ostream& os, vtkIndent indent) override;
87
92
96 void SetFileName(VTK_FILEPATH const char* fname) override;
97 VTK_FILEPATH char* GetFileName() override { return this->MHDFileName; }
98
100
103 virtual void SetRAWFileName(VTK_FILEPATH const char* fname);
106
107 virtual void SetCompression(bool compress) { this->Compress = compress; }
108 virtual bool GetCompression(void) { return this->Compress; }
109
110 // This is called by the superclass.
111 // This is the method you should override.
112 void Write() override;
113
114protected:
117
121
122private:
123 vtkMetaImageWriter(const vtkMetaImageWriter&) = delete;
124 void operator=(const vtkMetaImageWriter&) = delete;
125
126 vtkmetaio::MetaImage* MetaImagePtr;
127};
128
129#endif
Writes images to files.
a simple class to control print indentation
Definition: vtkIndent.h:43
write a binary UNC meta image data
virtual void SetRAWFileName(VTK_FILEPATH const char *fname)
Specify the file name of the raw image data.
vtkSetFilePathMacro(MHDFileName)
void Write() override
The main interface which triggers the writer to start.
~vtkMetaImageWriter() override
VTK_FILEPATH char * GetFileName() override
virtual void SetCompression(bool compress)
virtual bool GetCompression(void)
static vtkMetaImageWriter * New()
Construct object with FlipNormals turned off and Normals set to true.
virtual VTK_FILEPATH char * GetRAWFileName()
Specify the file name of the raw image data.
void SetFileName(VTK_FILEPATH const char *fname) override
Specify file name of meta file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_FILEPATH