Public Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
DataStreamZcm Class Reference

#include <datastream_zcm.h>

Inheritance diagram for DataStreamZcm:
Inheritance graph
[legend]

Public Member Functions

 DataStreamZcm ()
 
virtual bool isRunning () const override
 isRunning More...
 
virtual const char * name () const override
 Name of the plugin type, NOT the particular instance. More...
 
virtual void shutdown () override
 shutdown Stop streaming More...
 
virtual bool start (QStringList *) override
 start streaming. More...
 
virtual bool xmlLoadState (const QDomElement &parent_element) override
 Override this method to load the status of the plugin from XML. More...
 
virtual bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const override
 Override this method to save the status of the plugin to XML. More...
 
virtual ~DataStreamZcm ()
 
- Public Member Functions inherited from PJ::DataStreamer
PlotDataMapRefdataMap ()
 
const PlotDataMapRefdataMap () const
 
 DataStreamer ()=default
 
std::mutex & mutex ()
 
virtual std::pair< QAction *, int > notificationAction ()
 Gets the action to execute when clicking the 'notifications' button and the current number of outstanding notifications. More...
 
const ParserFactoriesparserFactories () const
 
void setMaximumRangeX (double range)
 
void setParserFactories (ParserFactories *parsers)
 
virtual ~DataStreamer ()=default
 
- Public Member Functions inherited from PJ::PlotJugglerPlugin
virtual const std::vector< QAction * > & availableActions ()
 
virtual bool isDebugPlugin ()
 
virtual QWidget * optionsWidget ()
 optionsWidget pointer to a persistent widget used to set the plugin options . More...
 
 PlotJugglerPlugin ()=default
 
QDomElement xmlSaveState (QDomDocument &doc) const
 

Private Slots

void on_pushButtonUrl_clicked ()
 

Private Member Functions

void handler (const zcm::ReceiveBuffer *rbuf, const std::string &channel)
 

Static Private Member Functions

static void processData (const std::string &name, zcm_field_type_t type, const void *data, void *usr)
 

Private Attributes

ConfigZCM_config_widget
 
QDialog * _dialog
 
std::vector< std::pair< std::string, double > > _numerics
 
bool _running
 
std::vector< std::pair< std::string, std::string > > _strings
 
zcm::Subscription * _subs = nullptr
 
QString _subscribe_string
 
QString _transport
 
std::unique_ptr< zcm::TypeDb > _types
 
QString _types_library
 
Ui::DialogZcm * _ui
 
std::unique_ptr< zcm::ZCM > _zcm
 

Additional Inherited Members

- Signals inherited from PJ::DataStreamer
void clearBuffers ()
 Request the main application to clear previous data points. More...
 
void closed ()
 
void dataReceived ()
 
void notificationsChanged (int active_notification_count)
 
void removeGroup (std::string group_name)
 All the series which share this group, will be deleted. More...
 

Detailed Description

Definition at line 15 of file datastream_zcm.h.

Constructor & Destructor Documentation

◆ DataStreamZcm()

DataStreamZcm::DataStreamZcm ( )

Definition at line 25 of file datastream_zcm.cpp.

◆ ~DataStreamZcm()

DataStreamZcm::~DataStreamZcm ( )
virtual

Definition at line 35 of file datastream_zcm.cpp.

Member Function Documentation

◆ handler()

void DataStreamZcm::handler ( const zcm::ReceiveBuffer *  rbuf,
const std::string &  channel 
)
private

Definition at line 226 of file datastream_zcm.cpp.

◆ isRunning()

bool DataStreamZcm::isRunning ( ) const
overridevirtual

isRunning

Returns
true if start() called, false after shutwodn()

Implements PJ::DataStreamer.

Definition at line 155 of file datastream_zcm.cpp.

◆ name()

const char * DataStreamZcm::name ( ) const
overridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::PlotJugglerPlugin.

Definition at line 41 of file datastream_zcm.cpp.

◆ on_pushButtonUrl_clicked

void DataStreamZcm::on_pushButtonUrl_clicked ( )
privateslot

Definition at line 259 of file datastream_zcm.cpp.

◆ processData()

void DataStreamZcm::processData ( const std::string &  name,
zcm_field_type_t  type,
const void *  data,
void *  usr 
)
staticprivate

Definition at line 188 of file datastream_zcm.cpp.

◆ shutdown()

void DataStreamZcm::shutdown ( )
overridevirtual

shutdown Stop streaming

Implements PJ::DataStreamer.

Definition at line 139 of file datastream_zcm.cpp.

◆ start()

bool DataStreamZcm::start ( QStringList *  pre_selected_sources)
overridevirtual

start streaming.

Parameters
optionallist of pre selected sources.
Returns
true if started correctly.

Implements PJ::DataStreamer.

Definition at line 46 of file datastream_zcm.cpp.

◆ xmlLoadState()

bool DataStreamZcm::xmlLoadState ( const QDomElement &  parent_element)
overridevirtual

Override this method to load the status of the plugin from XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 171 of file datastream_zcm.cpp.

◆ xmlSaveState()

bool DataStreamZcm::xmlSaveState ( QDomDocument &  doc,
QDomElement &  parent_element 
) const
overridevirtual

Override this method to save the status of the plugin to XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 160 of file datastream_zcm.cpp.

Member Data Documentation

◆ _config_widget

ConfigZCM* DataStreamZcm::_config_widget
private

Definition at line 64 of file datastream_zcm.h.

◆ _dialog

QDialog* DataStreamZcm::_dialog
private

Definition at line 62 of file datastream_zcm.h.

◆ _numerics

std::vector<std::pair<std::string, double> > DataStreamZcm::_numerics
private

Definition at line 52 of file datastream_zcm.h.

◆ _running

bool DataStreamZcm::_running
private

Definition at line 57 of file datastream_zcm.h.

◆ _strings

std::vector<std::pair<std::string, std::string> > DataStreamZcm::_strings
private

Definition at line 53 of file datastream_zcm.h.

◆ _subs

zcm::Subscription* DataStreamZcm::_subs = nullptr
private

Definition at line 47 of file datastream_zcm.h.

◆ _subscribe_string

QString DataStreamZcm::_subscribe_string
private

Definition at line 59 of file datastream_zcm.h.

◆ _transport

QString DataStreamZcm::_transport
private

Definition at line 60 of file datastream_zcm.h.

◆ _types

std::unique_ptr<zcm::TypeDb> DataStreamZcm::_types
private

Definition at line 43 of file datastream_zcm.h.

◆ _types_library

QString DataStreamZcm::_types_library
private

Definition at line 58 of file datastream_zcm.h.

◆ _ui

Ui::DialogZcm* DataStreamZcm::_ui
private

Definition at line 63 of file datastream_zcm.h.

◆ _zcm

std::unique_ptr<zcm::ZCM> DataStreamZcm::_zcm
private

Definition at line 45 of file datastream_zcm.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:28