VTK  9.1.0
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=========================================================================*/
50#ifndef vtkBMPReader_h
51#define vtkBMPReader_h
52
53#include "vtkIOImageModule.h" // For export macro
54#include "vtkImageReader.h"
55class vtkLookupTable;
56
57class VTKIOIMAGE_EXPORT vtkBMPReader : public vtkImageReader
58{
59public:
60 static vtkBMPReader* New();
62
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
66
69 vtkGetMacro(Depth, int);
71
75 int CanReadFile(VTK_FILEPATH const char* fname) override;
76
82 const char* GetFileExtensions() override { return ".bmp"; }
83
87 const char* GetDescriptiveName() override { return "Windows BMP"; }
88
90
95 vtkSetMacro(Allow8BitBMP, vtkTypeBool);
96 vtkGetMacro(Allow8BitBMP, vtkTypeBool);
97 vtkBooleanMacro(Allow8BitBMP, vtkTypeBool);
99
100 vtkGetObjectMacro(LookupTable, vtkLookupTable);
101
103
106 vtkGetMacro(Colors, unsigned char*);
108
109protected:
111 ~vtkBMPReader() override;
112
113 unsigned char* Colors;
114 short Depth;
117
118 void ComputeDataIncrements() override;
119 void ExecuteInformation() override;
121
122private:
123 vtkBMPReader(const vtkBMPReader&) = delete;
124 void operator=(const vtkBMPReader&) = delete;
125};
126#endif
read Windows BMP files
Definition: vtkBMPReader.h:58
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkBMPReader.h:87
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkBMPReader.h:82
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
Definition: vtkBMPReader.h:116
unsigned char * Colors
Definition: vtkBMPReader.h:113
vtkTypeBool Allow8BitBMP
Definition: vtkBMPReader.h:115
general representation of visualization data
Definition: vtkDataObject.h:69
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_FILEPATH