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

작업에 실제로 할 일이 있는 경우 참(기본값)을 반환해야 합니다. 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.