a bitmap of bool to store black-white bitmap More...
#include <MWAWPictBitmap.hxx>
Public Member Functions | |
SubType | getSubType () const final |
returns the picture subtype More... | |
int | cmp (MWAWPict const &a) const final |
a virtual function used to obtain a strict order, must be redefined in the subs class More... | |
bool | valid () const final |
returns true if the picture is valid More... | |
MWAWPictBitmapBW (MWAWVec2i const &sz) | |
the constructor More... | |
MWAWVec2i const & | size () const |
the picture size More... | |
int | numRows () const |
the number of rows More... | |
int | numColumns () const |
the number of columns More... | |
bool | get (int i, int j) const |
returns a cell content More... | |
bool const * | getRow (int j) const |
returns the cells content of a row More... | |
void | set (int i, int j, bool v) |
sets a cell contents More... | |
void | setRow (int j, bool const *val) |
sets all cell contents of a row More... | |
void | setRowPacked (int j, unsigned char const *val, unsigned char const *end) |
sets all cell contents of a row given packed m_data More... | |
void | setColumn (int i, bool const *val) |
sets all cell contents of a column More... | |
MWAWColor | getAverageColor () const final |
returns the average color More... | |
![]() | |
~MWAWPictBitmap () override | |
destructor More... | |
Type | getType () const override |
returns the picture type More... | |
bool | getBinary (MWAWEmbeddedObject &picture) const override |
returns the final picture More... | |
![]() | |
virtual | ~MWAWPict () |
virtual destructor More... | |
MWAWBox2f | getBdBox () const |
returns the bdbox of the picture More... | |
void | setBdBox (MWAWBox2f const &box) |
sets the bdbox of the picture More... | |
Protected Member Functions | |
bool | createFileData (librevenge::RVNGBinaryData &result) const final |
function which creates the result file More... | |
![]() | |
MWAWPictBitmap (MWAWVec2i const &sz) | |
protected constructor: use check to construct a picture More... | |
![]() | |
void | extendBDBox (float val) |
udaptes the bdbox, by extended it by (val-previousVal) More... | |
MWAWPict () | |
protected constructor must not be called directly More... | |
MWAWPict (MWAWPict const &p) | |
protected constructor must not be called directly More... | |
MWAWPict & | operator= (MWAWPict const &p) |
protected operator= must not be called directly More... | |
Protected Attributes | |
MWAWPictBitmapContainerBool | m_data |
the data More... | |
Additional Inherited Members | |
![]() | |
enum | SubType { BW, Indexed, Color } |
the picture subtype: blackwhite, indexed, color More... | |
![]() | |
enum | Type { PictData, Bitmap, Unknown } |
the different picture types: More... | |
enum | ReadResult { MWAW_R_BAD =0, MWAW_R_OK, MWAW_R_OK_EMPTY, MWAW_R_MAYBE } |
an enum to defined the result of a parsing use by some picture's classes which can read their data More... | |
![]() | |
static MWAWBox2f | getBdBox (int numPt, MWAWVec2f const *pt) |
computes the minimum and maximum of a list of point More... | |
a bitmap of bool to store black-white bitmap
|
inlineexplicit |
the constructor
|
inlinefinalvirtual |
a virtual function used to obtain a strict order, must be redefined in the subs class
Reimplemented from MWAWPictBitmap.
|
finalprotectedvirtual |
function which creates the result file
Implements MWAWPictBitmap.
|
inline |
returns a cell content
|
finalvirtual |
returns the average color
Implements MWAWPictBitmap.
|
inline |
returns the cells content of a row
Referenced by getAverageColor().
|
inlinefinalvirtual |
returns the picture subtype
Implements MWAWPictBitmap.
|
inline |
the number of columns
|
inline |
the number of rows
|
inline |
sets a cell contents
|
inline |
sets all cell contents of a column
|
inline |
sets all cell contents of a row
|
inline |
sets all cell contents of a row given packed m_data
Referenced by RagTimeParser::sendBitmap().
|
inline |
the picture size
|
inlinefinalvirtual |
returns true if the picture is valid
Reimplemented from MWAWPictBitmap.
|
protected |
the data
Referenced by cmp(), MWAWPictBitmapIndexed::cmp(), MWAWPictBitmapColor::cmp(), createFileData(), get(), MWAWPictBitmapIndexed::get(), MWAWPictBitmapColor::get(), getAverageColor(), getRow(), MWAWPictBitmapIndexed::getRow(), MWAWPictBitmapColor::getRow(), numColumns(), MWAWPictBitmapIndexed::numColumns(), MWAWPictBitmapColor::numColumns(), numRows(), MWAWPictBitmapIndexed::numRows(), MWAWPictBitmapColor::numRows(), set(), MWAWPictBitmapIndexed::set(), MWAWPictBitmapColor::set(), setColumn(), MWAWPictBitmapIndexed::setColumn(), MWAWPictBitmapColor::setColumn(), setRow(), MWAWPictBitmapIndexed::setRow(), MWAWPictBitmapColor::setRow(), setRowPacked(), size(), MWAWPictBitmapIndexed::size(), MWAWPictBitmapColor::size(), valid(), MWAWPictBitmapIndexed::valid(), and MWAWPictBitmapColor::valid().