이 페이지에서

QSGTransformNode Class

QSGTransformNode 클래스는 씬 그래프에서 변환을 구현합니다. 더 보기...

헤더: #include <QSGTransformNode>
CMake: find_package(Qt6 REQUIRED COMPONENTS Quick)
target_link_libraries(mytarget PRIVATE Qt6::Quick)
qmake: QT += quick
상속: QSGNode
상속받는 클래스:

QSGTextNode

공개 함수

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()도 참조하십시오 .

© 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.