QCustom3DItem

The QCustom3DItem class adds a custom item to a graph. More

Inheritance diagram of PySide6.QtDataVisualization.QCustom3DItem

Inherited by: QCustom3DVolume, QCustom3DLabel

Synopsis

Functions

Detailed Description

A custom item has a custom mesh, position, scaling, rotation, and an optional texture.

See also

addCustomItem()

class PySide6.QtDataVisualization.QCustom3DItem([parent=None])

PySide6.QtDataVisualization.QCustom3DItem(meshFile, position, scaling, rotation, texture[, parent=None])

Parameters

Constructs a custom 3D item with the specified parent.

Constructs a custom 3D item with the specified meshFile, position, scaling, rotation, texture image, and optional parent.

PySide6.QtDataVisualization.QCustom3DItem.isPositionAbsolute()
Return type

bool

PySide6.QtDataVisualization.QCustom3DItem.isScalingAbsolute()
Return type

bool

PySide6.QtDataVisualization.QCustom3DItem.isShadowCasting()
Return type

bool

PySide6.QtDataVisualization.QCustom3DItem.isVisible()
Return type

bool

PySide6.QtDataVisualization.QCustom3DItem.meshFile()
Return type

str

See also

setMeshFile()

PySide6.QtDataVisualization.QCustom3DItem.meshFileChanged(meshFile)
Parameters

meshFile – str

PySide6.QtDataVisualization.QCustom3DItem.position()
Return type

PySide6.QtGui.QVector3D

See also

setPosition()

PySide6.QtDataVisualization.QCustom3DItem.positionAbsoluteChanged(positionAbsolute)
Parameters

positionAbsolute – bool

PySide6.QtDataVisualization.QCustom3DItem.positionChanged(position)
Parameters

positionPySide6.QtGui.QVector3D

PySide6.QtDataVisualization.QCustom3DItem.rotation()
Return type

PySide6.QtGui.QQuaternion

See also

setRotation()

PySide6.QtDataVisualization.QCustom3DItem.rotationChanged(rotation)
Parameters

rotationPySide6.QtGui.QQuaternion

PySide6.QtDataVisualization.QCustom3DItem.scaling()
Return type

PySide6.QtGui.QVector3D

See also

setScaling()

PySide6.QtDataVisualization.QCustom3DItem.scalingAbsoluteChanged(scalingAbsolute)
Parameters

scalingAbsolute – bool

PySide6.QtDataVisualization.QCustom3DItem.scalingChanged(scaling)
Parameters

scalingPySide6.QtGui.QVector3D

PySide6.QtDataVisualization.QCustom3DItem.setMeshFile(meshFile)
Parameters

meshFile – str

See also

meshFile()

PySide6.QtDataVisualization.QCustom3DItem.setPosition(position)
Parameters

positionPySide6.QtGui.QVector3D

See also

position()

PySide6.QtDataVisualization.QCustom3DItem.setPositionAbsolute(positionAbsolute)
Parameters

positionAbsolute – bool

PySide6.QtDataVisualization.QCustom3DItem.setRotation(rotation)
Parameters

rotationPySide6.QtGui.QQuaternion

See also

rotation()

PySide6.QtDataVisualization.QCustom3DItem.setRotationAxisAndAngle(axis, angle)
Parameters

A convenience function to construct the rotation quaternion from axis and angle.

See also

rotation

PySide6.QtDataVisualization.QCustom3DItem.setScaling(scaling)
Parameters

scalingPySide6.QtGui.QVector3D

See also

scaling()

PySide6.QtDataVisualization.QCustom3DItem.setScalingAbsolute(scalingAbsolute)
Parameters

scalingAbsolute – bool

PySide6.QtDataVisualization.QCustom3DItem.setShadowCasting(enabled)
Parameters

enabled – bool

PySide6.QtDataVisualization.QCustom3DItem.setTextureFile(textureFile)
Parameters

textureFile – str

See also

textureFile()

PySide6.QtDataVisualization.QCustom3DItem.setTextureImage(textureImage)
Parameters

textureImagePySide6.QtGui.QImage

Sets the value of textureImage as a QImage for the item. The texture defaults to solid gray.

Note

To conserve memory, the given QImage is cleared after a texture is created.

PySide6.QtDataVisualization.QCustom3DItem.setVisible(visible)
Parameters

visible – bool

See also

isVisible()

PySide6.QtDataVisualization.QCustom3DItem.shadowCastingChanged(shadowCasting)
Parameters

shadowCasting – bool

PySide6.QtDataVisualization.QCustom3DItem.textureFile()
Return type

str

See also

setTextureFile()

PySide6.QtDataVisualization.QCustom3DItem.textureFileChanged(textureFile)
Parameters

textureFile – str

PySide6.QtDataVisualization.QCustom3DItem.visibleChanged(visible)
Parameters

visible – bool