Gazebo Sim

API Reference

9.0.0

Allows to spawn models and lights using the spawn gui events or drag and drop. More...

#include <Spawn.hh>

Signals

void ErrorPopupTextChanged ()
 Notify the popup error text has changed.
 
void popupError ()
 Notify that an error has occurred (opens popup) Note that the function name needs to start with lowercase in order for the connection to work on the QML side.
 

Public Member Functions

 Spawn ()
 Constructor.
 
 ~Spawn () override
 Destructor.
 
Q_INVOKABLE QString ErrorPopupText () const
 Get the text for the popup error message.
 
void LoadConfig (const tinyxml2::XMLElement *_pluginElem) override
 
void OnDropped (const gz::gui::events::DropOnScene *_event)
 Handle drop events.
 
Q_INVOKABLE void SetErrorPopupText (const QString &_errorTxt)
 Set the text for the popup error message.
 
- 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 ()
 

Properties

QString errorPopupText
 Text for popup error.
 

Additional Inherited Members

- Protected Attributes inherited from Plugin
std::string configStr
 
std::string title
 

Detailed Description

Allows to spawn models and lights using the spawn gui events or drag and drop.

Constructor & Destructor Documentation

◆ Spawn()

Spawn ( )

Constructor.

◆ ~Spawn()

~Spawn ( )
override

Destructor.

Member Function Documentation

◆ ErrorPopupText()

Q_INVOKABLE QString ErrorPopupText ( ) const

Get the text for the popup error message.

Returns
The error text

◆ ErrorPopupTextChanged

void ErrorPopupTextChanged ( )
signal

Notify the popup error text has changed.

◆ eventFilter()

bool eventFilter ( QObject *  _obj,
QEvent *  _event 
)
overrideprotected

◆ LoadConfig()

void LoadConfig ( const tinyxml2::XMLElement *  _pluginElem)
overridevirtual

Reimplemented from Plugin.

◆ OnDropped()

void OnDropped ( const gz::gui::events::DropOnScene *  _event)

Handle drop events.

Parameters
[in]_eventEvent with drop information.

◆ popupError

void popupError ( )
signal

Notify that an error has occurred (opens popup) Note that the function name needs to start with lowercase in order for the connection to work on the QML side.

◆ SetErrorPopupText()

Q_INVOKABLE void SetErrorPopupText ( const QString &  _errorTxt)

Set the text for the popup error message.

Parameters
[in]_errorTxtThe error text

Property Documentation

◆ errorPopupText

QString errorPopupText
readwrite

Text for popup error.


The documentation for this class was generated from the following file: