an abstract class which defines basic formated picture ( AppleŠ Pict, DB3, ...) More...
#include <MWAWPictData.hxx>
Public Types | |
enum | SubType { PictMac , DB3 , Unknown } |
the picture subtype 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... | |
Public Member Functions | |
~MWAWPictData () override | |
destructor | |
Type | getType () const override |
returns the picture type | |
virtual SubType | getSubType () const =0 |
returns the picture subtype | |
bool | getBinary (MWAWEmbeddedObject &picture) const override |
returns the final picture | |
virtual bool | sure () const |
returns true if we are relatively sure that the data are correct | |
virtual bool | valid () const |
returns true if the picture is valid | |
bool | isEmpty () const |
returns true if the picture is valid and has size 0 or contains no data | |
int | cmp (MWAWPict const &a) const override |
a virtual function used to obtain a strict order, must be redefined in the subs class | |
![]() | |
virtual | ~MWAWPict () |
virtual destructor | |
virtual Type | getType () const =0 |
returns the picture type | |
MWAWBox2f | getBdBox () const |
returns the bdbox of the picture | |
void | setBdBox (MWAWBox2f const &box) |
sets the bdbox of the picture | |
virtual bool | getBinary (MWAWEmbeddedObject &) const |
tries to convert the picture in a binary data : | |
virtual int | cmp (MWAWPict const &a) const |
a virtual function used to obtain a strict order, must be redefined in the subs class | |
Static Public Member Functions | |
static ReadResult | check (MWAWInputStreamPtr const &input, int size, MWAWBox2f &box) |
checks if the data pointed by input is known | |
static MWAWPictData * | get (MWAWInputStreamPtr const &input, int size) |
checks if the data pointed by input is known | |
Protected Member Functions | |
MWAWPictData () | |
protected constructor: use check to construct a picture | |
MWAWPictData (MWAWBox2f &) | |
![]() | |
void | extendBDBox (float val) |
udaptes the bdbox, by extended it by (val-previousVal) | |
MWAWPict () | |
protected constructor must not be called directly | |
MWAWPict (MWAWPict const &p) | |
protected constructor must not be called directly | |
MWAWPict & | operator= (MWAWPict const &p) |
protected operator= must not be called directly | |
Static Protected Member Functions | |
static bool | createFileData (librevenge::RVNGBinaryData const &orig, librevenge::RVNGBinaryData &result) |
a file pict can be created from the data pict by adding a header with size 512, this function do this conversion needed to return the final picture | |
static ReadResult | checkOrGet (MWAWInputStreamPtr input, int size, MWAWBox2f &box, MWAWPictData **result=nullptr) |
checks if the data pointed by input and of given size is a pict | |
![]() | |
static MWAWBox2f | getBdBox (int numPt, MWAWVec2f const *pt) |
computes the minimum and maximum of a list of point | |
Protected Attributes | |
librevenge::RVNGBinaryData | m_data |
the data size (without the empty header of 512 characters) | |
bool | m_empty |
some picture can be valid but empty | |
an abstract class which defines basic formated picture ( AppleŠ Pict, DB3, ...)
|
override |
destructor
|
inlineprotected |
protected constructor: use check to construct a picture
|
inlineexplicitprotected |
|
inlinestatic |
checks if the data pointed by input is known
Referenced by GreatWksBMParser::checkHeader(), MacDrawParser::checkHeader(), MacDrawProParser::checkHeader(), MacDocParser::createZones(), MsWksGraphInternal::DataPict::getBinaryData(), CanvasGraph::getPicture(), MWAWOLEParser::parse(), MacWrtParser::readGraphic(), MoreParser::readGraphic(), WriterPlsParser::readGraphic(), ClarisWksGraph::readPICT(), MsWksTable::sendChart(), ActaText::sendGraphic(), FullWrtGraph::sendGraphic(), NisusWrtGraph::sendPageGraphics(), TeachTxtParser::sendPicture(), EDocParser::sendPicture(), DocMkrParser::sendPicture(), RagTimeParser::sendPicture(), MsWrdParser::sendPicture(), MacDocParser::sendPicture(), and DrawTableParser::sendShape().
|
staticprotected |
|
inlineoverridevirtual |
a virtual function used to obtain a strict order, must be redefined in the subs class
Reimplemented from MWAWPict.
Reimplemented in MWAWPictDB3, MWAWPictDUnknown, and MWAWPictMac.
Referenced by MWAWPictDB3::cmp(), MWAWPictDUnknown::cmp(), and MWAWPictMac::cmp().
|
staticprotected |
a file pict can be created from the data pict by adding a header with size 512, this function do this conversion needed to return the final picture
Referenced by MWAWPictMac::getBinary(), and getBinary().
|
inlinestatic |
checks if the data pointed by input is known
Referenced by MsWksGraphInternal::DataPict::getBinaryData(), CanvasGraph::getPicture(), JazzWriterParser::getPicture(), MacWrtParser::readGraphic(), MindWrtParser::readGraphic(), WriterPlsParser::readGraphic(), Canvas5Parser::readPicture(), WordMakerParser::readPicture(), StudentWritingCParser::readPicture(), WriteNowText::readTokenV2(), ReadySetGoParser::send(), ScriptWriterParser::send(), MsWksTable::sendChart(), FullWrtGraph::sendGraphic(), ClarisDrawGraph::sendGroup(), ClarisDrawGraph::sendMainGroupChild(), LightWayTxtGraph::sendPICT(), GreatWksBMParser::sendPicture(), ClarisWksGraph::sendPicture(), TeachTxtParser::sendPicture(), EDocParser::sendPicture(), DocMkrParser::sendPicture(), RagTimeParser::sendPicture(), MsWrdParser::sendPicture(), MacDocParser::sendPicture(), GreatWksGraph::sendPicture(), MacWrtProParser::sendPicture(), WriteNowParser::sendPicture(), BeagleWksDRParser::sendPictures(), SuperPaintParser::sendPictures(), DrawTableParser::sendShape(), and MoreText::sendText().
|
inlineoverridevirtual |
|
pure virtual |
returns the picture subtype
Implemented in MWAWPictDB3, MWAWPictDUnknown, and MWAWPictMac.
|
inlineoverridevirtual |
returns the picture type
Implements MWAWPict.
|
inline |
returns true if the picture is valid and has size 0 or contains no data
Referenced by MWAWPictMac::getBinary(), and getBinary().
|
inlinevirtual |
returns true if we are relatively sure that the data are correct
|
inlinevirtual |
returns true if the picture is valid
Reimplemented in MWAWPictDB3, MWAWPictDUnknown, and MWAWPictMac.
Referenced by getBinary().
|
protected |
the data size (without the empty header of 512 characters)
Referenced by cmp(), MWAWPictMac::getBinary(), getBinary(), MWAWPictDB3::valid(), and MWAWPictDUnknown::valid().
|
protected |
some picture can be valid but empty
Referenced by cmp(), isEmpty(), MWAWPictDB3::MWAWPictDB3(), and MWAWPictDUnknown::MWAWPictDUnknown().