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

◆ GetViewTypes()

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

Get all the view types.

Parameters
_typesVector of strings of the view types.

◆ NewView()

static TopicView* 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.

◆ RegisterAll()

static void RegisterAll ( )
static

Register all known views.

◆ RegisterView()

static void 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: