이 페이지에서

QSGBasicGeometryNode Class

QSGBasicGeometryNode 클래스는 기하학 기반 노드의 기본 클래스 역할을 합니다. 더 보기...

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

QSGClipNode 그리고 QSGGeometryNode

공개 함수

virtual ~QSGBasicGeometryNode() override
QSGGeometry *geometry()
const QSGGeometry *geometry() const
void setGeometry(QSGGeometry *geometry)

상세 설명

QSGBasicGeometryNode 클래스는 단독으로 사용해서는 안 됩니다. 이 클래스는 QSGGeometryNode 및 QSGClipNode 클래스 간에 공유되는 기능만을 캡슐화합니다.

참고: QSG 접두사가 붙은모든 클래스는 오로지 씬 그래프의 렌더링 스레드에서만 사용해야 합니다. 자세한 내용은 씬 그래프 및 렌더링을 참조하십시오.

멤버 함수 문서

[override virtual noexcept] QSGBasicGeometryNode::~QSGBasicGeometryNode()

이 노드 QSGBasicGeometryNode 를 삭제합니다.

노드에 QSGNode::OwnsGeometry 플래그가 설정되어 있는 경우, 해당 노드가 가리키는 지오메트리 객체도 함께 삭제합니다. 이 플래그는 기본적으로 설정되어 있지 않습니다.

QSGGeometry *QSGBasicGeometryNode::geometry()

이 노드의 지오메트리를 반환합니다.

기본적으로 지오메트리는 null입니다.

setGeometry()도 참조하십시오 .

const QSGGeometry *QSGBasicGeometryNode::geometry() const

이 노드의 지오메트리를 반환합니다.

기본적으로 지오메트리는 null입니다.

void QSGBasicGeometryNode::setGeometry(QSGGeometry *geometry)

이 노드의 지오메트리를 ` geometry`로 설정합니다.

노드에 QSGNode::OwnsGeometry 플래그가 설정되어 있는 경우, 해당 노드가 가리키는 지오메트리 객체도 함께 삭제됩니다. 이 플래그는 기본적으로 설정되어 있지 않습니다.

setGeometry()를 다시 호출하지 않고 지오메트리가 변경된 경우, 사용자는 QSGNode::markDirty()를 사용하여 지오메트리를 변경된 상태로 표시해야 합니다.

geometry() 및 markDirty()도 참조하십시오 .

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