DataStreamsWidget Class Reference

this widget display one or more DataStreamPlot and utility toolbar for interacting with them More...

Inheritance diagram for DataStreamsWidget:

Public Member Functions

 DataStreamsWidget (QWidget *parent=0)
 constructor More...
 
virtual ~DataStreamsWidget ()
 destructor More...
 
int addPlot (QString name)
 add a new DataStreamPlot to this widget and return its ID for retrieve it later More...
 
void appendDatas (int plotID, QVector< float > values)
 add new points to all of streams of the plotID DataStreamPlot More...
 
int getNumPlots ()
 return the number of plots added More...
 
DataStreamPlotgetPlot (int plotID)
 return a pointer to the DataStreamPlot corresponding to the plotID specified More...
 

Detailed Description

this widget display one or more DataStreamPlot and utility toolbar for interacting with them

Definition at line 38 of file datastreamswidget.h.

Constructor & Destructor Documentation

DataStreamsWidget ( QWidget *  parent = 0)

constructor

Definition at line 32 of file datastreamswidget.cpp.

~DataStreamsWidget ( )
virtual

destructor

Definition at line 64 of file datastreamswidget.cpp.

Member Function Documentation

int addPlot ( QString  name)

add a new DataStreamPlot to this widget and return its ID for retrieve it later

Parameters
namethe name of the plot (it will be displayed as a title on the left side)
Returns
the plotID used for retrieving it with getPlot

Definition at line 68 of file datastreamswidget.cpp.

void appendDatas ( int  plotID,
QVector< float >  values 
)

add new points to all of streams of the plotID DataStreamPlot

Parameters
valuesis a vector where the index is suppose to correspond a valid streamID into the plotID and the values are the data to append; values[i] means that the i-th value has to be appended to the i-th stream of the plotID
Note
this function is thread-safe and it must be used for append data to plots from outside the GUI thread

Definition at line 98 of file datastreamswidget.cpp.

int getNumPlots ( )

return the number of plots added

Definition at line 93 of file datastreamswidget.cpp.

DataStreamPlot * getPlot ( int  plotID)

return a pointer to the DataStreamPlot corresponding to the plotID specified

Definition at line 88 of file datastreamswidget.cpp.


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