EntityTree.hh
This library is part of the Ignition Robotics project.
The EntityComponentManager constructs, deletes, and returns components and entities....
Definition: gz/sim/EntityComponentManager.hh:65
void Update(const UpdateInfo &, EntityComponentManager &) override
Update callback called every time the system is stepped. This is called at an Ignition transport thre...
Q_INVOKABLE unsigned int EntityId(const QModelIndex &_index) const
Get the entity ID of a tree item at specified index.
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 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:37
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:62
void LoadConfig(const tinyxml2::XMLElement *_pluginElem) override
Displays a tree view with all the entities in the world.
Definition: EntityTree.hh:107
void AddEntity(unsigned int _entity, const QString &_entityName, unsigned int _parentEntity=kNullEntity, const QString &_type=QString())
Add an entity to the tree.
void RemoveEntity(unsigned int _entity)
Remove an entity from the tree.
Q_INVOKABLE void OnEntitySelectedFromQml(unsigned int _entity)
Callback when an entity has been selected. This should be called from QML.