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 =========================================================================*/
46 #ifndef vtkBMPReader_h
47 #define vtkBMPReader_h
48 
49 #include "vtkIOImageModule.h" // For export macro
50 #include "vtkImageReader.h"
51 class vtkLookupTable;
52 
54 {
55 public:
56  static vtkBMPReader *New();
58 
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
63  vtkGetMacro(Depth,int);
65 
67  virtual int CanReadFile(const char* fname);
68 
70 
72  virtual const char* GetFileExtensions()
73  {
74  return ".bmp";
75  }
77 
79 
81  virtual const char* GetDescriptiveName()
82  {
83  return "Windows BMP";
84  }
86 
88 
91  vtkSetMacro(Allow8BitBMP,int);
92  vtkGetMacro(Allow8BitBMP,int);
93  vtkBooleanMacro(Allow8BitBMP,int);
95 
96  vtkGetObjectMacro(LookupTable, vtkLookupTable);
97 
98 //BTX
100 
101  vtkGetMacro(Colors,unsigned char *);
102 //ETX
104 
105 protected:
106  vtkBMPReader();
107  ~vtkBMPReader();
108 
109  unsigned char *Colors;
110  short Depth;
113 
114  virtual void ComputeDataIncrements();
115  virtual void ExecuteInformation();
116  virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation* outInfo);
117 private:
118  vtkBMPReader(const vtkBMPReader&); // Not implemented.
119  void operator=(const vtkBMPReader&); // Not implemented.
120 };
121 #endif
122 
123 
virtual const char * GetFileExtensions()
Definition: vtkBMPReader.h:72
Store vtkAlgorithm input/output information.
read Windows BMP files
Definition: vtkBMPReader.h:53
virtual void ComputeDataIncrements()
map scalar values into colors via a lookup table
vtkLookupTable * LookupTable
Definition: vtkBMPReader.h:112
static vtkImageReader * New()
unsigned char * Colors
Definition: vtkBMPReader.h:109
virtual int CanReadFile(const char *vtkNotUsed(fname))
a simple class to control print indentation
Definition: vtkIndent.h:38
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
Superclass of transformable binary file readers.
virtual void ExecuteInformation()
#define VTKIOIMAGE_EXPORT
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)
virtual const char * GetDescriptiveName()
Definition: vtkBMPReader.h:81