|qmake:||QT += 3dcore|
|QComponent(QNode * parent = 0)|
|QVector<QEntity *>||entities() const|
Reimplemented Protected Functions
|virtual void||copy(const QNode * ref)|
Additional Inherited Members
- 1 public slot inherited from QObject
- 11 static public members inherited from QObject
- 3 protected functions inherited from Qt3D::QNode
- 9 protected functions inherited from QObject
- 1 static protected member inherited from Qt3D::QNode
The base class of scene nodes that can be aggregated by Qt3D::QEntity instances as a component.
Qt3D::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 Qt3D::QTransform, Qt3D::QMesh, and Qt3D::QMaterial components.
See also Qt3D::QEntity.
Member Function Documentation
QComponent::QComponent(QNode * parent = 0)
Constructs a new QComponent instance with parent as the parent.
Note: a QComponent should never be instanced directly, instance one of the subclasses instead.
[virtual protected] void QComponent::copy(const QNode * ref)
Returns a QVector containing all the entities that reference this component.
Returns whether the QComponent is enabled or not.
Note: Getter function for property enabled.
Note: the interpretation of what enabled means is aspect-dependent. Even if enabled is set to false, some aspects may still consider the component in some manner. This is documented on a class by class basis.
Note: Setter function for property enabled.
See also isEnabled().
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().
© 2016 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.