Public Member Functions |
| void | addPath (REntity::Id entityId, const RPainterPath &path, bool draft) |
| void | addToPreview (const QList< RPainterPath > &painterPaths) |
| void | addToPreview (const RPainterPath &painterPath) |
| bool | beginPath () |
| | Starts a new painter path to export geometry into.
|
| virtual void | clearPreview () |
| | Clears the preview.
|
| void | deletePainterPaths () |
| virtual void | dump () |
| void | endPath () |
| virtual void | exportArc (const RArc &arc, double offset=RNANDOUBLE) |
| virtual void | exportArcSegment (const RArc &arc) |
| virtual void | exportEllipse (const REllipse &ellipse, double offset=RNANDOUBLE) |
| | Exports an ellipse with the current attributes.
|
| virtual void | exportImage (const RImageData &image) |
| virtual void | exportLine (const RLine &line, double offset=RNANDOUBLE) |
| | Exports a line with the current attributes.
|
| virtual void | exportLineSegment (const RLine &line) |
| | Exports a line segment (a line without pattern).
|
| virtual void | exportPainterPaths (const QList< RPainterPath > &paths) |
| virtual void | exportPainterPathSource (const RPainterPathSource &pathSource) |
| virtual void | exportPoint (const RPoint &point) |
| | Exports a point with the current attributes.
|
| virtual void | exportPolyline (const RPolyline &polyline, double offset=RNANDOUBLE) |
| 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 void | exportTriangle (const RTriangle &triangle) |
| | Exports a triangle with the current attributes.
|
| RGraphicsViewImage * | getGraphicsView () |
| RImageData | getImage (REntity::Id entityId) |
| QList< RPainterPath > | getPainterPaths (REntity::Id entityId) |
| virtual double | getPatternFactor () |
| QList< RPainterPath > | getPreviewPainterPaths () |
| bool | hasImageFor (REntity::Id entityId) |
| virtual void | highlightEntity (REntity &entity) |
| | Highlights the given entity.
|
| | RGraphicsSceneQt (RDocumentInterface &documentInterface) |
| virtual void | startEntity (bool topLevelEntity) |
| virtual void | unexportEntity (REntity::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 | ~RGraphicsSceneQt () |
| virtual void | beginPreview () |
| virtual void | endPreview () |
| virtual void | exportCurrentEntity (bool preview=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.
|
| RDocumentInterface & | getDocumentInterface () |
| QList< RGraphicsView * > | getGraphicsViews () |
| RVector | getHighlightedReferencePoint () |
| QMultiMap< REntity::Id, RVector > & | 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 | hasDraftView () const |
| bool | hasNormalView () const |
| virtual void | highlightReferencePoint (const RVector &position) |
| | Highlights the reference point at the given position.
|
| virtual bool | isPreviewEmpty () |
| virtual void | regenerate (bool undone=false) |
| | Regenerates this scene from the entity data by exporting the whole document into it.
|
| virtual void | regenerate (QSet< REntity::Id > &affectedEntities, bool updateViews) |
| | Regenerates part of this scene from the entity data by exporting the given entities into it.
|
| virtual void | regenerateViews (bool force=false) |
| | Regenerates all views attached to this scene.
|
| 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) |
| virtual void | setCursor (const QCursor &cursor) |
| virtual void | unregisterView (RGraphicsView *view) |
| | Removes the given view from this scene.
|
| void | updateDraftStatus (bool regen=true) |
| | Called when a view changes its draft mode status or a new view is added.
|
| virtual | ~RGraphicsScene () |
| virtual void | endEntity () |
| virtual void | endExport () |
| | Called at the end of a completed export.
|
| virtual void | exportBlock (RBlock &) |
| virtual void | exportBlock (RBlock::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 &, const QVariant &) |
| virtual void | exportEntities (bool allBlocks=true, bool undone=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< REntity::Id > &entityIds, bool allBlocks=true) |
| | Calls exportEntity() for all given entities.
|
| virtual void | exportEntity (REntity &e, bool preview=false, bool allBlocks=true) |
| | Sets the current entity to the given entity and calls exportEntity().
|
| virtual void | exportEntity (REntity::Id entityId, bool allBlocks=true) |
| | Calls exportEntity(REntity*) for the entity with the given ID.
|
| virtual void | exportExplodable (const RExplodable &explodable, double offset=RNANDOUBLE) |
| virtual void | exportLayer (RLayer &) |
| virtual void | exportLayer (RLayer::Id layerId) |
| virtual void | exportLayers () |
| virtual void | exportLinetype (RLinetype &) |
| virtual void | exportLinetypes () |
| 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 | exportTrialEntities () |
| 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 (RView &) |
| virtual void | exportView (RView::Id viewId) |
| virtual void | exportViews () |
| virtual REntity * | getBlockRefOrEntity () |
| virtual QBrush | getBrush (const RPainterPath &path) |
| virtual QBrush | getBrush () |
| RDocument & | getDocument () const |
| |
|
| bool | getDraftMode () const |
| virtual REntity * | getEntity () |
| | Sets the current export color for entities.
|
| virtual const REntity * | getEntity () const |
| QStack< REntity * > | getEntityStack () |
| QString | getErrorMessage () const |
| RLinetypePattern | getLinetypePattern () |
| double | getPatternOffset (double length, const RLinetypePattern &pattern) |
| double | getPatternOffset (double length, const RLinetypePattern &pattern, int index, double *gap=NULL) |
| virtual QPen | getPen (const RPainterPath &path) |
| virtual QPen | getPen () |
| RS::ProjectionRenderingHint | getProjectionRenderingHint () |
| virtual bool | isEntitySelected () |
| bool | isVisualExporter () const |
| | RExporter () |
| | RExporter (RDocument &document) |
| void | setBlockSource (RDocument *bs) |
| virtual void | setBrush (const QBrush &brush) |
| virtual void | setBrushStyle (Qt::BrushStyle brushStyle) |
| virtual void | setColor (float r, float g, float b, float a=1.0f) |
| | Sets the current export color in RGB and Alpha.
|
| virtual void | setColor (const RColor &color) |
| virtual void | setDashPattern (const QVector< qreal > &dashes) |
| void | setDraftMode (bool on) |
| virtual void | setEntityAttributes () |
| void | setLayerSource (RDocument *ls) |
| virtual void | setLinetypeId (RLinetype::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 | setProjectionRenderingHint (RS::ProjectionRenderingHint p) |
| | Sets a rendering hint for the current projection used for exports.
|
| virtual void | setStyle (Qt::PenStyle penStyle) |
| void | setVisualExporter (bool on) |
| virtual void | startExport () |
| | Called to start a new, complete export.
|
| virtual | ~RExporter () |
Qt based 2d graphics scene.
This graphics scene is an exporter that exports entities into QPainterPaths (2d).
graphics views.
- Scriptable:
- This class is wrapped for script environments.