The QScatterDataItem class provides a container for resolved data to be added to scatter graphs. 更多...
头: | #include <QScatterDataItem> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS DataVisualization)
target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
qmake: | QT += datavisualization |
Since: | QtDataVisualization 1.0 |
QScatterDataItem () | |
QScatterDataItem (const QVector3D & position ) | |
QScatterDataItem (const QVector3D & position , const QQuaternion & rotation ) | |
QScatterDataItem (const QScatterDataItem & other ) | |
~QScatterDataItem () | |
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 |
QScatterDataItem & | operator= (const QScatterDataItem & other ) |
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 visualization.
另请参阅 QScatterDataProxy and Qt Data Visualization C++ 类 .
Constructs a scatter data item.
Constructs a scatter data item at the position position .
Constructs a scatter data item at the position position with the rotation rotation .
构造副本为 other .
Deletes a scatter data item.
Returns the position of this data item.
另请参阅 setPosition ().
Returns the rotation of this data item.
另请参阅 setRotation ().
Sets the position pos for this data item.
另请参阅 position ().
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 ().
Sets the x-coordinate of the item position to the value value .
另请参阅 x ().
Sets the y-coordinate of the item position to the value value .
另请参阅 y ().
Sets the z-coordinate of the item position to the value value .
另请参阅 z ().
Returns the x-coordinate of the position of this data item.
另请参阅 setX ().
Returns the y-coordinate of the position of this data item.
另请参阅 setY ().
Returns the z-coordinate of the position of this data item.
另请参阅 setZ ().
赋值副本为 other 到此对象。