VTK  9.2.6
vtkBMPReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBMPReader.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=========================================================================*/
53#ifndef vtkBMPReader_h
54#define vtkBMPReader_h
55
56#include "vtkIOImageModule.h" // For export macro
57#include "vtkImageReader.h"
58class vtkLookupTable;
59
60class VTKIOIMAGE_EXPORT vtkBMPReader : public vtkImageReader
61{
62public:
63 static vtkBMPReader* New();
65
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
69
72 vtkGetMacro(Depth, int);
74
78 int CanReadFile(VTK_FILEPATH const char* fname) override;
79
85 const char* GetFileExtensions() override { return ".bmp"; }
86
90 const char* GetDescriptiveName() override { return "Windows BMP"; }
91
93
98 vtkSetMacro(Allow8BitBMP, vtkTypeBool);
99 vtkGetMacro(Allow8BitBMP, vtkTypeBool);
100 vtkBooleanMacro(Allow8BitBMP, vtkTypeBool);
102
103 vtkGetObjectMacro(LookupTable, vtkLookupTable);
104
106
109 vtkGetMacro(Colors, unsigned char*);
111
112protected:
114 ~vtkBMPReader() override;
115
116 unsigned char* Colors;
117 short Depth;
120
121 void ComputeDataIncrements() override;
122 void ExecuteInformation() override;
124
125private:
126 vtkBMPReader(const vtkBMPReader&) = delete;
127 void operator=(const vtkBMPReader&) = delete;
128};
129#endif
read Windows BMP files
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
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a BMP file?
static vtkBMPReader * New()
vtkLookupTable * LookupTable
unsigned char * Colors
vtkTypeBool Allow8BitBMP
general representation of visualization data
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:49
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_FILEPATH