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 クラスは単独で使用しないでください。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()も参照

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