VTK
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 =========================================================================*/
47 #ifndef vtkBMPReader_h
48 #define vtkBMPReader_h
49 
50 #include "vtkIOImageModule.h" // For export macro
51 #include "vtkImageReader.h"
52 class vtkLookupTable;
53 
54 class VTKIOIMAGE_EXPORT vtkBMPReader : public vtkImageReader
55 {
56 public:
57  static vtkBMPReader *New();
59 
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
66  vtkGetMacro(Depth,int);
68 
72  virtual int CanReadFile(const char* fname);
73 
79  virtual const char* GetFileExtensions()
80  {
81  return ".bmp";
82  }
83 
87  virtual const char* GetDescriptiveName()
88  {
89  return "Windows BMP";
90  }
91 
93 
98  vtkSetMacro(Allow8BitBMP,int);
99  vtkGetMacro(Allow8BitBMP,int);
100  vtkBooleanMacro(Allow8BitBMP,int);
102 
103  vtkGetObjectMacro(LookupTable, vtkLookupTable);
104 
106 
109  vtkGetMacro(Colors,unsigned char *);
111 
112 protected:
115 
116  unsigned char *Colors;
117  short Depth;
120 
121  virtual void ComputeDataIncrements();
122  virtual void ExecuteInformation();
124 private:
125  vtkBMPReader(const vtkBMPReader&) VTK_DELETE_FUNCTION;
126  void operator=(const vtkBMPReader&) VTK_DELETE_FUNCTION;
127 };
128 #endif
129 
130 
vtkImageReader
Superclass of transformable binary file readers.
Definition: vtkImageReader.h:45
vtkBMPReader::LookupTable
vtkLookupTable * LookupTable
Definition: vtkBMPReader.h:119
vtkBMPReader::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkBMPReader::New
static vtkBMPReader * New()
vtkBMPReader::~vtkBMPReader
~vtkBMPReader()
vtkBMPReader::vtkBMPReader
vtkBMPReader()
vtkBMPReader
read Windows BMP files
Definition: vtkBMPReader.h:55
vtkBMPReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkBMPReader::Colors
unsigned char * Colors
Definition: vtkBMPReader.h:116
vtkBMPReader::CanReadFile
virtual int CanReadFile(const char *fname)
Is the given file a BMP file?
vtkBMPReader::GetFileExtensions
virtual const char * GetFileExtensions()
Get the file extensions for this format.
Definition: vtkBMPReader.h:79
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:75
vtkBMPReader::ExecuteInformation
virtual void ExecuteInformation()
vtkBMPReader::ComputeDataIncrements
virtual void ComputeDataIncrements()
vtkBMPReader::GetDescriptiveName
virtual const char * GetDescriptiveName()
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkBMPReader.h:87
vtkBMPReader::Allow8BitBMP
int Allow8BitBMP
Definition: vtkBMPReader.h:118
vtkImageReader.h
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkBMPReader::Depth
short Depth
Definition: vtkBMPReader.h:117