a bitmap of int to store indexed 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 | |
MWAWPictBitmapIndexed (Vec2i const &sz) | |
the constructor | |
Vec2i const & | size () const |
the picture size | |
int | numRows () const |
the number of rows | |
int | numColumns () const |
the number of columns | |
int | get (int i, int j) const |
returns a cell content | |
int const * | getRow (int j) const |
returns the cells content of a row | |
void | set (int i, int j, int v) |
sets a cell contents | |
template<class U > | |
void | setRow (int j, U const *val) |
sets all cell contents of a row | |
template<class U > | |
void | setColumn (int i, U const *val) |
sets all cell contents of a column | |
std::vector< MWAWColor > const & | getColors () const |
returns the array of indexed colors | |
void | setColors (std::vector< MWAWColor > const &cols) |
sets the array of indexed colors | |
Protected Member Functions | |
virtual bool | createFileData (WPXBinaryData &result) const |
the function which creates the result file | |
Protected Attributes | |
MWAWPictBitmapContainer< int > | m_data |
the m_data | |
std::vector< MWAWColor > | m_colors |
the colors |
a bitmap of int to store indexed bitmap
MWAWPictBitmapIndexed::MWAWPictBitmapIndexed | ( | Vec2i const & | sz | ) | [inline] |
the constructor
virtual int MWAWPictBitmapIndexed::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 MWAWPictBitmapIndexed::createFileData | ( | WPXBinaryData & | result | ) | const [protected, virtual] |
the function which creates the result file
Implements MWAWPictBitmap.
int MWAWPictBitmapIndexed::get | ( | int | i, |
int | j | ||
) | const [inline] |
returns a cell content
std::vector<MWAWColor> const& MWAWPictBitmapIndexed::getColors | ( | ) | const [inline] |
returns the array of indexed colors
int const* MWAWPictBitmapIndexed::getRow | ( | int | j | ) | const [inline] |
returns the cells content of a row
virtual SubType MWAWPictBitmapIndexed::getSubType | ( | ) | const [inline, virtual] |
return the picture subtype
Implements MWAWPictBitmap.
int MWAWPictBitmapIndexed::numColumns | ( | ) | const [inline] |
the number of columns
int MWAWPictBitmapIndexed::numRows | ( | ) | const [inline] |
the number of rows
void MWAWPictBitmapIndexed::set | ( | int | i, |
int | j, | ||
int | v | ||
) | [inline] |
sets a cell contents
Referenced by CWGraph::sendBitmap().
void MWAWPictBitmapIndexed::setColors | ( | std::vector< MWAWColor > const & | cols | ) | [inline] |
sets the array of indexed colors
Referenced by MWAWGraphicStyle::Pattern::getBinary(), MSKGraphInternal::DataBitmap::getPictureData(), and CWGraph::sendBitmap().
void MWAWPictBitmapIndexed::setColumn | ( | int | i, |
U const * | val | ||
) | [inline] |
sets all cell contents of a column
void MWAWPictBitmapIndexed::setRow | ( | int | j, |
U const * | val | ||
) | [inline] |
sets all cell contents of a row
Referenced by MWAWGraphicStyle::Pattern::getBinary(), and MSKGraphInternal::DataBitmap::getPictureData().
Vec2i const& MWAWPictBitmapIndexed::size | ( | ) | const [inline] |
the picture size
virtual bool MWAWPictBitmapIndexed::valid | ( | ) | const [inline, virtual] |
returns true if the picture is valid
Reimplemented from MWAWPictBitmap.
std::vector<MWAWColor> MWAWPictBitmapIndexed::m_colors [protected] |
the colors
Referenced by cmp(), createFileData(), getColors(), and setColors().
MWAWPictBitmapContainer<int> MWAWPictBitmapIndexed::m_data [protected] |
the m_data
Referenced by cmp(), createFileData(), get(), getRow(), numColumns(), numRows(), set(), setColumn(), setRow(), size(), and valid().