EntityTree Class Reference
Displays a tree view with all the entities in the world. More...
#include <EntityTree.hh>
Public Member Functions | |
EntityTree () | |
Constructor. More... | |
~EntityTree () override | |
Destructor. More... | |
Q_INVOKABLE void | DeselectAllEntities () |
Callback when all entities have been deselected. This should be called from QML. More... | |
void | LoadConfig (const tinyxml2::XMLElement *_pluginElem) override |
Q_INVOKABLE void | OnEntitySelectedFromQml (Entity _entity) |
Callback when an entity has been selected. This should be called from QML. More... | |
Q_INVOKABLE void | OnInsertEntity (const QString &_type) |
Callback to insert a new entity. More... | |
Q_INVOKABLE void | OnLoadMesh (const QString &_mesh) |
Callback to insert a new entity. More... | |
void | Update (const UpdateInfo &, EntityComponentManager &) override |
Update callback called every time the system is stepped. This is called at a Gazebo Transport thread, so any interaction with Qt should be done through signals and slots. More... | |
Public Member Functions inherited from Plugin | |
Plugin () | |
virtual | ~Plugin () |
QQuickItem * | CardItem () const |
virtual std::string | ConfigStr () |
QQmlContext * | Context () const |
bool | DeleteLaterRequested () const |
void | Load (const tinyxml2::XMLElement *_pluginElem) |
QQuickItem * | PluginItem () const |
void | PostParentChanges () |
virtual std::string | Title () const |
Protected Member Functions | |
bool | eventFilter (QObject *_obj, QEvent *_event) override |
Protected Member Functions inherited from Plugin | |
void | DeleteLater () |
Additional Inherited Members | |
Protected Attributes inherited from Plugin | |
std::string | configStr |
std::string | title |
Detailed Description
Constructor & Destructor Documentation
◆ EntityTree()
EntityTree | ( | ) |
Constructor.
◆ ~EntityTree()
|
override |
Destructor.
Member Function Documentation
◆ DeselectAllEntities()
Q_INVOKABLE void DeselectAllEntities | ( | ) |
Callback when all entities have been deselected. This should be called from QML.
◆ eventFilter()
|
overrideprotected |
◆ LoadConfig()
|
overridevirtual |
Reimplemented from Plugin.
◆ OnEntitySelectedFromQml()
Q_INVOKABLE void OnEntitySelectedFromQml | ( | Entity | _entity | ) |
Callback when an entity has been selected. This should be called from QML.
- Parameters
-
[in] _entity Entity being selected.
◆ OnInsertEntity()
Q_INVOKABLE void OnInsertEntity | ( | const QString & | _type | ) |
Callback to insert a new entity.
- Parameters
-
[in] _type Type of entity to insert
◆ OnLoadMesh()
Q_INVOKABLE void OnLoadMesh | ( | const QString & | _mesh | ) |
Callback to insert a new entity.
- Parameters
-
[in] _mesh Mesh file to create a model from.
◆ Update()
|
overridevirtual |
Update callback called every time the system is stepped. This is called at a Gazebo Transport thread, so any interaction with Qt should be done through signals and slots.
- Parameters
-
[in] _info Current simulation information, such as time. [in] _ecm Mutable reference to the ECM, so the system can read and write entities and their components.
Reimplemented from GuiSystem.
The documentation for this class was generated from the following file: