glv::Plot Class Reference

A 1D or 2D function plot. More...

#include <glv_plots.h>

Inheritance diagram for glv::Plot:

glv::View glv::TRect< T > glv::Notifier glv::SmartObject< BaseClass >

List of all members.

Public Member Functions

 Plot (const Rect &r, int size, PlotDim::t dim)
 Plot (const Rect &r, int size, PlotDim::t dim, const Color &plotColor)
Plotcenter ()
 Center axes.
PlotequalizeAxes ()
 Make axis dimensions the same.
PlotpreserveAspect (bool v)
 Set whether aspect ratio is preserved to 1:1.
Plotrange (float ext)
 Set range of x & y axes to [-ext,ext].
PlotrangeX (float ext)
 Set range of x axis to [-ext,ext].
PlotrangeY (float ext)
 Set range of y axis to [-ext,ext].
PlotrangeX (float min, float max)
 Set range of x axis to [min,max].
PlotrangeY (float min, float max)
 Set range of y axis to [min,max].
PlotshowAxes (bool v)
 Set whether to show axes.
PlottickMajor (float d)
 Set major tick distance for x and y (<= 0 turns off).
PlottickMajorX (float d)
 Set major tick distance for x (<= 0 turns off).
PlottickMajorY (float d)
 Set major tick distance for x (<= 0 turns off).
virtual void onDraw ()
 Main drawing callback.
virtual bool onEvent (Event::t e, GLV &glv)
 Main event callback to be called after those in callback list.


Detailed Description

A 1D or 2D function plot.

Constructor & Destructor Documentation

glv::Plot::Plot ( const Rect r,
int  size,
PlotDim::t  dim 
)

Parameters:
[in] r geometry
[in] size size of internal data buffer(s)

glv::Plot::Plot ( const Rect r,
int  size,
PlotDim::t  dim,
const Color plotColor 
)

Parameters:
[in] r geometry
[in] size size of internal data buffer(s)
[in] plotColor color of plot


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

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5