RPatternLine
Class in Core Module
Header: #include <src/core/RPatternLine.h>
Description
Section titled “Description”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. Represents a hatch pattern line.
Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Stream Operator: Object has a stream operator to present itself as string, for example when using toString() in a script.
Public Functions
Section titled “Public Functions”| double | getAngle() const |
| RVector | getBasePoint() const |
| QList< double > | getDashes() const |
| double | getLength() const |
| QList< RLine > | getLines(bool includeDashes=false) const\returen Line shapes for this pattern line. |
| RVector | getOffset() const |
| RPainterPath | getPainterPath() const |
| bool | hasDots() const |
| void | rotate(double a) |
| void | scale(double f) |
Public Attributes
Section titled “Public Attributes”| double | angle |
| RVector | basePoint |
| QList< double > | dashes |
| RVector | offset |
Member Documentation
Section titled “Member Documentation”getAngle
Section titled “getAngle”double RPatternLine::getAngle() constinline const
getBasePoint
Section titled “getBasePoint”RVector RPatternLine::getBasePoint() constinline const
getDashes
Section titled “getDashes”QList< double > RPatternLine::getDashes() constinline const
getLength
Section titled “getLength”double RPatternLine::getLength() constconst
getLines
Section titled “getLines”QList< RLine > RPatternLine::getLines(bool includeDashes=false) constconst
\returen Line shapes for this pattern line.
No offset applied.
getOffset
Section titled “getOffset”RVector RPatternLine::getOffset() constinline const
getPainterPath
Section titled “getPainterPath”RPainterPath RPatternLine::getPainterPath() constconst
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.
hasDots
Section titled “hasDots”bool RPatternLine::hasDots() constconst
rotate
Section titled “rotate”void RPatternLine::rotate(double a)void RPatternLine::scale(double f)double RPatternLine::anglebasePoint
Section titled “basePoint”RVector RPatternLine::basePointdashes
Section titled “dashes”QList<double> RPatternLine::dashesoffset
Section titled “offset”RVector RPatternLine::offset