OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <PortableBitmapReader.h>
Public Member Functions | |
PortableBitmapReader (const std::string &input) | |
unsigned int | getWidth () const |
unsigned int | getHeight () const |
bool | isBlack (unsigned int i, unsigned int j) const |
std::vector< bool > | getPixels () const |
void | print (std::ostream &out) const |
Private Types | |
enum | FileType { ASCII , BINARY } |
Private Member Functions | |
void | readHeader (std::istream &in) |
void | readImageAscii (std::istream &in) |
void | readImageBinary (std::istream &in) |
std::string | getNextPart (std::istream &in) |
unsigned int | getIdx (unsigned int h, unsigned int w) const |
Private Attributes | |
unsigned int | width_m |
unsigned int | height_m |
FileType | type_m |
std::vector< bool > | pixels_m |
Definition at line 10 of file PortableBitmapReader.h.
|
private |
Enumerator | |
---|---|
ASCII | |
BINARY |
Definition at line 32 of file PortableBitmapReader.h.
PortableBitmapReader::PortableBitmapReader | ( | const std::string & | input | ) |
Definition at line 8 of file PortableBitmapReader.cpp.
References ASCII, height_m, pixels_m, readHeader(), readImageAscii(), readImageBinary(), type_m, and width_m.
|
inline |
Definition at line 48 of file PortableBitmapReader.h.
References height_m.
Referenced by mslang::Mask::parse_detail().
|
inlineprivate |
|
private |
Definition at line 21 of file PortableBitmapReader.cpp.
References Physics::c.
Referenced by readHeader().
|
inline |
Definition at line 58 of file PortableBitmapReader.h.
References pixels_m.
Referenced by mslang::Mask::parse_detail().
|
inline |
Definition at line 43 of file PortableBitmapReader.h.
References width_m.
Referenced by mslang::Mask::parse_detail().
|
inline |
Definition at line 53 of file PortableBitmapReader.h.
References getIdx(), and pixels_m.
void PortableBitmapReader::print | ( | std::ostream & | out | ) | const |
|
private |
Definition at line 43 of file PortableBitmapReader.cpp.
References ASCII, BINARY, getNextPart(), height_m, type_m, and width_m.
Referenced by PortableBitmapReader().
|
private |
Definition at line 73 of file PortableBitmapReader.cpp.
References Physics::c, height_m, pixels_m, and width_m.
Referenced by PortableBitmapReader().
|
private |
Definition at line 90 of file PortableBitmapReader.cpp.
References Physics::c, height_m, pixels_m, and width_m.
Referenced by PortableBitmapReader().
|
private |
Definition at line 30 of file PortableBitmapReader.h.
Referenced by getHeight(), getIdx(), PortableBitmapReader(), print(), readHeader(), readImageAscii(), and readImageBinary().
|
private |
Definition at line 39 of file PortableBitmapReader.h.
Referenced by getPixels(), isBlack(), PortableBitmapReader(), print(), readImageAscii(), and readImageBinary().
|
private |
Definition at line 37 of file PortableBitmapReader.h.
Referenced by PortableBitmapReader(), and readHeader().
|
private |
Definition at line 29 of file PortableBitmapReader.h.
Referenced by getIdx(), getWidth(), PortableBitmapReader(), print(), readHeader(), readImageAscii(), and readImageBinary().