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.