#include <Fl_Window_Plotter.h>
Public Member Functions | |
| Fl_Window_Plotter (int x, int y, int w, int h, const char *l=0) | |
| void | SetScale (float min, float max) |
| void | SetData (vector< double > &data) |
Protected Member Functions | |
| void | draw () |
| void | initialize () |
Protected Attributes | |
| pthread_mutex_t | mutex |
| vector< double > | data |
| double | min |
| double | max |
| Fl_Window_Plotter | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const char * | l = 0 | |||
| ) | [inline] |
constructor. Position, size and label information are passed on to the Fl_Double_Window constructor. min and max values for the plotter are set to 0 and 1, respectively.
| void SetScale | ( | float | min, | |
| float | max | |||
| ) | [inline] |
sets the scaling for the plot.
| min | minimum value plotted (will be displayed on the bottom of the window) | |
| max | maximum value plotted (will be displayed on the top of the window) |
| void SetData | ( | vector< double > & | data | ) |
Records a pointer to the vector containing the data to be plotted. Calling this function will redraw the window. Call redraw() to redisplay the data if it changes.
| data | vector to be plotted. |
1.5.1-p1