VTK
|
read Windows BMP files More...
#include <vtkBMPReader.h>
Public Types | |
typedef vtkImageReader | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkBMPReader * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | CanReadFile (const char *fname) |
virtual vtkLookupTable * | GetLookupTable () |
virtual int | GetDepth () |
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 | |
static vtkBMPReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkBMPReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkBMPReader () | |
~vtkBMPReader () | |
virtual void | ComputeDataIncrements () |
virtual void | ExecuteInformation () |
virtual void | ExecuteDataWithInformation (vtkDataObject *out, vtkInformation *outInfo) |
Protected Attributes | |
unsigned char * | Colors |
short | Depth |
int | Allow8BitBMP |
vtkLookupTable * | LookupTable |
read Windows BMP files
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 53 of file vtkBMPReader.h.
Reimplemented from vtkImageReader.
Definition at line 57 of file vtkBMPReader.h.
vtkBMPReader::vtkBMPReader | ( | ) | [protected] |
vtkBMPReader::~vtkBMPReader | ( | ) | [protected] |
static vtkBMPReader* vtkBMPReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkImageReader.
static int vtkBMPReader::IsTypeOf | ( | const char * | name | ) | [static] |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageReader.
virtual int vtkBMPReader::IsA | ( | const char * | name | ) | [virtual] |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageReader.
static vtkBMPReader* vtkBMPReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageReader.
virtual vtkObjectBase* vtkBMPReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageReader.
vtkBMPReader* vtkBMPReader::NewInstance | ( | ) | const |
Reimplemented from vtkImageReader.
void vtkBMPReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
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.
virtual int vtkBMPReader::GetDepth | ( | ) | [virtual] |
Returns the depth of the BMP, either 8 or 24.
virtual int vtkBMPReader::CanReadFile | ( | const char * | fname | ) | [virtual] |
Is the given file a BMP file?
virtual const char* vtkBMPReader::GetFileExtensions | ( | ) | [inline, virtual] |
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 72 of file vtkBMPReader.h.
virtual const char* vtkBMPReader::GetDescriptiveName | ( | ) | [inline, virtual] |
Return a descriptive name for the file format that might be useful in a GUI.
Reimplemented from vtkImageReader2.
Definition at line 81 of file vtkBMPReader.h.
virtual void vtkBMPReader::SetAllow8BitBMP | ( | int | ) | [virtual] |
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
virtual int vtkBMPReader::GetAllow8BitBMP | ( | ) | [virtual] |
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
virtual void vtkBMPReader::Allow8BitBMPOn | ( | ) | [virtual] |
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
virtual void vtkBMPReader::Allow8BitBMPOff | ( | ) | [virtual] |
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
virtual vtkLookupTable* vtkBMPReader::GetLookupTable | ( | ) | [virtual] |
virtual unsigned char* vtkBMPReader::GetColors | ( | ) | [virtual] |
Returns the color lut.
virtual void vtkBMPReader::ComputeDataIncrements | ( | ) | [protected, virtual] |
Reimplemented from vtkImageReader2.
virtual void vtkBMPReader::ExecuteInformation | ( | ) | [protected, virtual] |
Reimplemented from vtkImageReader2.
virtual void vtkBMPReader::ExecuteDataWithInformation | ( | vtkDataObject * | output, |
vtkInformation * | outInfo | ||
) | [protected, virtual] |
This is a convenience method that is implemented in many subclasses instead of RequestData. It is called by RequestData.
Reimplemented from vtkImageReader.
unsigned char* vtkBMPReader::Colors [protected] |
Definition at line 109 of file vtkBMPReader.h.
short vtkBMPReader::Depth [protected] |
Definition at line 110 of file vtkBMPReader.h.
int vtkBMPReader::Allow8BitBMP [protected] |
Definition at line 111 of file vtkBMPReader.h.
vtkLookupTable* vtkBMPReader::LookupTable [protected] |
Definition at line 112 of file vtkBMPReader.h.