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 "vtkImageReader.h"
50 class vtkLookupTable;
51 
53 {
54 public:
55  static vtkBMPReader *New();
57 
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
62  vtkGetMacro(Depth,int);
64 
66  virtual int CanReadFile(const char* fname);
67 
69 
71  virtual const char* GetFileExtensions()
72  {
73  return ".bmp";
74  }
76 
78 
80  virtual const char* GetDescriptiveName()
81  {
82  return "Windows BMP";
83  }
85 
87 
90  vtkSetMacro(Allow8BitBMP,int);
91  vtkGetMacro(Allow8BitBMP,int);
92  vtkBooleanMacro(Allow8BitBMP,int);
94 
95  vtkGetObjectMacro(LookupTable, vtkLookupTable);
96 
97 //BTX
99 
100  vtkGetMacro(Colors,unsigned char *);
101 //ETX
103 
104 protected:
105  vtkBMPReader();
106  ~vtkBMPReader();
107 
108  unsigned char *Colors;
109  short Depth;
112 
113  virtual void ComputeDataIncrements();
114  virtual void ExecuteInformation();
115  virtual void ExecuteData(vtkDataObject *out);
116 private:
117  vtkBMPReader(const vtkBMPReader&); // Not implemented.
118  void operator=(const vtkBMPReader&); // Not implemented.
119 };
120 #endif
121 
122