![]() |
An open-source, flexible 3D physical simulation framework
|
#include <DataBrokerPlotter.hpp>
Public Slots | |
void | valueChanged (std::string key, std::string value) |
void | checkChanged (std::string key, bool checked) |
void | exportPlot () |
Public Member Functions | |
DataBrokerPlotter (DataBrokerPlotterLib *_mainLib, lib_manager::LibManager *theManager, 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 () |
![]() | |
Thread () | |
virtual | ~Thread () |
void | start () |
Starts the execution of this Thread. More... | |
void | cancel (bool block=false) |
Tries to cancel the Thread. More... | |
void | setCancellationPoint () |
Adds a cancellation point to your run method. More... | |
bool | wait () |
stops execution until the thread has finished. More... | |
bool | join () |
bool | wait (unsigned long timeoutMilliseconds) |
puts the Thread to sleep for a specified amount of time. More... | |
bool | isRunning () const |
returns true if the Thread is running. More... | |
bool | isFinished () const |
void | setStackSize (std::size_t stackSize) |
std::size_t | getStackSize () const |
bool | isCurrentThread () const |
Protected Member Functions | |
void | timerEvent (QTimerEvent *event) |
void | closeEvent (QCloseEvent *event) |
void | run () |
The thread will execute this method once it has been started . More... | |
![]() | |
void | changeEvent (QEvent *ev) |
void | cfgWindow (void) |
void | applyGeometry () |
void | hideEvent (QHideEvent *event) |
void | closeEvent (QCloseEvent *event) |
Private Member Functions | |
void | createNewPlot (std::string label, const mars::data_broker::DataInfo &info) |
void | shiftDown (QRect &rect, int offset) const |
void | showPlot (Plot *plot) |
void | hidePlot (Plot *plot) |
void | checkMap (std::string key, std::string path, configmaps::ConfigMap &map, bool checked) |
void | checkSub (configmaps::ConfigMap &map, std::string path, bool checked) |
Private Attributes | |
mars::config_map_gui::DataWidget * | dw |
configmaps::ConfigMap | map |
configmaps::ConfigMap | loadMap |
lib_manager::LibManager * | libManager |
mars::data_broker::DataBrokerInterface * | dataBroker |
DataBrokerPlotterLib * | mainLib |
QCustomPlot * | qcPlot |
QMutex | dataLock |
QMutex | plotLock |
std::string | name |
std::string | configPath |
std::string | exportPath |
std::vector< PackageData > | packageList |
std::vector< std::string > | filter |
unsigned long | xRange |
int | updateFilterTicks |
std::map< unsigned long, int > | registerMap |
std::map< std::string, Plot * > | plotMap |
std::vector< Plot * > | plots |
std::map< std::string, mars::data_broker::DataInfo > | pendingIDs |
std::map< mars::cfg_manager::cfgParamId, Plot * > | cfgParamIdToPlot |
int | nextPlotId |
bool | updateMap |
bool | needReplot |
bool | inReceive |
bool | exit |
bool | threadRunning |
double | penSize |
double | dataUpdateRate |
double | simTime |
std::default_random_engine | generator |
Additional Inherited Members | |
![]() | |
void | hideSignal (void) |
void | closeSignal (void) |
![]() | |
static Thread * | getCurrentThread () |
static void | cancelAll (bool block=false) |
![]() | |
static void | msleep (unsigned long msec) |
causes the current thread to sleep for More... | |
![]() | |
cfg_manager::CFGManagerInterface * | cfg |
bool | setWindowProp |
bool | hiddenState |
Definition at line 66 of file DataBrokerPlotter.hpp.
data_broker_plotter2::DataBrokerPlotter::DataBrokerPlotter | ( | DataBrokerPlotterLib * | _mainLib, |
lib_manager::LibManager * | theManager, | ||
mars::data_broker::DataBrokerInterface * | _dataBroker, | ||
mars::cfg_manager::CFGManagerInterface * | cfg, | ||
std::string | _name, | ||
QWidget * | parent = 0 |
||
) |
Definition at line 19 of file DataBrokerPlotter.cpp.
data_broker_plotter2::DataBrokerPlotter::~DataBrokerPlotter | ( | void | ) |
Definition at line 114 of file DataBrokerPlotter.cpp.
|
virtual |
Reimplemented from mars::main_gui::BaseWidget.
Definition at line 252 of file DataBrokerPlotter.cpp.
|
slot |
Definition at line 372 of file DataBrokerPlotter.cpp.
|
private |
Definition at line 418 of file DataBrokerPlotter.cpp.
|
private |
Definition at line 381 of file DataBrokerPlotter.cpp.
|
protected |
Definition at line 543 of file DataBrokerPlotter.cpp.
|
private |
Definition at line 202 of file DataBrokerPlotter.cpp.
|
slot |
Definition at line 505 of file DataBrokerPlotter.cpp.
|
inline |
Definition at line 85 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 568 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 159 of file DataBrokerPlotter.cpp.
|
protectedvirtual |
The thread will execute this method once it has been started .
Implements mars::utils::Thread.
Definition at line 441 of file DataBrokerPlotter.cpp.
|
private |
|
private |
Definition at line 547 of file DataBrokerPlotter.cpp.
|
protected |
Definition at line 585 of file DataBrokerPlotter.cpp.
void data_broker_plotter2::DataBrokerPlotter::update | ( | void | ) |
Definition at line 134 of file DataBrokerPlotter.cpp.
|
slot |
Definition at line 262 of file DataBrokerPlotter.cpp.
|
private |
Definition at line 115 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 105 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 101 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 104 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 119 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 98 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 118 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 105 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 107 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 120 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 118 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 100 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 99 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 102 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 99 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 105 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 118 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 117 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 106 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 114 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 119 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 104 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 112 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 113 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 103 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 111 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 119 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 118 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 109 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 118 of file DataBrokerPlotter.hpp.
|
private |
Definition at line 108 of file DataBrokerPlotter.hpp.