QBoundingVolume#
can be used to override the bounding volume of an entity. More…
Inherited by: QPickingProxy, QGeometryRenderer, QMesh, QTorusMesh, QSphereMesh, QPlaneMesh, QExtrudedTextMesh, QCylinderMesh, QCuboidMesh, QConeMesh
Synopsis#
Properties#
Functions#
def
areImplicitPointsValid
()def
implicitMaxPoint
()def
implicitMinPoint
()def
maxPoint
()def
minPoint
()def
view
()
Slots#
def
setMaxPoint
(maxPoint)def
setMinPoint
(minPoint)def
setView
(view)def
updateImplicitBounds
()
Signals#
def
implicitMaxPointChanged
(implicitMaxPoint)def
implicitMinPointChanged
(implicitMinPoint)def
implicitPointsValidChanged
(implicitPointsValid)def
maxPointChanged
(maxPoint)def
minPointChanged
(minPoint)def
viewChanged
(view)
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#
An entity’s bounding volume is used for many operations such as picking or view frustum culling. It is normally computed by traversing the rendered geometry.
QBoundingVolume
can be used when the extent of the geometry is known to the application so that Qt 3D does not have to compute it.
A bounding volume can be provided either as minimum and maximum extent coordinates, or a separate, usually simpler, geometry that approximates the rendered mesh.
When using minimum and maximum extents, these are considered to be the opposite corners of an axis aligned bounding box, in the geometry’s local coordinate system.
QBoundingVolume
can also be used to query the computed bounding volume of a GeometryView . The implicitMinPoint
and implicitMaxPoint
properties will be updated if the geometry changes. Note that this is done asynchronously on a background thread so you should check the value of implicitPointsValid
before reading them.
You can force the implicit extents to be updated by calling updateImplicitBounds
. This will block on the calling thread until the results are available.
Note
GeometryRenderer inherits BoundingVolume and thus supports reading implicit bounds or setting explicit bounds also.
- class PySide6.Qt3DCore.Qt3DCore.QBoundingVolume([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QBoundingVolume
with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitMaxPoint: PySide6.QtGui.QVector3D#
* * * Holds maximum extent of the bounding volume computed from the specified view.
- Access functions:
Signal
implicitMaxPointChanged
(implicitMaxPoint)
- property PᅟySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitMinPoint: PySide6.QtGui.QVector3D#
* * * Holds minimum extent of the bounding volume computed from the specified view.
- Access functions:
Signal
implicitMinPointChanged
(implicitMinPoint)
- property PᅟySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitPointsValid: bool#
* * * True if a view has been assigned and the implicit extent properties are up to date. * *
See also
- Access functions:
Signal
implicitPointsValidChanged
(implicitPointsValid)
- property PᅟySide6.Qt3DCore.Qt3DCore.QBoundingVolume.maxPoint: PySide6.QtGui.QVector3D#
* * * User specified maximum extent of the bounding volume. When set (along with minimum * extent), this will be used internally to avoid computing the volume from the * geometry.
- Access functions:
maxPoint
()setMaxPoint
(maxPoint)Signal
maxPointChanged
(maxPoint)
- property PᅟySide6.Qt3DCore.Qt3DCore.QBoundingVolume.minPoint: PySide6.QtGui.QVector3D#
* * * User specified minimum extent of the bounding volume. When set (along with maximum * extent), this will be used internally to avoid computing the volume from the * geometry.
- Access functions:
minPoint
()setMinPoint
(minPoint)Signal
minPointChanged
(minPoint)
- property PᅟySide6.Qt3DCore.Qt3DCore.QBoundingVolume.view: PySide6.Qt3DCore.Qt3DCore.QGeometryView#
* * * Holds a pointer to the instance of QGeometryView
which will be used, if set, * to compute the bounding volume.
- Access functions:
view
()setView
(view)Signal
viewChanged
(view)
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.areImplicitPointsValid()#
- Return type:
bool
Getter of property implicitPointsValid
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitMaxPoint()#
- Return type:
Getter of property implicitMaxPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitMaxPointChanged(implicitMaxPoint)#
- Parameters:
implicitMaxPoint –
PySide6.QtGui.QVector3D
Notification signal of property implicitMaxPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitMinPoint()#
- Return type:
Getter of property implicitMinPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitMinPointChanged(implicitMinPoint)#
- Parameters:
implicitMinPoint –
PySide6.QtGui.QVector3D
Notification signal of property implicitMinPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.implicitPointsValidChanged(implicitPointsValid)#
- Parameters:
implicitPointsValid – bool
Notification signal of property implicitPointsValid
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.maxPoint()#
- Return type:
See also
Getter of property maxPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.maxPointChanged(maxPoint)#
- Parameters:
maxPoint –
PySide6.QtGui.QVector3D
Notification signal of property maxPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.minPoint()#
- Return type:
See also
Getter of property minPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.minPointChanged(minPoint)#
- Parameters:
minPoint –
PySide6.QtGui.QVector3D
Notification signal of property minPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.setMaxPoint(maxPoint)#
- Parameters:
maxPoint –
PySide6.QtGui.QVector3D
See also
Setter of property maxPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.setMinPoint(minPoint)#
- Parameters:
minPoint –
PySide6.QtGui.QVector3D
See also
Setter of property minPoint
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.setView(view)#
- Parameters:
See also
Setter of property view
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.updateImplicitBounds()#
- Return type:
bool
* Updates the implicit bounds of the specified view. Returns * true
if the computation succeeded and false otherwise. * *
Note
The calculations are done in the call thread, this * could take significant time for large meshes.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.view()#
- Return type:
See also
Getter of property view
.
- PySide6.Qt3DCore.Qt3DCore.QBoundingVolume.viewChanged(view)#
- Parameters:
Notification signal of property view
.