RExporter
Class in Core Module
Header: #include <src/core/RExporter.h>
Inherited by: RArcExporter, RFileExporter, RGraphicsScene, RLinetypePatternExporter, RPainterPathExporter
Description
Section titled “Description”Abstract base class for exporters.
Exporters export documents into files, views, etc.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RExporter() |
|
RExporter(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL) |
|
| virtual | ~RExporter() |
| 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 | exportArcSegment(const RArc &arc, bool allowForZeroLength=false) |
| 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 | exportLineSegment(const RLine &line, double angle=RNANDOUBLE)=0 = 0Exports a line segment (a line without pattern). |
| 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 | exportPoint(const RPoint &point)=0 = 0Exports a point with the current attributes. |
| 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 | exportRay(const RRay &ray)=0 = 0Exports an infinite ray. |
| 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 | exportTriangle(const RTriangle &triangle)=0 = 0Exports a triangle with the current attributes. |
| 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 void | exportXLine(const RXLine &xLine)=0 = 0Exports an infinite line. |
| 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 | isPixelUnitSupported() const |
| virtual bool | isTextRenderedAsText() constOverride to force text rendering mode. |
| virtual bool | isVisible(QSharedPointer< REntity > entity) |
| bool | isVisualExporter() const |
| void | popEntity() |
| virtual bool | preExportEntity(REntity *entity, bool preview, bool allBlocks) |
| void | pushEntity(QSharedPointer< REntity > e) |
| 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) |
| void | setOverrideEntity(QSharedPointer< REntity > oe) |
| 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. |
| void | unsetOverrideEntity() |
Protected Attributes
Section titled “Protected Attributes”| QStack< QSharedPointer< REntity > > | blockRefViewportStack |
| RDocument * | blockSource |
| bool | clipping |
| QBrush | currentBrush |
| RLayer * | currentLayer |
| RLinetypePattern | currentLinetypePattern |
| QPen | currentPen |
| RDocument * | document |
| bool | draftMode |
| bool | enablePatterns |
| QStack< QSharedPointer< REntity > > | entityStack |
| QString | errorMessage |
| bool | exportInvisible |
| bool | frameless |
| RDocument * | layerSource |
| QSharedPointer< REntity > | overrideEntity |
| Qt::PenCapStyle | penCapStyle |
| double | pixelSizeHint |
| bool | pixelUnit |
| bool | pixelWidth |
| bool | screenBasedLinetypes |
| QTransform | transform |
| bool | twoColorSelectedMode |
| bool | visualExporter |
| bool | wipeout |
Private Functions
Section titled “Private Functions”| void | init() |
Private Attributes
Section titled “Private Attributes”| RS::ProjectionRenderingHint | projectionRenderingHint |
Member Documentation
Section titled “Member Documentation”RExporter
Section titled “RExporter”RExporter::RExporter()RExporter
Section titled “RExporter”RExporter::RExporter(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)~RExporter
Section titled “~RExporter”virtual RExporter::~RExporter()virtual
clearClipRectangles
Section titled “clearClipRectangles”virtual void RExporter::clearClipRectangles()virtual
Reimplemented in clearClipRectangles.
endEntity
Section titled “endEntity”virtual void RExporter::endEntity(bool)virtual inline
endExport
Section titled “endExport”virtual void RExporter::endExport()virtual
Called at the end of a completed export.
The default implementation notifies listeners.
exportArc
Section titled “exportArc”virtual void RExporter::exportArc(const RArc &arc, double offset=RNANDOUBLE)virtual
Reimplemented in exportArc.
exportArcSegment
Section titled “exportArcSegment”virtual void RExporter::exportArcSegment(const RArc &arc, bool allowForZeroLength=false)virtual
Reimplemented in exportArcSegment, exportArcSegment.
exportBlock
Section titled “exportBlock”virtual void RExporter::exportBlock(QSharedPointer< RBlock >)virtual inline
exportBlock
Section titled “exportBlock”virtual void RExporter::exportBlock(RObject::Id blockId)virtual
exportBlocks
Section titled “exportBlocks”virtual void RExporter::exportBlocks()virtual
exportBoundingBoxPaths
Section titled “exportBoundingBoxPaths”virtual void RExporter::exportBoundingBoxPaths(const QList< RPainterPath > &paths)virtual
exportBox
Section titled “exportBox”virtual void RExporter::exportBox(const RBox &box)virtual
Exports the surfaces of the given box.
This is a convenience function that exports 12 triangles but may also be re-implemented to do something else.
exportCircle
Section titled “exportCircle”virtual void RExporter::exportCircle(const RCircle &circle)virtual
Exports a circle with the current attributes.
The default implementation calls exportArc with a full circle arc.
exportClipRectangle
Section titled “exportClipRectangle”virtual void RExporter::exportClipRectangle(const RBox &clipRectangle, bool forceSelected=false)virtual
Reimplemented in exportClipRectangle.
exportCurrentEntity
Section titled “exportCurrentEntity”virtual void RExporter::exportCurrentEntity(bool preview=false, bool forceSelected=false)virtual
The default implementation calls the REntity::exportEntity() function of the entity.
This method may use the currentEntity stack to access the entity that is currently being exported. Exporters can choose to reimplement this function to export an entity in a target platform specific manner (e.g. to optimize things for a specific platform).
Reimplemented in exportCurrentEntity.
exportDocument
Section titled “exportDocument”virtual bool RExporter::exportDocument()virtual
Exports the visual representation of all objects (including entities) of the document.
exportDocumentSetting
Section titled “exportDocumentSetting”virtual void RExporter::exportDocumentSetting(const QString &key, const QVariant &value, const QString &dictionaryName="QCAD_OBJECTS")virtual
exportDocumentSettings
Section titled “exportDocumentSettings”virtual bool RExporter::exportDocumentSettings()virtual
Reimplemented in exportDocumentSettings.
exportEllipse
Section titled “exportEllipse”virtual void RExporter::exportEllipse(const REllipse &ellipse, double offset=RNANDOUBLE)virtual
Exports an ellipse with the current attributes.
exportEndTransform
Section titled “exportEndTransform”virtual void RExporter::exportEndTransform()virtual
Reimplemented in exportEndTransform.
exportEntities
Section titled “exportEntities”virtual void RExporter::exportEntities(bool allBlocks=true, bool undone=false, bool invisible=false)virtual
Reimplemented in exportEntities.
exportEntities
Section titled “exportEntities”virtual void RExporter::exportEntities(const RBox &box)virtual
Exports the visual representation of all entities that are completely or partly inside the given area.
exportEntities
Section titled “exportEntities”virtual void RExporter::exportEntities(QSet< RObject::Id > &entityIds, bool allBlocks=true)virtual
exportEntity
Section titled “exportEntity”virtual void RExporter::exportEntity(QSharedPointer< REntity > entity, bool preview=false, bool allBlocks=true, bool forceSelected=false, bool invisible=false)virtual
Exports the given entity as part of a block definition to be reused by block references.
This is called for entities which have no attributes ByBlock. Sets the current entity to the given entity and calls exportEntity(). Note that entity is a temporary clone.
\forceSelected Force selection, used to export entities as part of a selected block reference.
exportEntity
Section titled “exportEntity”virtual void RExporter::exportEntity(RObject::Id entityId, bool allBlocks=true, bool forceSelected=false)virtual
Calls exportEntity(REntity*) for the entity with the given ID.
exportExplodable
Section titled “exportExplodable”virtual void RExporter::exportExplodable(const RExplodable &explodable, double offset=RNANDOUBLE)virtual
Non-Scriptable: This function is not available in script environments.
exportImage
Section titled “exportImage”virtual void RExporter::exportImage(const RImageData &image, bool forceSelected=false)virtual
Reimplemented in exportImage.
exportIntListWithName
Section titled “exportIntListWithName”virtual void RExporter::exportIntListWithName(const QString &dictionaryName, const QString &name, const QString &listName, QList< int64_t > &values)virtual
exportLayer
Section titled “exportLayer”virtual void RExporter::exportLayer(QSharedPointer< RLayer >)virtual inline
exportLayer
Section titled “exportLayer”virtual void RExporter::exportLayer(RObject::Id layerId)virtual
exportLayers
Section titled “exportLayers”virtual void RExporter::exportLayers()virtual
exportLayerState
Section titled “exportLayerState”virtual void RExporter::exportLayerState(QSharedPointer< RLayerState >)virtual inline
exportLayerStates
Section titled “exportLayerStates”virtual void RExporter::exportLayerStates()virtual
exportLine
Section titled “exportLine”virtual double RExporter::exportLine(const RLine &line, double offset=RNANDOUBLE)virtual
Exports a line with the current attributes.
Reimplemented in exportLine.
exportLineSegment
Section titled “exportLineSegment”virtual void RExporter::exportLineSegment(const RLine &line, double angle=RNANDOUBLE)=0 = 0pure virtual
Exports a line segment (a line without pattern).
This is called from the standard implementation of exportLine for every dash in a dashed line.
Reimplemented in exportLineSegment, exportLineSegment, exportLineSegment, exportLineSegment, exportLineSegment.
exportLinetype
Section titled “exportLinetype”virtual void RExporter::exportLinetype(QSharedPointer< RLinetype >)virtual inline
exportLinetypes
Section titled “exportLinetypes”virtual void RExporter::exportLinetypes()virtual
exportLinetypeShape
Section titled “exportLinetypeShape”virtual bool RExporter::exportLinetypeShape(QList< RPainterPath > &pps, const RLine &line, double total, double length, double angle, const RVector &cursor)virtual
Non-Scriptable: This function is not available in script environments.
exportPainterPaths
Section titled “exportPainterPaths”virtual void RExporter::exportPainterPaths(const QList< RPainterPath > &paths, double angle, const RVector &pos)virtual
Reimplemented in exportPainterPaths, exportPainterPaths.
exportPainterPaths
Section titled “exportPainterPaths”virtual void RExporter::exportPainterPaths(const QList< RPainterPath > &paths, double z=0.0)virtual
Reimplemented in exportPainterPaths, exportPainterPaths, exportPainterPaths, exportPainterPaths.
exportPainterPathSource
Section titled “exportPainterPathSource”virtual void RExporter::exportPainterPathSource(const RPainterPathSource &pathSource, double z=0.0)virtual
Non-Scriptable: This function is not available in script environments.
exportPoint
Section titled “exportPoint”virtual void RExporter::exportPoint(const RPoint &point)=0 = 0pure virtual
Exports a point with the current attributes.
Reimplemented in exportPoint, exportPoint, exportPoint, exportPoint, exportPoint.
exportPolyline
Section titled “exportPolyline”virtual void RExporter::exportPolyline(const RPolyline &polyline, bool polylineGen=true, double offset=RNANDOUBLE)virtual
Parameters:
polylineGen: True: use pattern along whole polyline, False: pattern per segment.
Reimplemented in exportPolyline.
exportQuad
Section titled “exportQuad”virtual void RExporter::exportQuad(const RVector &p1, const RVector &p2, const RVector &p3, const RVector &p4)virtual
Exports a quadrilateral with the current attributes.
This is a convenience function that exports two triangles but may also be re-implemented to do something else.
exportRay
Section titled “exportRay”virtual void RExporter::exportRay(const RRay &ray)=0 = 0pure virtual
Exports an infinite ray.
Used for rays.
Reimplemented in exportRay, exportRay, exportRay, exportRay, exportRay.
exportRectangle
Section titled “exportRectangle”virtual void RExporter::exportRectangle(const RVector &p1, const RVector &p2)virtual
Exports a rectangle with the current attributes.
This is a convenience function that exports two triangles but may also be re-implemented to do something else.
Reimplemented in exportRectangle.
exportShape
Section titled “exportShape”virtual void RExporter::exportShape(QSharedPointer< RShape > shape)virtual
Exports the given shapes as part of the geometry of the current entity.
exportShapes
Section titled “exportShapes”virtual void RExporter::exportShapes(const QList< QSharedPointer< RShape > > &shapes)virtual
Exports the given shapes as part of the geometry of the current entity.
exportShapeSegment
Section titled “exportShapeSegment”virtual void RExporter::exportShapeSegment(QSharedPointer< RShape > shape, double angle)virtual
exportSpline
Section titled “exportSpline”virtual void RExporter::exportSpline(const RSpline &spline, double offset=RNANDOUBLE)virtual
Reimplemented in exportSpline.
exportSplineSegment
Section titled “exportSplineSegment”virtual void RExporter::exportSplineSegment(const RSpline &spline)virtual
exportText
Section titled “exportText”virtual QList< RPainterPath > RExporter::exportText(const RTextBasedData &text, bool forceSelected=false)virtual
Reimplemented in exportText.
exportThickPolyline
Section titled “exportThickPolyline”virtual void RExporter::exportThickPolyline(const RPolyline &polyline)virtual
Reimplemented in exportThickPolyline.
exportTransform
Section titled “exportTransform”virtual void RExporter::exportTransform(const RTransform &t)virtual
Reimplemented in exportTransform.
exportTriangle
Section titled “exportTriangle”virtual void RExporter::exportTriangle(const RTriangle &triangle)=0 = 0pure virtual
Exports a triangle with the current attributes.
Reimplemented in exportTriangle, exportTriangle, exportTriangle, exportTriangle, exportTriangle.
exportVerticalQuad
Section titled “exportVerticalQuad”virtual void RExporter::exportVerticalQuad(const RVector &p1, const RVector &p2, double height)virtual
Exports a vertical quadrilateral with the two given base points and the given height.
exportView
Section titled “exportView”virtual void RExporter::exportView(QSharedPointer< RView >)virtual inline
exportView
Section titled “exportView”virtual void RExporter::exportView(RObject::Id viewId)virtual
exportViews
Section titled “exportViews”virtual void RExporter::exportViews()virtual
exportXLine
Section titled “exportXLine”virtual void RExporter::exportXLine(const RXLine &xLine)=0 = 0pure virtual
Exports an infinite line.
Used for xlines (construction lines).
Reimplemented in exportXLine, exportXLine, exportXLine, exportXLine, exportXLine.
getBlockRefOrEntity
Section titled “getBlockRefOrEntity”virtual QSharedPointer< REntity > RExporter::getBlockRefOrEntity()virtual
Returns: Block reference that is currently being exported or if no block reference is being exported, the current entity that is being exported.
getBlockRefOrEntityId
Section titled “getBlockRefOrEntityId”virtual REntity::Id RExporter::getBlockRefOrEntityId()virtual
getBlockRefViewportStack
Section titled “getBlockRefViewportStack”virtual QStack< QSharedPointer< REntity > > RExporter::getBlockRefViewportStack() constvirtual const
getBrush
Section titled “getBrush”virtual QBrush RExporter::getBrush()virtual
getBrush
Section titled “getBrush”virtual QBrush RExporter::getBrush(const RPainterPath &path)virtual
getClipping
Section titled “getClipping”bool RExporter::getClipping() constconst
getColor
Section titled “getColor”virtual RColor RExporter::getColor(bool resolve)virtual
getColor
Section titled “getColor”virtual RColor RExporter::getColor(const RColor &unresolvedColor)virtual
getCurrentBlockRef
Section titled “getCurrentBlockRef”virtual QSharedPointer< REntity > RExporter::getCurrentBlockRef() constvirtual const
getCurrentPixelSizeHint
Section titled “getCurrentPixelSizeHint”virtual double RExporter::getCurrentPixelSizeHint() constvirtual const
Returns: pixel size hint in context of current block.
getCurrentViewport
Section titled “getCurrentViewport”virtual QSharedPointer< RViewportEntity > RExporter::getCurrentViewport() constvirtual const
getDocument
Section titled “getDocument”virtual RDocument & RExporter::getDocument() constvirtual const
\nonscriptoverwritable
Returns: The document that is currently being exported.
getDraftMode
Section titled “getDraftMode”bool RExporter::getDraftMode() constinline const
getEntity
Section titled “getEntity”virtual QSharedPointer< REntity > RExporter::getEntity()virtual
Returns: Pointer to the entity that is currently being exported.
getEntity
Section titled “getEntity”virtual QSharedPointer< REntity > RExporter::getEntity() constvirtual const
Non-Scriptable: This function is not available in script environments.
Returns: Pointer to the entity that is currently being exported.
getEntityLayer
Section titled “getEntityLayer”virtual QSharedPointer< RLayer > RExporter::getEntityLayer(QSharedPointer< REntity > entity)virtual
getEntityStack
Section titled “getEntityStack”QStack< QSharedPointer< REntity > > RExporter::getEntityStack()getErrorMessage
Section titled “getErrorMessage”QString RExporter::getErrorMessage() constconst
getExportInvisible
Section titled “getExportInvisible”bool RExporter::getExportInvisible() constinline const
getFrameless
Section titled “getFrameless”bool RExporter::getFrameless() constconst
getLinetypePattern
Section titled “getLinetypePattern”virtual RLinetypePattern RExporter::getLinetypePattern()virtual
Reimplemented in getLinetypePattern, getLinetypePattern.
getLineTypePatternScale
Section titled “getLineTypePatternScale”virtual double RExporter::getLineTypePatternScale(const RLinetypePattern &p) constvirtual const
Reimplemented in getLineTypePatternScale, getLineTypePatternScale, getLineTypePatternScale, getLineTypePatternScale.
getPen
Section titled “getPen”virtual QPen RExporter::getPen()virtual
Returns: Current pen.
getPen
Section titled “getPen”virtual QPen RExporter::getPen(const RPainterPath &path)virtual
getPixelSizeHint
Section titled “getPixelSizeHint”double RExporter::getPixelSizeHint() constinline const
getPixelUnit
Section titled “getPixelUnit”bool RExporter::getPixelUnit() constinline const
getPixelWidth
Section titled “getPixelWidth”bool RExporter::getPixelWidth() constinline const
getProjectionRenderingHint
Section titled “getProjectionRenderingHint”RS::ProjectionRenderingHint RExporter::getProjectionRenderingHint()Returns: The current projection for exports.
getScreenBasedLinetypes
Section titled “getScreenBasedLinetypes”virtual bool RExporter::getScreenBasedLinetypes() constvirtual inline const
Reimplemented in getScreenBasedLinetypes.
getTwoColorSelectedMode
Section titled “getTwoColorSelectedMode”bool RExporter::getTwoColorSelectedMode() constinline const
getWipeout
Section titled “getWipeout”bool RExporter::getWipeout() constconst
isEntitySelected
Section titled “isEntitySelected”virtual bool RExporter::isEntitySelected()virtual
Returns: True if there is a current entity and it is selected, false otherwise.
isPatternContinuous
Section titled “isPatternContinuous”virtual bool RExporter::isPatternContinuous(const RLinetypePattern &p)virtual
isPixelUnitSupported
Section titled “isPixelUnitSupported”virtual bool RExporter::isPixelUnitSupported() constvirtual inline const
Returns: True if this exporter displays painter paths which are flagged as pixel unit (RPainterPath::setPixelUnit) at a constant size in pixels, independently of the zoom factor. This is the case for the graphics scenes of interactive views.
Entities with a constant display size (e.g. connection points) can export their glyph as one such path in pixel coordinates if this is true. Exporters which return false (e.g. file exporters) must be given the geometry in drawing units, sized for the current zoom factor through getCurrentPixelSizeHint.
Reimplemented in isPixelUnitSupported.
isTextRenderedAsText
Section titled “isTextRenderedAsText”virtual bool RExporter::isTextRenderedAsText() constvirtual const
Override to force text rendering mode.
isVisible
Section titled “isVisible”virtual bool RExporter::isVisible(QSharedPointer< REntity > entity)virtual
isVisualExporter
Section titled “isVisualExporter”bool RExporter::isVisualExporter() constinline const
Returns: True if this exporter exports only visible entities (on visible layers).
popEntity
Section titled “popEntity”void RExporter::popEntity()preExportEntity
Section titled “preExportEntity”virtual bool RExporter::preExportEntity(REntity *entity, bool preview, bool allBlocks)virtual inline
pushEntity
Section titled “pushEntity”void RExporter::pushEntity(QSharedPointer< REntity > e)setBlockSource
Section titled “setBlockSource”void RExporter::setBlockSource(RDocument *bs)setBrush
Section titled “setBrush”virtual void RExporter::setBrush(const QBrush &brush)virtual
setBrushStyle
Section titled “setBrushStyle”virtual void RExporter::setBrushStyle(Qt::BrushStyle brushStyle)virtual
setClipping
Section titled “setClipping”virtual void RExporter::setClipping(bool on)virtual
Returns: Clip rectangle due to current viewport being exported.
setColor
Section titled “setColor”virtual void RExporter::setColor(const RColor &color)virtual
setColor
Section titled “setColor”virtual void RExporter::setColor(float r, float g, float b, float a=1.0f)virtual
Sets the current export color in RGB and Alpha.
All components are in the range of 0.0 <= component <= 1.0. If isColorFixed is true, this function does nothing.
setDashPattern
Section titled “setDashPattern”virtual void RExporter::setDashPattern(const QVector< qreal > &dashes)virtual
setDraftMode
Section titled “setDraftMode”void RExporter::setDraftMode(bool on)setEnablePatterns
Section titled “setEnablePatterns”void RExporter::setEnablePatterns(bool on)inline
setEntityAttributes
Section titled “setEntityAttributes”virtual void RExporter::setEntityAttributes(bool forceSelected=false)virtual
setExportInvisible
Section titled “setExportInvisible”void RExporter::setExportInvisible(bool on)inline
setFrameless
Section titled “setFrameless”virtual void RExporter::setFrameless(bool on)virtual
setLayerSource
Section titled “setLayerSource”void RExporter::setLayerSource(RDocument *ls)setLinetypeId
Section titled “setLinetypeId”virtual void RExporter::setLinetypeId(RObject::Id ltId)virtual
setLinetypePattern
Section titled “setLinetypePattern”virtual void RExporter::setLinetypePattern(const RLinetypePattern <Pattern)virtual
setLineweight
Section titled “setLineweight”virtual void RExporter::setLineweight(RLineweight::Lineweight weight)virtual
setOverrideEntity
Section titled “setOverrideEntity”void RExporter::setOverrideEntity(QSharedPointer< REntity > oe)setPen
Section titled “setPen”virtual void RExporter::setPen(const QPen &pen)virtual
Sets the current pen (currentPen).
setPixelSizeHint
Section titled “setPixelSizeHint”void RExporter::setPixelSizeHint(double v)inline
setPixelUnit
Section titled “setPixelUnit”void RExporter::setPixelUnit(bool on)inline
setPixelWidth
Section titled “setPixelWidth”void RExporter::setPixelWidth(bool on)inline
setProjectionRenderingHint
Section titled “setProjectionRenderingHint”void RExporter::setProjectionRenderingHint(RS::ProjectionRenderingHint p)Sets a rendering hint for the current projection used for exports.
This is a rendering hint for the exporting entity to decide how its geometry should be rendered. For example a wall with a window exports itself differently when viewed from top than when viewed from the front or side. Note that the rendering difference is not only in the projection in a mathematical sense, but also in what edges are exported, how they are visualized and what types of shapes are exported (lines and arcs or triangles).
This rendering hint may also be used to determine what grid is appropriate to display for exporters that export to a graphics scene.
The mathematical projection is defined separately by setProjection().
setScreenBasedLinetypes
Section titled “setScreenBasedLinetypes”void RExporter::setScreenBasedLinetypes(bool on)setStyle
Section titled “setStyle”virtual void RExporter::setStyle(Qt::PenStyle penStyle)virtual
setTwoColorSelectedMode
Section titled “setTwoColorSelectedMode”void RExporter::setTwoColorSelectedMode(bool on)inline
setVisualExporter
Section titled “setVisualExporter”void RExporter::setVisualExporter(bool on)inline
setWipeout
Section titled “setWipeout”virtual void RExporter::setWipeout(bool on)virtual
startEntity
Section titled “startEntity”virtual void RExporter::startEntity(bool)virtual inline
Reimplemented in startEntity.
startExport
Section titled “startExport”virtual void RExporter::startExport()virtual
Called to start a new, complete export.
Implementors can for example clear any stored exported entities or caches. The default implementation does nothing.
toggleDraftMode
Section titled “toggleDraftMode”void RExporter::toggleDraftMode()inline
toggleScreenBasedLinetypes
Section titled “toggleScreenBasedLinetypes”void RExporter::toggleScreenBasedLinetypes()inline
unexportEntity
Section titled “unexportEntity”virtual void RExporter::unexportEntity(RObject::Id entityId)virtual
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.
Reimplemented in unexportEntity, unexportEntity.
unsetOverrideEntity
Section titled “unsetOverrideEntity”void RExporter::unsetOverrideEntity()blockRefViewportStack
Section titled “blockRefViewportStack”QStack<QSharedPointer<REntity> > RExporter::blockRefViewportStackprotected
blockSource
Section titled “blockSource”RDocument* RExporter::blockSourceprotected
clipping
Section titled “clipping”bool RExporter::clippingprotected
currentBrush
Section titled “currentBrush”QBrush RExporter::currentBrushprotected
currentLayer
Section titled “currentLayer”RLayer* RExporter::currentLayerprotected
currentLinetypePattern
Section titled “currentLinetypePattern”RLinetypePattern RExporter::currentLinetypePatternprotected
currentPen
Section titled “currentPen”QPen RExporter::currentPenprotected
document
Section titled “document”RDocument* RExporter::documentprotected
draftMode
Section titled “draftMode”bool RExporter::draftModeprotected
enablePatterns
Section titled “enablePatterns”bool RExporter::enablePatternsprotected
entityStack
Section titled “entityStack”QStack<QSharedPointer<REntity> > RExporter::entityStackprotected
errorMessage
Section titled “errorMessage”QString RExporter::errorMessageprotected
exportInvisible
Section titled “exportInvisible”bool RExporter::exportInvisibleprotected
frameless
Section titled “frameless”bool RExporter::framelessprotected
layerSource
Section titled “layerSource”RDocument* RExporter::layerSourceprotected
overrideEntity
Section titled “overrideEntity”QSharedPointer<REntity> RExporter::overrideEntityprotected
penCapStyle
Section titled “penCapStyle”Qt::PenCapStyle RExporter::penCapStyleprotected
pixelSizeHint
Section titled “pixelSizeHint”double RExporter::pixelSizeHintprotected
pixelUnit
Section titled “pixelUnit”bool RExporter::pixelUnitprotected
pixelWidth
Section titled “pixelWidth”bool RExporter::pixelWidthprotected
screenBasedLinetypes
Section titled “screenBasedLinetypes”bool RExporter::screenBasedLinetypesprotected
transform
Section titled “transform”QTransform RExporter::transformprotected
twoColorSelectedMode
Section titled “twoColorSelectedMode”bool RExporter::twoColorSelectedModeprotected
visualExporter
Section titled “visualExporter”bool RExporter::visualExporterprotected
wipeout
Section titled “wipeout”bool RExporter::wipeoutprotected
void RExporter::init()private
projectionRenderingHint
Section titled “projectionRenderingHint”RS::ProjectionRenderingHint RExporter::projectionRenderingHintprivate