LayerFilter QML Type

Controls layers drawn in a frame graph branch. 更多...

import 语句: import Qt3D.Render 2.7
实例化: 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

layers : list < > [read-only]

Holds a list of layers specifying the layers to select for drawing.