PySide6.QtGraphs.QSurfaceDataItem¶
- class QSurfaceDataItem¶
- The - QSurfaceDataItemclass provides a container for resolved data to be added to surface graphs.- Details- A surface data item holds the data for a single vertex in a surface graph. Surface data proxies parse data into - QSurfaceDataIteminstances for surface graphs.- Synopsis¶- Methods¶- def - __init__()
- def - position()
- def - setPosition()
- def - setX()
- def - setY()
- def - setZ()
- def - x()
- def - y()
- def - z()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - __init__()¶
 - Constructs a surface data item. - __init__(position)
- Parameters:
- position – - QVector3D
 
 - Constructs a surface data item at the position - position.- __init__(x, y, z)
- Parameters:
- x – float 
- y – float 
- z – float 
 
 
 - Constructs a surface data item at the position specified by - x,- y, and- z.- Returns the position of this data item. - See also - Sets the position - posto this data item.- See also - setX(value)¶
- Parameters:
- value – float 
 
 - Sets the x-coordinate of the item position to the value - value.- See also - setY(value)¶
- Parameters:
- value – float 
 
 - Sets the y-coordinate of the item position to the value - value.- See also - setZ(value)¶
- Parameters:
- value – float 
 
 - Sets the z-coordinate of the item position to the value - value.- See also - x()¶
- Return type:
- float 
 
 - Returns the x-coordinate of the position of this data item. - See also - y()¶
- Return type:
- float 
 
 - Returns the y-coordinate of the position of this data item. - See also - z()¶
- Return type:
- float 
 
 - Returns the z-coordinate of the position of this data item. - See also