VTK  9.2.6
vtkBMPWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBMPWriter.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=========================================================================*/
68#ifndef vtkBMPWriter_h
69#define vtkBMPWriter_h
70
71#include "vtkIOImageModule.h" // For export macro
72#include "vtkImageWriter.h"
73
75
76class VTKIOIMAGE_EXPORT vtkBMPWriter : public vtkImageWriter
77{
78public:
79 static vtkBMPWriter* New();
81 void PrintSelf(ostream& os, vtkIndent indent) override;
82
84
87 vtkSetMacro(WriteToMemory, vtkTypeUBool);
88 vtkGetMacro(WriteToMemory, vtkTypeUBool);
89 vtkBooleanMacro(WriteToMemory, vtkTypeUBool);
91
93
98 vtkGetObjectMacro(Result, vtkUnsignedCharArray);
100
101protected:
103 ~vtkBMPWriter() override;
104
105 void WriteFile(ostream* file, vtkImageData* data, int ext[6], int wExt[6]) override;
106 void WriteFileHeader(ostream*, vtkImageData*, int wExt[6]) override;
107 void MemoryWrite(int, vtkImageData*, int wExt[6], vtkInformation* inInfo) override;
108
109private:
110 vtkBMPWriter(const vtkBMPWriter&) = delete;
111 void operator=(const vtkBMPWriter&) = delete;
112
113 vtkUnsignedCharArray* Result;
114};
115
116#endif
Writes Windows BMP files.
Definition: vtkBMPWriter.h:77
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
Definition: vtkImageData.h:163
Writes images to files.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of unsigned char
@ data
Definition: vtkX3D.h:321
unsigned int vtkTypeUBool
Definition: vtkABI.h:70