QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RSnapCoordinate Class Reference

RSnap implementation for coordinate snap. More...

Inheritance diagram for RSnapCoordinate:
RSnap RSnapCoordinatePolar

List of all members.

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
QSet< REntity::IdgetEntityIds ()
RVector getLastSnap () const
RSnap::Status getStatus () const
void reset ()
 RSnap ()
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 ()

Public Attributes

int coordinate
int relative

Additional Inherited Members

- Public Types inherited from RSnap
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...
- Protected Attributes inherited from RSnap
QSet< REntity::IdentityIds
RVector lastSnap
RSnap::Status status

Detailed Description

RSnap implementation for coordinate snap.


Constructor & Destructor Documentation

void RSnapCoordinate::RSnapCoordinate ( void  guiAction)
inline

Member Function Documentation

void RSnapCoordinate::getCoordinate ( )
inline

Reimplemented in RSnapCoordinatePolar.

void RSnapCoordinate::getCoordinateEvent ( )
inline
void RSnapCoordinate::hideUiOptions ( void  )
inlinevirtual

Reimplemented from RSnap.

void RSnapCoordinate::initAction ( void  guiAction)
inline

Reimplemented in RSnapCoordinatePolar.

void RSnapCoordinate::showUiOptions ( void  )
inlinevirtual

Reimplemented from RSnap.

void RSnapCoordinate::snap ( void  position,
void  view 
)
inline
void RSnapCoordinate::update ( )
inline

Member Data Documentation

int RSnapCoordinate::coordinate
int RSnapCoordinate::relative

The documentation for this class was generated from the following file: