이 페이지에서

Qt3DCore::QAbstractAspect Class

class Qt3DCore::QAbstractAspect

QAbstractAspect는 행동의 수직적 단면을 제공하는 어스펙트의 기본 클래스입니다. 더 보기...

헤더: #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

상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.

공개 함수

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)

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

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

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

관련 비회원

QAspectJobPtr

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

QBackendNodeMapperPtr

QBackendNodeMapper용 공유 포인터입니다.

매크로 문서

QT3D_REGISTER_ASPECT(name, AspectType)

현재 설정된 Qt3DCore::QAspectFactory에 의해 인스턴스화될 수 있도록 AspectType 를 등록하는 편리한 매크로입니다. 이를 통해 나중에 name 를 Qt3DCore::QAspectEngine::registerAspect(const QString &name)에 전달함으로써, 어스펙트 스레드 내에서 AspectType 의 인스턴스를 생성할 수 있습니다.

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

KDAB은 자사 블로그에 사용자 정의 Qt3D 어스펙트 작성에 관한 몇 가지 글을 게시했습니다. 이에 대해 더 자세히 알고 싶다면 이 글들이 훌륭한 출발점이 될 것입니다.

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