a bitmap of MWAWColor to store true color bitmap More...
#include <MWAWPictBitmap.hxx>
Public Member Functions | |
| virtual SubType | getSubType () const |
| return the picture subtype | |
| virtual int | cmp (MWAWPict const &a) const |
| a virtual function used to obtain a strict order, must be redefined in the subs class | |
| virtual bool | valid () const |
| returns true if the picture is valid | |
| MWAWPictBitmapColor (MWAWVec2i const &sz, bool useAlphaChannel=false) | |
| the constructor | |
| MWAWVec2i const & | size () const |
| the picture size | |
| int | numRows () const |
| the number of rows | |
| int | numColumns () const |
| the number of columns | |
| MWAWColor | get (int i, int j) const |
| returns a cell content | |
| MWAWColor const * | getRow (int j) const |
| returns the cells content of a row | |
| void | set (int i, int j, MWAWColor const &v) |
| sets a cell contents | |
| void | setRow (int j, MWAWColor const *val) |
| sets all cell contents of a row | |
| void | setColumn (int i, MWAWColor const *val) |
| sets all cell contents of a column | |
Protected Member Functions | |
| virtual bool | createFileData (librevenge::RVNGBinaryData &result) const |
| the function which creates the result file | |
Protected Attributes | |
| MWAWPictBitmapContainer < MWAWColor > | m_data |
| the data | |
| bool | m_hasAlpha |
| true if the bitmap has alpha color | |
a bitmap of MWAWColor to store true color bitmap
| MWAWPictBitmapColor::MWAWPictBitmapColor | ( | MWAWVec2i const & | sz, |
| bool | useAlphaChannel = false |
||
| ) | [inline] |
the constructor
| virtual int MWAWPictBitmapColor::cmp | ( | MWAWPict const & | a | ) | const [inline, virtual] |
a virtual function used to obtain a strict order, must be redefined in the subs class
Reimplemented from MWAWPictBitmap.
| bool MWAWPictBitmapColor::createFileData | ( | librevenge::RVNGBinaryData & | result | ) | const [protected, virtual] |
the function which creates the result file
Implements MWAWPictBitmap.
| MWAWColor MWAWPictBitmapColor::get | ( | int | i, |
| int | j | ||
| ) | const [inline] |
returns a cell content
| MWAWColor const* MWAWPictBitmapColor::getRow | ( | int | j | ) | const [inline] |
returns the cells content of a row
| virtual SubType MWAWPictBitmapColor::getSubType | ( | ) | const [inline, virtual] |
return the picture subtype
Implements MWAWPictBitmap.
| int MWAWPictBitmapColor::numColumns | ( | ) | const [inline] |
the number of columns
| int MWAWPictBitmapColor::numRows | ( | ) | const [inline] |
the number of rows
| void MWAWPictBitmapColor::set | ( | int | i, |
| int | j, | ||
| MWAWColor const & | v | ||
| ) | [inline] |
sets a cell contents
Referenced by MacDraftParser::sendBitmap(), ClarisDrawGraph::sendBitmap(), and ClarisWksGraph::sendBitmap().
| void MWAWPictBitmapColor::setColumn | ( | int | i, |
| MWAWColor const * | val | ||
| ) | [inline] |
sets all cell contents of a column
| void MWAWPictBitmapColor::setRow | ( | int | j, |
| MWAWColor const * | val | ||
| ) | [inline] |
sets all cell contents of a row
Referenced by MacDrawParser::sendBitmap(), MacDraftParser::sendBitmap(), and MacDrawProParser::sendBitmap().
| MWAWVec2i const& MWAWPictBitmapColor::size | ( | ) | const [inline] |
the picture size
| virtual bool MWAWPictBitmapColor::valid | ( | ) | const [inline, virtual] |
returns true if the picture is valid
Reimplemented from MWAWPictBitmap.
MWAWPictBitmapContainer<MWAWColor> MWAWPictBitmapColor::m_data [protected] |
the data
Referenced by cmp(), createFileData(), get(), getRow(), numColumns(), numRows(), set(), setColumn(), setRow(), size(), and valid().
bool MWAWPictBitmapColor::m_hasAlpha [protected] |
true if the bitmap has alpha color
Referenced by createFileData().