|
QCAD
Open Source 2D CAD
|
RSnap implementation for coordinate snap. More...
Public Member Functions | |
| void | getCoordinate () |
| void | getCoordinateEvent () |
| void | hideUiOptions () |
| void | initAction (void guiAction) |
| void | RSnapCoordinate (void guiAction) |
| void | showUiOptions () |
| void | snap (void position, void view) |
| void | update () |
Public Member Functions inherited from RSnap | |
| virtual void | finishEvent () |
| QList< RObject::Id > | getEntityIds () |
| RVector | getLastSnap () const |
| RSnap::Status | getStatus () const |
| virtual void | reset () |
| RSnap (RSnap::Status s=RSnap::Unknown) | |
| void | setLastSnap (const RVector &v) |
| void | setStatus (RSnap::Status s) |
| virtual RVector | snap (const RVector &position, RGraphicsView &view, double range=RNANDOUBLE) |
| virtual RVector | snap (RMouseEvent &event) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| virtual void | suspendEvent () |
| ~RSnap () | |
Public Attributes | |
| int | coordinate |
| int | relative |
Additional Inherited Members | |
Public Types inherited from RSnap | |
| enum | Status { Unknown = 0 , Free = 1 , Grid = 2 , Endpoint = 3 , OnEntity = 4 , Center = 5 , Middle = 6 , Distance = 7 , Intersection = 8 , IntersectionManual = 9 , Reference = 10 , Perpendicular = 11 , Tangential = 12 , Coordinate = 13 , CoordinatePolar = 14 } |
| Snap status, returned by snap tools (most importantly auto snap tool) to indicate what snap was used. More... | |
Protected Attributes inherited from RSnap | |
| QList< RObject::Id > | entityIds |
| RVector | lastSnap |
| RSnap::Status | status |
RSnap implementation for coordinate snap.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from RSnap.
|
inline |
|
inlinevirtual |
Reimplemented from RSnap.
|
inline |
|
inline |
| int RSnapCoordinate::coordinate |
| int RSnapCoordinate::relative |