QSurface3DSeries

The QSurface3DSeries class represents a data series in a 3D surface graph. More

Inheritance diagram of PySide6.QtDataVisualization.QSurface3DSeries

Synopsis

Functions

Static functions

Detailed Description

This class manages the series specific visual elements, as well as the series data (via a data proxy).

If no data proxy is set explicitly for the series, the series creates a default proxy. Setting another proxy will destroy the existing proxy and all data added to it.

The object mesh set via the mesh property defines the selection pointer shape in a surface series.

QSurface3DSeries supports the following format tags for setItemLabelFormat() :

@xTitle

Title from x-axis

@yTitle

Title from y-axis

@zTitle

Title from z-axis

@xLabel

Item value formatted using the format of the x-axis. For more information, see setLabelFormat() .

@yLabel

Item value formatted using the format of the y-axis. For more information, see setLabelFormat() .

@zLabel

Item value formatted using the format of the z-axis. For more information, see setLabelFormat() .

@seriesName

Name of the series

For example:

proxy->setItemLabelFormat(QStringLiteral("@valueTitle for (@rowLabel, @colLabel): %.1f"));
class PySide6.QtDataVisualization.QSurface3DSeries([parent=None])

PySide6.QtDataVisualization.QSurface3DSeries(dataProxy[, parent=None])

Parameters

Constructs a surface 3D series with the parent parent.

Constructs a surface 3D series with the data proxy dataProxy and the parent parent.

PySide6.QtDataVisualization.QSurface3DSeries.DrawFlag

The drawing mode of the surface. Values of this enumeration can be combined with the OR operator.

Constant

Description

QSurface3DSeries.DrawWireframe

Only the grid is drawn.

QSurface3DSeries.DrawSurface

Only the surface is drawn.

QSurface3DSeries.DrawSurfaceAndWireframe

Both the surface and grid are drawn.

PySide6.QtDataVisualization.QSurface3DSeries.dataProxy()
Return type

PySide6.QtDataVisualization.QSurfaceDataProxy

See also

setDataProxy()

PySide6.QtDataVisualization.QSurface3DSeries.dataProxyChanged(proxy)
Parameters

proxyPySide6.QtDataVisualization.QSurfaceDataProxy

PySide6.QtDataVisualization.QSurface3DSeries.drawMode()
Return type

DrawFlags

See also

setDrawMode()

PySide6.QtDataVisualization.QSurface3DSeries.drawModeChanged(mode)
Parameters

modeDrawFlags

PySide6.QtDataVisualization.QSurface3DSeries.flatShadingEnabledChanged(enable)
Parameters

enable – bool

PySide6.QtDataVisualization.QSurface3DSeries.flatShadingSupportedChanged(enable)
Parameters

enable – bool

static PySide6.QtDataVisualization.QSurface3DSeries.invalidSelectionPosition()
Return type

PySide6.QtCore.QPoint

Returns the QPoint signifying an invalid selection position. This is set to the selectedPoint property to clear the selection from this series.

See also

clearSelection()

PySide6.QtDataVisualization.QSurface3DSeries.isFlatShadingEnabled()
Return type

bool

PySide6.QtDataVisualization.QSurface3DSeries.isFlatShadingSupported()
Return type

bool

PySide6.QtDataVisualization.QSurface3DSeries.selectedPoint()
Return type

PySide6.QtCore.QPoint

PySide6.QtDataVisualization.QSurface3DSeries.selectedPointChanged(position)
Parameters

positionPySide6.QtCore.QPoint

PySide6.QtDataVisualization.QSurface3DSeries.setDataProxy(proxy)
Parameters

proxyPySide6.QtDataVisualization.QSurfaceDataProxy

See also

dataProxy()

PySide6.QtDataVisualization.QSurface3DSeries.setDrawMode(mode)
Parameters

modeDrawFlags

See also

drawMode()

PySide6.QtDataVisualization.QSurface3DSeries.setFlatShadingEnabled(enabled)
Parameters

enabled – bool

PySide6.QtDataVisualization.QSurface3DSeries.setSelectedPoint(position)
Parameters

positionPySide6.QtCore.QPoint

Selects a surface grid point at the position position in the data array of the series specified by a row and a column.

Only one point can be selected at a time.

To clear selection from this series, invalidSelectionPosition() is set as position. If this series is added to a graph, the graph can adjust the selection according to user interaction or if it becomes invalid.

Removing rows from or inserting rows to the series before the row of the selected point will adjust the selection so that the same point will stay selected.

PySide6.QtDataVisualization.QSurface3DSeries.setTexture(texture)
Parameters

texturePySide6.QtGui.QImage

See also

texture()

PySide6.QtDataVisualization.QSurface3DSeries.setTextureFile(filename)
Parameters

filename – str

See also

textureFile()

PySide6.QtDataVisualization.QSurface3DSeries.texture()
Return type

PySide6.QtGui.QImage

See also

setTexture()

PySide6.QtDataVisualization.QSurface3DSeries.textureChanged(image)
Parameters

imagePySide6.QtGui.QImage

PySide6.QtDataVisualization.QSurface3DSeries.textureFile()
Return type

str

See also

setTextureFile()

PySide6.QtDataVisualization.QSurface3DSeries.textureFileChanged(filename)
Parameters

filename – str