Q3DObject#

The Q3DObject class is a simple base class for all the objects in a 3D scene. More

Inheritance diagram of PySide6.QtDataVisualization.Q3DObject

Inherited by: Q3DLight, Q3DCamera

Synopsis#

Properties#

Functions#

Virtual functions#

Signals#

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#

Contains position information for an object in a 3D scene. The object is considered to be a single point in the coordinate space without dimensions.

class PySide6.QtDataVisualization.Q3DObject([parent=None])#
Parameters:

parentPySide6.QtCore.QObject

Constructs a new 3D object with the position set to origin by default. An optional parent parameter can be given and is then passed to the QObject constructor.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtDataVisualization.Q3DObject.parentScene: PySide6.QtDataVisualization.Q3DScene#

This property holds The parent scene as a read only value..

If the object has no parent scene, the value is 0.

Access functions:
property PᅟySide6.QtDataVisualization.Q3DObject.position: PySide6.QtGui.QVector3D#

This property holds The 3D position of the object..

Note

Currently setting this property has no effect for Q3DCamera , as the position is handled internally.

Access functions:
PySide6.QtDataVisualization.Q3DObject.copyValuesFrom(source)#
Parameters:

sourcePySide6.QtDataVisualization.Q3DObject

Copies the 3D object position from the given source 3D object to this 3D object instance.

PySide6.QtDataVisualization.Q3DObject.isDirty()#
Return type:

bool

Returns whether the 3D object has changed.

PySide6.QtDataVisualization.Q3DObject.parentScene()#
Return type:

PySide6.QtDataVisualization.Q3DScene

Getter of property parentScene .

PySide6.QtDataVisualization.Q3DObject.position()#
Return type:

PySide6.QtGui.QVector3D

See also

setPosition()

Getter of property position .

PySide6.QtDataVisualization.Q3DObject.positionChanged(position)#
Parameters:

positionPySide6.QtGui.QVector3D

Notification signal of property position .

PySide6.QtDataVisualization.Q3DObject.setDirty(dirty)#
Parameters:

dirty – bool

Sets dirty to true if the 3D object has changed since the last update.

See also

isDirty()

PySide6.QtDataVisualization.Q3DObject.setPosition(position)#
Parameters:

positionPySide6.QtGui.QVector3D

See also

position()

Setter of property position .