Fl_Window_Plotter Class Reference

#include <Fl_Window_Plotter.h>

List of all members.


Detailed Description

Plots the values from a floating point vector in a window.


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


Constructor & Destructor Documentation

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.


Member Function Documentation

void SetScale ( float  min,
float  max 
) [inline]

sets the scaling for the plot.

Parameters:
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.

Parameters:
data vector to be plotted.


The documentation for this class was generated from the following file:
Generated on Tue Mar 6 17:57:24 2007 for AME Repository by  doxygen 1.5.1-p1