All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | List of all members
gazebo::gui::ViewFactory Class Reference

The view factory creates GUI widgets to visualize data on a topic. More...

#include <gui/viewers/ViewFactory.hh>

Static Public Member Functions

static void GetViewTypes (std::vector< std::string > &_types)
 Get all the view types. More...
 
static TopicViewNewView (const std::string &_msgType, const std::string &_topicName, QWidget *_parent=NULL)
 Create a new instance of a view. More...
 
static void RegisterAll ()
 Register all known views. More...
 
static void RegisterView (const std::string &_className, ViewFactoryFn _factoryfn)
 Register a view class (called by view registration function). More...
 

Detailed Description

The view factory creates GUI widgets to visualize data on a topic.

Member Function Documentation

static void gazebo::gui::ViewFactory::GetViewTypes ( std::vector< std::string > &  _types)
static

Get all the view types.

Parameters
_typesVector of strings of the view types.
static TopicView* gazebo::gui::ViewFactory::NewView ( const std::string &  _msgType,
const std::string &  _topicName,
QWidget *  _parent = NULL 
)
static

Create a new instance of a view.

Parameters
[in]_msgTypeType of message to view.
[in]_topicNameName of the topic to get data from.
[in]_parentParent QWidget.
Returns
Pointer to the new topic viewer.
static void gazebo::gui::ViewFactory::RegisterAll ( )
static

Register all known views.

static void gazebo::gui::ViewFactory::RegisterView ( const std::string &  _className,
ViewFactoryFn  _factoryfn 
)
static

Register a view class (called by view registration function).

Parameters
[in]_classNameName of class of view to register.
[in]_factoryfnFunction handle for registration.

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