このページでは

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.