QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RGraphicsSceneQt Class Reference

Qt based 2d graphics scene. More...

#include <RGraphicsSceneQt.h>

Inheritance diagram for RGraphicsSceneQt:
RGraphicsScene RExporter

Public Member Functions

void addDrawable (RObject::Id entityId, RGraphicsSceneDrawable &drawable, bool draft=false, bool preview=false)
 
virtual void addPathToPreview (RObject::Id entityId, RPainterPath &pp)
 
void addTextToPreview (const RTextBasedData &text)
 
virtual void addToPreview (RObject::Id entityId, QList< RGraphicsSceneDrawable > &drawables)
 
virtual void addToPreview (RObject::Id entityId, RGraphicsSceneDrawable &drawable)
 
bool beginPath ()
 Starts a new painter path to export geometry into.
 
virtual void clear ()
 Clears (resets) the scene contents.
 
virtual void clearClipRectangles ()
 
virtual void clearPreview ()
 Clears the preview.
 
void deleteDrawables ()
 
virtual void dump ()
 
void endPath ()
 
virtual void exportArc (const RArc &arc, double offset=RNANDOUBLE)
 
virtual void exportArcSegment (const RArc &arc, bool allowForZeroLength=false)
 
virtual void exportClipRectangle (const RBox &clipRectangles, bool forceSelected=false)
 
virtual void exportEndTransform ()
 
virtual void exportEntities (bool allBlocks=true, bool undone=false, bool invisible=false)
 
void exportEntitiesThread (int threadId, QList< RObject::Id > &list, int start, int end)
 
void exportEntityThread (int threadId, RObject::Id id)
 
virtual void exportImage (const RImageData &image, bool forceSelected=false)
 
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)
 Exports a line segment (a line without pattern).
 
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 exportPolyline (const RPolyline &polyline, bool polylineGen=true, double offset=RNANDOUBLE)
 
void exportPolylineFill (const RPolyline &polyline)
 
virtual void exportRay (const RRay &ray)
 Exports an infinite ray.
 
virtual void exportRectangle (const RVector &p1, const RVector &p2)
 Exports a rectangle with the current attributes.
 
virtual void exportSpline (const RSpline &spline, double offset=RNANDOUBLE)
 
virtual QList< RPainterPathexportText (const RTextBasedData &text, bool forceSelected=false)
 
virtual void exportThickPolyline (const RPolyline &polyline)
 
virtual void exportTransform (const RTransform &t)
 
virtual void exportTriangle (const RTriangle &triangle)
 Exports a triangle with the current attributes.
 
virtual void exportXLine (const RXLine &xLine)
 Exports an infinite line.
 
RBox getClipRectangle (RObject::Id entityId, bool preview=false) const
 
QList< RGraphicsSceneDrawable > * getDrawables (RObject::Id entityId)
 
QList< RGraphicsSceneDrawablegetDrawablesList (RObject::Id entityId)
 
RGraphicsViewImagegetGraphicsView () const
 
virtual double getLineTypePatternScale (const RLinetypePattern &p) const
 
QList< RGraphicsSceneDrawable > * getPreviewDrawables (RObject::Id entityId)
 
QList< RObject::IdgetPreviewEntityIds ()
 
virtual bool getScreenBasedLinetypes () const
 
bool hasClipRectangleFor (RObject::Id entityId, bool preview=false) const
 
bool hasPreview () const
 
virtual void highlightEntity (REntity &entity)
 Highlights the given entity.
 
 RGraphicsSceneQt (RDocumentInterface &documentInterface)
 Copyright (c) 2011-2018 by Andrew Mustun.
 
virtual void startEntity (bool topLevelEntity)
 
void transformAndApplyPatternPath (RPainterPath &path) const
 Transform the given paths according to current block reference scales.
 
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 void updateSelectionStatus (QSet< RObject::Id > &affectedEntities, bool updateViews)
 Updates the selection status of the given entities.
 
virtual ~RGraphicsSceneQt ()
 
- Public Member Functions inherited from RGraphicsScene
void beginNoColorMode ()
 
virtual void beginPreview ()
 
int countReferencePoints () const
 
void endNoColorMode ()
 
virtual void endPreview ()
 
virtual void exportCurrentEntity (bool preview=false, bool forceSelected=false)
 The default implementation calls the REntity::exportEntity() function of the entity.
 
virtual bool exportDocumentSettings ()
 Override for performance reasons, we don't need settings to be exported for graphics scenes.
 
RDocumentInterfacegetDocumentInterface ()
 
QList< RGraphicsView * > getGraphicsViews () const
 
RRefPoint getHighlightedReferencePoint ()
 
bool getNoColorMode () const
 
QMap< RObject::Id, QList< RRefPoint > > & getReferencePoints ()
 
void handleKeyPressEvent (QKeyEvent &event)
 
void handleKeyReleaseEvent (QKeyEvent &event)
 
void handleMouseDoubleClickEvent (RMouseEvent &event)
 Forwards the given mouse event to the document interface.
 
void handleMouseMoveEvent (RMouseEvent &event)
 Forwards the given mouse event to the document interface.
 
void handleMousePressEvent (RMouseEvent &event)
 Forwards the given mouse event to the document interface.
 
void handleMouseReleaseEvent (RMouseEvent &event)
 Forwards the given mouse event to the document interface.
 
void handlePanGestureEvent (QPanGesture &gesture)
 Forwards the given gesture to the document interface.
 
void handlePinchGestureEvent (QPinchGesture &gesture)
 Forwards the given gesture to the document interface.
 
void handleSwipeGestureEvent (QSwipeGesture &gesture)
 Forwards the given gesture to the document interface.
 
void handleTabletEvent (RTabletEvent &event)
 Forwards the given tablet event to the document interface.
 
void handleTerminateEvent (RTerminateEvent &event)
 
void handleWheelEvent (RWheelEvent &event)
 Forwards the given mouse event to the document interface.
 
bool hasSelectedReferencePoints () const
 
virtual void highlightReferencePoint (const RRefPoint &position)
 Highlights the reference point at the given position.
 
virtual bool isPreviewEmpty ()
 
virtual void regenerate (bool undone=false, bool invisible=false)
 Regenerates this scene from the entity data by exporting the whole document into it.
 
virtual void regenerate (QSet< RObject::Id > &affectedEntities, bool updateViews)
 
virtual void regenerateViews (bool force=false)
 Regenerates all views attached to this scene.
 
virtual void regenerateViews (QSet< RObject::Id > &affectedEntities)
 
virtual void registerView (RGraphicsView *view, bool regen=true)
 Registers a view with this scene.
 
virtual void repaintViews ()
 Repaints all views attached to this scene.
 
 RGraphicsScene (RDocumentInterface &documentInterface)
 Copyright (c) 2011-2018 by Andrew Mustun.
 
virtual void selectReferencePoints (const RBox &box, bool add)
 
virtual void setCursor (const QCursor &cursor)
 
virtual void unregisterView (RGraphicsView *view)
 Removes the given view from this scene.
 
virtual ~RGraphicsScene ()
 
- Public Member Functions inherited from RExporter
virtual void endEntity (bool)
 
virtual void endExport ()
 Called at the end of a completed export.
 
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 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 void exportEllipse (const REllipse &ellipse, double offset=RNANDOUBLE)
 Exports an ellipse with the current attributes.
 
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 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 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 exportPainterPathSource (const RPainterPathSource &pathSource, double z=0.0)
 
virtual void exportQuad (const RVector &p1, const RVector &p2, const RVector &p3, const RVector &p4)
 Exports a quadrilateral 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 exportSplineSegment (const RSpline &spline)
 
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< REntitygetBlockRefOrEntity ()
 
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< REntitygetCurrentBlockRef () const
 
virtual double getCurrentPixelSizeHint () const
 
virtual QSharedPointer< RViewportEntitygetCurrentViewport () const
 
virtual RDocumentgetDocument () const
 \nonscriptoverwritable
 
bool getDraftMode () const
 
virtual QSharedPointer< REntitygetEntity ()
 
virtual QSharedPointer< REntitygetEntity () const
 
virtual QSharedPointer< RLayergetEntityLayer (QSharedPointer< REntity > entity)
 
QStack< QSharedPointer< REntity > > getEntityStack ()
 
QString getErrorMessage () const
 
bool getExportInvisible () const
 
bool getFrameless () const
 
virtual RLinetypePattern getLinetypePattern ()
 
virtual QPen getPen ()
 
virtual QPen getPen (const RPainterPath &path)
 
double getPixelSizeHint () const
 
bool getPixelUnit () const
 
bool getPixelWidth () const
 
RS::ProjectionRenderingHint getProjectionRenderingHint ()
 
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 &ltPattern)
 
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 startExport ()
 Called to start a new, complete export.
 
void toggleDraftMode ()
 
void toggleScreenBasedLinetypes ()
 
virtual ~RExporter ()
 

Private Attributes

QMap< RObject::Id, RBoxclipRectangles
 
RPainterPath currentPainterPath
 
bool decorating
 
QMap< RObject::Id, QList< RGraphicsSceneDrawable > > drawables
 
QMap< RObject::Id, RBoxpreviewClipRectangles
 
QMap< RObject::Id, QList< RGraphicsSceneDrawable > > previewDrawables
 
bool screenBasedLinetypesOverride
 
QList< RGraphicsSceneQt * > threadScenes
 
QStack< QTransform > transformStack
 

Friends

QDebug operator<< (QDebug dbg, RGraphicsSceneQt &gs)
 Stream operator for QDebug.
 

Additional Inherited Members

- Protected Member Functions inherited from RGraphicsScene
virtual void exportReferencePoints ()
 Adds the reference points of the entity that is currently being exported to the internal referencePoints map.
 
- Protected Attributes inherited from RGraphicsScene
bool colorMode
 
RDocumentInterfacedocumentInterface
 
bool exportToPreview
 
RRefPoint highlightedReferencePoint
 
bool previewIsEmpty
 
QMap< RObject::Id, QList< RRefPoint > > referencePoints
 Internal map of reference points for every selected entity in the scene.
 
QList< RGraphicsView * > views
 
- Protected Attributes inherited from RExporter
QStack< QSharedPointer< REntity > > blockRefViewportStack
 
RDocumentblockSource
 
bool clipping
 
QBrush currentBrush
 
RLayercurrentLayer
 
RLinetypePattern currentLinetypePattern
 
QPen currentPen
 
RDocumentdocument
 
bool draftMode
 
bool enablePatterns
 
QStack< QSharedPointer< REntity > > entityStack
 
QString errorMessage
 
bool exportInvisible
 
bool frameless
 
RDocumentlayerSource
 
Qt::PenCapStyle penCapStyle
 
double pixelSizeHint
 
bool pixelUnit
 
bool pixelWidth
 
bool screenBasedLinetypes
 
QTransform transform
 
bool twoColorSelectedMode
 
bool visualExporter
 
bool wipeout
 

Detailed Description

Qt based 2d graphics scene.

This graphics scene is an exporter that exports entities into QPainterPaths (2d).

graphics views.

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RGraphicsSceneQt()

RGraphicsSceneQt::RGraphicsSceneQt ( RDocumentInterface & documentInterface)

Copyright (c) 2011-2018 by Andrew Mustun.

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.

◆ ~RGraphicsSceneQt()

RGraphicsSceneQt::~RGraphicsSceneQt ( )
virtual

Member Function Documentation

◆ addDrawable()

void RGraphicsSceneQt::addDrawable ( RObject::Id entityId,
RGraphicsSceneDrawable & drawable,
bool draft = false,
bool preview = false )

◆ addPathToPreview()

virtual void RGraphicsSceneQt::addPathToPreview ( RObject::Id entityId,
RPainterPath & pp )
inlinevirtual

Reimplemented from RGraphicsScene.

◆ addTextToPreview()

void RGraphicsSceneQt::addTextToPreview ( const RTextBasedData & text)

◆ addToPreview() [1/2]

void RGraphicsSceneQt::addToPreview ( RObject::Id entityId,
QList< RGraphicsSceneDrawable > & drawables )
virtual

Reimplemented from RGraphicsScene.

◆ addToPreview() [2/2]

void RGraphicsSceneQt::addToPreview ( RObject::Id entityId,
RGraphicsSceneDrawable & drawable )
virtual

Reimplemented from RGraphicsScene.

◆ beginPath()

bool RGraphicsSceneQt::beginPath ( )

Starts a new painter path to export geometry into.

Returns
True if a path has been created, false if there is already a valid path.

◆ clear()

void RGraphicsSceneQt::clear ( )
virtual

Clears (resets) the scene contents.

Reimplemented from RGraphicsScene.

◆ clearClipRectangles()

void RGraphicsSceneQt::clearClipRectangles ( )
virtual

Reimplemented from RExporter.

◆ clearPreview()

void RGraphicsSceneQt::clearPreview ( )
virtual

Clears the preview.

Reimplemented from RGraphicsScene.

◆ deleteDrawables()

void RGraphicsSceneQt::deleteDrawables ( )

◆ dump()

virtual void RGraphicsSceneQt::dump ( )
inlinevirtual

Reimplemented from RGraphicsScene.

◆ endPath()

void RGraphicsSceneQt::endPath ( )

◆ exportArc()

void RGraphicsSceneQt::exportArc ( const RArc & arc,
double offset = RNANDOUBLE )
virtual

Reimplemented from RExporter.

◆ exportArcSegment()

void RGraphicsSceneQt::exportArcSegment ( const RArc & arc,
bool allowForZeroLength = false )
virtual

Reimplemented from RExporter.

◆ exportClipRectangle()

void RGraphicsSceneQt::exportClipRectangle ( const RBox & clipRectangles,
bool forceSelected = false )
virtual

Reimplemented from RExporter.

◆ exportEndTransform()

void RGraphicsSceneQt::exportEndTransform ( )
virtual

Reimplemented from RExporter.

◆ exportEntities()

void RGraphicsSceneQt::exportEntities ( bool allBlocks = true,
bool undone = false,
bool invisible = false )
virtual

Reimplemented from RExporter.

◆ exportEntitiesThread()

void RGraphicsSceneQt::exportEntitiesThread ( int threadId,
QList< RObject::Id > & list,
int start,
int end )

◆ exportEntityThread()

void RGraphicsSceneQt::exportEntityThread ( int threadId,
RObject::Id id )

◆ exportImage()

void RGraphicsSceneQt::exportImage ( const RImageData & image,
bool forceSelected = false )
virtual

Reimplemented from RExporter.

◆ exportLine()

double RGraphicsSceneQt::exportLine ( const RLine & line,
double offset = RNANDOUBLE )
virtual

Exports a line with the current attributes.

Reimplemented from RExporter.

◆ exportLineSegment()

void RGraphicsSceneQt::exportLineSegment ( const RLine & line,
double angle = RNANDOUBLE )
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.

Implements RExporter.

◆ exportPainterPaths()

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

Reimplemented from RExporter.

◆ exportPoint()

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

Exports a point with the current attributes.

Implements RExporter.

◆ exportPolyline()

void RGraphicsSceneQt::exportPolyline ( const RPolyline & polyline,
bool polylineGen = true,
double offset = RNANDOUBLE )
virtual
Parameters
polylineGenTrue: use pattern along whole polyline, False: pattern per segment.

Reimplemented from RExporter.

◆ exportPolylineFill()

void RGraphicsSceneQt::exportPolylineFill ( const RPolyline & polyline)

◆ exportRay()

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

Exports an infinite ray.

Used for rays.

Implements RExporter.

◆ exportRectangle()

void RGraphicsSceneQt::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 from RExporter.

◆ exportSpline()

void RGraphicsSceneQt::exportSpline ( const RSpline & spline,
double offset = RNANDOUBLE )
virtual

Reimplemented from RExporter.

◆ exportText()

QList< RPainterPath > RGraphicsSceneQt::exportText ( const RTextBasedData & text,
bool forceSelected = false )
virtual

Reimplemented from RExporter.

◆ exportThickPolyline()

void RGraphicsSceneQt::exportThickPolyline ( const RPolyline & polyline)
virtual

Reimplemented from RExporter.

◆ exportTransform()

void RGraphicsSceneQt::exportTransform ( const RTransform & t)
virtual

Reimplemented from RExporter.

◆ exportTriangle()

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

Exports a triangle with the current attributes.

Implements RExporter.

◆ exportXLine()

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

Exports an infinite line.

Used for xlines (construction lines).

Implements RExporter.

◆ getClipRectangle()

RBox RGraphicsSceneQt::getClipRectangle ( RObject::Id entityId,
bool preview = false ) const

◆ getDrawables()

QList< RGraphicsSceneDrawable > * RGraphicsSceneQt::getDrawables ( RObject::Id entityId)
Non-Scriptable:\nThis function is not available in script environments.\n
Returns
A list of all drawables (painter path, text, image) that represent the entity with the given ID.

◆ getDrawablesList()

QList< RGraphicsSceneDrawable > RGraphicsSceneQt::getDrawablesList ( RObject::Id entityId)
Non-Scriptable:\nThis function is not available in script environments.\n

◆ getGraphicsView()

RGraphicsViewImage * RGraphicsSceneQt::getGraphicsView ( ) const

◆ getLineTypePatternScale()

double RGraphicsSceneQt::getLineTypePatternScale ( const RLinetypePattern & p) const
virtual
Returns
Pattern scale factor with scale applied if we are printing.

Reimplemented from RExporter.

◆ getPreviewDrawables()

QList< RGraphicsSceneDrawable > * RGraphicsSceneQt::getPreviewDrawables ( RObject::Id entityId)
Non-Scriptable:\nThis function is not available in script environments.\n

◆ getPreviewEntityIds()

QList< REntity::Id > RGraphicsSceneQt::getPreviewEntityIds ( )

◆ getScreenBasedLinetypes()

virtual bool RGraphicsSceneQt::getScreenBasedLinetypes ( ) const
inlinevirtual

Reimplemented from RExporter.

◆ hasClipRectangleFor()

bool RGraphicsSceneQt::hasClipRectangleFor ( RObject::Id entityId,
bool preview = false ) const

◆ hasPreview()

bool RGraphicsSceneQt::hasPreview ( ) const

◆ highlightEntity()

void RGraphicsSceneQt::highlightEntity ( REntity & entity)
virtual

Highlights the given entity.

This is typically used to highlight entities when the mouse hovers over them.

Implements RGraphicsScene.

◆ startEntity()

void RGraphicsSceneQt::startEntity ( bool topLevelEntity)
virtual

Reimplemented from RExporter.

◆ transformAndApplyPatternPath()

void RGraphicsSceneQt::transformAndApplyPatternPath ( RPainterPath & path) const

Transform the given paths according to current block reference scales.

◆ unexportEntity()

void RGraphicsSceneQt::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 from RGraphicsScene.

◆ updateSelectionStatus()

void RGraphicsSceneQt::updateSelectionStatus ( QSet< RObject::Id > & affectedEntities,
bool updateViews )
virtual

Updates the selection status of the given entities.

The default implementation exports the entities again. May be overridden for performance reasons.

Reimplemented from RGraphicsScene.

Friends And Related Symbol Documentation

◆ operator<<

QDebug operator<< ( QDebug dbg,
RGraphicsSceneQt & gs )
friend

Stream operator for QDebug.

Non-Scriptable:\nThis function is not available in script environments.\n

Member Data Documentation

◆ clipRectangles

QMap<RObject::Id, RBox> RGraphicsSceneQt::clipRectangles
private

◆ currentPainterPath

RPainterPath RGraphicsSceneQt::currentPainterPath
private

◆ decorating

bool RGraphicsSceneQt::decorating
private

◆ drawables

QMap<RObject::Id, QList<RGraphicsSceneDrawable> > RGraphicsSceneQt::drawables
private

◆ previewClipRectangles

QMap<RObject::Id, RBox> RGraphicsSceneQt::previewClipRectangles
private

◆ previewDrawables

QMap<RObject::Id, QList<RGraphicsSceneDrawable> > RGraphicsSceneQt::previewDrawables
private

◆ screenBasedLinetypesOverride

bool RGraphicsSceneQt::screenBasedLinetypesOverride
private

◆ threadScenes

QList<RGraphicsSceneQt*> RGraphicsSceneQt::threadScenes
private

◆ transformStack

QStack<QTransform> RGraphicsSceneQt::transformStack
private

The documentation for this class was generated from the following files: