Q3DObject#
The Q3DObject
class is a simple base class for all the objects in a 3D scene. More…
Inherited by: Q3DLight, Q3DCamera
Synopsis#
Functions#
def
isDirty
()def
parentScene
()def
position
()def
setDirty
(dirty)def
setPosition
(position)
Virtual functions#
def
copyValuesFrom
(source)
Signals#
def
positionChanged
(position)
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
parent –
PySide6.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.
- PySide6.QtDataVisualization.Q3DObject.copyValuesFrom(source)#
- Parameters
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
This property holds The parent scene as a read only value..
If the object has no parent scene, the value is 0.
- PySide6.QtDataVisualization.Q3DObject.position()#
- Return type
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.
- PySide6.QtDataVisualization.Q3DObject.positionChanged(position)#
- Parameters
position –
PySide6.QtGui.QVector3D
- PySide6.QtDataVisualization.Q3DObject.setDirty(dirty)#
- Parameters
dirty – bool
Sets dirty
to true
if the 3D object has changed since the last update.
See also
- PySide6.QtDataVisualization.Q3DObject.setPosition(position)#
- Parameters
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.