Adds selection status and layer to IpeObject.
enum IpePgObject::TSelect |
Selection status of an object on the page.
Constructor takes ownership of object.
IpePgObject::IpePgObject | ( | const IpePgObject & | rhs | ) |
Copy constructor clones object.
IpePgObject::~IpePgObject | ( | ) |
Destructor.
TSelect IpePgObject::Select | ( | ) | const [inline] |
Return selection status.
int IpePgObject::Layer | ( | ) | const [inline] |
Return layer.
void IpePgObject::SetSelect | ( | TSelect | sel | ) | [inline] |
Set selection status.
void IpePgObject::SetLayer | ( | int | layer | ) | [inline] |
Set layer.
void IpePgObject::ReplaceObject | ( | IpeObject * | obj | ) |
Replace the object.
IpeRect IpePgObject::BBox | ( | ) | const |
Return a bounding box for the object.
IpePgObject caches the box the first time it is computed.
Make sure you call IpePgObject::Transform instead of IpeObject::SetMatrix, as the latter would not invalidate the bounding box.
void IpePgObject::Transform | ( | const IpeMatrix & | m | ) |
Transform the object.
Use this function instead of calling IpeObject::SetMatrix directly, as the latter doesn't invalidate the cached bounding box.
double IpePgObject::Distance | ( | const IpeVector & | v, | |
double | bound | |||
) | const |
Return distance between object and v.
But may just return bound if the distance is larger. This function uses the cached bounded box, and is faster than calling IpeObject::Distance directly.
Compute possible vertex snapping position.
Looks only for positions closer than bound. If successful, modifies pos and bound.
Compute possible boundary snapping position.
Looks only for positions closer than bound. If successful, modifies pos and bound.
void IpePgObject::InvalidateBBox | ( | ) | const |
Invalidate the bounding box (the object is somehow changed).
typedef std::list<IpePgObject> IpePgObjectSeq [related] |
List of objects on a page.