ItemModelScatterDataProxy QML Type
Proxy class for presenting data in item models with Scatter3D. More...
Import Statement: | import QtDataVisualization 1.2 |
Since: | QtDataVisualization 1.0 |
Instantiates: | QItemModelScatterDataProxy |
Inherits: |
Properties
- itemModel : model
- rotationRole : string
- rotationRolePattern : regExp
- rotationRoleReplace : string
- xPosRole : string
- xPosRolePattern : regExp
- xPosRoleReplace : string
- yPosRole : string
- yPosRolePattern : regExp
- yPosRoleReplace : string
- zPosRole : string
- zPosRolePattern : regExp
- zPosRoleReplace : string
Detailed Description
This type allows you to use AbstractItemModel derived models as a data source for Scatter3D.
The data is resolved asynchronously whenever the mapping or the model changes. QScatterDataProxy::arrayReset() is emitted when the data has been resolved.
For more details, see QItemModelScatterDataProxy documentation.
Usage example:
ItemModelScatterDataProxy { itemModel: model // E.g. a list model defined elsewhere containing point coordinates. // Mapping model roles to scatter series item coordinates. xPosRole: "xPos" yPosRole: "yPos" zPosRole: "zPos" }
See also ScatterDataProxy and Qt Data Visualization Data Handling.
Property Documentation
Defines the item model role to map into item rotation. The model may supply the value for rotation as either variant that is directly convertible to quaternion, or as one of the string representations: "scalar,x,y,z"
or "@angle,x,y,z"
. The first format will construct the quaternion directly with given values, and the second one will construct the quaternion using QQuaternion::fromAxisAndAngle() method.
When set, a search and replace is done on the value mapped by rotation role before it is used as a item rotation. This property specifies the regular expression to find the portion of the mapped value to replace and rotationRoleReplace property contains the replacement string.
See also rotationRole and rotationRoleReplace.
This property defines the replace content to be used in conjunction with rotationRolePattern. Defaults to empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegExp &rx, const QString &after) function documentation.
See also rotationRole and rotationRolePattern.
When set, a search and replace is done on the value mapped by xPos role before it is used as a item position value. This property specifies the regular expression to find the portion of the mapped value to replace and xPosRoleReplace property contains the replacement string.
See also xPosRole and xPosRoleReplace.
This property defines the replace content to be used in conjunction with xPosRolePattern. Defaults to empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegExp &rx, const QString &after) function documentation.
See also xPosRole and xPosRolePattern.
When set, a search and replace is done on the value mapped by yPos role before it is used as a item position value. This property specifies the regular expression to find the portion of the mapped value to replace and yPosRoleReplace property contains the replacement string.
See also yPosRole and yPosRoleReplace.
This property defines the replace content to be used in conjunction with yPosRolePattern. Defaults to empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegExp &rx, const QString &after) function documentation.
See also yPosRole and yPosRolePattern.
When set, a search and replace is done on the value mapped by zPos role before it is used as a item position value. This property specifies the regular expression to find the portion of the mapped value to replace and zPosRoleReplace property contains the replacement string.
See also zPosRole and zPosRoleReplace.
This property defines the replace content to be used in conjunction with zPosRolePattern. Defaults to empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegExp &rx, const QString &after) function documentation.
See also zPosRole and zPosRolePattern.
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.