RPainterPathExporter
Class in Core Module
Header: #include <src/core/RPainterPathExporter.h>
Inherits: RExporter
Description
Section titled “Description”Exports all exported geometry into one painter path as line elements.
Public Functions
Section titled “Public Functions”RPainterPathExporter() |
|
RPainterPathExporter(RDocument &doc) |
|
| virtual void | exportLineSegment(const RLine &line, double angle=RNANDOUBLE) |
| virtual void | exportPainterPaths(const QList< RPainterPath > &paths, double z=0.0) |
| virtual void | exportPoint(const RPoint &point)Exports a point with the current attributes. |
| virtual void | exportRay(const RRay &ray)Exports an infinite ray. |
| virtual void | exportTriangle(const RTriangle &triangle)Exports a triangle with the current attributes. |
| virtual void | exportXLine(const RXLine &xLine)Exports an infinite line. |
| virtual double | getLineTypePatternScale(const RLinetypePattern &p) const |
| RPainterPath | getPainterPath() |
| void | setExportZeroLinesAsPoints(bool on) |
| void | setIgnoreLineTypePatternScale(bool on) |
| void | setIgnoreZeroLines(bool on) |
| void | setScaleHint(double s)setScaleHint Set additional pattern scale hint, used for scaling dots in patterns in viewports. |
Private Attributes
Section titled “Private Attributes”| bool | exportZeroLinesAsPoints |
| bool | ignoreLineTypePatternScale |
| bool | ignoreZeroLines |
| RPainterPath | path |
| double | scaleHint |
Member Documentation
Section titled “Member Documentation”RPainterPathExporter
Section titled “RPainterPathExporter”RPainterPathExporter::RPainterPathExporter()inline
RPainterPathExporter
Section titled “RPainterPathExporter”RPainterPathExporter::RPainterPathExporter(RDocument &doc)inline
exportLineSegment
Section titled “exportLineSegment”virtual void RPainterPathExporter::exportLineSegment(const RLine &line, double angle=RNANDOUBLE)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 exportLineSegment.
exportPainterPaths
Section titled “exportPainterPaths”virtual void RPainterPathExporter::exportPainterPaths(const QList< RPainterPath > &paths, double z=0.0)virtual
Reimplemented from exportPainterPaths.
exportPoint
Section titled “exportPoint”virtual void RPainterPathExporter::exportPoint(const RPoint &point)virtual inline
Exports a point with the current attributes.
Reimplemented from exportPoint.
exportRay
Section titled “exportRay”virtual void RPainterPathExporter::exportRay(const RRay &ray)virtual inline
Exports an infinite ray.
Used for rays.
Reimplemented from exportRay.
exportTriangle
Section titled “exportTriangle”virtual void RPainterPathExporter::exportTriangle(const RTriangle &triangle)virtual inline
Exports a triangle with the current attributes.
Reimplemented from exportTriangle.
exportXLine
Section titled “exportXLine”virtual void RPainterPathExporter::exportXLine(const RXLine &xLine)virtual inline
Exports an infinite line.
Used for xlines (construction lines).
Reimplemented from exportXLine.
getLineTypePatternScale
Section titled “getLineTypePatternScale”virtual double RPainterPathExporter::getLineTypePatternScale(const RLinetypePattern &p) constvirtual const
Reimplemented from getLineTypePatternScale.
getPainterPath
Section titled “getPainterPath”RPainterPath RPainterPathExporter::getPainterPath()Returns: The exported path. The stored path is reset, calling this twice will return an empty path the second time.
setExportZeroLinesAsPoints
Section titled “setExportZeroLinesAsPoints”void RPainterPathExporter::setExportZeroLinesAsPoints(bool on)inline
setIgnoreLineTypePatternScale
Section titled “setIgnoreLineTypePatternScale”void RPainterPathExporter::setIgnoreLineTypePatternScale(bool on)inline
setIgnoreZeroLines
Section titled “setIgnoreZeroLines”void RPainterPathExporter::setIgnoreZeroLines(bool on)inline
setScaleHint
Section titled “setScaleHint”void RPainterPathExporter::setScaleHint(double s)inline
setScaleHint Set additional pattern scale hint, used for scaling dots in patterns in viewports.
Parameters:
s: Factor (viewport scale)
exportZeroLinesAsPoints
Section titled “exportZeroLinesAsPoints”bool RPainterPathExporter::exportZeroLinesAsPointsprivate
ignoreLineTypePatternScale
Section titled “ignoreLineTypePatternScale”bool RPainterPathExporter::ignoreLineTypePatternScaleprivate
ignoreZeroLines
Section titled “ignoreZeroLines”bool RPainterPathExporter::ignoreZeroLinesprivate
RPainterPath RPainterPathExporter::pathprivate
scaleHint
Section titled “scaleHint”double RPainterPathExporter::scaleHintprivate