QSGTransformNode Class
QSGTransformNode 클래스는 씬 그래프에서 변환을 구현합니다. 더 보기...
Header: | #include <QSGTransformNode> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
상속합니다: | QSGNode |
상속 대상: |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSGTransformNode는 Qt Quick 씬 그래프 노드 클래스의 일부입니다.
공용 함수
QSGTransformNode() | |
virtual | ~QSGTransformNode() override |
const QMatrix4x4 & | matrix() const |
void | setMatrix(const QMatrix4x4 &matrix) |
상세 설명
트랜스폼은 노드의 서브트리를 적용하며 중첩될 수 있습니다. 여러 트랜스폼 노드는 모든 행렬을 교차하여 누적됩니다. 누적은 렌더링의 일부로 발생합니다.
트랜스폼 노드는 이론적으로 풀 3D 트랜스폼을 지원하는 4x4 행렬을 구현합니다. 그러나 렌더러는 3D 사용 사례가 아닌 2D 사용 사례에 최적화되므로 전체 3D 변환으로 장면을 렌더링할 때는 약간의 주의가 필요합니다.
참고: 접두사가 QSG인 모든 클래스는 씬 그래프의 렌더링 스레드에서만 사용해야 합니다. 자세한 내용은 씬 그래프 및 렌더링을 참조하십시오.
멤버 함수 문서
QSGTransformNode::QSGTransformNode()
행렬이 아이덴티티 행렬로 설정된 새 QSGTransformNode를 생성합니다.
[override virtual noexcept]
QSGTransformNode::~QSGTransformNode()
이 트랜스폼 노드를 삭제합니다.
const QMatrix4x4 &QSGTransformNode::matrix() const
이 트랜스폼 노드의 행렬을 반환합니다.
setMatrix()도 참조하세요 .
void QSGTransformNode::setMatrix(const QMatrix4x4 &matrix)
이 트랜스폼 노드의 행렬을 matrix 로 설정합니다.
matrix()도 참조하세요 .
© 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.