a bitmap of int to store indexed bitmap More...
#include <MWAWPictBitmap.hxx>
Public Member Functions | |
virtual SubType | getSubType () const |
return the picture subtype More... | |
virtual int | cmp (MWAWPict const &a) const |
a virtual function used to obtain a strict order, must be redefined in the subs class More... | |
virtual bool | valid () const |
returns true if the picture is valid More... | |
MWAWPictBitmapIndexed (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... | |
int | get (int i, int j) const |
returns a cell content More... | |
int const * | getRow (int j) const |
returns the cells content of a row More... | |
void | set (int i, int j, int v) |
sets a cell contents More... | |
template<class U > | |
void | setRow (int j, U const *val) |
sets all cell contents of a row More... | |
template<class U > | |
void | setColumn (int i, U const *val) |
sets all cell contents of a column More... | |
std::vector< MWAWColor > const & | getColors () const |
returns the array of indexed colors More... | |
void | setColors (std::vector< MWAWColor > const &cols) |
sets the array of indexed colors More... | |
![]() | |
virtual Type | getType () const |
returns the picture type More... | |
virtual bool | getBinary (librevenge::RVNGBinaryData &res, std::string &s) const |
returns the final librevenge::RVNGBinary data 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 | |
virtual bool | createFileData (librevenge::RVNGBinaryData &result) const |
the 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 | |
MWAWPictBitmapContainer< int > | m_data |
the m_data More... | |
std::vector< MWAWColor > | m_colors |
the colors 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 int to store indexed bitmap
|
inline |
the constructor
|
inlinevirtual |
a virtual function used to obtain a strict order, must be redefined in the subs class
Reimplemented from MWAWPictBitmap.
|
protectedvirtual |
the function which creates the result file
Implements MWAWPictBitmap.
|
inline |
returns a cell content
|
inline |
returns the array of indexed colors
|
inline |
returns the cells content of a row
|
inlinevirtual |
return the picture subtype
Implements MWAWPictBitmap.
|
inline |
the number of columns
|
inline |
the number of rows
|
inline |
sets a cell contents
Referenced by ClarisDrawGraph::sendBitmap(), and ClarisWksGraph::sendBitmap().
|
inline |
sets the array of indexed colors
Referenced by MWAWGraphicStyle::Pattern::getBinary(), MsWksGraphInternal::DataBitmap::getPictureData(), MacDrawProStyleManager::readColorPatterns(), MacDrawProParser::sendBitmap(), ClarisDrawGraph::sendBitmap(), and ClarisWksGraph::sendBitmap().
|
inline |
sets all cell contents of a column
|
inline |
sets all cell contents of a row
Referenced by MWAWGraphicStyle::Pattern::getBinary(), MsWksGraphInternal::DataBitmap::getPictureData(), MacDrawProStyleManager::readColorPatterns(), and MacDrawProParser::sendBitmap().
|
inline |
the picture size
|
inlinevirtual |
returns true if the picture is valid
Reimplemented from MWAWPictBitmap.
|
protected |
the colors
Referenced by cmp(), createFileData(), getColors(), and setColors().
|
protected |
the m_data
Referenced by cmp(), createFileData(), get(), getRow(), numColumns(), numRows(), set(), setColumn(), setRow(), size(), and valid().