The Original CHomP Software
Public Member Functions | Public Attributes | List of all members
chomp::homengin::bmdheader Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ bmdheader()

chomp::homengin::bmdheader::bmdheader ( const char *  filename)

The only allowed constructor.

Member Function Documentation

◆ readbytes()

int chomp::homengin::bmdheader::readbytes ( std::istream &  f,
int  n 
) const

Reads an n-byte integer from the file.

Member Data Documentation

◆ dim

int chomp::homengin::bmdheader::dim

The dimension of the bitmap.

Definition at line 684 of file cubfiles.h.

◆ length

int chomp::homengin::bmdheader::length

The length of the bitmap in the file.

Definition at line 687 of file cubfiles.h.

◆ little

bool chomp::homengin::bmdheader::little

Is this little endian data?

Definition at line 678 of file cubfiles.h.

◆ offset

int chomp::homengin::bmdheader::offset

The offset of binary data in the file.

Definition at line 681 of file cubfiles.h.

◆ width

std::vector<int> chomp::homengin::bmdheader::width

The size of the picture in each direction.

Definition at line 693 of file cubfiles.h.

◆ zerowidth

int chomp::homengin::bmdheader::zerowidth

The width of the actual bitmap in the first direction.

Definition at line 690 of file cubfiles.h.


The documentation for this class was generated from the following file: