Qt3DCore::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, 그리고 Qt3DRender::QShaderData |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
- 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 하위 클래스(subclasses)는 종종 집계 엔터티(aggregating entity)에 유용한 동작을 부여하는 그룹으로 집계됩니다. 예를 들어, Qt3D 렌더러 어스펙트에 의해 그려지는 엔터티(Entity)를 만들려면, 해당 엔터티는 Qt3DCore::QTransform, Qt3DRender::QMesh 및 Qt3DRender::QMaterial 컴포넌트를 집계할 가능성이 높습니다.
Qt3DCore::QEntity도 참조하십시오 .
속성 설명서
isShareable : bool
QComponent 의 공유 가능 플래그를 유지합니다. true 인 경우, QComponent 는 여러 엔티티 간에 공유될 수 있습니다.
액세스 함수:
| 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 에서 참조가 제거되었음을 나타냅니다.
© 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.