QAspectJob Class
class Qt3DCore::QAspectJobDie Basisklasse für Aufträge, die in einem Aspekt ausgeführt werden. Mehr...
Kopfzeile: | #include <Qt3DCore/QAspectJob> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
qmake: | QT += 3dcore |
Status: | Veraltet |
Öffentliche Funktionen
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 |
Dokumentation der Mitgliedsfunktionen
void QAspectJob::addDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
Fügt dependency zu dem Aspektauftrag hinzu.
const std::vector<QWeakPointer<Qt3DCore::QAspectJob>> &QAspectJob::dependencies() const
Gibt die Abhängigkeiten des Aspektauftrags zurück.
[virtual]
bool QAspectJob::isRequired()
Sollte true zurückgeben (Standard), wenn der Auftrag tatsächlich etwas zu tun hat. Wird false zurückgegeben, wird der Auftrag nicht geplant (wohl aber seine Abhängigkeiten).
[virtual]
void QAspectJob::postFrame(Qt3DCore::QAspectEngine *aspectEngine)
Wird im Hauptthread aufgerufen, wenn alle Aufträge abgeschlossen sind. Dies ist ein guter Zeitpunkt, um Änderungen an das Frontend weiterzugeben. aspectEngine ist die Engine, die für die Ausführungsschleife verantwortlich ist.
void QAspectJob::removeDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
Entfernt den angegebenen dependency aus dem Aspekt Job.
[pure virtual]
void QAspectJob::run()
Führt den Auftrag aus. Dieser wird vom Scheduler in einem separaten Thread aufgerufen.
© 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.