#include <glv_plots.h>
Public Member Functions | |
Plot (const Rect &r, int size, PlotDim::t dim) | |
Plot (const Rect &r, int size, PlotDim::t dim, const Color &plotColor) | |
Plot & | center () |
Center axes. | |
Plot & | equalizeAxes () |
Make axis dimensions the same. | |
Plot & | preserveAspect (bool v) |
Set whether aspect ratio is preserved to 1:1. | |
Plot & | range (float ext) |
Set range of x & y axes to [-ext,ext]. | |
Plot & | rangeX (float ext) |
Set range of x axis to [-ext,ext]. | |
Plot & | rangeY (float ext) |
Set range of y axis to [-ext,ext]. | |
Plot & | rangeX (float min, float max) |
Set range of x axis to [min,max]. | |
Plot & | rangeY (float min, float max) |
Set range of y axis to [min,max]. | |
Plot & | showAxes (bool v) |
Set whether to show axes. | |
Plot & | tickMajor (float d) |
Set major tick distance for x and y (<= 0 turns off). | |
Plot & | tickMajorX (float d) |
Set major tick distance for x (<= 0 turns off). | |
Plot & | tickMajorY (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. |
glv::Plot::Plot | ( | const Rect & | r, | |
int | size, | |||
PlotDim::t | dim | |||
) |
[in] | r | geometry |
[in] | size | size of internal data buffer(s) |
[in] | r | geometry |
[in] | size | size of internal data buffer(s) |
[in] | plotColor | color of plot |