Generic function used to define/store a picture. More...
#include <MWAWPict.hxx>
Public Types | |
enum | Type { Basic, PictData, Bitmap, OleContainer, 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... | |
Public Member Functions | |
virtual | ~MWAWPict () |
virtual destructor More... | |
virtual Type | getType () const =0 |
returns the picture type More... | |
Box2f | getBdBox () const |
returns the bdbox of the picture More... | |
void | setBdBox (Box2f const &box) |
sets the bdbox of the picture More... | |
virtual bool | getBinary (WPXBinaryData &, std::string &) const |
tries to convert the picture in a binary data : 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... | |
Protected Member Functions | |
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... | |
Static Protected Member Functions | |
static Box2f | getBdBox (int numPt, Vec2f const *pt) |
computes the minimum and maximum of a list of point More... | |
Private Attributes | |
Box2f | m_bdbox |
the bdbox (min and max pt) More... | |
float | m_bdBoxExt |
the actual extension of the original box, More... | |
Generic function used to define/store a picture.
enum MWAWPict::ReadResult |
enum MWAWPict::Type |
|
inlinevirtual |
virtual destructor
|
inlineprotected |
protected constructor must not be called directly
|
inlineprotected |
protected constructor must not be called directly
|
inlinevirtual |
a virtual function used to obtain a strict order, must be redefined in the subs class
Reimplemented in MWAWPictPolygon, MWAWPictPath, MWAWPictBitmapColor, MWAWPictArc, MWAWPictCircle, MWAWPictBitmapIndexed, MWAWPictRectangle, MWAWPictBitmapBW, MWAWPictLine, MWAWPictDUnknown, MWAWPictBitmap, MWAWPictDB3, MWAWPictBasic, MWAWPictData, MWAWPictOLEContainer, and MWAWPictMac.
Referenced by MWAWPictOLEContainer::cmp(), MWAWPictData::cmp(), MWAWPictBasic::cmp(), and MWAWPictBitmap::cmp().
|
inlineprotected |
udaptes the bdbox, by extended it by (val-previousVal)
Referenced by MWAWPictBasic::extendBDBox(), and MWAWPictMac::MWAWPictMac().
|
inline |
returns the bdbox of the picture
Referenced by MWAWPictLine::getODGBinary(), MWAWPictRectangle::getODGBinary(), MWAWPictCircle::getODGBinary(), MWAWPictArc::getODGBinary(), MWAWPictPath::getODGBinary(), MWAWPictPolygon::getODGBinary(), MWAWPictLine::MWAWPictLine(), and MWAWPictBasic::startODG().
computes the minimum and maximum of a list of point
|
inlinevirtual |
tries to convert the picture in a binary data :
Reimplemented in MWAWPictBitmap, MWAWPictBasic, MWAWPictData, MWAWPictMac, and MWAWPictOLEContainer.
|
pure virtual |
returns the picture type
Implemented in MWAWPictBitmap, MWAWPictBasic, MWAWPictData, and MWAWPictOLEContainer.
Referenced by cmp().
protected operator= must not be called directly
Referenced by MWAWPictBasic::operator=().
|
inline |
sets the bdbox of the picture
Referenced by MWAWPictData::get(), MWAWPictArc::MWAWPictArc(), MWAWPictBitmap::MWAWPictBitmap(), MWAWPictCircle::MWAWPictCircle(), MWAWPictLine::MWAWPictLine(), MWAWPictPath::MWAWPictPath(), MWAWPictPolygon::MWAWPictPolygon(), and MWAWPictRectangle::MWAWPictRectangle().
|
private |
the bdbox (min and max pt)
Referenced by cmp(), getBdBox(), operator=(), and setBdBox().
|
private |
the actual extension of the original box,
Referenced by extendBDBox(), getBdBox(), and operator=().