Open Source 2D CAD
RSnapCoordinate Class Reference

RSnap implementation for coordinate snap. More...

Inheritance diagram for RSnapCoordinate:
RSnap RSnapCoordinatePolar

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 ()
QSet< REntity::IdgetEntityIds ()
RVector getLastSnap () const
RSnap::Status getStatus () const
void reset ()
 RSnap (RSnap::Status s=RSnap::Unknown)
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. More...
virtual void suspendEvent ()
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,
  Tangential, 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)

Member Function Documentation

void RSnapCoordinate::getCoordinate ( )
void RSnapCoordinate::getCoordinateEvent ( )
void RSnapCoordinate::hideUiOptions ( void  )

Reimplemented from RSnap.

void RSnapCoordinate::initAction ( void  guiAction)
void RSnapCoordinate::showUiOptions ( void  )

Reimplemented from RSnap.

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

Member Data Documentation

int RSnapCoordinate::coordinate
int RSnapCoordinate::relative

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