![]() |
An open-source, flexible 3D physical simulation framework
|
#include <DataBrokerPlotter.h>
Public Member Functions | |
DataBrokerPlotter (DataBrokerPlotterLib *_mainLib, mars::data_broker::DataBrokerInterface *_dataBroker, mars::cfg_manager::CFGManagerInterface *cfg, std::string _name, QWidget *parent=0) | |
~DataBrokerPlotter () | |
void | receiveData (const mars::data_broker::DataInfo &info, const mars::data_broker::DataPackage &dataPackage, int callbackParam) |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur. More... | |
void | cfgUpdateProperty (mars::cfg_manager::cfgPropertyStruct _property) |
void | update () |
std::string | getName () |
![]() | |
BaseWidget (QWidget *parent, cfg_manager::CFGManagerInterface *_cfg, std::string _widgetName) | |
~BaseWidget () | |
void | setHiddenCloseState (bool v) |
bool | getHiddenCloseState () |
void | show () |
void | hide () |
bool | isHidden () |
void | saveState () |
const std::string & | getName () |
![]() | |
CFGClient () | |
virtual | ~CFGClient () |
virtual void | cfgParamCreated (cfgParamId _id) |
virtual void | cfgParamRemoved (cfgParamId _id) |
![]() | |
ReceiverInterface () | |
virtual | ~ReceiverInterface () |
Protected Member Functions | |
void | hideEvent (QHideEvent *event) |
![]() | |
void | changeEvent (QEvent *ev) |
void | cfgWindow (void) |
void | applyGeometry () |
void | hideEvent (QHideEvent *event) |
void | closeEvent (QCloseEvent *event) |
Private Member Functions | |
void | shiftDown (QRect &rect, int offset) const |
void | createNewPlot () |
Private Attributes | |
mars::data_broker::DataBrokerInterface * | dataBroker |
DataBrokerPlotterLib * | mainLib |
QCustomPlot * | qcPlot |
QMutex | dataLock |
std::string | name |
std::list< PackageData > | packageList |
std::vector< Plot * > | plots |
std::map< mars::cfg_manager::cfgParamId, Plot * > | cfgParamIdToPlot |
int | nextPlotId |
QColor | colors [8] |
Additional Inherited Members | |
![]() | |
void | hideSignal (void) |
void | closeSignal (void) |
![]() | |
cfg_manager::CFGManagerInterface * | cfg |
bool | setWindowProp |
bool | hiddenState |
Definition at line 50 of file DataBrokerPlotter.h.
data_broker_plotter::DataBrokerPlotter::DataBrokerPlotter | ( | DataBrokerPlotterLib * | _mainLib, |
mars::data_broker::DataBrokerInterface * | _dataBroker, | ||
mars::cfg_manager::CFGManagerInterface * | cfg, | ||
std::string | _name, | ||
QWidget * | parent = 0 |
||
) |
Definition at line 8 of file DataBrokerPlotter.cpp.
data_broker_plotter::DataBrokerPlotter::~DataBrokerPlotter | ( | void | ) |
Definition at line 47 of file DataBrokerPlotter.cpp.
|
virtual |
Reimplemented from mars::main_gui::BaseWidget.
Definition at line 227 of file DataBrokerPlotter.cpp.
|
private |
Definition at line 144 of file DataBrokerPlotter.cpp.
|
inline |
Definition at line 67 of file DataBrokerPlotter.h.
|
protected |
Definition at line 249 of file DataBrokerPlotter.cpp.
|
virtual |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur.
info | Information about the DataPackage. |
dataPackage | The DataPackage containing all the data. |
callbackParam | The int the receiver passed during registration. The default (the receiver didn't provide a callbackParam) is 0. This can be used to easily distinguish different registrations. |
Implements mars::data_broker::ReceiverInterface.
Definition at line 133 of file DataBrokerPlotter.cpp.
|
private |
void data_broker_plotter::DataBrokerPlotter::update | ( | void | ) |
Definition at line 54 of file DataBrokerPlotter.cpp.
|
private |
Definition at line 83 of file DataBrokerPlotter.h.
|
private |
Definition at line 88 of file DataBrokerPlotter.h.
|
private |
Definition at line 73 of file DataBrokerPlotter.h.
|
private |
Definition at line 76 of file DataBrokerPlotter.h.
|
private |
Definition at line 74 of file DataBrokerPlotter.h.
|
private |
Definition at line 77 of file DataBrokerPlotter.h.
|
private |
Definition at line 85 of file DataBrokerPlotter.h.
|
private |
Definition at line 78 of file DataBrokerPlotter.h.
|
private |
Definition at line 82 of file DataBrokerPlotter.h.
|
private |
Definition at line 75 of file DataBrokerPlotter.h.