Go to the documentation of this file.
108 if (diff)
return (diff < 0) ? -1 : 1;
120 float minV[2], maxV[2];
121 for (
int c = 0; c < 2; c++) minV[c] = maxV[c] = pt[0][c];
123 for (
int i = 1; i < numPt; i++) {
124 for (
int c = 0; c < 2; c++) {
126 if (v < minV[c]) minV[c] = v;
127 else if (v > maxV[c]) maxV[c] = v;
158 if (&p ==
this)
return *
this;
MWAWPict()
protected constructor must not be called directly
Definition: MWAWPict.hxx:143
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data
Definition: MWAWPict.hxx:73
virtual ~MWAWPict()
virtual destructor
Definition: MWAWPict.cxx:36
@ MWAW_R_MAYBE
Definition: MWAWPict.hxx:73
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
MWAWPict & operator=(MWAWPict const &p)
protected operator= must not be called directly
Definition: MWAWPict.hxx:156
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
@ MWAW_R_OK
Definition: MWAWPict.hxx:73
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1122
Type
the different picture types:
Definition: MWAWPict.hxx:63
MWAWPict(MWAWPict const &p)
protected constructor must not be called directly
Definition: MWAWPict.hxx:149
virtual Type getType() const =0
returns the picture type
@ PictData
Definition: MWAWPict.hxx:63
void extendBDBox(float val)
udaptes the bdbox, by extended it by (val-previousVal)
Definition: MWAWPict.hxx:137
static MWAWBox2f getBdBox(int numPt, MWAWVec2f const *pt)
computes the minimum and maximum of a list of point
Definition: MWAWPict.hxx:114
Generic function used to define/store a picture.
Definition: MWAWPict.hxx:52
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
@ Unknown
Definition: MWAWPict.hxx:63
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
float m_bdBoxExt
the actual extension of the original box,
Definition: MWAWPict.hxx:168
virtual bool getBinary(MWAWEmbeddedObject &) const
tries to convert the picture in a binary data :
Definition: MWAWPict.hxx:93
@ Bitmap
Definition: MWAWPict.hxx:63
void setBdBox(MWAWBox2f const &box)
sets the bdbox of the picture
Definition: MWAWPict.hxx:84
MWAWBox2f getBdBox() const
returns the bdbox of the picture
Definition: MWAWPict.hxx:76
@ MWAW_R_OK_EMPTY
Definition: MWAWPict.hxx:73
virtual int cmp(MWAWPict const &a) const
a virtual function used to obtain a strict order, must be redefined in the subs class
Definition: MWAWPict.hxx:101
MWAWBox2f m_bdbox
the bdbox (min and max pt)
Definition: MWAWPict.hxx:166
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20