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 
97 
98 //BTX
100 
101  vtkGetMacro(Colors,unsigned char *);
102 //ETX
104 
105 protected:
108 
109  unsigned char *Colors;
110  short Depth;
113 
114  virtual void ComputeDataIncrements();
115  virtual void ExecuteInformation();
117 private:
118  vtkBMPReader(const vtkBMPReader&); // Not implemented.
119  void operator=(const vtkBMPReader&); // Not implemented.
120 };
121 #endif
122 
123 
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkImageReader
Superclass of transformable binary file readers.
Definition: vtkImageReader.h:44
vtkBMPReader::LookupTable
vtkLookupTable * LookupTable
Definition: vtkBMPReader.h:112
vtkIOImageModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkBMPReader::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo)
VTKIOIMAGE_EXPORT
#define VTKIOIMAGE_EXPORT
Definition: vtkIOImageModule.h:15
vtkBMPReader::New
static vtkBMPReader * New()
vtkBMPReader::~vtkBMPReader
~vtkBMPReader()
vtkBMPReader::vtkBMPReader
vtkBMPReader()
vtkBMPReader
read Windows BMP files
Definition: vtkBMPReader.h:54
vtkBMPReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkBMPReader::Colors
unsigned char * Colors
Definition: vtkBMPReader.h:109
vtkBMPReader::CanReadFile
virtual int CanReadFile(const char *fname)
vtkBMPReader::GetFileExtensions
virtual const char * GetFileExtensions()
Definition: vtkBMPReader.h:72
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:74
vtkBMPReader::ExecuteInformation
virtual void ExecuteInformation()
vtkBMPReader::ComputeDataIncrements
virtual void ComputeDataIncrements()
vtkBMPReader::GetDescriptiveName
virtual const char * GetDescriptiveName()
Definition: vtkBMPReader.h:81
vtkBMPReader::Allow8BitBMP
int Allow8BitBMP
Definition: vtkBMPReader.h:111
vtkImageReader.h
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkBMPReader::Depth
short Depth
Definition: vtkBMPReader.h:110