|
virtual void | exportArcSegment (const RArc &arc, bool allowForZeroLength=false) |
|
virtual bool | exportFile (const QString &fileName, const QString &nameFilter, bool setFileName=true) |
| Must be implemented by file exporters to export the document into the given file.
|
|
virtual void | exportLineSegment (const RLine &line, double angle=RNANDOUBLE) |
| Exports a line segment (a line without pattern).
|
|
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 QString | getCorrectedFileName (const QString &fileName, const QString &nameFilter) |
| Must be implemented by file exporters to correct the given file name if necessary (add extension based on chosen name filter).
|
|
QString | getStyleName (const RTextBasedEntity &t) |
|
DL_TextData | getTextData (const RTextBasedData &t, const QString &styleName) |
|
| RDxfExporter (RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL) |
| Copyright (c) 2011-2018 by Andrew Mustun.
|
|
void | writeArc (const RArcEntity &a) |
| Writes the given circle entity to the file.
|
|
void | writeAttribute (const RAttributeEntity &t) |
|
void | writeBlock (const RBlock &b) |
|
void | writeBlockReference (const RBlockReferenceEntity &br) |
| Writes the given block reference entity to the file.
|
|
void | writeCircle (const RCircleEntity &c) |
| Writes the given circle entity to the file.
|
|
void | writeDimension (const RDimensionEntity &d) |
| Writes the given dimension entity to the file.
|
|
void | writeEllipse (const REllipseEntity &el) |
| Writes the given ellipse entity to the file.
|
|
void | writeEntity (const REntity &e) |
| Writes the given entity to the DXF file.
|
|
void | writeEntity (RObject::Id id) |
|
void | writeHatch (const RHatchEntity &h) |
| Writes the given hatch entity to the file.
|
|
void | writeImage (const RImageEntity &img) |
| Writes the given image entity to the file.
|
|
void | writeImageDef (const RImageEntity &img) |
| Writes an IMAGEDEF object into an OBJECT section.
|
|
void | writeLayer (const RLayer &l) |
|
void | writeLeader (const RLeaderEntity &l) |
| Writes the given leader entity to the file.
|
|
void | writeLine (const RLineEntity &l) |
| Writes the given Line entity to the file.
|
|
void | writeLinetype (const RLinetypePattern <) |
|
void | writeMText (const RTextEntity &t) |
|
void | writePoint (const RPointEntity &p) |
| Writes the given Point entity to the file.
|
|
void | writePolyline (const RPolyline &pl, bool plineGen) |
|
void | writePolyline (const RPolylineEntity &pl) |
| Writes the given polyline entity to the file.
|
|
void | writeRay (const RRayEntity &l) |
| Writes the given Ray entity to the file.
|
|
void | writeSimpleText (const RTextEntity &t) |
|
void | writeSolid (const RSolidEntity &sol) |
| Writes the given solid entity to the file.
|
|
void | writeSpline (const RSplineEntity &sp) |
| Writes the given spline entity to the file.
|
|
void | writeText (const RTextEntity &t) |
| Writes the given text entity to the file.
|
|
void | writeTrace (const RTraceEntity &t) |
| Writes the given trace entity to the file.
|
|
void | writeVariables () |
| Writes all known variable settings to the DXF file.
|
|
void | writeXLine (const RXLineEntity &l) |
| Writes the given XLine entity to the file.
|
|
virtual | ~RDxfExporter () |
|
| RFileExporter () |
| Copyright (c) 2011-2018 by Andrew Mustun.
|
|
| RFileExporter (RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL) |
|
virtual | ~RFileExporter () |
|
virtual void | clearClipRectangles () |
|
virtual void | endEntity (bool) |
|
virtual void | endExport () |
| Called at the end of a completed export.
|
|
virtual void | exportArc (const RArc &arc, double offset=RNANDOUBLE) |
|
virtual void | exportBlock (QSharedPointer< RBlock >) |
|
virtual void | exportBlock (RObject::Id blockId) |
|
virtual void | exportBlocks () |
|
virtual void | exportBoundingBoxPaths (const QList< RPainterPath > &paths) |
|
virtual void | exportBox (const RBox &box) |
| Exports the surfaces of the given box.
|
|
virtual void | exportCircle (const RCircle &circle) |
| Exports a circle with the current attributes.
|
|
virtual void | exportClipRectangle (const RBox &clipRectangle, bool forceSelected=false) |
|
virtual void | exportCurrentEntity (bool preview=false, bool forceSelected=false) |
| The default implementation calls the REntity::exportEntity() function of the entity.
|
|
virtual bool | exportDocument () |
| Exports the visual representation of all objects (including entities) of the document.
|
|
virtual void | exportDocumentSetting (const QString &key, const QVariant &value, const QString &dictionaryName="QCAD_OBJECTS") |
|
virtual bool | exportDocumentSettings () |
|
virtual void | exportEllipse (const REllipse &ellipse, double offset=RNANDOUBLE) |
| Exports an ellipse with the current attributes.
|
|
virtual void | exportEndTransform () |
|
virtual void | exportEntities (bool allBlocks=true, bool undone=false, bool invisible=false) |
|
virtual void | exportEntities (const RBox &box) |
| Exports the visual representation of all entities that are completely or partly inside the given area.
|
|
virtual void | exportEntities (QSet< RObject::Id > &entityIds, bool allBlocks=true) |
|
virtual void | exportEntity (QSharedPointer< REntity > entity, bool preview=false, bool allBlocks=true, bool forceSelected=false, bool invisible=false) |
| Exports the given entity as part of a block definition to be reused by block references.
|
|
virtual void | exportEntity (RObject::Id entityId, bool allBlocks=true, bool forceSelected=false) |
| Calls exportEntity(REntity*) for the entity with the given ID.
|
|
virtual void | exportExplodable (const RExplodable &explodable, double offset=RNANDOUBLE) |
|
virtual void | exportImage (const RImageData &image, bool forceSelected=false) |
|
virtual void | exportIntListWithName (const QString &dictionaryName, const QString &name, const QString &listName, QList< int64_t > &values) |
|
virtual void | exportLayer (QSharedPointer< RLayer >) |
|
virtual void | exportLayer (RObject::Id layerId) |
|
virtual void | exportLayers () |
|
virtual void | exportLayerState (QSharedPointer< RLayerState >) |
|
virtual void | exportLayerStates () |
|
virtual double | exportLine (const RLine &line, double offset=RNANDOUBLE) |
| Exports a line with the current attributes.
|
|
virtual void | exportLinetype (QSharedPointer< RLinetype >) |
|
virtual void | exportLinetypes () |
|
virtual bool | exportLinetypeShape (QList< RPainterPath > &pps, const RLine &line, double total, double length, double angle, const RVector &cursor) |
|
virtual void | exportPainterPaths (const QList< RPainterPath > &paths, double angle, const RVector &pos) |
|
virtual void | exportPainterPaths (const QList< RPainterPath > &paths, double z=0.0) |
|
virtual void | exportPainterPathSource (const RPainterPathSource &pathSource, double z=0.0) |
|
virtual void | exportPolyline (const RPolyline &polyline, bool polylineGen=true, double offset=RNANDOUBLE) |
|
virtual void | exportQuad (const RVector &p1, const RVector &p2, const RVector &p3, const RVector &p4) |
| Exports a quadrilateral with the current attributes.
|
|
virtual void | exportRectangle (const RVector &p1, const RVector &p2) |
| Exports a rectangle with the current attributes.
|
|
virtual void | exportShape (QSharedPointer< RShape > shape) |
| Exports the given shapes as part of the geometry of the current entity.
|
|
virtual void | exportShapes (const QList< QSharedPointer< RShape > > &shapes) |
| Exports the given shapes as part of the geometry of the current entity.
|
|
virtual void | exportShapeSegment (QSharedPointer< RShape > shape, double angle) |
|
virtual void | exportSpline (const RSpline &spline, double offset=RNANDOUBLE) |
|
virtual void | exportSplineSegment (const RSpline &spline) |
|
virtual QList< RPainterPath > | exportText (const RTextBasedData &text, bool forceSelected=false) |
|
virtual void | exportThickPolyline (const RPolyline &polyline) |
|
virtual void | exportTransform (const RTransform &t) |
|
virtual void | exportVerticalQuad (const RVector &p1, const RVector &p2, double height) |
| Exports a vertical quadrilateral with the two given base points and the given height.
|
|
virtual void | exportView (QSharedPointer< RView >) |
|
virtual void | exportView (RObject::Id viewId) |
|
virtual void | exportViews () |
|
virtual QSharedPointer< REntity > | getBlockRefOrEntity () |
|
virtual RObject::Id | getBlockRefOrEntityId () |
|
virtual QStack< QSharedPointer< REntity > > | getBlockRefViewportStack () const |
|
virtual QBrush | getBrush () |
|
virtual QBrush | getBrush (const RPainterPath &path) |
|
bool | getClipping () const |
|
virtual RColor | getColor (bool resolve) |
|
virtual RColor | getColor (const RColor &unresolvedColor) |
|
virtual QSharedPointer< REntity > | getCurrentBlockRef () const |
|
virtual double | getCurrentPixelSizeHint () const |
|
virtual QSharedPointer< RViewportEntity > | getCurrentViewport () const |
|
virtual RDocument & | getDocument () const |
| \nonscriptoverwritable
|
|
bool | getDraftMode () const |
|
virtual QSharedPointer< REntity > | getEntity () |
|
virtual QSharedPointer< REntity > | getEntity () const |
|
virtual QSharedPointer< RLayer > | getEntityLayer (QSharedPointer< REntity > entity) |
|
QStack< QSharedPointer< REntity > > | getEntityStack () |
|
QString | getErrorMessage () const |
|
bool | getExportInvisible () const |
|
bool | getFrameless () const |
|
virtual RLinetypePattern | getLinetypePattern () |
|
virtual double | getLineTypePatternScale (const RLinetypePattern &p) const |
|
virtual QPen | getPen () |
|
virtual QPen | getPen (const RPainterPath &path) |
|
double | getPixelSizeHint () const |
|
bool | getPixelUnit () const |
|
bool | getPixelWidth () const |
|
RS::ProjectionRenderingHint | getProjectionRenderingHint () |
|
virtual bool | getScreenBasedLinetypes () const |
|
bool | getTwoColorSelectedMode () const |
|
bool | getWipeout () const |
|
virtual bool | isEntitySelected () |
|
virtual bool | isPatternContinuous (const RLinetypePattern &p) |
|
virtual bool | isTextRenderedAsText () const |
| Override to force text rendering mode.
|
|
virtual bool | isVisible (QSharedPointer< REntity > entity) |
|
bool | isVisualExporter () const |
|
void | popEntity () |
|
void | pushEntity (QSharedPointer< REntity > e) |
|
| RExporter () |
|
| RExporter (RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL) |
|
void | setBlockSource (RDocument *bs) |
|
virtual void | setBrush (const QBrush &brush) |
|
virtual void | setBrushStyle (Qt::BrushStyle brushStyle) |
|
virtual void | setClipping (bool on) |
|
virtual void | setColor (const RColor &color) |
|
virtual void | setColor (float r, float g, float b, float a=1.0f) |
| Sets the current export color in RGB and Alpha.
|
|
virtual void | setDashPattern (const QVector< qreal > &dashes) |
|
void | setDraftMode (bool on) |
|
void | setEnablePatterns (bool on) |
|
virtual void | setEntityAttributes (bool forceSelected=false) |
|
void | setExportInvisible (bool on) |
|
virtual void | setFrameless (bool on) |
|
void | setLayerSource (RDocument *ls) |
|
virtual void | setLinetypeId (RObject::Id ltId) |
|
virtual void | setLinetypePattern (const RLinetypePattern <Pattern) |
|
virtual void | setLineweight (RLineweight::Lineweight weight) |
|
virtual void | setPen (const QPen &pen) |
| Sets the current pen (currentPen).
|
|
void | setPixelSizeHint (double v) |
|
void | setPixelUnit (bool on) |
|
void | setPixelWidth (bool on) |
|
void | setProjectionRenderingHint (RS::ProjectionRenderingHint p) |
| Sets a rendering hint for the current projection used for exports.
|
|
void | setScreenBasedLinetypes (bool on) |
|
virtual void | setStyle (Qt::PenStyle penStyle) |
|
void | setTwoColorSelectedMode (bool on) |
|
void | setVisualExporter (bool on) |
|
virtual void | setWipeout (bool on) |
|
virtual void | startEntity (bool) |
|
virtual void | startExport () |
| Called to start a new, complete export.
|
|
void | toggleDraftMode () |
|
void | toggleScreenBasedLinetypes () |
|
virtual void | unexportEntity (RObject::Id entityId) |
| This is called for entities for which an export was requested but which cannot be instantiated because they either do not exist (anymore) in the DB or they are currently undone.
|
|
virtual | ~RExporter () |
|
Exporter for the DXF format, based on dxflib.