Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VrPlot Class Reference

Plot widget. More...

#include <VrGUI_int.h>

List of all members.

Public Member Functions

 VrPlot (QWidget *p, int nPoints, int divisions, const char *xaxis_name, const char *yaxis_name, bool lines, double xmin, double xmax, double ymin, double ymax)
virtual ~VrPlot ()
void plotPressed (QMouseEvent *e)
void plotReleased (QMouseEvent *e)
void plotMoved (QMouseEvent *e)
void data (double *x, double *y, int size)
void clear ()
void set_persistent (bool arg_persistent)

Protected Member Functions

void redrawPixmap ()
void updateAxes (VrScale *arg_scale, int arg_dist, QRect *arg_rect, int arg_offset)
void resizeEvent (QResizeEvent *e)

Private Attributes

VrPlotPixFramed_frmPlot
VrScaleyyd_bottom
VrScaleyyd_left
int d_lines
bool persistent


Detailed Description

Plot widget.

VrPlot is used for displaying x/y data to the user. No user interaction functionality is provided. Labels are provided for the X and Y axises. The input X and Y data is scaled to fit.


Constructor & Destructor Documentation

VrPlot::VrPlot QWidget *  parent,
int  nPoints,
int  divisions,
const char *  xaxis_name,
const char *  yaxis_name,
bool  lines,
double  xmin,
double  xmax,
double  ymin,
double  ymax
 

Constructs an X/Y plot

Parameters:
nPoints number of points on the plot
divisions how many major divisions to draw
lines true to draw lines, else ellipses
xmin expected min value for x values
xmax expected max value for x values
ymin expected min value for y values
ymax expected max value for y values

VrPlot::~VrPlot  )  [virtual]
 


Member Function Documentation

void VrPlot::clear  ) 
 

Erase the plot

void VrPlot::data double *  xdat,
double *  ydat,
int  size
 

Plot the x/y values given

Parameters:
xdat the X-values
ydat the Y-values
size number of data points

void VrPlot::plotMoved QMouseEvent *  e  ) 
 

void VrPlot::plotPressed QMouseEvent *  e  ) 
 

void VrPlot::plotReleased QMouseEvent *  e  ) 
 

void VrPlot::redrawPixmap  )  [protected]
 

void VrPlot::resizeEvent QResizeEvent *  e  )  [protected]
 

void VrPlot::set_persistent bool  arg_persistent  ) 
 

void VrPlot::updateAxes VrScale arg_scale,
int  arg_dist,
QRect *  arg_rect,
int  arg_offset
[protected]
 


Member Data Documentation

VrPlotPixFrame* VrPlot::d_frmPlot [private]
 

int VrPlot::d_lines [private]
 

bool VrPlot::persistent [private]
 

VrScale* VrPlot::yyd_bottom [private]
 

VrScale * VrPlot::yyd_left [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Mar 15 23:55:38 2005 for GNU Radio by  doxygen 1.4.0