RRestrictAngleLength
Class in Snap Module
Header: #include <src/snap/RRestrictAngleLength.h>
Inherits: RSnapRestriction
Description
Section titled “Description”Angle and length snap restriction implementation.
Scriptable: This class is available in script environments.
\generateScriptShell
Public Types
Section titled “Public Types”| enum | AngleLengthMode { None, Angle, Length, AngleLength } |
Public Functions
Section titled “Public Functions”RRestrictAngleLength(RDocumentInterface *documentInterface, double baseAngle, double angle, double baseLength, double length) |
|
RRestrictAngleLength(RDocumentInterface *documentInterface=NULL) |
|
| virtual | ~RRestrictAngleLength() |
| virtual RVector | restrictSnap(const RVector &position, const RVector &relativeZero) |
| virtual void | setAngle(double a) |
| virtual void | setBaseAngle(double a) |
| virtual void | setBaseLength(double l) |
| virtual void | setLength(double l) |
| virtual void | setRepeatAngle(bool on) |
| virtual void | setRepeatLength(bool on) |
| virtual void | setRestrictAngle(bool on) |
| virtual void | setRestrictLength(bool on) |
Protected Attributes
Section titled “Protected Attributes”| double | angle |
| double | baseAngle |
| double | baseLength |
| double | length |
| AngleLengthMode | mode |
| bool | repeatAngle |
| bool | repeatLength |
Member Documentation
Section titled “Member Documentation”AngleLengthMode
Section titled “AngleLengthMode”enum AngleLengthMode| Value | Description |
|---|---|
None |
|
Angle |
|
Length |
|
AngleLength |
RRestrictAngleLength
Section titled “RRestrictAngleLength”RRestrictAngleLength::RRestrictAngleLength(RDocumentInterface *documentInterface, double baseAngle, double angle, double baseLength, double length)inline
RRestrictAngleLength
Section titled “RRestrictAngleLength”RRestrictAngleLength::RRestrictAngleLength(RDocumentInterface *documentInterface=NULL)inline
~RRestrictAngleLength
Section titled “~RRestrictAngleLength”virtual RRestrictAngleLength::~RRestrictAngleLength()virtual inline
restrictSnap
Section titled “restrictSnap”virtual RVector RRestrictAngleLength::restrictSnap(const RVector &position, const RVector &relativeZero)virtual
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.
Reimplemented from restrictSnap.
setAngle
Section titled “setAngle”virtual void RRestrictAngleLength::setAngle(double a)virtual inline
setBaseAngle
Section titled “setBaseAngle”virtual void RRestrictAngleLength::setBaseAngle(double a)virtual inline
setBaseLength
Section titled “setBaseLength”virtual void RRestrictAngleLength::setBaseLength(double l)virtual inline
setLength
Section titled “setLength”virtual void RRestrictAngleLength::setLength(double l)virtual inline
setRepeatAngle
Section titled “setRepeatAngle”virtual void RRestrictAngleLength::setRepeatAngle(bool on)virtual inline
setRepeatLength
Section titled “setRepeatLength”virtual void RRestrictAngleLength::setRepeatLength(bool on)virtual inline
setRestrictAngle
Section titled “setRestrictAngle”virtual void RRestrictAngleLength::setRestrictAngle(bool on)virtual inline
setRestrictLength
Section titled “setRestrictLength”virtual void RRestrictAngleLength::setRestrictLength(bool on)virtual inline
double RRestrictAngleLength::angleprotected
baseAngle
Section titled “baseAngle”double RRestrictAngleLength::baseAngleprotected
baseLength
Section titled “baseLength”double RRestrictAngleLength::baseLengthprotected
length
Section titled “length”double RRestrictAngleLength::lengthprotected
AngleLengthMode RRestrictAngleLength::modeprotected
repeatAngle
Section titled “repeatAngle”bool RRestrictAngleLength::repeatAngleprotected
repeatLength
Section titled “repeatLength”bool RRestrictAngleLength::repeatLengthprotected