|
| void | addToBackground (const RGraphicsSceneDrawable &drawable) |
| |
| void | addToOverlay (int overlayId, RObject::Id objectId, const RGraphicsSceneDrawable &drawable) |
| |
| void | clear () |
| |
| void | clearBackground () |
| |
| void | clearOverlay (int overlayId) |
| |
| void | clearOverlay (int overlayId, RObject::Id objectId) |
| |
| virtual void | emitUpdateSnapInfo (RSnap *snap, RSnapRestriction *restriction) |
| |
| virtual void | emitUpdateTextLabel (const RTextLabel &textLabel) |
| |
| QImage | getBuffer () const |
| |
| bool | getColorCorrectionOverride () const |
| |
| virtual QCursor | getCursor () |
| |
| virtual double | getDevicePixelRatio () const |
| |
| double | getDrawingScale () const |
| |
| QImage | getGraphicsBufferWithPreview () const |
| |
| virtual int | getHeight () const |
| |
| RVector | getLastKnownScreenPosition () const |
| |
| double | getMaximumLineweight () const |
| |
| double | getMinimumLineweight () const |
| |
| int | getNumThreads () const |
| |
| RVector | getPaintOffset () const |
| |
| bool | getPanOptimization () |
| |
| QTransform | getTransform () const |
| |
| virtual int | getWidth () const |
| |
| virtual void | giveFocus () |
| |
| virtual bool | hasFocus () |
| |
| bool | isAlphaEnabled () const |
| |
| virtual bool | isShared () const |
| | Reimplementations may return true to prevent this view from being deleted.
|
| |
| virtual double | mapDistanceFromView (double d) const |
| | Maps the given view distance in pixels to a model distance.
|
| |
| virtual double | mapDistanceToView (double d) const |
| | Maps the given model distance to a screen distance in pixels.
|
| |
| virtual RVector | mapFromView (const RVector &v, double z=0.0) const |
| | Maps the given view coordinate in pixels to a model coordinate.
|
| |
| virtual RVector | mapToView (const RVector &v) const |
| | Maps the given model coordinate to a view coordinate in pixels.
|
| |
| virtual void | paintCursorLine (const RLine &ucsPosition) |
| |
| virtual void | paintDrawableThread (RGraphicsViewWorker *worker, RGraphicsSceneDrawable &drawable, const RBox &clipRectangle, bool preview=false) |
| |
| virtual void | paintEntities (QPainter *painter, const RBox &queryBox) |
| |
| void | paintEntitiesMulti (const RBox &queryBox) |
| |
| virtual void | paintEntityThread (RGraphicsViewWorker *worker, RObject::Id id, bool preview=false) |
| | Looks up entity drawable and paints it using the given worker.
|
| |
| virtual void | paintGridLine (const RLine &ucsPosition) |
| |
| virtual void | paintGridPoint (const RVector &ucsPosition) |
| |
| virtual void | paintImage (RGraphicsViewWorker *worker, const RImageData &image, bool workingSet=true) |
| |
| virtual void | paintOverlay () |
| |
| virtual void | paintText (RGraphicsViewWorker *worker, const RTextBasedData &text, bool workingSet=true) |
| |
| virtual void | regenerate (bool force=false) |
| | Regenerates the view from the underlying scene.
|
| |
| virtual bool | registerForFocus () const |
| | Reimplementations may return true to register this view and allow it to be returned by RDocumentInterface::getLastKnownViewWithFocus.
|
| |
| virtual void | removeFocus () |
| |
| virtual void | repaintView () |
| | Triggers a paintEvent based on a buffered offscreen bitmap (very fast).
|
| |
| virtual void | resizeImage (int w, int h) |
| |
| void | restoreViewport () |
| |
| | RGraphicsViewImage (QObject *parent=NULL) |
| | Copyright (c) 2011-2018 by Andrew Mustun.
|
| |
| void | saveViewport () |
| |
| void | setAlphaEnabled (bool on) |
| |
| virtual void | setBackgroundColor (const QColor &col) |
| |
| void | setBackgroundTransform (double bgFactor, const RVector &bgOffset) |
| |
| void | setColorCorrectionOverride (bool on) |
| |
| virtual void | setCursor (const QCursor &cursor) |
| |
| virtual void | setCursor (Qt::CursorShape cursorShape) |
| |
| void | setDrawingScale (double s) |
| |
| void | setLastKnownModelPosition (const RVector &p) |
| |
| void | setLastKnownScreenPosition (const RVector &p) |
| |
| void | setMaximumLineweight (double lw) |
| |
| void | setMinimumLineweight (double lw) |
| |
| void | setNumThreads (int n) |
| |
| void | setPaintOffset (const RVector &offset) |
| |
| void | setPaintOrigin (bool val) |
| |
| void | setPanOptimization (bool on) |
| |
| virtual void | setScene (RGraphicsSceneQt *scene, bool regen=true) |
| |
| virtual void | simulateMouseMoveEvent () |
| |
| virtual void | updateImage () |
| | Repaints the view.
|
| |
| virtual void | viewportChangeEvent () |
| |
| virtual | ~RGraphicsViewImage () |
| |
| void | addTextLabel (const RTextLabel &textLabel) |
| |
| void | autoZoom (int margin=RDEFAULT_MIN1, bool ignoreEmpty=false, bool ignoreLineweight=false) |
| |
| virtual void | centerToBox (const RBox &box) |
| | Centers the view on the given box.
|
| |
| virtual void | centerToPoint (const RVector &point) |
| | Centers the view on the given point.
|
| |
| void | clear () |
| |
| void | clearCaches () |
| |
| void | clearTextLabels () |
| |
| bool | getAntialiasing () const |
| |
| QColor | getBackgroundColor () |
| |
| virtual RBox | getBox () const |
| |
| RObject::Id | getClosestEntity (const RVector &screenPosition, int range, int strictRange, bool includeLockedLayers=true, bool selectedOnly=false) |
| | Finds the entity that is the closest to the given screen coordinate (in pixels).
|
| |
| RRefPoint | getClosestReferencePoint (const RVector &screenPosition, int range) |
| | Finds the reference point that is the closest to the given screen coordinate (in pixels).
|
| |
| RRefPoint | getClosestReferencePoint (RObject::Id entityId, const RVector &screenPosition) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| RGraphicsView::ColorMode | getColorMode () |
| |
| RVector | getCurrentStepOffset () const |
| |
| double | getCurrentStepScaleFactor () const |
| |
| RDocument * | getDocument () const |
| |
| RDocumentInterface * | getDocumentInterface () const |
| |
| double | getFactor (bool includeStepFactor=true) const |
| |
| bool | getForceTextHeightThreshold () const |
| |
| RGrid * | getGrid () |
| |
| bool | getHairlineMinimumMode () |
| |
| bool | getHairlineMode () |
| |
| RVector | getLastKnownMousePosition () const |
| |
| int | getMargin () |
| |
| virtual RVector | getMaximum () const |
| |
| virtual RVector | getMinimum () const |
| |
| RVector | getOffset (bool includeStepOffset=true) const |
| |
| RGraphicsScene * | getScene () const |
| |
| virtual bool | getSignalsBlocked () const |
| |
| int | getTextHeightThresholdOverride () const |
| |
| QList< RTextLabel > | getTextLabels () |
| |
| int | getViewportNumber () const |
| |
| QWidget * | getWidget () const |
| |
| virtual void | handleKeyPressEvent (QKeyEvent &event) |
| |
| virtual void | handleKeyReleaseEvent (QKeyEvent &event) |
| |
| virtual void | handleMouseDoubleClickEvent (RMouseEvent &event) |
| | This should be called by the mouse double click event handler of a higher level GUI toolkit.
|
| |
| virtual void | handleMouseMoveEvent (RMouseEvent &event) |
| | This should be called by the mouse move event handler of a higher level GUI toolkit.
|
| |
| virtual void | handleMousePressEvent (RMouseEvent &event) |
| | This should be called by the mouse press event handler of a higher level GUI toolkit.
|
| |
| virtual void | handleMouseReleaseEvent (RMouseEvent &event) |
| | This should be called by the mouse release event handler of a higher level GUI toolkit.
|
| |
| virtual void | handlePanGestureEvent (QPanGesture &gesture) |
| |
| virtual void | handlePinchGestureEvent (QPinchGesture &gesture) |
| |
| virtual void | handleSwipeGestureEvent (QSwipeGesture &gesture) |
| |
| virtual void | handleTabletEvent (RTabletEvent &event) |
| | This should be called by the tablet event handler of a higher level GUI toolkit.
|
| |
| virtual void | handleTerminateEvent (RTerminateEvent &event) |
| |
| virtual void | handleWheelEvent (RWheelEvent &event) |
| | This should be called by the mouse wheel event handler of a higher level GUI toolkit.
|
| |
| virtual int | isActive () const |
| |
| bool | isExporting () const |
| |
| bool | isGridVisible () const |
| |
| bool | isPathVisible (const RPainterPath &path) const |
| |
| bool | isPrinting () const |
| |
| bool | isPrintingOrExporting () const |
| |
| bool | isPrintPreview () const |
| |
| virtual QList< RVector > | mapCornersFromView () const |
| |
| virtual RBox | mapToView (const RBox &box) const |
| | Finds the entity that is the closest to the given screen coordinate (in pixels) and inside the current UCS (read floor).
|
| |
| virtual void | paintGridPoints (const QVector< double > &ucsPositionX, const QVector< double > &ucsPositionY) |
| |
| virtual void | pan (const RVector &delta, bool regen=true) |
| | Pans (scrolls) by the given amount delta which is a vector in screen coordinates (pixels).
|
| |
| virtual void | regenerate (QSet< RObject::Id > &affectedEntities) |
| |
| void | restoreViewport () |
| |
| | RGraphicsView (RGraphicsScene *scene=NULL) |
| | Copyright (c) 2011-2018 by Andrew Mustun.
|
| |
| void | saveViewport () |
| |
| void | setAntialiasing (bool val) |
| |
| void | setColorMode (RGraphicsView::ColorMode cm) |
| |
| void | setCurrentStepOffset (const RVector &s) |
| |
| void | setCurrentStepScaleFactor (double f) |
| |
| void | setDisplayOnlyCurrentUcs (bool on) |
| | If on is true, only the current UCS and the entities that are in its range are displayed.
|
| |
| void | setExporting (bool on) |
| |
| void | setFactor (double f, bool regen=true) |
| |
| void | setForceTextHeightThreshold (bool on) |
| |
| void | setGrid (RGrid *g) |
| | Sets the current grid.
|
| |
| void | setGridVisible (bool on) |
| |
| void | setHairlineMinimumMode (bool on) |
| |
| void | setHairlineMode (bool on) |
| |
| void | setMargin (int m) |
| |
| void | setNavigationAction (RAction *action) |
| | Sets an action object that is typically used to handle all navigation interaction (zooming, panning, ...).
|
| |
| void | setOffset (const RVector &offset, bool regen=true) |
| |
| void | setPrinting (bool on) |
| |
| void | setPrintPointSize (const RVector &s) |
| |
| void | setPrintPreview (bool on) |
| |
| virtual void | setScene (RGraphicsScene *scene, bool regen=true) |
| |
| virtual void | setSignalsBlocked (bool on) |
| |
| void | setTextHeightThresholdOverride (int v) |
| |
| void | setViewportNumber (int n) |
| |
| void | setWidget (QWidget *w) |
| |
| void | startPan () |
| |
| void | updateTextHeightThreshold () |
| |
| virtual void | zoom (const RVector ¢er, double factor) |
| | Zooms in / out by the given factor towards / from the given center in scene coordinates.
|
| |
| void | zoomIn () |
| | Zooms in by factor 1.2.
|
| |
| void | zoomIn (const RVector ¢er, double factor=1.2) |
| | Zooms in by factor 1.2.
|
| |
| void | zoomOut () |
| | Zooms out by factor 1.2.
|
| |
| void | zoomOut (const RVector ¢er, double factor=1.2) |
| | Zooms out by factor 1.0/1.2.
|
| |
| void | zoomPrevious () |
| |
| virtual void | zoomTo (const RBox &window, int margin=0) |
| | Zooms the view in a way that the given window is visible and fills the view.
|
| |
| bool | zoomToEntities (const QSet< RObject::Id > &ids, int margin=RDEFAULT_MIN1) |
| |
| bool | zoomToSelection (int margin=RDEFAULT_MIN1) |
| |
| virtual | ~RGraphicsView () |
| |
|
| void | applyColorCorrection (QBrush &brush) |
| |
| void | applyColorCorrection (QPen &pen) |
| |
| void | applyColorMode (QBrush &brush) |
| |
| void | applyColorMode (QPen &pen) |
| |
| void | applyMinimumLineweight (QPen &pen) |
| |
| virtual void | drawCircle (RGraphicsViewWorker *worker, QPointF pt, double pSize) |
| |
| virtual void | drawDot (RGraphicsViewWorker *worker, QPointF pt) |
| |
| virtual void | drawEx (RGraphicsViewWorker *worker, QPointF pt, double pSize) |
| |
| virtual void | drawLine (const QLineF &line) const |
| |
| virtual void | drawPlus (RGraphicsViewWorker *worker, QPointF pt, double pSize) |
| |
| virtual void | drawSquare (RGraphicsViewWorker *worker, QPointF pt, double pSize) |
| |
| virtual void | drawVBar (RGraphicsViewWorker *worker, QPointF pt, double pSize) |
| |
| virtual void | endPaint () const |
| |
| double | getPointSize (double pSize) |
| |
| QList< RPainterPath > | getTextLayoutsPainterPaths (const RTextBasedData &text, const QList< RTextLayout > &textLayouts) |
| |
| void | initPainter (QPaintDevice &device, bool erase, bool screen=false, const QRect &rect=QRect()) |
| |
| virtual RGraphicsViewWorker * | initWorker (int threadId) |
| |
| virtual void | initWorkers () |
| | Updates the graphics buffer from scratch.
|
| |
| void | invalidate (bool force=false) |
| |
| virtual void | paintBackground (RGraphicsViewWorker *worker, const QRect &rect=QRect()) |
| |
| virtual void | paintCursor (RGraphicsViewWorker *worker) |
| |
| virtual void | paintDocument (const QRect &rect=QRect()) |
| |
| virtual void | paintErase (RGraphicsViewWorker *worker, const QRect &rect=QRect()) |
| |
| virtual void | paintGrid (RGraphicsViewWorker *worker, const QRect &rect=QRect()) |
| |
| virtual void | paintMetaGrid (RGraphicsViewWorker *worker, const QRect &rect=QRect()) |
| |
| virtual void | paintOrigin (RGraphicsViewWorker *worker) |
| | Paints the absolute zero point (origin).
|
| |
| virtual void | paintReferencePoint (RGraphicsViewWorker *worker, const RRefPoint &pos, bool highlight) |
| |
| virtual void | paintRelativeZero (RGraphicsViewWorker *worker) |
| |
| virtual void | setBrush (const QBrush &brush) const |
| |
| virtual void | setPen (const QPen &pen) const |
| |
| void | updateTransformation () const |
| |
QImage based 2d graphics view.
This graphics view renders a rectangular area of a RGraphicsSceneQt into a QImage.
- Scriptable:\nThis class is available in script environments.\n