The Original CHomP Software
|
Windows bitmap as a set of full cubes. More...
#include <cubfiles.h>
Public Member Functions | |
winbmpfile (const char *filename) | |
The constructor. More... | |
int | count () const |
How many cubes are there in the set? More... | |
bool | bitmaptype () const |
Is this a bitmap type of set of cubes? More... | |
bool | elementary () const |
Is this a set of elementary cubes, as opposed to full cubes? More... | |
int | boundingbox (int *mincoord, int *maxcoord) const |
Determine the bounding box of the set of cubes. More... | |
int | readcubes (chomp::homology::CubicalComplex &s) const |
Reads a set of cubical cells from the file. More... | |
int | readcubes (chomp::homology::SetOfCubes &s) const |
Read a cubical set from the file. More... | |
int | readcubes (int *&sizes, char *&bytes, int padding=0, bool power2=false) const |
Reads a bitmap from a file. More... | |
![]() | |
cubfile (const char *_filename) | |
The default constructor. More... | |
virtual | ~cubfile () |
The destructor. More... | |
const char * | filename () const |
What is the name of the associated disk file? More... | |
virtual int | dim () const |
What is the dimension of the set of cubes? More... | |
virtual int | count () const |
How many cubes are there in the set? More... | |
virtual bool | bitmaptype () const |
Is this a bitmap type of set of cubes? More... | |
virtual bool | elementary () const |
Is this a set of elementary cubes, as opposed to full cubes? More... | |
virtual bool | spacewrapping () const |
Does this set include the definition of space wrapping? More... | |
virtual int * | spacewrapping (int *table) const |
Fills in the space wrapping table if applicable. More... | |
virtual void | setwrapping (const int *table, int count=0) |
Sets the space wrapping according to the given table. More... | |
virtual int | boundingbox (int *mincoord, int *maxcoord) const |
Determines the bounding box of the set of cubes. More... | |
int | volume (int chunk=0, bool power2=false) const |
Determine the volume of the bounding box of the set of cubes. More... | |
virtual int | readcubes (chomp::homology::CubicalComplex &s) const |
Reads a set of cubical cells from the file. More... | |
virtual int | readcubes (chomp::homology::SetOfCubes &s) const |
Reads a set of cubes from the file. More... | |
virtual int | readcubes (int *&sizes, char *&bytes, int padding=0, bool power2=false) const |
Reads a bitmap from a file. More... | |
Static Public Member Functions | |
static const char * | name () |
The name of this type of a cubical set. More... | |
static std::ostream & | describe (std::ostream &out) |
Describes this particular type of a set of cubes. More... | |
static bool | compatible (const char *filename) |
Verifies if the file format is compatible with this cubfile type. More... | |
![]() | |
static const char * | name () |
The name of this type of a cubical set. More... | |
static std::ostream & | describe (std::ostream &out) |
Describes this particular type of a set of cubes. More... | |
static bool | compatible (const char *filename) |
Verifies if the file format is compatible with this cubfile type. More... | |
Static Private Attributes | |
static cubfile_traits< winbmpfile > | t |
Add this type of a cubical set to the list. More... | |
Additional Inherited Members | |
![]() | |
std::string | _filename |
The name of the corresponding disk file. More... | |
int | _dim |
The dimension of the space, 0 if unknown. More... | |
int | _count |
The number of cubes in the set, -1 if unknown. More... | |
std::vector< int > | _min |
The minimal coordinates of the cubes' corners (bounding box). More... | |
std::vector< int > | _max |
The maximal coordinates of the cubes' corners (bounding box). More... | |
std::vector< int > | _wrapping |
The space wrapping information if any. More... | |
Windows bitmap as a set of full cubes.
Definition at line 598 of file cubfiles.h.
|
inline |
The constructor.
Definition at line 655 of file cubfiles.h.
References chomp::homengin::cubfile::_dim.
|
inlinevirtual |
Is this a bitmap type of set of cubes?
Reimplemented from chomp::homengin::cubfile.
Definition at line 608 of file cubfiles.h.
|
virtual |
Determine the bounding box of the set of cubes.
Reimplemented from chomp::homengin::cubfile.
|
static |
Verifies if the file format is compatible with this cubfile type.
|
virtual |
How many cubes are there in the set?
Reimplemented from chomp::homengin::cubfile.
|
static |
Describes this particular type of a set of cubes.
|
inlinevirtual |
Is this a set of elementary cubes, as opposed to full cubes?
Reimplemented from chomp::homengin::cubfile.
Definition at line 614 of file cubfiles.h.
|
inlinestatic |
The name of this type of a cubical set.
Definition at line 623 of file cubfiles.h.
|
inlinevirtual |
Reads a set of cubical cells from the file.
Reimplemented from chomp::homengin::cubfile.
Definition at line 635 of file cubfiles.h.
|
virtual |
Read a cubical set from the file.
Reimplemented from chomp::homengin::cubfile.
|
virtual |
Reads a bitmap from a file.
Reimplemented from chomp::homengin::cubfile.
|
staticprivate |
Add this type of a cubical set to the list.
Definition at line 649 of file cubfiles.h.