Revision control
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the QtDataVisualization module.
**
** Licensees holding valid Qt Enterprise licenses may use this file in
** accordance with the Qt Enterprise License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
**
****************************************************************************/
/*!
\qmltype AbstractGraph3D
\inqmlmodule QtDataVisualization
\since QtDataVisualization 1.0
\ingroup datavisualization_qml
\brief Base type for 3D visualizations.
This type is the base type for all 3D visualizations in QtDataVisualization.
Note that this type is uncreatable, but contains properties that are shared between
the 3D visualizations.
\note QML doesn't support the type of anti-aliasing used by Qt Data Visualization graphs
by default. Setting the \c antialiasing property doesn't affect graphs. To enable
anti-aliasing for graphs, a custom surface format must be set up for the QQuickView
before showing it. You can use the convenience function
\c{QtDataVisualization::qDefaultSurfaceFormat()} to create the custom surface format object.
For AbstractGraph3D enums, see \l QAbstract3DGraph::SelectionFlag and
\l QAbstract3DGraph::ShadowQuality
\sa Bars3D, Scatter3D, Surface3D, {Qt Data Visualization C++ Classes}
*/
/*!
\qmlproperty AbstractGraph3D.SelectionMode AbstractGraph3D::selectionMode
Active selection mode in the visualization.
*/
/*!
\qmlproperty AbstractGraph3D.ShadowQuality AbstractGraph3D::shadowQuality
Shadow quality.
*/
/*!
\qmlproperty Scene3D AbstractGraph3D::scene
Read only Q3DScene that can be used to access e.g. camera object.
*/
/*!
\qmlproperty AbstractInputHandler3D AbstractGraph3D::inputHandler
Input handler. You can disable default input handlers by setting this property to \c null.
*/
/*!
\qmlproperty Theme3D AbstractGraph3D::theme
The active theme of the graph.
*/
/*!
- \qmlproperty bool AbstractGraph3D::clearWindowBeforeRendering
+ \qmlproperty AbstractGraph3D.RenderingMode AbstractGraph3D::renderingMode
- Indicates if the graph should also clear the whole window before rendering the graph,
- including the areas outside the graph.
- Since the graphs are drawn first under other QML items, the regular QML window clearing
- before rendering is suppressed when there are any graphs in the window; the graphs
- handle the clearing themselves instead.
+ Defaults to DirectToBackground.
+
+ \table
+ \header
+ \li Render Mode
+ \li Description
+ \row
+ \li DirectToBackground
+ \li Indicates that the graph should also clear the whole window before
+ rendering the graph, including the areas outside the graph.
+ Since the graphs in this rendering mode are drawn first under other QML items, the
+ regular QML window clearing before rendering is suppressed when there are any graphs
+ in the window; the graphs handle the clearing themselves instead.
If you have any other items besides graphs that do similar
- custom drawing under other QML items, you need to set this property to false on all graphs
- drawn to same window with the other custom items, or it is likely that the
- other custom items do not render properly.
- Defaults to true.
+ custom drawing under other QML items, you need to set this property to DirectToBackground_NoClear
+ on all graphs drawn to same window with the other custom items, or it is likely that the
+ other custom items do not render properly. If the graphics hardware and current configuration
+ supports antialiasing that will be used to provide a higher quality rendering with good performance.
+ See \c {QtDataVisualization::qDefaultSurfaceFormat}.
+ \row
+ \li DirectToBackground_NoClear
+ \li Indicates the graph will not clear the whole window before rendering
+ the graph. The graphs in this renderind mode are drawn first under other QML items.
+ If the graphics hardware and current configuration supports antialiasing that will be
+ used to provide a higher quality rendering with good performance.
+ See \c {QtDataVisualization::qDefaultSurfaceFormat}.
+ \row
+ \li Indirect_NoAA
+ \li Indicates the graph will be first rendered to an offscreen surface that
+ is then drawn during normal QML item rendering to the correct Z order. No antialiasing
+ post processing is done on the graph, meaning the quality will be lower but performance
+ should be better.
+ \endtable
- \note This property should be set to the same value for all graphs in the same window.
+ \note If one graph in the window uses either DirectToBackground or DirectToBackground_NoClear, then all
+ other graphs in the window drawn in direct mode should use the same rendering mode in that window.
Otherwise some graphs may not show.
\note If window clearing before rendering is suppressed, any areas of the window not fully
covered with opaque items may not draw properly.
*/
/*!
* \qmlmethod void AbstractGraph3D::clearSelection()
* Clears selection from all attached series.
*/