Qt3DCore::QAspectJob Class
class Qt3DCore::QAspectJobアスペクト内で実行されるジョブの基底クラス。詳細...
| ヘッダー: | #include <Qt3DCore/QAspectJob> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
パブリック関数
| void | addDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency) |
| const std::vector<QWeakPointer<Qt3DCore::QAspectJob>> & | dependencies() const |
| virtual bool | isRequired() |
| virtual void | postFrame(Qt3DCore::QAspectEngine *aspectEngine) |
| void | removeDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency) |
| virtual void | run() = 0 |
メンバー関数のドキュメント
void QAspectJob::addDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
アスペクトジョブにdependency を追加します。
const std::vector<QWeakPointer<Qt3DCore::QAspectJob>> &QAspectJob::dependencies() const
アスペクトジョブの依存関係を返します。
[virtual] bool QAspectJob::isRequired()
ジョブに実際に実行すべき処理がある場合は、true を返す必要があります(デフォルト)。false を返した場合、そのジョブはスケジュールされませんが(ただし、その依存関係にあるジョブはスケジュールされます)。
[virtual] void QAspectJob::postFrame(Qt3DCore::QAspectEngine *aspectEngine)
すべてのジョブが完了したら、メインスレッドで呼び出されます。このタイミングは、変更内容をフロントエンドに反映させるのに適しています。aspectEngine は、ランループを担当するエンジンです。
void QAspectJob::removeDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
指定されたdependency をアスペクトジョブから削除します。
[pure virtual] void QAspectJob::run()
ジョブを実行します。これは、スケジューラによって別のスレッド上で呼び出されます。
© 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.