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 void QScatterDataItem::setPosition(QVector3D pos)
41 * Sets the position \a pos for this data item.
42 */
43
44/*!
45 * \fn QVector3D QScatterDataItem::position() const
46 * Returns the position of this data item.
47 */
48
49/*!
50 * \fn void QScatterDataItem::setRotation(const QQuaternion &rot)
51 * Sets the rotation \a rot for this data item.
52 * The value of \a rot should be a normalized QQuaternion.
53 * If the series also has rotation, item rotation is multiplied by it.
54 * Defaults to no rotation.
55 */
56
57/*!
58 * \fn QQuaternion QScatterDataItem::rotation() const
59 * Returns the rotation of this data item.
60 * \sa setRotation()
61 */
62
63/*!
64 * \fn void QScatterDataItem::setX(float value)
65 * Sets the x-coordinate of the item position to the value \a value.
66 */
67
68/*!
69 * \fn void QScatterDataItem::setY(float value)
70 * Sets the y-coordinate of the item position to the value \a value.
71 */
72
73/*!
74 * \fn void QScatterDataItem::setZ(float value)
75 * Sets the z-coordinate of the item position to the value \a value.
76 */
77
78/*!
79 * \fn float QScatterDataItem::x() const
80 * Returns the x-coordinate of the position of this data item.
81 */
82
83/*!
84 * \fn float QScatterDataItem::y() const
85 * Returns the y-coordinate of the position of this data item.
86 */
87
88/*!
89 * \fn float QScatterDataItem::z() const
90 * Returns the z-coordinate of the position of this data item.
91 */
92

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

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