|
QCAD Application Framework
CAD Application Development and Automation.
|
Abstract base class for all grid and object snap implementations. More...
#include <RSnap.h>
Public Types | |
| enum | Status { Unknown, Free, Grid, Endpoint, OnEntity, Center, Middle, Distance, Intersection, IntersectionManual, Reference, Perpendicular, Coordinate, CoordinatePolar } |
| Snap status, returned by snap tools (most importantly auto snap tool) to indicate what snap was used. More... | |
Public Member Functions | |
| QSet< REntity::Id > | getEntityIds () |
| RVector | getLastSnap () const |
| RSnap::Status | getStatus () const |
| virtual void | hideUiOptions () |
| void | reset () |
| RSnap () | |
| virtual void | showUiOptions () |
| virtual RVector | snap (const RVector &position, RGraphicsView &view, double range=RNANDOUBLE)=0 |
| 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 | ~RSnap () |
Protected Attributes | |
| QSet< REntity::Id > | entityIds |
| RVector | lastSnap |
| RSnap::Status | status |
Abstract base class for all grid and object snap implementations.
A snap class implements an object or grid snap tool. For example to snap to end points of objects.
| enum RSnap::Status |
Snap status, returned by snap tools (most importantly auto snap tool) to indicate what snap was used.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in RSnapCoordinate, RSnapDistance, and RSnapDistanceExtension.
|
inline |
|
inlinevirtual |
Reimplemented in RSnapCoordinate, RSnapDistance, and RSnapDistanceExtension.
|
pure virtual |
Implemented in RSnapIntersection, RSnapAuto, RSnapFree, RSnapGrid, and RSnapEntityBase.
|
inlinevirtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
\par Non-Scriptable:
This function is not available in script environments.
|
protected |
|
protected |
|
protected |