Controls layers drawn in a frame graph branch. 更多...
import 语句: | import Qt3D.Render 2.2 |
Since: | Qt 5.5 |
实例化: | QLayerFilter |
继承: | FrameGraphNode |
A LayerFilter can be used to instruct the renderer as to which layer(s) to draw in that branch of the frame graph. The LayerFilter selects which entities to draw based on the 层 instances added to the LayerFilter and as components to the Entity .
The LayerFilter can be configured to select or discard entities with a specific 层 从属 filterMode property. By default, entities referencing one of the 层 objects that are also being referenced by the LayerFilter are selected (AcceptAnyMatchingLayers).
Within the FrameGraph tree, multiple LayerFilter nodes 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 LayerFilter . Then the filtered subset of entities will be filtered again based on the filtering method set on the second LayerFilter declared. This is then repeated until all LayerFilter nodes of the branch have been consumed.
filterMode : enumeration |
Holds the filter mode specifying the entities to select for drawing.
默认值为
LayerFilter.AcceptMatchingLayers
.
常量 | 描述 |
---|---|
LayerFilter.AcceptAnyMatchingLayers
|
Accept entities that reference one or more 层 objects added to this LayerFilter . This is the default |
LayerFilter.AcceptAllMatchingLayers
|
Accept entities that reference all the 层 objects added to this LayerFilter |
LayerFilter.DiscardAnyMatchingLayers
|
Discard entities that reference one or more 层 objects added to this LayerFilter |
LayerFilter.DiscardAllMatchingLayers
|
Discard entities that reference all 层 objects added to this LayerFilter |
[read-only] layers : list < 层 > |
Holds a list of layers specifying the layers to select for drawing.