QCAD
Open Source 2D CAD
RSnapPerpendicular Class Reference

On entity snapper implementation. More...

#include <RSnapPerpendicular.h>

Inheritance diagram for RSnapPerpendicular:
RSnapEntityBase RSnap

Public Member Functions

virtual ~RSnapPerpendicular ()
 
- 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
 
virtual void hideUiOptions ()
 
void reset ()
 
 RSnap ()
 
virtual void showUiOptions ()
 
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 ()
 

Protected Member Functions

virtual QList< RVectorsnapEntity (QSharedPointer< REntity > entity, const RVector &point, const RBox &queryBox, RGraphicsView &view)
 Copyright (c) 2011-2015 by Andrew Mustun. More...
 

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

On entity snapper implementation.

Scriptable:
This class is available in script environments.

Constructor & Destructor Documentation

virtual RSnapPerpendicular::~RSnapPerpendicular ( )
inlinevirtual

Member Function Documentation

QList< RVector > RSnapPerpendicular::snapEntity ( QSharedPointer< REntity entity,
const RVector point,
const RBox queryBox,
RGraphicsView view 
)
protectedvirtual

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

Implements RSnapEntityBase.


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