EntityTree.hh
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58
This library is part of the Gazebo project.
The EntityComponentManager constructs, deletes, and returns components and entities....
Definition: gz/sim/EntityComponentManager.hh:66
void Update(const UpdateInfo &, EntityComponentManager &) override
Update callback called every time the system is stepped. This is called at an Ignition transport thre...
QHash< int, QByteArray > roleNames() const override
Q_INVOKABLE void DeselectAllEntities()
Callback when all entities have been deselected. This should be called from QML.
Q_INVOKABLE QString ScopedName(const QModelIndex &_index) const
Get the scoped name of a tree item at specified index.
Q_INVOKABLE void OnEntitySelectedFromQml(Entity _entity)
Callback when an entity has been selected. This should be called from QML.
Q_INVOKABLE QString EntityType(const QModelIndex &_index) const
Get the entity type of a tree item at specified index.
bool eventFilter(QObject *_obj, QEvent *_event) override
Information passed to systems on the update callback.
Definition: include/gz/sim/Types.hh:38
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:61
void RemoveEntity(Entity _entity)
Remove an entity from the tree.
Q_INVOKABLE void OnInsertEntity(const QString &_type)
Callback to insert a new entity.
void AddEntity(Entity _entity, const QString &_entityName, Entity _parentEntity=kNullEntity, const QString &_type=QString())
Add an entity to the tree.
Q_INVOKABLE void OnLoadMesh(const QString &_mesh)
Callback to insert a new entity.
void LoadConfig(const tinyxml2::XMLElement *_pluginElem) override
Displays a tree view with all the entities in the world.
Definition: EntityTree.hh:110
Q_INVOKABLE Entity EntityId(const QModelIndex &_index) const
Get the entity ID of a tree item at specified index.