GraphArea QML Type

An area that graphs can be added to. More...

Import Statement: import QuickGraphLib
Inherits:

Shape

Properties

Methods

Detailed Description

Antialiasing

To turn on high-quality antialiasing, set Shape::preferredRendererType to Shape.CurveRenderer. This generally results in much better looking graphs, but can also result in rendering problems as the curve renderer is new. It may also require more GPU performance, so switching this back to Shape.GeometryRenderer may help on low-power systems. See Shape::rendererType for more details.

See also Basic sin graph (without prefabs) and Inverted axes.

Property Documentation

dataTransform : matrix4x4 [read-only]

Transform from data coordinates to pixel coordinates inside the GraphArea with the viewTransform applied.


effectiveViewRect : rect [read-only]

The view rect the view is actually showing based on viewTransform.


rawDataTransform : matrix4x4 [read-only]

Transform from data coordinates to pixel coordinates inside the GraphArea.


viewRect : rect [required]

The area in data coordinates that the graph covers.


viewTransform : matrix4x4

An additional transform that can be used to zoom/translate the graph area without affecting the original view rect.

See also ZoomPanHandler::viewTransform and viewTransformFromRect.


Method Documentation

baseTransformFromRect(r)

Convert a view rect r into a base transform suitable for use with a ZoomPanHandler.

See also ZoomPanHandler::baseTransform.


viewTransformFromBaseTransform(baseTransform)

Convert a base transform baseTransform into a view transform suitable for viewTransform.


viewTransformFromRect(r)

Convert a view rect r into a view transform suitable for viewTransform.