Inherits IpeObject.
IpeImage::IpeImage | ( | IpeRepository * | rep, | |
const IpeXmlAttributes & | attr, | |||
IpeString | data | |||
) | [explicit] |
Create from XML stream.
IpeImage::IpeImage | ( | IpeRepository * | rep, | |
const IpeXmlAttributes & | attr, | |||
IpeBitmap | bitmap | |||
) | [explicit] |
Create from XML stream with given bitmap.
IpeImage * IpeImage::AsImage | ( | ) | [virtual] |
void IpeImage::SaveAsXml | ( | IpePainter & | painter, | |
IpeStream & | stream, | |||
IpeString | layer | |||
) | const [virtual] |
void IpeImage::Draw | ( | IpePainter & | painter | ) | const [virtual] |
void IpeImage::Accept | ( | IpeVisitor & | visitor | ) | const [virtual] |
double IpeImage::Distance | ( | const IpeVector & | v, | |
const IpeMatrix & | m, | |||
double | bound | |||
) | const [virtual] |
Return distance of transformed object to point v. If larger than bound, can just return bound.
Implements IpeObject.
Extend box to include the object transformed by m.
For Ipe objects in a page, don't call this directly. The IpePgObject caches the bounding box, so it is far more efficient to call IpePgObject::BBox.
If called with an empty box, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
Implements IpeObject.
void IpeImage::SnapVtx | ( | const IpeVector & | mouse, | |
const IpeMatrix & | m, | |||
IpeVector & | pos, | |||
double & | bound | |||
) | const [virtual] |
Compute possible vertex snapping position for transformed object.
Looks only for positions closer than bound. If successful, modify pos and bound.
Implements IpeObject.
IpeRect IpeImage::Rect | ( | ) | const [inline] |
Return the rectangle occupied by the image on the paper.
The transformation matrix is applied to this, of course.