VTK  9.3.0
vtkMetaImageWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
62#ifndef vtkMetaImageWriter_h
63#define vtkMetaImageWriter_h
64
65#include "vtkIOImageModule.h" // For export macro
66#include "vtkImageWriter.h"
67
68namespace vtkmetaio
69{
70class MetaImage;
71} // forward declaration
72
73VTK_ABI_NAMESPACE_BEGIN
74class VTKIOIMAGE_EXPORT vtkMetaImageWriter : public vtkImageWriter
75{
76public:
78 void PrintSelf(ostream& os, vtkIndent indent) override;
79
84
88 void SetFileName(VTK_FILEPATH const char* fname) override;
89 VTK_FILEPATH VTK_FUTURE_CONST char* GetFileName() VTK_FUTURE_CONST override
90 {
91 return this->MHDFileName;
92 }
93
95
98 virtual void SetRAWFileName(VTK_FILEPATH const char* fname);
99 virtual VTK_FILEPATH VTK_FUTURE_CONST char* GetRAWFileName() VTK_FUTURE_CONST;
101
102 virtual void SetCompression(bool compress) { this->Compress = compress; }
103 virtual bool GetCompression() { return this->Compress; }
104
105 // This is called by the superclass.
106 // This is the method you should override.
107 void Write() override;
108
109protected:
112
116
117private:
118 vtkMetaImageWriter(const vtkMetaImageWriter&) = delete;
119 void operator=(const vtkMetaImageWriter&) = delete;
120
121 vtkmetaio::MetaImage* MetaImagePtr;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
Writes images to files.
a simple class to control print indentation
Definition vtkIndent.h:38
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.
virtual VTK_FILEPATH VTK_FUTURE_CONST char * GetRAWFileName() VTK_FUTURE_CONST
Specify the file name of the raw image data.
~vtkMetaImageWriter() override
virtual bool GetCompression()
static vtkMetaImageWriter * New()
Construct object with FlipNormals turned off and Normals set to true.
void SetFileName(VTK_FILEPATH const char *fname) override
Specify file name of meta file.
VTK_FILEPATH VTK_FUTURE_CONST char * GetFileName() VTK_FUTURE_CONST override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_FILEPATH