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()

ジョブを実行する。これはスケジューラによって別のスレッドで呼び出される。

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