PySide6.Qt3DRender.Qt3DRender.QLayerFilter¶
- class QLayerFilter¶
- Controls layers drawn in a frame graph branch. More… - Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - addLayer()
- def - filterMode()
- def - layers()
- def - removeLayer()
- def - setFilterMode()
 - 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¶- A - QLayerFiltercan be used to instruct the renderer as to which layer(s) to draw in that branch of the frame graph.- QLayerFilterselects which entities to draw based on the- QLayerinstance(s) added to the- QLayerFilterand as components to- QEntity.- QLayerFiltercan be configured to select or discard entities with a specific- QLayerdepending on the- filterModeproperty. By default, entities referencing one of the- QLayerobjects that are also being referenced by the- QLayerFilterare selected (- AcceptAnyMatchingLayers).- Within the FrameGraph tree, multiple - QLayerFilternodes can be nested within a branch going from root to a leaf. In that case the filtering will first operate on all entities of the scene using the filtering method specified by the first declared- QLayerFilter. Then the filtered subset of entities will be filtered again based on the filtering method set on the second- QLayerFilterdeclared. This is then repeated until all- QLayerFilternodes of the branch have been consumed.- class FilterMode¶
- Specifies the rules for selecting entities to draw. - Constant - Description - Qt3DRender.QLayerFilter.AcceptAnyMatchingLayers - Accept entities that reference one or more - QLayerobjects added to this- QLayerFilter. This is the default- Qt3DRender.QLayerFilter.AcceptAllMatchingLayers - Accept entities that reference all the - QLayerobjects added to this- QLayerFilter- Qt3DRender.QLayerFilter.DiscardAnyMatchingLayers - Discard entities that reference one or more - QLayerobjects added to this- QLayerFilter- Qt3DRender.QLayerFilter.DiscardAllMatchingLayers - Discard entities that reference all - QLayerobjects added to this- QLayerFilter
 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property filterModeᅟ: Qt3DRender.QLayerFilter.FilterMode¶
 - Holds the filter mode specifying the entities to select for drawing. - The default value is AcceptMatchingLayers. - Access functions:
 - __init__([parent=None])¶
- Parameters:
- parent – - QNode
 
 - The constructor creates an instance with the specified - parent.- addLayer(layer)¶
- Parameters:
- layer – - QLayer
 
 - Add - layerto the current list of layers- filterMode()¶
- Return type:
- FilterMode
 - See also - setFilterMode()
 - Getter of property - filterModeᅟ.- filterModeChanged(filterMode)¶
- Parameters:
- filterMode – - FilterMode
 
 - Notification signal of property - filterModeᅟ.- layers()¶
- Return type:
- .list of Qt3DRender.QLayer 
 
 - Returns the current list of layers - removeLayer(layer)¶
- Parameters:
- layer – - QLayer
 
 - Remove - layerfrom the current list of layers- setFilterMode(filterMode)¶
- Parameters:
- filterMode – - FilterMode
 - See also - filterMode()
 - Setter of property - filterModeᅟ.