Qt3DCore::QAspectJob Class
class Qt3DCore::QAspectJobLa classe base per i lavori eseguiti in un aspetto. Maggiori informazioni...
| Intestazione: | #include <Qt3DCore/QAspectJob> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| Stato: | Obsoleta |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Funzioni pubbliche
| 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 |
Documentazione delle funzioni membro
void QAspectJob::addDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
Aggiunge " dependency " al processo di elaborazione degli aspetti.
const std::vector<QWeakPointer<Qt3DCore::QAspectJob>> &QAspectJob::dependencies() const
Restituisce le dipendenze del processo dell'aspetto.
[virtual] bool QAspectJob::isRequired()
Dovrebbe restituire "true" (impostazione predefinita) se il processo ha effettivamente qualcosa da eseguire. Se restituisce "false", il processo non verrà pianificato (ma le sue dipendenze sì).
[virtual] void QAspectJob::postFrame(Qt3DCore::QAspectEngine *aspectEngine)
Viene chiamata nel thread principale quando tutti i processi sono stati completati. Questo è un buon momento per inviare le modifiche al frontend. ` aspectEngine ` è il motore responsabile del ciclo di esecuzione.
void QAspectJob::removeDependency(QWeakPointer<Qt3DCore::QAspectJob> dependency)
Rimuove l'dependency e specificato dal processo "aspect".
[pure virtual] void QAspectJob::run()
Esegue il processo. Viene chiamato dallo scheduler su un thread separato.
© 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.