The view factory creates GUI widgets to visualize data on a topic.
More...
#include <gui/viewers/ViewFactory.hh>
The view factory creates GUI widgets to visualize data on a topic.
◆ GetViewTypes()
static void GetViewTypes |
( |
std::vector< std::string > & |
_types | ) |
|
|
static |
Get all the view types.
- Parameters
-
_types | Vector 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] | _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.
◆ 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] | _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: