GraphArea QML Type
An area that graphs can be added to. More...
| Import Statement: | import QuickGraphLib |
| Inherits: |
Properties
- dataTransform : matrix4x4
- effectiveViewRect : rect
- rawDataTransform : matrix4x4
- viewRect : rect
- viewTransform : matrix4x4
Methods
- baseTransformFromRect(r)
- viewTransformFromBaseTransform(baseTransform)
- viewTransformFromRect(r)
Detailed Description
Antialiasing
By default, the graph area sets Shape::preferredRendererType to Shape.CurveRenderer. This turns on high-quality antialiasing, which generally results in much better looking graphs.
Warning: Using the curve renderer may require more GPU performance, so switching this back to Shape.GeometryRenderer may help on low-power systems. The curve renderer is also newer, and fails to render correctly in some cases (although it improves in each release).
See also Basic sin graph (without prefabs), Inverted axes, and Shape::rendererType.
Property Documentation
dataTransform : matrix4x4 |
Transform from data coordinates to pixel coordinates inside the GraphArea with the viewTransform applied.
effectiveViewRect : rect |
The view rect the view is actually showing based on viewTransform.
rawDataTransform : matrix4x4 |
Transform from data coordinates to pixel coordinates inside the GraphArea.
viewRect : rect |
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.