Skip to content

RGraphicsView

Class in Core Module
Header: #include <src/core/RGraphicsView.h>
Inherits: RNonCopyable (private)
Inherited by: RGraphicsViewImage

Graphics view.

A graphics view displays a (part of a) graphics scene.

Scriptable: This class is available in script environments.

enum ColorMode { FullColor, GrayScale, BlackWhite }
RGraphicsView(RGraphicsScene *scene=NULL)
virtual ~RGraphicsView()
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
virtual QImage getBuffer() const
getBuffer
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
virtual QCursor getCursor()
virtual double getDevicePixelRatio() const
RDocument * getDocument() const
RDocumentInterface * getDocumentInterface() const
double getFactor(bool includeStepFactor=true) const
bool getForceTextHeightThreshold() const
RGrid * getGrid()
bool getHairlineMinimumMode()
bool getHairlineMode()
virtual int getHeight() const =0 = 0
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 int getWidth() const =0 = 0
virtual void giveFocus()=0 = 0
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 bool hasFocus()=0 = 0
void invalidateLastKnownPositions()
Forgets the positions of the last mouse event.
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 bool isShared() const
Reimplementations may return true to prevent this view from being deleted.
virtual QList< RVector > mapCornersFromView() const
virtual double mapDistanceFromView(double d) const =0 = 0
Maps the given view distance in pixels to a model distance.
virtual double mapDistanceToView(double d) const =0 = 0
Maps the given model distance to a screen distance in pixels.
virtual RVector mapFromView(const RVector &v, double z=0.0) const =0 = 0
Maps the given view coordinate in pixels to a model coordinate.
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 RVector mapToView(const RVector &v) const =0 = 0
Maps the given model coordinate to a view coordinate in pixels.
virtual void paintCursorLine(const RLine &)
virtual void paintGridLine(const RLine &)
virtual void paintGridPoint(const RVector &)
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(bool force=false)=0 = 0
Regenerates the view to show the visible parts of the underlying scene.
virtual void regenerate(QSet< RObject::Id > &affectedEntities)
virtual bool registerForFocus() const
Reimplementations may return true to register this view and allow it to be returned by RDocumentInterface::getLastKnownViewWithFocus.
virtual void removeFocus()=0 = 0
virtual void repaintView()=0 = 0
Repaints the view (widget, etc..).
void restoreViewport()
void saveViewport()
void setAntialiasing(bool val)
virtual void setBackgroundColor(const QColor &col)
void setColorMode(RGraphicsView::ColorMode cm)
void setCurrentStepOffset(const RVector &s)
void setCurrentStepScaleFactor(double f)
virtual void setCursor(const QCursor &)
virtual void setCursor(Qt::CursorShape)
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)
virtual void simulateMouseMoveEvent()
void startPan()
void updateTextHeightThreshold()
virtual void viewportChangeEvent()
virtual void zoom(const RVector &center, 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 &center, double factor=1.2)
Zooms in by factor 1.2.
void zoomOut()
Zooms out by factor 1.2.
void zoomOut(const RVector &center, 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)
bool antialiasing
bool autoScalePatterns
QColor backgroundColor
ColorMode colorMode
RVector currentStepOffset
double currentStepScaleFactor
Current scale factor caused by a pinch gesture.
bool displayOnlyCurrentUcs
True to only display entities within the horizontal slice that is defined by the current UCS.
bool exporting
double factor
Scale factor from model coordinates to view coordinates.
bool forceTextHeightThreshold
RGrid * grid
Grid that is currently displayed by this view or NULL.
int gridVisible
bool hairlineMinimumMode
bool hairlineMode
RVector lastKnownModelPosition
RVector lastKnownScreenPosition
int margin
RAction * navigationAction
The navigation action of this view or NULL if no navigation action has been set.
RVector offset
Offset of the zero point from the lower left corner of the view in model coordinates.
double previousFactor
RVector previousOffset
bool printing
RVector printPointSize
bool printPreview
RGraphicsScene * scene
The scene this view is attached to.
int textHeightThreshold
int textHeightThresholdOverride
QList< RTextLabel > textLabels
Internal list of text labels that were added to this view.
int viewportNumber
QWidget * widget

enum ColorMode
Value Description
FullColor
GrayScale
BlackWhite

RGraphicsView::RGraphicsView(RGraphicsScene *scene=NULL)

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.

virtual RGraphicsView::~RGraphicsView()

virtual

void RGraphicsView::addTextLabel(const RTextLabel &textLabel)

void RGraphicsView::autoZoom(int margin=RDEFAULT_MIN1, bool ignoreEmpty=false, bool ignoreLineweight=false)

virtual void RGraphicsView::centerToBox(const RBox &box)

virtual

Centers the view on the given box.

The view is updated.

Parameters:

  • box: Box to move into the center of the drawing in model coordinates.

virtual void RGraphicsView::centerToPoint(const RVector &point)

virtual

Centers the view on the given point.

The view is updated.

Parameters:

  • point: Point to move into the center of the drawing in model coordinates.

void RGraphicsView::clear()

inline

void RGraphicsView::clearCaches()

void RGraphicsView::clearTextLabels()

bool RGraphicsView::getAntialiasing() const

const

QColor RGraphicsView::getBackgroundColor()

virtual RBox RGraphicsView::getBox() const

virtual const

virtual QImage RGraphicsView::getBuffer() const

virtual inline const

getBuffer

Returns: Buffer to rendered graphics view, if supported by the implementation.

Reimplemented in getBuffer.

REntity::Id RGraphicsView::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).

Parameters:

  • range: Maximum distance in pixels.

Returns: The closest entity or NULL.

RRefPoint RGraphicsView::getClosestReferencePoint(const RVector &screenPosition, int range)

Finds the reference point that is the closest to the given screen coordinate (in pixels).

Parameters:

  • range: Maximum distance in pixels.

Returns: The closest referecene point in model coordinates.

RRefPoint RGraphicsView::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 RGraphicsView::getColorMode()

RVector RGraphicsView::getCurrentStepOffset() const

inline const

double RGraphicsView::getCurrentStepScaleFactor() const

inline const

virtual QCursor RGraphicsView::getCursor()

virtual inline

Reimplemented in getCursor.

virtual double RGraphicsView::getDevicePixelRatio() const

virtual inline const

Reimplemented in getDevicePixelRatio.

RDocument * RGraphicsView::getDocument() const

const

Returns: Reference to the document that is visualized by this view.

RDocumentInterface * RGraphicsView::getDocumentInterface() const

const

Returns: Reference to the document interface.

double RGraphicsView::getFactor(bool includeStepFactor=true) const

const

bool RGraphicsView::getForceTextHeightThreshold() const

inline const

RGrid * RGraphicsView::getGrid()

inline

Returns: Current grid or NULL if no grid is set.

bool RGraphicsView::getHairlineMinimumMode()

bool RGraphicsView::getHairlineMode()

virtual int RGraphicsView::getHeight() const =0 = 0

pure virtual const

Returns: Height of the view in pixels.

Reimplemented in getHeight.

RVector RGraphicsView::getLastKnownMousePosition() const

inline const

int RGraphicsView::getMargin()

virtual RVector RGraphicsView::getMaximum() const

virtual const

Returns: The maximum coordinate that is currently visible in the view.

virtual RVector RGraphicsView::getMinimum() const

virtual const

Returns: The minimum coordinate that is currently visible in the view.

RVector RGraphicsView::getOffset(bool includeStepOffset=true) const

const

RGraphicsScene * RGraphicsView::getScene() const

const

Returns: Reference to the graphics scene that is visualized by this view.

virtual bool RGraphicsView::getSignalsBlocked() const

virtual inline const

int RGraphicsView::getTextHeightThresholdOverride() const

inline const

QList< RTextLabel > RGraphicsView::getTextLabels()

int RGraphicsView::getViewportNumber() const

inline const

QWidget * RGraphicsView::getWidget() const

inline const

virtual int RGraphicsView::getWidth() const =0 = 0

pure virtual const

Returns: Width of the view in pixels.

Reimplemented in getWidth.

virtual void RGraphicsView::giveFocus()=0 = 0

pure virtual

Reimplemented in giveFocus.

virtual void RGraphicsView::handleKeyPressEvent(QKeyEvent &event)

virtual

virtual void RGraphicsView::handleKeyReleaseEvent(QKeyEvent &event)

virtual

virtual void RGraphicsView::handleMouseDoubleClickEvent(RMouseEvent &event)

virtual

This should be called by the mouse double click event handler of a higher level GUI toolkit.

Events are forwarded to the scene and the navigation action that is attached to this view.

virtual void RGraphicsView::handleMouseMoveEvent(RMouseEvent &event)

virtual

This should be called by the mouse move event handler of a higher level GUI toolkit.

Events are forwarded to the scene and the navigation action that is attached to this view.

virtual void RGraphicsView::handleMousePressEvent(RMouseEvent &event)

virtual

This should be called by the mouse press event handler of a higher level GUI toolkit.

Events are forwarded to the scene and the navigation action that is attached to this view.

virtual void RGraphicsView::handleMouseReleaseEvent(RMouseEvent &event)

virtual

This should be called by the mouse release event handler of a higher level GUI toolkit.

Events are forwarded to the scene and the navigation action that is attached to this view.

virtual void RGraphicsView::handlePanGestureEvent(QPanGesture &gesture)

virtual

virtual void RGraphicsView::handlePinchGestureEvent(QPinchGesture &gesture)

virtual

virtual void RGraphicsView::handleSwipeGestureEvent(QSwipeGesture &gesture)

virtual

virtual void RGraphicsView::handleTabletEvent(RTabletEvent &event)

virtual

This should be called by the tablet event handler of a higher level GUI toolkit.

Events are forwarded to the scene and the navigation action that is attached to this view.

virtual void RGraphicsView::handleTerminateEvent(RTerminateEvent &event)

virtual

virtual void RGraphicsView::handleWheelEvent(RWheelEvent &event)

virtual

This should be called by the mouse wheel event handler of a higher level GUI toolkit.

Events are forwarded to the scene and the navigation action that is attached to this view.

virtual bool RGraphicsView::hasFocus()=0 = 0

pure virtual

Returns: True if this view currently has the focus.

Reimplemented in hasFocus.

void RGraphicsView::invalidateLastKnownPositions()

inline

Forgets the positions of the last mouse event.

Called when the current block of the document changes: the model position was captured in the coordinate system of the previous block and the screen position refers to its (possibly different) transformation, so simulateMouseMoveEvent must not replay them in the new block (the entity next to the stale position was highlighted after returning from a block to the model space). Nothing is simulated until the next real mouse move.

virtual int RGraphicsView::isActive() const

virtual inline const

Returns: True if this view is considered to be active and needs updates (for example if a view is visible).

bool RGraphicsView::isExporting() const

const

bool RGraphicsView::isGridVisible() const

const

bool RGraphicsView::isPathVisible(const RPainterPath &path) const

const

bool RGraphicsView::isPrinting() const

const

bool RGraphicsView::isPrintingOrExporting() const

const

bool RGraphicsView::isPrintPreview() const

const

virtual bool RGraphicsView::isShared() const

virtual inline const

Reimplementations may return true to prevent this view from being deleted.

Reimplemented in isShared.

virtual QList< RVector > RGraphicsView::mapCornersFromView() const

virtual const

Returns: Four vectors with the coordinates of the four corners of the view mapped to scene coordinates.

virtual double RGraphicsView::mapDistanceFromView(double d) const =0 = 0

pure virtual const

Maps the given view distance in pixels to a model distance.

If the view projection is not orthogonal the result is undefined.

Reimplemented in mapDistanceFromView.

virtual double RGraphicsView::mapDistanceToView(double d) const =0 = 0

pure virtual const

Maps the given model distance to a screen distance in pixels.

If the view projection is not orthogonal the result is undefined.

Reimplemented in mapDistanceToView.

virtual RVector RGraphicsView::mapFromView(const RVector &v, double z=0.0) const =0 = 0

pure virtual const

Maps the given view coordinate in pixels to a model coordinate.

Parameters:

  • v: view coordinate in pixels, v.z is always 0
  • z: known z coordinate in model units

Reimplemented in mapFromView.

virtual RBox RGraphicsView::mapToView(const RBox &box) const

virtual const

Finds the entity that is the closest to the given screen coordinate (in pixels) and inside the current UCS (read floor).

Parameters:

  • range: Maximum distance in pixels.

Returns: The closest entity or NULL. Maps the given box (e.g. a 3d bounding box) to a 2d box in view coordinates (pixels).

virtual RVector RGraphicsView::mapToView(const RVector &v) const =0 = 0

pure virtual const

Maps the given model coordinate to a view coordinate in pixels.

Reimplemented in mapToView.

virtual void RGraphicsView::paintCursorLine(const RLine &)

virtual inline

Reimplemented in paintCursorLine.

virtual void RGraphicsView::paintGridLine(const RLine &)

virtual inline

Reimplemented in paintGridLine.

virtual void RGraphicsView::paintGridPoint(const RVector &)

virtual inline

Reimplemented in paintGridPoint.

virtual void RGraphicsView::paintGridPoints(const QVector< double > &ucsPositionX, const QVector< double > &ucsPositionY)

virtual

virtual void RGraphicsView::pan(const RVector &delta, bool regen=true)

virtual

Pans (scrolls) by the given amount delta which is a vector in screen coordinates (pixels).

virtual void RGraphicsView::regenerate(bool force=false)=0 = 0

pure virtual

Regenerates the view to show the visible parts of the underlying scene.

This function is called after the entities have been modified or the view port changed after a zoom or pan or after the window has been resized.

Parameters:

  • force: True if scene has changed, don’t use any optimizations, force regeneration.

Reimplemented in regenerate.

virtual void RGraphicsView::regenerate(QSet< RObject::Id > &affectedEntities)

virtual inline

virtual bool RGraphicsView::registerForFocus() const

virtual inline const

Reimplementations may return true to register this view and allow it to be returned by RDocumentInterface::getLastKnownViewWithFocus.

Reimplemented in registerForFocus.

virtual void RGraphicsView::removeFocus()=0 = 0

pure virtual

Reimplemented in removeFocus.

virtual void RGraphicsView::repaintView()=0 = 0

pure virtual

Repaints the view (widget, etc..).

This differs from regenerate in that it does not require the view to iterate through the scene elements. Instead for example a buffered bitmap might be drawn. This is for example called when the preview changes to restore the view before painting the preview on top of it.

Reimplemented in repaintView.

void RGraphicsView::restoreViewport()

void RGraphicsView::saveViewport()

void RGraphicsView::setAntialiasing(bool val)

virtual void RGraphicsView::setBackgroundColor(const QColor &col)

virtual

Reimplemented in setBackgroundColor.

void RGraphicsView::setColorMode(RGraphicsView::ColorMode cm)

void RGraphicsView::setCurrentStepOffset(const RVector &s)

inline

void RGraphicsView::setCurrentStepScaleFactor(double f)

inline

virtual void RGraphicsView::setCursor(const QCursor &)

virtual inline

Reimplemented in setCursor.

virtual void RGraphicsView::setCursor(Qt::CursorShape)

virtual inline

Reimplemented in setCursor.

void RGraphicsView::setDisplayOnlyCurrentUcs(bool on)

If on is true, only the current UCS and the entities that are in its range are displayed.

The range of a UCS is defined by the length of its axis vectors. This can be used to display only one floor in an architecture application.

void RGraphicsView::setExporting(bool on)

void RGraphicsView::setFactor(double f, bool regen=true)

void RGraphicsView::setForceTextHeightThreshold(bool on)

inline

void RGraphicsView::setGrid(RGrid *g)

Sets the current grid.

This graphics view takes ownership of the grid. The previous grid is deleted. Setting the grid to NULL disables the grid.

void RGraphicsView::setGridVisible(bool on)

void RGraphicsView::setHairlineMinimumMode(bool on)

void RGraphicsView::setHairlineMode(bool on)

void RGraphicsView::setMargin(int m)

void RGraphicsView::setNavigationAction(RAction *action)

Sets an action object that is typically used to handle all navigation interaction (zooming, panning, …).

All events that are received by this view are first sent to the graphics scene and then to this action if they were not consumed yet.

void RGraphicsView::setOffset(const RVector &offset, bool regen=true)

void RGraphicsView::setPrinting(bool on)

void RGraphicsView::setPrintPointSize(const RVector &s)

void RGraphicsView::setPrintPreview(bool on)

virtual void RGraphicsView::setScene(RGraphicsScene *scene, bool regen=true)

virtual

virtual void RGraphicsView::setSignalsBlocked(bool on)

virtual inline

void RGraphicsView::setTextHeightThresholdOverride(int v)

inline

void RGraphicsView::setViewportNumber(int n)

void RGraphicsView::setWidget(QWidget *w)

inline

virtual void RGraphicsView::simulateMouseMoveEvent()

virtual

Reimplemented in simulateMouseMoveEvent.

void RGraphicsView::startPan()

void RGraphicsView::updateTextHeightThreshold()

virtual void RGraphicsView::viewportChangeEvent()

virtual

Reimplemented in viewportChangeEvent.

virtual void RGraphicsView::zoom(const RVector &center, double factor)

virtual

Zooms in / out by the given factor towards / from the given center in scene coordinates.

void RGraphicsView::zoomIn()

Zooms in by factor 1.2.

The center point is at the center of the view.

void RGraphicsView::zoomIn(const RVector &center, double factor=1.2)

Zooms in by factor 1.2.

The given center point stays at the same position.

void RGraphicsView::zoomOut()

Zooms out by factor 1.2.

The center point is at the center of the view.

void RGraphicsView::zoomOut(const RVector &center, double factor=1.2)

Zooms out by factor 1.0/1.2.

The given center point stays at the same position.

void RGraphicsView::zoomPrevious()

virtual void RGraphicsView::zoomTo(const RBox &window, int margin=0)

virtual

Zooms the view in a way that the given window is visible and fills the view.

The view is updated.

bool RGraphicsView::zoomToEntities(const QSet< RObject::Id > &ids, int margin=RDEFAULT_MIN1)

bool RGraphicsView::zoomToSelection(int margin=RDEFAULT_MIN1)

bool RGraphicsView::antialiasing

protected

bool RGraphicsView::autoScalePatterns

protected

QColor RGraphicsView::backgroundColor

protected

ColorMode RGraphicsView::colorMode

protected

RVector RGraphicsView::currentStepOffset

protected

double RGraphicsView::currentStepScaleFactor

protected

Current scale factor caused by a pinch gesture.

bool RGraphicsView::displayOnlyCurrentUcs

protected

True to only display entities within the horizontal slice that is defined by the current UCS.

bool RGraphicsView::exporting

protected

double RGraphicsView::factor

protected

Scale factor from model coordinates to view coordinates.

bool RGraphicsView::forceTextHeightThreshold

protected

RGrid* RGraphicsView::grid

protected

Grid that is currently displayed by this view or NULL.

int RGraphicsView::gridVisible

protected

bool RGraphicsView::hairlineMinimumMode

protected

bool RGraphicsView::hairlineMode

protected

RVector RGraphicsView::lastKnownModelPosition

protected

RVector RGraphicsView::lastKnownScreenPosition

protected

int RGraphicsView::margin

protected

RAction* RGraphicsView::navigationAction

protected

The navigation action of this view or NULL if no navigation action has been set.

RVector RGraphicsView::offset

protected

Offset of the zero point from the lower left corner of the view in model coordinates.

double RGraphicsView::previousFactor

protected

RVector RGraphicsView::previousOffset

protected

bool RGraphicsView::printing

protected

RVector RGraphicsView::printPointSize

protected

bool RGraphicsView::printPreview

protected

RGraphicsScene* RGraphicsView::scene

protected

The scene this view is attached to.

int RGraphicsView::textHeightThreshold

protected

int RGraphicsView::textHeightThresholdOverride

protected

QList<RTextLabel> RGraphicsView::textLabels

protected

Internal list of text labels that were added to this view.

int RGraphicsView::viewportNumber

protected

QWidget* RGraphicsView::widget

protected