|qmake:||QT += 3dcore|
|Inherited By:|| |
Qt3DCore::QCameraLens, Qt3DInput::QAxisActionHandler, Qt3DInput::QKeyboardInput, Qt3DInput::QMouseInput, Qt3DLogic::QLogicComponent, Qt3DRender::QFrameGraph, Qt3DRender::QGeometryRenderer, Qt3DRender::QLayer, Qt3DRender::QMaterial, Qt3DRender::QObjectPicker, and Qt3DRender::QShaderData
- shareable : bool
|QComponent(QNode *parent = Q_NULLPTR)|
|QVector<QEntity *>||entities() const|
Reimplemented Protected Functions
|virtual void||copy(const QNode *ref)|
Additional Inherited Members
- 11 static public members inherited from QObject
- 3 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
- 1 static protected member inherited from Qt3DCore::QNode
The base class of scene nodes that can be aggregated by Qt3DCore::QEntity instances as a component.
Qt3DCore::QComponent subclasses are often aggregated in groups that impart useful behavior to the aggregating entity. For example, to have an Entity that gets drawn by the Qt3D renderer aspect, an entity would most likely aggregate Qt3DCore::QTransform, Qt3DRender::QMesh, and Qt3DRender::QMaterial components.
See also Qt3DCore::QEntity.
Member Function Documentation
QComponent::QComponent(QNode *parent = Q_NULLPTR)
Constructs a new QComponent instance with parent as the parent.
Note: a QComponent should never be instanced directly, instance one of the subclasses instead.
Destroys the instance of QComponent.
[virtual protected] void QComponent::copy(const QNode *ref)
Returns a QVector containing all the entities that reference this component.
The QComponent can be shared across several entities if shareable is true.
Note: Setter function for property shareable.
See also shareable().
Returns whether the QComponent is shareable across entities or not.
Note: Getter function for property shareable.
See also setShareable().
© 2017 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.