Public Member Functions | Static Public Member Functions | Static Private Attributes

chomp::homengin::winbmpfile Class Reference

Windows bitmap as a set of full cubes. More...

#include <cubfiles.h>

Inheritance diagram for chomp::homengin::winbmpfile:
chomp::homengin::cubfile

List of all members.

Public Member Functions

 winbmpfile (const char *filename)
 The constructor.
int count () const
 How many cubes are there in the set?
bool bitmaptype () const
 Is this a bitmap type of set of cubes?
bool elementary () const
 Is this a set of elementary cubes, as opposed to full cubes?
int boundingbox (int *mincoord, int *maxcoord) const
 Determine the bounding box of the set of cubes.
int readcubes (chomp::homology::CubicalComplex &s) const
 Reads a set of cubical cells from the file.
int readcubes (chomp::homology::SetOfCubes &s) const
 Read a cubical set from the file.
int readcubes (int *&sizes, char *&bytes, int padding=0, bool power2=false) const
 Reads a bitmap from a file.

Static Public Member Functions

static const char * name ()
 The name of this type of a cubical set.
static std::ostream & describe (std::ostream &out)
 Describes this particular type of a set of cubes.
static bool compatible (const char *filename)
 Verifies if the file format is compatible with this cubfile type.

Static Private Attributes

static cubfile_traits< winbmpfilet
 Add this type of a cubical set to the list.

Detailed Description

Windows bitmap as a set of full cubes.

Definition at line 599 of file cubfiles.h.


Constructor & Destructor Documentation

chomp::homengin::winbmpfile::winbmpfile ( const char *  filename  )  [inline]

The constructor.

Definition at line 656 of file cubfiles.h.

References chomp::homengin::cubfile::_dim.

                                                  : cubfile (filename)
{
        _dim = 2;
        return;
} /* winbmpfile::winbmpfile */


Member Function Documentation

bool chomp::homengin::winbmpfile::bitmaptype (  )  const [inline, virtual]

Is this a bitmap type of set of cubes?

Reimplemented from chomp::homengin::cubfile.

Definition at line 609 of file cubfiles.h.

        {
                return true;
        }

int chomp::homengin::winbmpfile::boundingbox ( int *  mincoord,
int *  maxcoord 
) const [virtual]

Determine the bounding box of the set of cubes.

Reimplemented from chomp::homengin::cubfile.

static bool chomp::homengin::winbmpfile::compatible ( const char *  filename  )  [static]

Verifies if the file format is compatible with this cubfile type.

Reimplemented from chomp::homengin::cubfile.

int chomp::homengin::winbmpfile::count (  )  const [virtual]

How many cubes are there in the set?

Reimplemented from chomp::homengin::cubfile.

static std::ostream& chomp::homengin::winbmpfile::describe ( std::ostream &  out  )  [static]

Describes this particular type of a set of cubes.

Reimplemented from chomp::homengin::cubfile.

bool chomp::homengin::winbmpfile::elementary (  )  const [inline, virtual]

Is this a set of elementary cubes, as opposed to full cubes?

Reimplemented from chomp::homengin::cubfile.

Definition at line 615 of file cubfiles.h.

        {
                return false;
        }

static const char* chomp::homengin::winbmpfile::name (  )  [inline, static]

The name of this type of a cubical set.

Reimplemented from chomp::homengin::cubfile.

Definition at line 624 of file cubfiles.h.

        {
                return "windows bitmap";
        }

int chomp::homengin::winbmpfile::readcubes ( int *&  sizes,
char *&  bytes,
int  padding = 0,
bool  power2 = false 
) const [virtual]

Reads a bitmap from a file.

Reimplemented from chomp::homengin::cubfile.

int chomp::homengin::winbmpfile::readcubes ( chomp::homology::SetOfCubes s  )  const [virtual]

Read a cubical set from the file.

Reimplemented from chomp::homengin::cubfile.

int chomp::homengin::winbmpfile::readcubes ( chomp::homology::CubicalComplex s  )  const [inline, virtual]

Reads a set of cubical cells from the file.

Reimplemented from chomp::homengin::cubfile.

Definition at line 636 of file cubfiles.h.

        {
                throw "Trying to read a set of cells from a Win BMP file.";
        }


Member Data Documentation

Add this type of a cubical set to the list.

Definition at line 650 of file cubfiles.h.


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