QAbstractAspect Class

class Qt3DCore::QAbstractAspect

QAbstractAspect는 동작의 수직적 슬라이스를 제공하는 측면의 기본 클래스입니다. 더 보기...

Header: #include <Qt3DCore/QAbstractAspect>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake: QT += 3dcore
상속합니다: QObject
상속받습니다:

Qt3DAnimation::QAnimationAspect, Qt3DInput::QInputAspect, Qt3DLogic::QLogicAspect, 그리고 Qt3DRender::QRenderAspect

Status: Deprecated

공개 함수

QAbstractAspect(QObject *parent = nullptr)

보호된 함수

void registerBackendType(const Qt3DCore::QBackendNodeMapperPtr &functor)
void registerBackendType(const QMetaObject &obj, const Qt3DCore::QBackendNodeMapperPtr &functor)
Qt3DCore::QNodeId rootEntityId() const

매크로

QT3D_REGISTER_ASPECT(name, AspectType)

상세 설명

멤버 함수 문서

[explicit] QAbstractAspect::QAbstractAspect(QObject *parent = nullptr)

다음을 사용하여 새 QAbstractAspect를 구성합니다. parent

[protected] template <typename Frontend> void QAbstractAspect::registerBackendType(const Qt3DCore::QBackendNodeMapperPtr &functor)

functor 에 백엔드를 등록합니다.

[protected] void QAbstractAspect::registerBackendType(const QMetaObject &obj, const Qt3DCore::QBackendNodeMapperPtr &functor)

objfunctor 에 백엔드를 등록합니다.

[noexcept protected] Qt3DCore::QNodeId QAbstractAspect::rootEntityId() const

루트 엔티티 노드 ID를 반환합니다.

관련 비회원

QAspectJobPtr

QAspectJob 에 대한 공유 포인터입니다.

QBackendNodeMapperPtr

QBackendNodeMapper 에 대한 공유 포인터입니다.

매크로 문서

QT3D_REGISTER_ASPECT(name, AspectType)

현재 설정된 Qt3DCore::QAspectFactory에 의한 인스턴스화를 위해 AspectType 을 등록하기 위한 편의 매크로입니다. 이렇게 하면 나중에 nameQt3DCore::QAspectEngine::registerAspect(const QString &name)으로 전달하여 aspect 스레드에서 AspectType 의 인스턴스를 생성할 수 있습니다.

참고: 이 매크로를 사용하지 않고도 Qt3DCore::QAspectEngine::registerAspect(QAbstractAspect *aspect)를 사용하여 이전에 생성된 aspect 인스턴스를 aspect 스레드 컨텍스트로 이동하는 것을 처리함으로써 새 aspect를 등록할 수도 있습니다.

KDAB는 블로그에 커스텀 Qt3D 측면 작성에 대한 몇 가지 글을 게시했습니다. 이에 대해 자세히 알아보려면 이 글을 참고하세요.

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