1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4/*!
5 * \class QScatterDataItem
6 * \inmodule QtGraphs
7 * \ingroup graphs_3D
8 * \brief The QScatterDataItem class provides a container for resolved data to
9 * be added to scatter graphs.
10 *
11 * A scatter data item holds the data for a single rendered item in a scatter
12 * graph. Scatter data proxies parse data into QScatterDataItem instances for
13 * scatter graphs.
14 *
15 * \sa QScatterDataProxy, {Qt Graphs C++ Classes for 3D}
16 */
17
18/*!
19 * \fn QScatterDataItem::QScatterDataItem()
20 * Default constructor for scatter data item.
21 */
22
23/*!
24 * \fn QScatterDataItem::QScatterDataItem(QVector3D position)
25 * Constructs scatter data item with position \a position.
26 */
27
28/*!
29 * \fn QScatterDataItem::QScatterDataItem(float x, float y, float z)
30 * Constructs a scatter data item at the position specified by \a x, \a y, and \a z.
31 */
32
33/*!
34 * \fn QScatterDataItem::QScatterDataItem(QVector3D position, const QQuaternion &rotation)
35 * Constructs scatter data item with position \a position
36 * and rotation \a rotation.
37 */
38
39/*!
40 * \fn QScatterDataItem::QScatterDataItem(QVector3D position, const QVector3D &scale)
41 * Constructs scatter data item with position \a position
42 * and scale \a scale.
43 */
44
45/*!
46 * \fn QScatterDataItem::QScatterDataItem(QVector3D position, const QQuaternion &rotation, const QVector3D &scale)
47 * Constructs scatter data item with position \a position,
48 * rotation \a rotation, and scale \a scale.
49 */
50
51/*!
52 * \fn void QScatterDataItem::setPosition(QVector3D pos)
53 * Sets the position \a pos for this data item.
54 */
55
56/*!
57 * \fn QVector3D QScatterDataItem::position() const
58 * Returns the position of this data item.
59 */
60
61/*!
62 * \fn void QScatterDataItem::setRotation(const QQuaternion &rot)
63 * Sets the rotation \a rot for this data item.
64 * The value of \a rot should be a normalized QQuaternion.
65 * If the series also has rotation, item rotation is multiplied by it.
66 * Defaults to no rotation.
67 */
68
69/*!
70 * \fn QQuaternion QScatterDataItem::rotation() const
71 * Returns the rotation of this data item.
72 * \sa setRotation()
73 */
74
75/*!
76 * \fn void QScatterDataItem::setX(float value)
77 * Sets the x-coordinate of the item position to the value \a value.
78 */
79
80/*!
81 * \fn void QScatterDataItem::setY(float value)
82 * Sets the y-coordinate of the item position to the value \a value.
83 */
84
85/*!
86 * \fn void QScatterDataItem::setZ(float value)
87 * Sets the z-coordinate of the item position to the value \a value.
88 */
89
90/*!
91 * \fn float QScatterDataItem::x() const
92 * Returns the x-coordinate of the position of this data item.
93 */
94
95/*!
96 * \fn float QScatterDataItem::y() const
97 * Returns the y-coordinate of the position of this data item.
98 */
99
100/*!
101 * \fn float QScatterDataItem::z() const
102 * Returns the z-coordinate of the position of this data item.
103 */
104

source code of qtgraphs/src/graphs3d/data/qscatterdataitem.cpp