Skip to content

RPainterPathExporter

Class in Core Module
Header: #include <src/core/RPainterPathExporter.h>
Inherits: RExporter

Exports all exported geometry into one painter path as line elements.

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.
bool exportZeroLinesAsPoints
bool ignoreLineTypePatternScale
bool ignoreZeroLines
RPainterPath path
double scaleHint

RPainterPathExporter::RPainterPathExporter()

inline

RPainterPathExporter::RPainterPathExporter(RDocument &doc)

inline

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.

virtual void RPainterPathExporter::exportPainterPaths(const QList< RPainterPath > &paths, double z=0.0)

virtual

Reimplemented from exportPainterPaths.

virtual void RPainterPathExporter::exportPoint(const RPoint &point)

virtual inline

Exports a point with the current attributes.

Reimplemented from exportPoint.

virtual void RPainterPathExporter::exportRay(const RRay &ray)

virtual inline

Exports an infinite ray.

Used for rays.

Reimplemented from exportRay.

virtual void RPainterPathExporter::exportTriangle(const RTriangle &triangle)

virtual inline

Exports a triangle with the current attributes.

Reimplemented from exportTriangle.

virtual void RPainterPathExporter::exportXLine(const RXLine &xLine)

virtual inline

Exports an infinite line.

Used for xlines (construction lines).

Reimplemented from exportXLine.

virtual double RPainterPathExporter::getLineTypePatternScale(const RLinetypePattern &p) const

virtual const

Reimplemented from getLineTypePatternScale.

RPainterPath RPainterPathExporter::getPainterPath()

Returns: The exported path. The stored path is reset, calling this twice will return an empty path the second time.

void RPainterPathExporter::setExportZeroLinesAsPoints(bool on)

inline

void RPainterPathExporter::setIgnoreLineTypePatternScale(bool on)

inline

void RPainterPathExporter::setIgnoreZeroLines(bool on)

inline

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)

bool RPainterPathExporter::exportZeroLinesAsPoints

private

bool RPainterPathExporter::ignoreLineTypePatternScale

private

bool RPainterPathExporter::ignoreZeroLines

private

RPainterPath RPainterPathExporter::path

private

double RPainterPathExporter::scaleHint

private