RSnapAuto
Class in Snap Module
Header: #include <src/snap/RSnapAuto.h>
Inherits: RSnap
Description
Section titled “Description”Auto snapper implementation.
Scriptable: This class is available in script environments.
Public Types
Section titled “Public Types”| enum | Mode { None, Intersections, EndPoints, MiddlePoints, CenterPoints, PerpendicularPoints, TangentialPoints, ReferencePoints, GridPoints, PointsOnEntity, FreePositioning } |
Public Functions
Section titled “Public Functions”RSnapAuto() |
|
| virtual | ~RSnapAuto() |
| virtual void | reset() |
| virtual RVector | snap(const RVector &position, RGraphicsView &view, double range=RNANDOUBLE) |
Static Public Functions
Section titled “Static Public Functions”| static bool | getCenterPoints() |
| static bool | getEndPoints() |
| static bool | getFreePositioning() |
| static bool | getGridPoints() |
| static bool | getIntersections() |
| static bool | getMiddlePoints() |
| static bool | getMode(RSnapAuto::Mode mode) |
| static RSnapAuto::Modes | getModes() |
| static bool | getPerpendicular() |
| static bool | getPointsOnEntity() |
| static bool | getReferencePoints() |
| static bool | getTangential() |
| static void | init(bool force=false) |
| static void | setCenterPoints(bool on) |
| static void | setEndPoints(bool on) |
| static void | setFreePositioning(bool on) |
| static void | setGridPoints(bool on) |
| static void | setIntersections(bool on) |
| static void | setMiddlePoints(bool on) |
| static void | setMode(RSnapAuto::Mode mode, bool on) |
| static void | setModes(RSnapAuto::Modes m) |
| static void | setPerpendicular(bool on) |
| static void | setPointsOnEntity(bool on) |
| static void | setReferencePoints(bool on) |
| static void | setTangential(bool on) |
Static Private Attributes
Section titled “Static Private Attributes”| static bool | initialized |
| static Modes | modes |
Member Documentation
Section titled “Member Documentation”enum ModeRSnapAuto
Section titled “RSnapAuto”RSnapAuto::RSnapAuto()inline
~RSnapAuto
Section titled “~RSnapAuto”virtual RSnapAuto::~RSnapAuto()virtual inline
virtual void RSnapAuto::reset()virtual inline
Reimplemented from reset.
virtual RVector RSnapAuto::snap(const RVector &position, RGraphicsView &view, double range=RNANDOUBLE)virtual
Returns: The snapped position (closest relevant position) for the given mouse position.
Reimplemented from snap.
getCenterPoints
Section titled “getCenterPoints”static bool RSnapAuto::getCenterPoints()static inline
getEndPoints
Section titled “getEndPoints”static bool RSnapAuto::getEndPoints()static inline
getFreePositioning
Section titled “getFreePositioning”static bool RSnapAuto::getFreePositioning()static inline
getGridPoints
Section titled “getGridPoints”static bool RSnapAuto::getGridPoints()static inline
getIntersections
Section titled “getIntersections”static bool RSnapAuto::getIntersections()static inline
getMiddlePoints
Section titled “getMiddlePoints”static bool RSnapAuto::getMiddlePoints()static inline
getMode
Section titled “getMode”static bool RSnapAuto::getMode(RSnapAuto::Mode mode)static inline
getModes
Section titled “getModes”static RSnapAuto::Modes RSnapAuto::getModes()static inline
getPerpendicular
Section titled “getPerpendicular”static bool RSnapAuto::getPerpendicular()static inline
getPointsOnEntity
Section titled “getPointsOnEntity”static bool RSnapAuto::getPointsOnEntity()static inline
getReferencePoints
Section titled “getReferencePoints”static bool RSnapAuto::getReferencePoints()static inline
getTangential
Section titled “getTangential”static bool RSnapAuto::getTangential()static inline
static void RSnapAuto::init(bool force=false)static
setCenterPoints
Section titled “setCenterPoints”static void RSnapAuto::setCenterPoints(bool on)static inline
setEndPoints
Section titled “setEndPoints”static void RSnapAuto::setEndPoints(bool on)static inline
setFreePositioning
Section titled “setFreePositioning”static void RSnapAuto::setFreePositioning(bool on)static inline
setGridPoints
Section titled “setGridPoints”static void RSnapAuto::setGridPoints(bool on)static inline
setIntersections
Section titled “setIntersections”static void RSnapAuto::setIntersections(bool on)static inline
setMiddlePoints
Section titled “setMiddlePoints”static void RSnapAuto::setMiddlePoints(bool on)static inline
setMode
Section titled “setMode”static void RSnapAuto::setMode(RSnapAuto::Mode mode, bool on)static inline
setModes
Section titled “setModes”static void RSnapAuto::setModes(RSnapAuto::Modes m)static inline
setPerpendicular
Section titled “setPerpendicular”static void RSnapAuto::setPerpendicular(bool on)static inline
setPointsOnEntity
Section titled “setPointsOnEntity”static void RSnapAuto::setPointsOnEntity(bool on)static inline
setReferencePoints
Section titled “setReferencePoints”static void RSnapAuto::setReferencePoints(bool on)static inline
setTangential
Section titled “setTangential”static void RSnapAuto::setTangential(bool on)static inline
initialized
Section titled “initialized”static bool RSnapAuto::initialized = falsestatic private
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.
static RSnapAuto::Modes RSnapAuto::modes = RSnapAuto::Nonestatic private