PySide6.QtGraphs.QAbstract3DSeries¶
- class QAbstract3DSeries¶
The
QAbstract3DSeries
class is a base class for all 3D data series. More…Inherited by:
QSurface3DSeries
,QScatter3DSeries
,QBar3DSeries
Synopsis¶
Properties¶
baseColorᅟ
- Base color of the seriesbaseGradientᅟ
- Base gradient of the seriescolorStyleᅟ
- Color style for the seriesitemLabelᅟ
- Formatted item labelitemLabelFormatᅟ
- Label format for data items in this seriesitemLabelVisibleᅟ
- Visibility of item labels in the graphmeshᅟ
- Of the items in the seriesmeshRotationᅟ
- Mesh rotation that is applied to all items of the seriesmeshSmoothᅟ
- Whether smooth versions of predefined meshes are usedmultiHighlightColorᅟ
- Multiple item highlight color of the seriesmultiHighlightGradientᅟ
- Multiple item highlight gradient of the seriesnameᅟ
- Series namesingleHighlightColorᅟ
- Single item highlight color of the seriessingleHighlightGradientᅟ
- Single item highlight gradient of the seriestypeᅟ
- Of the seriesuserDefinedMeshᅟ
- Filename for a user defined custom mesh for objectsvisibleᅟ
- Visibility of the series
Methods¶
def
baseColor()
def
baseGradient()
def
colorStyle()
def
isMeshSmooth()
def
isVisible()
def
itemLabel()
def
mesh()
def
meshRotation()
def
name()
def
setBaseColor()
def
setColorStyle()
def
setMesh()
def
setMeshSmooth()
def
setName()
def
setVisible()
def
type()
Signals¶
def
meshChanged()
def
nameChanged()
def
visibleChanged()
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
Detailed Description¶
There are inherited classes for each supported series type:
QBar3DSeries
,QScatter3DSeries
, andQSurface3DSeries
.For more information, see Qt Graphs Data Handling with 3D .
- class SeriesType¶
Type of the series.
Constant
Description
QAbstract3DSeries.SeriesType.None
No series type.
QAbstract3DSeries.SeriesType.Bar
Series type for
Q3DBarsWidgetItem
.QAbstract3DSeries.SeriesType.Scatter
Series type for
Q3DScatterWidgetItem
.QAbstract3DSeries.SeriesType.Surface
Series type for
Q3DSurfaceWidgetItem
.
- class Mesh¶
Predefined mesh types. All styles are not usable with all graphs types.
Constant
Description
QAbstract3DSeries.Mesh.UserDefined
User defined mesh, set via
userDefinedMesh
property.QAbstract3DSeries.Mesh.Bar
Basic rectangular bar.
QAbstract3DSeries.Mesh.Cube
Basic cube.
QAbstract3DSeries.Mesh.Pyramid
Four-sided pyramid.
QAbstract3DSeries.Mesh.Cone
Basic cone.
QAbstract3DSeries.Mesh.Cylinder
Basic cylinder.
QAbstract3DSeries.Mesh.BevelBar
Slightly beveled (rounded) rectangular bar.
QAbstract3DSeries.Mesh.BevelCube
Slightly beveled (rounded) cube.
QAbstract3DSeries.Mesh.Sphere
Sphere.
QAbstract3DSeries.Mesh.Minimal
The minimal 3D mesh: a triangular pyramid. Usable only with
Q3DScatterWidgetItem
.QAbstract3DSeries.Mesh.Arrow
Arrow pointing upwards.
QAbstract3DSeries.Mesh.Point
2D point. Usable only with
Q3DScatterWidgetItem
. Shadows do not affect this style. Color styleObjectGradient
is not supported by this style.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.This property holds The base color of the series..
See also
- Access functions:
- property baseGradientᅟ: QLinearGradient¶
This property holds The base gradient of the series..
See also
- Access functions:
- property colorStyleᅟ: QGraphsTheme.ColorStyle¶
This property holds The color style for the series..
See also
- Access functions:
- property itemLabelᅟ: str¶
This property holds The formatted item label..
If there is no selected item or the selected item is not visible, returns an empty string.
See also
- Access functions:
Signal
itemLabelChanged()
- property itemLabelFormatᅟ: str¶
This property holds The label format for data items in this series..
This format is used for single item labels, for example, when an item is selected. How the format is interpreted depends on series type:
QBar3DSeries
,QScatter3DSeries
,QSurface3DSeries
.- Access functions:
- property itemLabelVisibleᅟ: bool¶
This property holds The visibility of item labels in the graph..
If
true
, item labels are drawn as floating labels in the graph. Otherwise, item labels are not drawn. To show the item label in an external control, this property is set tofalse
. Defaults totrue
.See also
- Access functions:
- property meshᅟ: QAbstract3DSeries.Mesh¶
This property holds The mesh of the items in the series..
For
QSurface3DSeries
, this property holds the selection pointer.If the mesh is MeshUserDefined, then the
userDefinedMesh
property must also be set for items to render properly. The default value depends on the graph type.- Access functions:
Signal
meshChanged()
- property meshRotationᅟ: QQuaternion¶
This property holds The mesh rotation that is applied to all items of the series..
The rotation should be a normalized QQuaternion. For those series types that support item specific rotation, the rotations are multiplied together.
QBar3DSeries
ignores any rotation that is not around the y-axis.QSurface3DSeries
applies the rotation only to the selection pointer. Defaults to no rotation.- Access functions:
- property meshSmoothᅟ: bool¶
This property holds Whether smooth versions of predefined meshes are used..
If
true
, smooth versions set via themesh
property are used. This property does not affect custom meshes used when the mesh is set to MeshUserDefined. Defaults tofalse
.- Access functions:
This property holds The multiple item highlight color of the series..
See also
- Access functions:
- property multiHighlightGradientᅟ: QLinearGradient¶
This property holds The multiple item highlight gradient of the series..
See also
- Access functions:
- property nameᅟ: str¶
This property holds The series name..
The series name can be used in item label format with the tag
@seriesName
.See also
- Access functions:
Signal
nameChanged()
This property holds The single item highlight color of the series..
See also
- Access functions:
- property singleHighlightGradientᅟ: QLinearGradient¶
This property holds The single item highlight gradient of the series..
See also
- Access functions:
- property typeᅟ: QAbstract3DSeries.SeriesType¶
This property holds The type of the series..
- Access functions:
- property userDefinedMeshᅟ: str¶
This property holds The filename for a user defined custom mesh for objects..
The custom mesh is used when
mesh
is MeshUserDefined.Note
The file needs to be in the Wavefront OBJ format and include vertices, normals, and UVs. It also needs to be in triangles.
- Access functions:
- property visibleᅟ: bool¶
This property holds The visibility of the series..
If this property is
false
, the series is not rendered. Defaults totrue
.- Access functions:
- baseColor()¶
- Return type:
See also
Getter of property
baseColorᅟ
.Notification signal of property
baseColorᅟ
.- baseGradient()¶
- Return type:
See also
Getter of property
baseGradientᅟ
.- baseGradientChanged(gradient)¶
- Parameters:
gradient –
QLinearGradient
Notification signal of property
baseGradientᅟ
.- colorStyle()¶
- Return type:
See also
Getter of property
colorStyleᅟ
.- colorStyleChanged(style)¶
- Parameters:
style –
ColorStyle
Notification signal of property
colorStyleᅟ
.- isItemLabelVisible()¶
- Return type:
bool
Getter of property
itemLabelVisibleᅟ
.- isMeshSmooth()¶
- Return type:
bool
Getter of property
meshSmoothᅟ
.- isVisible()¶
- Return type:
bool
Getter of property
visibleᅟ
.- itemLabel()¶
- Return type:
str
Getter of property
itemLabelᅟ
.- itemLabelChanged(label)¶
- Parameters:
label – str
Notification signal of property
itemLabelᅟ
.- itemLabelFormat()¶
- Return type:
str
See also
Getter of property
itemLabelFormatᅟ
.- itemLabelFormatChanged(format)¶
- Parameters:
format – str
Notification signal of property
itemLabelFormatᅟ
.- itemLabelVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
itemLabelVisibleᅟ
.Getter of property
meshᅟ
.Notification signal of property
meshᅟ
.- meshRotation()¶
- Return type:
See also
Getter of property
meshRotationᅟ
.- meshRotationChanged(rotation)¶
- Parameters:
rotation –
QQuaternion
Notification signal of property
meshRotationᅟ
.- meshSmoothChanged(enabled)¶
- Parameters:
enabled – bool
Notification signal of property
meshSmoothᅟ
.- multiHighlightColor()¶
- Return type:
See also
Getter of property
multiHighlightColorᅟ
.Notification signal of property
multiHighlightColorᅟ
.- multiHighlightGradient()¶
- Return type:
See also
Getter of property
multiHighlightGradientᅟ
.- multiHighlightGradientChanged(gradient)¶
- Parameters:
gradient –
QLinearGradient
Notification signal of property
multiHighlightGradientᅟ
.Getter of property
nameᅟ
.- nameChanged(name)¶
- Parameters:
name – str
Notification signal of property
nameᅟ
.Setter of property
baseColorᅟ
.- setBaseGradient(gradient)¶
- Parameters:
gradient –
QLinearGradient
See also
Setter of property
baseGradientᅟ
.- setColorStyle(style)¶
- Parameters:
style –
ColorStyle
See also
Setter of property
colorStyleᅟ
.- setItemLabelFormat(format)¶
- Parameters:
format – str
See also
Setter of property
itemLabelFormatᅟ
.- setItemLabelVisible(visible)¶
- Parameters:
visible – bool
See also
Setter of property
itemLabelVisibleᅟ
.Setter of property
meshᅟ
.A convenience function to construct a mesh rotation quaternion from
axis
andangle
.See also
- setMeshRotation(rotation)¶
- Parameters:
rotation –
QQuaternion
See also
Setter of property
meshRotationᅟ
.- setMeshSmooth(enable)¶
- Parameters:
enable – bool
See also
Setter of property
meshSmoothᅟ
.Setter of property
multiHighlightColorᅟ
.- setMultiHighlightGradient(gradient)¶
- Parameters:
gradient –
QLinearGradient
See also
Setter of property
multiHighlightGradientᅟ
.Setter of property
nameᅟ
.Setter of property
singleHighlightColorᅟ
.- setSingleHighlightGradient(gradient)¶
- Parameters:
gradient –
QLinearGradient
See also
Setter of property
singleHighlightGradientᅟ
.- setUserDefinedMesh(fileName)¶
- Parameters:
fileName – str
See also
Setter of property
userDefinedMeshᅟ
.- setVisible(visible)¶
- Parameters:
visible – bool
See also
Setter of property
visibleᅟ
.- singleHighlightColor()¶
- Return type:
See also
Getter of property
singleHighlightColorᅟ
.Notification signal of property
singleHighlightColorᅟ
.- singleHighlightGradient()¶
- Return type:
See also
Getter of property
singleHighlightGradientᅟ
.- singleHighlightGradientChanged(gradient)¶
- Parameters:
gradient –
QLinearGradient
Notification signal of property
singleHighlightGradientᅟ
.- type()¶
- Return type:
Getter of property
typeᅟ
.- userDefinedMesh()¶
- Return type:
str
See also
Getter of property
userDefinedMeshᅟ
.- userDefinedMeshChanged(fileName)¶
- Parameters:
fileName – str
Notification signal of property
userDefinedMeshᅟ
.- visibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
visibleᅟ
.