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 ()
 Copyright (c) 2011-2015 by Andrew Mustun. More...
virtual void setDistance (double d)
virtual ~RSnapDistance ()
- Public Member Functions inherited from RSnapEntityBase
virtual RVector snap (const RVector &position, RGraphicsView &view, double range=RNANDOUBLE)
 Copyright (c) 2011-2015 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
QSet< REntity::IdgetEntityIds ()
RVector getLastSnap () const
RSnap::Status getStatus () const
void reset ()
 RSnap ()
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 ~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,
  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)
- 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: