void RPolylineEntity::exportEntity(RExporter& e, bool preview, bool forceSelected) const { Q_UNUSED(preview); Q_UNUSED(forceSelected); e.setBrush(Qt::NoBrush); e.exportPolyline(data, data.getPolylineGen()); }
void RPolylineEntity::exportEntity(RExporter& e, bool preview) const { Q_UNUSED(preview); e.setBrush(Qt::NoBrush); // temp for painter path testing: // RPainterPath pp(data.toPainterPath()); // pp.setPen(QPen(Qt::white)); // e.exportPainterPaths(QList<RPainterPath>() << pp); e.exportPolyline(data); }
void RSolidEntity::exportEntity(RExporter& e, bool preview, bool forceSelected) const { Q_UNUSED(preview); Q_UNUSED(forceSelected); // note that order of fourth and third vertex is swapped: RPolyline pl; pl.appendVertex(data.getVertexAt(0)); pl.appendVertex(data.getVertexAt(1)); if (data.countVertices()>3) { pl.appendVertex(data.getVertexAt(3)); } pl.appendVertex(data.getVertexAt(2)); pl.setClosed(true); e.exportPolyline(pl); }