The view factory creates GUI widgets to visualize data on a topic.
More...
#include <gui/viewers/ViewFactory.hh>
|
| static void | GetViewTypes (std::vector< std::string > &_types) |
| | Get all the view types.
|
| static TopicView * | NewView (const std::string &_msgType, const std::string &_topicName, QWidget *_parent=NULL) |
| | Create a new instance of a view.
|
| static void | RegisterAll () |
| | Register all known views.
|
| static void | RegisterView (const std::string &_className, ViewFactoryFn _factoryfn) |
| | Register a view class (called by view registration function).
|
The view factory creates GUI widgets to visualize data on a topic.
◆ GetViewTypes()
| void GetViewTypes |
( |
std::vector< std::string > & | _types | ) |
|
|
static |
Get all the view types.
- Parameters
-
| _types | Vector of strings of the view types. |
◆ NewView()
| TopicView * NewView |
( |
const std::string & | _msgType, |
|
|
const std::string & | _topicName, |
|
|
QWidget * | _parent = NULL ) |
|
static |
Create a new instance of a view.
- Parameters
-
| [in] | _msgType | Type of message to view. |
| [in] | _topicName | Name of the topic to get data from. |
| [in] | _parent | Parent QWidget. |
- Returns
- Pointer to the new topic viewer.
References NULL.
◆ RegisterAll()
Register all known views.
◆ RegisterView()
| void RegisterView |
( |
const std::string & | _className, |
|
|
ViewFactoryFn | _factoryfn ) |
|
static |
Register a view class (called by view registration function).
- Parameters
-
| [in] | _className | Name of class of view to register. |
| [in] | _factoryfn | Function handle for registration. |
The documentation for this class was generated from the following file: