VTK  9.3.0
vtkBMPWriter.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
17#ifndef vtkBMPWriter_h
18#define vtkBMPWriter_h
19
20#include "vtkIOImageModule.h" // For export macro
21#include "vtkImageWriter.h"
22
23VTK_ABI_NAMESPACE_BEGIN
25
26class VTKIOIMAGE_EXPORT vtkBMPWriter : public vtkImageWriter
27{
28public:
29 static vtkBMPWriter* New();
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
37 vtkSetMacro(WriteToMemory, vtkTypeUBool);
38 vtkGetMacro(WriteToMemory, vtkTypeUBool);
39 vtkBooleanMacro(WriteToMemory, vtkTypeUBool);
41
43
48 vtkGetObjectMacro(Result, vtkUnsignedCharArray);
50
51protected:
53 ~vtkBMPWriter() override;
54
55 void WriteFile(ostream* file, vtkImageData* data, int ext[6], int wExt[6]) override;
56 void WriteFileHeader(ostream*, vtkImageData*, int wExt[6]) override;
57 void MemoryWrite(int, vtkImageData*, int wExt[6], vtkInformation* inInfo) override;
58
59private:
60 vtkBMPWriter(const vtkBMPWriter&) = delete;
61 void operator=(const vtkBMPWriter&) = delete;
62
64};
65
66VTK_ABI_NAMESPACE_END
67#endif
Writes Windows BMP files.
void WriteFileHeader(ostream *, vtkImageData *, int wExt[6]) override
void MemoryWrite(int, vtkImageData *, int wExt[6], vtkInformation *inInfo) override
~vtkBMPWriter() override
static vtkBMPWriter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteFile(ostream *file, vtkImageData *data, int ext[6], int wExt[6]) override
virtual void SetResult(vtkUnsignedCharArray *)
When writing to memory this is the result, it will be NULL until the data is written the first time.
topologically and geometrically regular array of data
Writes images to files.
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of unsigned char
unsigned int vtkTypeUBool
Definition vtkABI.h:65