Provides storage for the sort types to be used. 更多 …
def
sortTypes
()
def
sortTypesInt
()
def
setSortTypes
(sortTypes)
def
setSortTypes
(sortTypesInt)
def
sortTypesChanged
(sortTypes)
def
sortTypesChanged
(sortTypes)
A
QSortPolicyclass stores the sorting type used by the FrameGraph. The sort types determine how drawable entities are sorted before drawing to determine the drawing order. WhenQSortPolicyis present in the FrameGraph, the sorting mechanism is determined by thesortTypeslist. Multiple sort types can be used simultaneously. IfQSortPolicyis not present in the FrameGraph, entities are drawn in the order they appear in the entity hierarchy.
PySide2.Qt3DRender.Qt3DRender.
QSortPolicy
(
[
parent=None
]
)
¶
- param parent
QNode
Constructs
QSortPolicy
with given
parent
.
PySide2.Qt3DRender.Qt3DRender.QSortPolicy.
SortType
¶
This enum type describes the available sort types.
|
常量 |
描述 |
|---|---|
|
Qt3DRender.QSortPolicy.StateChangeCost |
sort the objects so as to minimize the cost of changing from the currently rendered state |
|
Qt3DRender.QSortPolicy.BackToFront |
sort the objects from back to front based on inverted z order. More accurately, the sorting key is the z component of the projection of the camera-to-object-center vector onto the camera’s view vector. |
|
Qt3DRender.QSortPolicy.Material |
sort the objects based on their material (shader) value. |
|
Qt3DRender.QSortPolicy.FrontToBack |
sort the objects from front to back. The opposite of . |
|
Qt3DRender.QSortPolicy.Texture |
sort the objects to minimize texture changes. |
|
Qt3DRender.QSortPolicy.Uniform |
sort the objects to minimize uniform changes. |
PySide2.Qt3DRender.Qt3DRender.QSortPolicy.
setSortTypes
(
sortTypes
)
¶
sortTypes –
PySide2.Qt3DRender.Qt3DRender.QSortPolicy.
setSortTypes
(
sortTypesInt
)
¶
sortTypesInt –
PySide2.Qt3DRender.Qt3DRender.QSortPolicy.
sortTypes
(
)
¶
Returns the current sort types in use
另请参阅
PySide2.Qt3DRender.Qt3DRender.QSortPolicy.
sortTypesChanged
(
sortTypes
)
¶
sortTypes –
PySide2.Qt3DRender.Qt3DRender.QSortPolicy.
sortTypesChanged
(
sortTypes
)
¶
sortTypes –
PySide2.Qt3DRender.Qt3DRender.QSortPolicy.
sortTypesInt
(
)
¶