QSortPolicy Class
class Qt3DRender::QSortPolicy사용할 정렬 유형을 위한 저장 공간을 제공합니다. 더 보기...
헤더: | #include <QSortPolicy> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
QML에서: | SortPolicy |
상속합니다: | Qt3DRender::QFrameGraphNode |
상태: | Deprecated |
공용 유형
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 클래스는 프레임그래프에서 사용하는 정렬 유형을 저장합니다. 정렬 유형은 그리기 전에 그리기 가능한 엔티티를 정렬하여 그리기 순서를 결정하는 방법을 결정합니다. QSortPolicy가 프레임그래프에 존재하면 정렬 메커니즘은 sortTypes 목록에 의해 결정됩니다. 여러 정렬 유형을 동시에 사용할 수 있습니다. QSortPolicy가 프레임그래프에 없으면 엔티티 계층 구조에 나타나는 순서대로 엔티티가 그려집니다.
멤버 유형 문서
enum QSortPolicy::SortType
이 열거형 유형은 사용 가능한 정렬 유형을 설명합니다.
Constant | 값 | 설명 |
---|---|---|
Qt3DRender::QSortPolicy::StateChangeCost | (1 << 0) | 현재 렌더링된 상태에서 변경하는 데 드는 비용을 최소화하도록 객체를 정렬합니다. |
Qt3DRender::QSortPolicy::BackToFront | (1 << 1) | 반전된 z 순서에 따라 오브젝트를 뒤에서 앞으로 정렬합니다. 더 정확하게 말하면, 정렬 키는 카메라에서 오브젝트 중심 벡터를 카메라의 뷰 벡터에 투영하는 z 성분입니다. |
Qt3DRender::QSortPolicy::Material | (1 << 2) | 머티리얼(셰이더) 값을 기준으로 오브젝트를 정렬합니다. |
Qt3DRender::QSortPolicy::FrontToBack | (1 << 3) | 오브젝트를 앞쪽에서 뒤쪽으로 정렬합니다. 백투프론트의 반대입니다. |
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()도 참조하세요 .
© 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.