Qt3DRender::QSortPolicy Class
class Qt3DRender::QSortPolicy사용할 정렬 유형을 저장하는 기능을 제공합니다. 더 보기...
| 헤더: | #include <qsortpolicy.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML에서: | SortPolicy |
| 상속: | Qt3DRender::QFrameGraphNode |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
공개 유형
| enum | SortType { StateChangeCost, BackToFront, Material, FrontToBack, Texture, Uniform } |
속성
- sortTypes : QList<int>
공개 함수
| QSortPolicy(Qt3DCore::QNode *parent = nullptr) | |
| QList<Qt3DRender::QSortPolicy::SortType> | sortTypes() const |
| QList<int> | sortTypesInt() const |
공개 슬롯
| void | setSortTypes(const QList<Qt3DRender::QSortPolicy::SortType> &sortTypes) |
| void | setSortTypes(const QList<int> &sortTypesInt) |
신호
| void | sortTypesChanged(const QList<Qt3DRender::QSortPolicy::SortType> &sortTypes) |
| void | sortTypesChanged(const QList<int> &sortTypes) |
상세 설명
Qt3DRender::QSortPolicy 클래스는 FrameGraph에서 사용하는 정렬 유형을 저장합니다. 정렬 유형은 그리기 순서를 결정하기 위해 그리기 전에 드로어블 엔티티가 어떻게 정렬될지를 결정합니다. FrameGraph에 QSortPolicy가 존재할 경우, 정렬 메커니즘은 sortTypes 목록에 의해 결정됩니다. 여러 정렬 유형을 동시에 사용할 수 있습니다. FrameGraph에 QSortPolicy가 없는 경우, 엔티티는 엔티티 계층 구조에 나타나는 순서대로 그려집니다.
멤버 유형 설명서
enum QSortPolicy::SortType
이 열거형 유형은 사용 가능한 정렬 유형을 정의합니다.
| 상수 | 값 | 설명 |
|---|---|---|
Qt3DRender::QSortPolicy::StateChangeCost | (1 << 0) | 현재 렌더링된 상태에서 변경하는 데 드는 비용을 최소화하도록 오브젝트를 정렬합니다. |
Qt3DRender::QSortPolicy::BackToFront | (1 << 1) | 반전된 z 순서에 따라 오브젝트를 뒤에서 앞으로 정렬합니다. 더 정확하게 말하면, 정렬 키는 카메라-오브젝트 중심 벡터를 카메라의 뷰 벡터에 투영한 z 성분입니다. |
Qt3DRender::QSortPolicy::Material | (1 << 2) | 오브젝트를 머티리얼(셰이더) 값을 기준으로 정렬합니다. |
Qt3DRender::QSortPolicy::FrontToBack | (1 << 3) | 오브젝트를 앞쪽에서 뒤쪽으로 정렬합니다. BackToFront의 반대입니다. |
Qt3DRender::QSortPolicy::Texture (since Qt 5.14) | (1 << 4) | 텍스처 변경을 최소화하도록 오브젝트를 정렬합니다. |
Qt3DRender::QSortPolicy::Uniform (since Qt 5.15) | (1 << 5) | 유니폼 변경을 최소화하도록 오브젝트를 정렬합니다. |
속성 설명서
sortTypes : QList<int>
사용할 정렬 유형을 지정합니다.
액세스 함수:
| QList<int> | sortTypesInt() const |
| void | setSortTypes(const QList<Qt3DRender::QSortPolicy::SortType> &sortTypes) |
| void | setSortTypes(const QList<int> &sortTypesInt) |
알림 신호:
| void | sortTypesChanged(const QList<Qt3DRender::QSortPolicy::SortType> &sortTypes) |
| void | sortTypesChanged(const QList<int> &sortTypes) |
멤버 함수 설명서
[explicit] QSortPolicy::QSortPolicy(Qt3DCore::QNode *parent = nullptr)
지정된 ` parent`를 사용하여 `QSortPolicy`를 생성합니다.
QList<Qt3DRender::QSortPolicy::SortType> QSortPolicy::sortTypes() const
현재 사용 중인 정렬 유형을 반환합니다
setSortTypes()도 참조하십시오 .
© 2026 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.