The QScatterDataItem class provides a container for resolved data to be added to scatter graphs. 更多...
头: | #include <QScatterDataItem> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
qmake: | QT += graphs |
状态: | 技术预览 |
QScatterDataItem () | |
QScatterDataItem (const QVector3D & position ) | |
QScatterDataItem (float x , float y , float z ) | |
QScatterDataItem (const QVector3D & position , const QQuaternion & rotation ) | |
QVector3D | position () const |
QQuaternion | rotation () const |
void | setPosition (const QVector3D & pos ) |
void | setRotation (const QQuaternion & rot ) |
void | setX (float value ) |
void | setY (float value ) |
void | setZ (float value ) |
float | x () const |
float | y () const |
float | z () const |
A scatter data item holds the data for a single rendered item in a scatter graph. Scatter data proxies parse data into QScatterDataItem instances for scatter graphs.
另请参阅 QScatterDataProxy and Qt Graphs C++ Classes for 3D .
[constexpr noexcept]
QScatterDataItem::
QScatterDataItem
()
Default constructor for scatter data item.
[explicit noexcept]
QScatterDataItem::
QScatterDataItem
(const
QVector3D
&
position
)
Constructs scatter data item with position position .
[explicit noexcept]
QScatterDataItem::
QScatterDataItem
(
float
x
,
float
y
,
float
z
)
Constructs a scatter data item at the position specified by x , y ,和 z .
[explicit noexcept]
QScatterDataItem::
QScatterDataItem
(const
QVector3D
&
position
, const
QQuaternion
&
rotation
)
Constructs scatter data item with position position and rotation rotation .
[noexcept]
QVector3D
QScatterDataItem::
position
() const
Returns the position of this data item.
另请参阅 setPosition ().
Returns the rotation of this data item.
另请参阅 setRotation ().
[noexcept]
void
QScatterDataItem::
setPosition
(const
QVector3D
&
pos
)
Sets the position pos for this data item.
另请参阅 position ().
[noexcept]
void
QScatterDataItem::
setRotation
(const
QQuaternion
&
rot
)
Sets the rotation rot for this data item. The value of rot should be a normalized QQuaternion . If the series also has rotation, item rotation is multiplied by it. Defaults to no rotation.
另请参阅 rotation ().
[noexcept]
void
QScatterDataItem::
setX
(
float
value
)
Sets the x-coordinate of the item position to the value value .
另请参阅 x ().
[noexcept]
void
QScatterDataItem::
setY
(
float
value
)
Sets the y-coordinate of the item position to the value value .
另请参阅 y ().
[noexcept]
void
QScatterDataItem::
setZ
(
float
value
)
Sets the z-coordinate of the item position to the value value .
另请参阅 z ().
[noexcept]
float
QScatterDataItem::
x
() const
Returns the x-coordinate of the position of this data item.
另请参阅 setX ().
[noexcept]
float
QScatterDataItem::
y
() const
Returns the y-coordinate of the position of this data item.
另请参阅 setY ().
[noexcept]
float
QScatterDataItem::
z
() const
Returns the z-coordinate of the position of this data item.
另请参阅 setZ ().