#include <MonitorDataPlotter.h>
Public Member Functions | |
| void | addGraph (NewGraph graph) |
| void | closeDialog (bool stopMon) |
| void | loadingComplete () |
| MonitorDataPlotter (QWidget *parent, unsigned int neurGrpID, unsigned int fromNeurID, unsigned int toNeurID) | |
| MonitorDataPlotter (QWidget *parent, QString neuronGrpDesc, unsigned int neurGrpID, unsigned int neurID) | |
| void | plotData (double msgTime, const double *dataArray, int arrayLength) |
| void | setUpGraphs (const char *charArray) |
| bool | showDialog () |
| ~MonitorDataPlotter () | |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *e) |
Private Member Functions | |
| MonitorDataPlotter (const MonitorDataPlotter &) | |
| MonitorDataPlotter | operator= (const MonitorDataPlotter &) |
| void | stopMonitoring () |
Private Attributes | |
| QFont * | axisFont |
| QFont * | axisTitleFont |
| vector< MonitorDataset * > | dataVector |
| unsigned int | fromNeuronID |
| QLabel * | loadingLabel |
| unsigned int | neuronGrpID |
| unsigned int | neuronID |
| bool | neuronMonitoring |
| bool | parseError |
| vector< QwtPlot * > | plotVector |
| QWidget * | simulationWidget |
| unsigned int | toNeuronID |
| QVBoxLayout * | verticalBox |
Definition at line 55 of file MonitorDataPlotter.h.
|
||||||||||||||||||||
|
Constructor for monitoring neuron data The main initialisation work is done when the setUpGraphs method is called after the information about the monitored data has been received by the simulationManager. Definition at line 77 of file MonitorDataPlotter.cpp. References axisFont, axisTitleFont, loadingLabel, neuronGrpID, neuronID, neuronMonitoring, parseError, simulationWidget, and verticalBox. |
|
||||||||||||||||||||
|
Constructor for monitoring synapse data The main initialisation work is done when the setUpGraphs method is called after the information about the monitored data has been received by the simulationManager. Definition at line 114 of file MonitorDataPlotter.cpp. References axisFont, axisTitleFont, fromNeuronID, loadingLabel, neuronGrpID, neuronMonitoring, parseError, simulationWidget, toNeuronID, and verticalBox. |
|
|
Destructor. Definition at line 151 of file MonitorDataPlotter.cpp. References dataVector, and plotVector. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Adds a graph to the display. Usually called by MonitorXmlHandler, which in turn is invoked by simulationManager running as a separate thread. Definition at line 174 of file MonitorDataPlotter.cpp. References axisFont, axisTitleFont, dataVector, DEFAULT_MONITOR_DATASET_SIZE, NewGraph::description, plotVector, NewGraph::rangeHigh, NewGraph::rangeLow, SpikeStreamMainWindow::spikeStreamApplication, and verticalBox. Referenced by MonitorXmlHandler::endElement(). |
|
|
Called when the dialog needs to be closed by an external class. Variable stopMon determines whether monitoring will be stopped when dialog is closed. Definition at line 245 of file MonitorDataPlotter.cpp. References stopMonitoring(). |
|
|
Called when user closes the dialog. Instructs simulation to stop sending monitor data. Dialog is closed programmatically by the closeDialog() method. Definition at line 398 of file MonitorDataPlotter.cpp. References stopMonitoring(). |
|
|
Called when all graphs have been loaded so that loading label can be hidden. Definition at line 257 of file MonitorDataPlotter.cpp. References loadingLabel. Referenced by MonitorXmlHandler::endElement(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
||||||||||||||||
|
Adds the data in the float array to the graphs. Definition at line 267 of file MonitorDataPlotter.cpp. References dataVector, plotVector, and SpikeStreamMainWindow::spikeStreamApplication. |
|
|
The char array is an XML file containing the set up information for the graphs. This method parses the information and creates the graphs. Definition at line 333 of file MonitorDataPlotter.cpp. References MonitorXmlHandler::getParseError(), MonitorXmlHandler::getParseErrorString(), parseError, SpikeStreamMainWindow::spikeStreamApplication, and stopMonitoring(). |
|
|
Used by other methods to make the dialog visible and restart the monitoring. Definition at line 295 of file MonitorDataPlotter.cpp. References fromNeuronID, neuronGrpID, neuronID, neuronMonitoring, parseError, simulationWidget, SpikeStreamMainWindow::spikeStreamApplication, and toNeuronID. |
|
|
Stops the monitoring associated with this dialog. Definition at line 413 of file MonitorDataPlotter.cpp. References fromNeuronID, neuronGrpID, neuronID, neuronMonitoring, simulationWidget, SpikeStreamMainWindow::spikeStreamApplication, and toNeuronID. Referenced by closeDialog(), closeEvent(), and setUpGraphs(). |
|
|
Definition at line 111 of file MonitorDataPlotter.h. Referenced by addGraph(), and MonitorDataPlotter(). |
|
|
Definition at line 112 of file MonitorDataPlotter.h. Referenced by addGraph(), and MonitorDataPlotter(). |
|
|
Holds references to all of the datasets plotted by the graphs. Definition at line 105 of file MonitorDataPlotter.h. Referenced by addGraph(), plotData(), and ~MonitorDataPlotter(). |
|
|
Presynaptic ID of synapse being monitored. Definition at line 90 of file MonitorDataPlotter.h. Referenced by MonitorDataPlotter(), showDialog(), and stopMonitoring(). |
|
|
Label to inform user that we are waiting for simulation manager. Definition at line 96 of file MonitorDataPlotter.h. Referenced by loadingComplete(), and MonitorDataPlotter(). |
|
|
Neuron group. Definition at line 81 of file MonitorDataPlotter.h. Referenced by MonitorDataPlotter(), showDialog(), and stopMonitoring(). |
|
|
ID of neuron being monitored. Definition at line 87 of file MonitorDataPlotter.h. Referenced by MonitorDataPlotter(), showDialog(), and stopMonitoring(). |
|
|
Are we monitoring a neuron or a synapse?. Definition at line 84 of file MonitorDataPlotter.h. Referenced by MonitorDataPlotter(), showDialog(), and stopMonitoring(). |
|
|
Records if there has been an error in parsing. Definition at line 108 of file MonitorDataPlotter.h. Referenced by MonitorDataPlotter(), setUpGraphs(), and showDialog(). |
|
|
Holds references to all of the graphs in this widget. Definition at line 102 of file MonitorDataPlotter.h. Referenced by addGraph(), plotData(), and ~MonitorDataPlotter(). |
|
|
Store a reference to the simulation widget to access simulation manager Stored as a QWidget to avoid include problems. Definition at line 78 of file MonitorDataPlotter.h. Referenced by MonitorDataPlotter(), showDialog(), and stopMonitoring(). |
|
|
Postsynpatic ID of synapse being monitored. Definition at line 93 of file MonitorDataPlotter.h. Referenced by MonitorDataPlotter(), showDialog(), and stopMonitoring(). |
|
|
Layout of this widget, used to dynamically add graphs. Definition at line 99 of file MonitorDataPlotter.h. Referenced by addGraph(), and MonitorDataPlotter(). |
1.4.4