The different snap modes as bitmasks.
Perform intersection snapping.
bool IpeSnapData::SnapAngularIntersection | ( | IpeVector & | pos, | |
const IpeLine & | l, | |||
const IpePage * | page, | |||
double | snapDist | |||
) | const |
Perform snapping to intersection of angular line and pos.
Tries vertex, intersection, boundary, and grid snapping.
If snapping occurred, pos is set to the new user space position.
bool IpeSnapData::Snap | ( | IpeVector & | pos, | |
const IpePage * | page, | |||
double | snapDist, | |||
IpeVector * | autoOrg = 0 | |||
) | const |
Performs snapping of position pos.
Returns true
if snapping occurred. In that case pos is set to the new user space position.
Automatic angular snapping occurs if autoOrg is not null --- the value is then used as the origin for automatic angular snapping.
Find line through base with slope determined by angular snap size and direction.
Set axis origin and direction from edge near mouse.
Returns true
if successful.
Activated snapping modes (TSnapModes).
Is the grid visible?
Snap grid spacing.
double IpeSnapData::iAngleSize |
Angle for angular snapping.
Snap distance (in pixels).
Select distance (in pixels).
Show coordinate system?
Origin of coordinate system.
Direction of x-axis.