VTK  9.6.1
vtkBMPReader.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
33
34#ifndef vtkBMPReader_h
35#define vtkBMPReader_h
36
37#include "vtkIOImageModule.h" // For export macro
38#include "vtkImageReader.h"
39VTK_ABI_NAMESPACE_BEGIN
40class vtkLookupTable;
41
42class VTKIOIMAGE_EXPORT vtkBMPReader : public vtkImageReader
43{
44public:
45 static vtkBMPReader* New();
47
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 vtkGetMacro(Depth, int);
56
60 int CanReadFile(VTK_FILEPATH const char* fname) override;
61
67 const char* GetFileExtensions() override { return ".bmp"; }
68
72 const char* GetDescriptiveName() override { return "Windows BMP"; }
73
75
82 vtkBooleanMacro(Allow8BitBMP, vtkTypeBool);
84
85 vtkGetObjectMacro(LookupTable, vtkLookupTable);
86
88
91 vtkGetMacro(Colors, unsigned char*);
93
94protected:
96 ~vtkBMPReader() override;
97
98 unsigned char* Colors;
99 short Depth;
102
103 void ComputeDataIncrements() override;
104 void ExecuteInformation() override;
106
107private:
108 vtkBMPReader(const vtkBMPReader&) = delete;
109 void operator=(const vtkBMPReader&) = delete;
110};
111VTK_ABI_NAMESPACE_END
112#endif
int CanReadFile(const char *fname) override
Is the given file a BMP file?
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
const char * GetFileExtensions() override
Get the file extensions for this format.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
void ExecuteInformation() override
~vtkBMPReader() override
void ComputeDataIncrements() override
static vtkBMPReader * New()
vtkLookupTable * LookupTable
unsigned char * Colors
vtkTypeBool Allow8BitBMP
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_FILEPATH