The QSurfaceDataItem class provides a container for resolved data to be added to surface graphs. 更多...
| 头: |
#include <QSurfaceDataItem>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
|
| qmake: |
QT += graphs
|
| QSurfaceDataItem () | |
| QSurfaceDataItem (QVector3D position ) | |
| QSurfaceDataItem (float x , float y , float z ) | |
| QVector3D | 位置 () const |
| void | setPosition (QVector3D pos ) |
| void | setX (float value ) |
| void | setY (float value ) |
| void | setZ (float value ) |
| float | x () const |
| float | y () const |
| float | z () const |
A surface data item holds the data for a single vertex in a surface graph. Surface data proxies parse data into QSurfaceDataItem instances for surface graphs.
另请参阅 QSurfaceDataProxy and Qt Graphs C++ Classes for 3D .
[constexpr noexcept]
QSurfaceDataItem::
QSurfaceDataItem
()
Constructs a surface data item.
[explicit constexpr noexcept]
QSurfaceDataItem::
QSurfaceDataItem
(
QVector3D
position
)
Constructs a surface data item at the position position .
[constexpr noexcept]
QSurfaceDataItem::
QSurfaceDataItem
(
float
x
,
float
y
,
float
z
)
Constructs a surface data item at the position specified by x , y ,和 z .
[constexpr noexcept]
QVector3D
QSurfaceDataItem::
位置
() const
Returns the position of this data item.
另请参阅 setPosition ().
[constexpr noexcept]
void
QSurfaceDataItem::
setPosition
(
QVector3D
pos
)
Sets the position pos to this data item.
另请参阅 位置 ().
[constexpr noexcept]
void
QSurfaceDataItem::
setX
(
float
value
)
Sets the x-coordinate of the item position to the value value .
另请参阅 x ().
[constexpr noexcept]
void
QSurfaceDataItem::
setY
(
float
value
)
Sets the y-coordinate of the item position to the value value .
另请参阅 y ().
[constexpr noexcept]
void
QSurfaceDataItem::
setZ
(
float
value
)
Sets the z-coordinate of the item position to the value value .
另请参阅 z ().
[constexpr noexcept]
float
QSurfaceDataItem::
x
() const
Returns the x-coordinate of the position of this data item.
另请参阅 setX ().
[constexpr noexcept]
float
QSurfaceDataItem::
y
() const
Returns the y-coordinate of the position of this data item.
另请参阅 setY ().
[constexpr noexcept]
float
QSurfaceDataItem::
z
() const
Returns the z-coordinate of the position of this data item.
另请参阅 setZ ().