LayerFilter QML Type

프레임 그래프 분기에 그려진 레이어를 제어합니다. 더 보기...

Import Statement: import Qt3D.Render 2.8
In C++: QLayerFilter
Inherits:

FrameGraphNode

Status: Deprecated

속성

상세 설명

레이어필터는 렌더러에 프레임 그래프의 해당 분기에 어떤 레이어를 그릴지 지시하는 데 사용할 수 있습니다. 레이어필터는 레이어필터에 추가된 Layer 인스턴스와 Entity 의 컴포넌트로서 어떤 엔티티를 그릴지 선택합니다.

filterMode 속성에 따라 특정 Layer 을 가진 엔티티를 선택하거나 버리도록 LayerFilter를 구성할 수 있습니다. 기본적으로 LayerFilter 에서도 참조되는 Layer 개체 중 하나를 참조하는 엔티티가 선택됩니다(AcceptAnyMatchingLayers).

프레임그래프 트리 내에서 루트에서 리프로 이동하는 분기 내에 여러 LayerFilter 노드를 중첩할 수 있습니다. 이 경우 필터링은 먼저 처음 선언된 LayerFilter 에 지정된 필터링 메서드를 사용하여 씬의 모든 엔티티에 대해 작동합니다. 그런 다음 필터링된 엔티티의 하위 집합은 두 번째로 선언된 LayerFilter 에 설정된 필터링 방법에 따라 다시 필터링됩니다. 그런 다음 분기의 모든 LayerFilter 노드가 소비될 때까지 이 과정을 반복합니다.

속성 문서

filterMode : enumeration

그리기 위해 선택할 엔티티를 지정하는 필터 모드를 보유합니다.

기본값은 LayerFilter.AcceptMatchingLayers 입니다.

Constant설명
LayerFilter.AcceptAnyMatchingLayersLayerFilter 에 추가된 하나 이상의 Layer 개체를 참조하는 엔티티를 허용합니다. 기본값은 다음과 같습니다.
LayerFilter.AcceptAllMatchingLayers여기에 추가된 모든 Layer 개체를 참조하는 엔터티를 허용합니다. LayerFilter
LayerFilter.DiscardAnyMatchingLayers여기에 추가된 하나 이상의 Layer 개체를 참조하는 엔터티를 삭제합니다. LayerFilter
LayerFilter.DiscardAllMatchingLayers여기에 추가된 모든 Layer 개체를 참조하는 엔티티를 삭제합니다. LayerFilter

layers : list<Layer> [read-only]

그리기 위해 선택할 레이어를 지정하는 레이어 목록을 보유합니다.


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.