QSGBasicGeometryNode Class
QSGBasicGeometryNode 클래스는 지오메트리 기반 노드를 위한 베이스 클래스 역할을 합니다. 더 보기...
헤더: | #include <QSGBasicGeometryNode> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
상속합니다: | QSGNode |
상속 대상 |
공용 함수
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()
이 노드의 지오메트리를 반환합니다.
지오메트리는 기본적으로 널입니다.
setGeometry()도 참조하세요 .
const QSGGeometry *QSGBasicGeometryNode::geometry() const
이 노드의 지오메트리를 반환합니다.
지오메트리는 기본적으로 널입니다.
void QSGBasicGeometryNode::setGeometry(QSGGeometry *geometry)
이 노드의 지오메트리를 geometry 로 설정합니다.
노드에 QSGNode::OwnsGeometry 플래그가 설정되어 있으면 노드가 가리키고 있는 지오메트리 객체도 삭제됩니다. 이 플래그는 기본적으로 설정되지 않습니다.
setGeometry()를 다시 호출하지 않고 지오메트리를 변경하는 경우, 사용자는 QSGNode::markDirty()를 사용하여 지오메트리를 더티로 표시해야 합니다.
© 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.