vtkBMPReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00050 #ifndef __vtkBMPReader_h
00051 #define __vtkBMPReader_h
00052
00053 #include "vtkImageReader.h"
00054 class vtkLookupTable;
00055
00056 class VTK_IO_EXPORT vtkBMPReader : public vtkImageReader
00057 {
00058 public:
00059 static vtkBMPReader *New();
00060 vtkTypeRevisionMacro(vtkBMPReader,vtkImageReader);
00061
00062 void PrintSelf(ostream& os, vtkIndent indent);
00063
00065
00066 vtkGetMacro(Depth,int);
00068
00070 virtual int CanReadFile(const char* fname);
00071
00072
00073
00074
00075 virtual const char* GetFileExensions()
00076 {
00077 return ".bmp";
00078 }
00080
00082
00084 virtual const char* GetDescriptiveName()
00085 {
00086 return "Windows BMP";
00087 }
00089
00091
00094 vtkSetMacro(Allow8BitBMP,int);
00095 vtkGetMacro(Allow8BitBMP,int);
00096 vtkBooleanMacro(Allow8BitBMP,int);
00098
00099 vtkLookupTable *GetLookupTable(void);
00100
00101
00103
00104 vtkGetMacro(Colors,unsigned char *);
00106
00107
00108 protected:
00109 vtkBMPReader();
00110 ~vtkBMPReader();
00111
00112 unsigned char *Colors;
00113 short Depth;
00114 int Allow8BitBMP;
00115 vtkLookupTable *LookupTable;
00116
00117 virtual void ComputeDataIncrements();
00118 virtual void ExecuteInformation();
00119 virtual void ExecuteData(vtkDataObject *out);
00120 private:
00121 vtkBMPReader(const vtkBMPReader&);
00122 void operator=(const vtkBMPReader&);
00123 };
00124 #endif
00125
00126