The Original CHomP Software
|
This class helps interpret files in the BMD format defined by Marian Mrozek. More...
#include <cubfiles.h>
Public Member Functions | |
bmdheader (const char *filename) | |
The only allowed constructor. More... | |
int | readbytes (std::istream &f, int n) const |
Reads an n-byte integer from the file. More... | |
Public Attributes | |
bool | little |
Is this little endian data? More... | |
int | offset |
The offset of binary data in the file. More... | |
int | dim |
The dimension of the bitmap. More... | |
int | length |
The length of the bitmap in the file. More... | |
int | zerowidth |
The width of the actual bitmap in the first direction. More... | |
std::vector< int > | width |
The size of the picture in each direction. More... | |
This class helps interpret files in the BMD format defined by Marian Mrozek.
In the constructor, the header of a BMD file is read and analyzed. Based on the information from the header, a procedure for reading an n-byte integer is provided, which is useful for reading the actual bitmap data.
Definition at line 671 of file cubfiles.h.
chomp::homengin::bmdheader::bmdheader | ( | const char * | filename | ) |
The only allowed constructor.
int chomp::homengin::bmdheader::readbytes | ( | std::istream & | f, |
int | n | ||
) | const |
Reads an n-byte integer from the file.
int chomp::homengin::bmdheader::dim |
The dimension of the bitmap.
Definition at line 684 of file cubfiles.h.
int chomp::homengin::bmdheader::length |
The length of the bitmap in the file.
Definition at line 687 of file cubfiles.h.
bool chomp::homengin::bmdheader::little |
Is this little endian data?
Definition at line 678 of file cubfiles.h.
int chomp::homengin::bmdheader::offset |
The offset of binary data in the file.
Definition at line 681 of file cubfiles.h.
std::vector<int> chomp::homengin::bmdheader::width |
The size of the picture in each direction.
Definition at line 693 of file cubfiles.h.
int chomp::homengin::bmdheader::zerowidth |
The width of the actual bitmap in the first direction.
Definition at line 690 of file cubfiles.h.