#include <vtkBMPReader.h>
Inheritance diagram for vtkBMPReader:
vtkBMPReader is a source object that reads Windows BMP files. This includes indexed and 24bit bitmaps Usually, all BMPs are converted to 24bit RGB, but BMPs may be output as 8bit images with a LookupTable if the Allow8BitBMP flag is set.
BMPReader creates structured point datasets. The dimension of the dataset depends upon the number of files read. Reading a single file results in a 2D image, while reading more than one file results in a 3D volume.
To read a volume, files must be of the form "FileName.<number>" (e.g., foo.bmp.0, foo.bmp.1, ...). You must also specify the image range. This range specifies the beginning and ending files to read (range can be any pair of non-negative numbers).
The default behavior is to read a single file. In this case, the form of the file is simply "FileName" (e.g., foo.bmp).
Definition at line 65 of file vtkBMPReader.h.
Public Types | |
typedef vtkImageReader | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkLookupTable * | GetLookupTable (void) |
virtual int | GetDepth () |
virtual int | CanReadFile (const char *fname) |
virtual const char * | GetFileExtensions () |
virtual const char * | GetDescriptiveName () |
virtual void | SetAllow8BitBMP (int) |
virtual int | GetAllow8BitBMP () |
virtual void | Allow8BitBMPOn () |
virtual void | Allow8BitBMPOff () |
virtual unsigned char * | GetColors () |
Static Public Member Functions | |
vtkBMPReader * | New () |
int | IsTypeOf (const char *type) |
vtkBMPReader * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkBMPReader () | |
~vtkBMPReader () | |
virtual void | ComputeDataIncrements () |
virtual void | ExecuteInformation () |
virtual void | ExecuteData (vtkDataObject *out) |
Protected Attributes | |
unsigned char * | Colors |
short | Depth |
int | Allow8BitBMP |
vtkLookupTable * | LookupTable |
|
Reimplemented from vtkImageReader. Definition at line 69 of file vtkBMPReader.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkImageReader. |
|
Reimplemented from vtkImageReader. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageReader. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageReader. |
|
Reimplemented from vtkImageReader. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImageReader. |
|
Returns the depth of the BMP, either 8 or 24. |
|
|
|
Get the file extensions for this format. Returns a string with a space separated list of extensions in the format .extension Reimplemented from vtkImageReader2. Definition at line 84 of file vtkBMPReader.h. |
|
Return a descriptive name for the file format that might be useful in a GUI. Reimplemented from vtkImageReader2. Definition at line 93 of file vtkBMPReader.h. |
|
If this flag is set and the BMP reader encounters an 8bit file, the data will be kept as unsigned chars and a lookuptable will be exported |
|
If this flag is set and the BMP reader encounters an 8bit file, the data will be kept as unsigned chars and a lookuptable will be exported |
|
If this flag is set and the BMP reader encounters an 8bit file, the data will be kept as unsigned chars and a lookuptable will be exported |
|
If this flag is set and the BMP reader encounters an 8bit file, the data will be kept as unsigned chars and a lookuptable will be exported |
|
|
|
Returns the color lut. |
|
Reimplemented from vtkImageReader2. |
|
Reimplemented from vtkImageReader. |
|
This method is the one that should be used by subclasses, right now the default implementation is to call the backwards compatibility method Reimplemented from vtkImageReader. |
|
Definition at line 121 of file vtkBMPReader.h. |
|
Definition at line 122 of file vtkBMPReader.h. |
|
Definition at line 123 of file vtkBMPReader.h. |
|
Definition at line 124 of file vtkBMPReader.h. |