Defines a routine for generating plot graphics from model data. More...
#include <glv_plots.h>
Public Member Functions | |
Plottable (int prim=draw::Points, float stroke=1, const Color &col=Color(1, 0, 0)) | |
virtual void | onContextCreate () |
Called when a new graphics context is created. | |
virtual void | onContextDestroy () |
Called when the current graphics context is destroyed. | |
virtual void | onMap (GraphicsData &b, const Data &d, const Indexer &ind) |
Routine to generate graphics from model data. | |
const Color & | color () const |
Get color. | |
const Data & | data () const |
Get data. | |
int | prim () const |
Get geometric primitive. | |
int | stroke () const |
Get stroke width (for lines and points). | |
Plottable & | add (GraphicsMap &v) |
Add a graphics map. | |
Plottable & | remove (GraphicsMap &v) |
Remove a graphics map. |
Defines a routine for generating plot graphics from model data.
glv::Plottable::Plottable | ( | int | prim = draw::Points , |
|
float | stroke = 1 , |
|||
const Color & | col = Color(1,0,0) | |||
) | [inline] |
[in] | prim | drawing primitive |
[in] | stroke | width of lines or points |
[in] | col | color |