Gazebo Gazebo

API Reference

3.15.1

Event called to spawn a preview model. Used by plugins that spawn models. More...

#include <GuiEvents.hh>

Public Member Functions

 SpawnPreviewModel (std::string &_modelSdfString)
 Constructor. More...
 
std::string ModelSdfString () const
 Get the sdf string of the model. More...
 

Public Attributes

std::string modelSdfString
 The sdf string of the model to be previewed. More...
 

Static Public Attributes

static const QEvent::Type kType = QEvent::Type(QEvent::User + 4)
 Unique type for this event. More...
 

Detailed Description

Event called to spawn a preview model. Used by plugins that spawn models.

Constructor & Destructor Documentation

◆ SpawnPreviewModel()

SpawnPreviewModel ( std::string _modelSdfString)
inlineexplicit

Constructor.

Parameters
[in]_modelSdfStringThe model's SDF file as a string.

Member Function Documentation

◆ ModelSdfString()

std::string ModelSdfString ( ) const
inline

Get the sdf string of the model.

Returns
The model sdf string

References SpawnPreviewModel::modelSdfString.

Member Data Documentation

◆ kType

const QEvent::Type kType = QEvent::Type(QEvent::User + 4)
static

Unique type for this event.

◆ modelSdfString

std::string modelSdfString

The sdf string of the model to be previewed.

Referenced by SpawnPreviewModel::ModelSdfString().


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