Inherits IpeFillable.
A mark is a little marker for a "point". Several shapes are available: disks, circles, squares, crosses, etc.
| IpeMark::IpeMark | ( | const IpeAllAttributes & | attr, | |
| const IpeVector & | pos | |||
| ) | [explicit] |
Create at position.
| IpeMark::IpeMark | ( | IpeRepository * | rep, | |
| const IpeXmlAttributes & | attr, | |||
| IpeString | data | |||
| ) | [explicit] |
Create from XML stream.
| IpeMark::IpeMark | ( | const IpeMark & | rhs | ) |
Copy constructor.
| IpeMark * IpeMark::AsMark | ( | ) | [virtual] |
| void IpeMark::Accept | ( | IpeVisitor & | visitor | ) | const [virtual] |
| void IpeMark::SaveAsXml | ( | IpePainter & | painter, | |
| IpeStream & | stream, | |||
| IpeString | layer | |||
| ) | const [virtual] |
| void IpeMark::Draw | ( | IpePainter & | painter | ) | const [virtual] |
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.
Return distance of transformed object to point v. If larger than bound, can just return bound.
Implements IpeObject.
| void IpeMark::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.
| void IpeMark::CheckStyle | ( | const IpeStyleSheet * | sheet, | |
| IpeAttributeSeq & | seq | |||
| ) | const [virtual] |
| IpeVector IpeMark::Position | ( | ) | const [inline] |
Return mark position.
| int IpeMark::Shape | ( | ) | const [inline] |
Return mark type.
| IpeAttribute IpeMark::Size | ( | ) | const [inline] |
Return mark size.
| void IpeMark::SetShape | ( | int | shape | ) |
Set shape of mark.
| void IpeMark::SetSize | ( | IpeAttribute | size | ) |
Set size of mark.