QComponent Class
class Qt3DCore::QComponentQt3DCore::QEntity 인스턴스가 컴포넌트로서 집계할 수 있는 씬 노드의 기본 클래스입니다. 더 보기...
헤더: | #include <QComponent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
qmake: | QT += 3dcore |
QML에서: | Component3D |
상속합니다: | Qt3DCore::QNode |
상속 대상: | 24 종류Qt3DAnimation::QAbstractClipAnimator, Qt3DCore::QArmature, Qt3DCore::QBoundingVolume, Qt3DCore::QCoreSettings, Qt3DCore::QTransform, Qt3DInput::QAxisAccumulator, Qt3DInput::QInputSettings, Qt3DInput::QKeyboardHandler, Qt3DInput::QLogicalDevice, Qt3DInput::QMouseHandler, Qt3DLogic::QFrameAction, Qt3DRender::QAbstractLight, Qt3DRender::QAbstractRayCaster, Qt3DRender::QCameraLens, Qt3DRender::QComputeCommand, Qt3DRender::QEnvironmentLight, Qt3DRender::QLayer, Qt3DRender::QLevelOfDetail, Qt3DRender::QMaterial, Qt3DRender::QObjectPicker, Qt3DRender::QRenderSettings, Qt3DRender::QRenderTarget, Qt3DRender::QSceneLoader, and Qt3DRender::QShaderData |
상태 | Deprecated |
속성
- isShareable : bool
공용 기능
QComponent(Qt3DCore::QNode *parent = nullptr) | |
QList<Qt3DCore::QEntity *> | entities() const |
bool | isShareable() const |
공용 슬롯
void | setShareable(bool isShareable) |
신호
void | addedToEntity(Qt3DCore::QEntity *entity) |
void | removedFromEntity(Qt3DCore::QEntity *entity) |
void | shareableChanged(bool isShareable) |
상세 설명
Qt3DCore::QComponent 은 Qt3DCore::QEntity 인스턴스에 할당할 수 있고 때로는 여러 인스턴스에서 공유할 수 있는 동작의 수직적 슬라이스를 제공합니다.
Qt3DCore::QComponent 서브클래스는 종종 집계하는 엔티티에 유용한 동작을 부여하는 그룹으로 집계됩니다. 예를 들어, Qt3D 렌더러 측면에 의해 그려지는 엔티티가 있다면, 엔티티는 Qt3DCore::QTransform, Qt3DRender::QMesh, Qt3DRender::QMaterial 컴포넌트를 집계할 가능성이 높습니다.
Qt3DCore::QEntity도 참조하십시오 .
프로퍼티 문서
isShareable : bool
QComponent 의 공유 가능 플래그를 보유합니다. QComponent 은 true
이면 여러 엔티티에서 공유할 수 있습니다.
액세스 기능:
bool | isShareable() const |
void | setShareable(bool isShareable) |
알림 신호:
void | shareableChanged(bool isShareable) |
멤버 함수 문서
[explicit]
QComponent::QComponent(Qt3DCore::QNode *parent = nullptr)
parent 을 부모로 하여 새 QComponent 인스턴스를 생성합니다.
참고: QComponent를 직접 인스턴스화해서는 안 되며, 대신 서브클래스 중 하나를 인스턴스화해야 합니다.
[signal]
void QComponent::addedToEntity(Qt3DCore::QEntity *entity)
참조가 entity 에 추가되었음을 나타냅니다.
QList<Qt3DCore::QEntity *> QComponent::entities() const
이 컴포넌트를 참조하는 모든 엔티티가 포함된 QList 를 반환합니다.
[signal]
void QComponent::removedFromEntity(Qt3DCore::QEntity *entity)
entity 에서 참조가 제거되었음을 나타냅니다.
© 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.