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

Distance snapper implementation. More...

#include <RSnapDistance.h>

Inheritance diagram for RSnapDistance:
RSnapEntityBase RSnap RSnapDistanceExtension

List of all members.

Public Member Functions

virtual void hideUiOptions ()
 RSnapDistance ()
 Copyright (c) 2011-2014 by Andrew Mustun.
virtual void setDistance (double d)
virtual void showUiOptions ()
virtual ~RSnapDistance ()
- Public Member Functions inherited from RSnapEntityBase
virtual RVector snap (const RVector &position, RGraphicsView &view, double range=RNANDOUBLE)
 Copyright (c) 2011-2014 by Andrew Mustun.
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.
virtual ~RSnap ()

Protected Member Functions

virtual QList< RVectorsnapEntity (QSharedPointer< REntity > entity, const RVector &point, const RBox &queryBox, RGraphicsView &view)

Private Attributes

double distance

Detailed Description

Distance snapper implementation.

This class is wrapped for script environments.

Constructor & Destructor Documentation

RSnapDistance::RSnapDistance ( )

Copyright (c) 2011-2014 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.

virtual RSnapDistance::~RSnapDistance ( )

Member Function Documentation

void RSnapDistance::hideUiOptions ( )

Reimplemented from RSnap.

Reimplemented in RSnapDistanceExtension.

void RSnapDistance::setDistance ( double  d)
void RSnapDistance::showUiOptions ( )

Reimplemented from RSnap.

Reimplemented in RSnapDistanceExtension.

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

Implements RSnapEntityBase.

Member Data Documentation

double RSnapDistance::distance

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