Open Source 2D CAD
RSnapDistanceExtension Class Reference

RSnap implementation. More...

Inheritance diagram for RSnapDistanceExtension:
RSnapDistance RSnapEntityBase RSnap

Public Member Functions

void hideUiOptions ()
void RSnapDistanceExtension ()
void showUiOptions ()
- Public Member Functions inherited from RSnapDistance
 RSnapDistance ()
virtual void setDistance (double d)
virtual ~RSnapDistance ()
- Public Member Functions inherited from RSnapEntityBase
 RSnapEntityBase (RSnap::Status s)
virtual RVector snap (const RVector &position, RGraphicsView &view, double range=RNANDOUBLE)
 Copyright (c) 2011-2017 by Andrew Mustun. More...
virtual RVector snap (const RVector &position, RGraphicsView &view, const QSet< REntity::Id > &candidates, const RBox &queryBox)
virtual ~RSnapEntityBase ()
- 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 (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 action

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 Member Functions inherited from RSnapDistance
virtual QList< RVectorsnapEntity (QSharedPointer< REntity > entity, const RVector &point, const RBox &queryBox, RGraphicsView &view)
 Copyright (c) 2011-2017 by Andrew Mustun. More...
- Protected Attributes inherited from RSnap
QSet< REntity::IdentityIds
RVector lastSnap
RSnap::Status status

Detailed Description

RSnap implementation.

Extends RSnapDistance with an options toolbar which allows the user to enter the snap distance.

Constructor & Destructor Documentation

void RSnapDistanceExtension::RSnapDistanceExtension ( )

Member Function Documentation

void RSnapDistanceExtension::hideUiOptions ( void  )

Reimplemented from RSnapDistance.

void RSnapDistanceExtension::showUiOptions ( void  )

Reimplemented from RSnapDistance.

Member Data Documentation

int RSnapDistanceExtension::action

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