Public Member Functions

glv::Plottable Class Reference

Defines a routine for generating plot graphics from model data. More...

#include <glv_plots.h>

Inheritance diagram for glv::Plottable:
glv::GraphicsMap glv::PlotDensity glv::PlotFunction1D glv::PlotFunction2D

List of all members.

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 Colorcolor () const
 Get color.
const Datadata () const
 Get data.
int prim () const
 Get geometric primitive.
int stroke () const
 Get stroke width (for lines and points).
Plottableadd (GraphicsMap &v)
 Add a graphics map.
Plottableremove (GraphicsMap &v)
 Remove a graphics map.

Detailed Description

Defines a routine for generating plot graphics from model data.


Constructor & Destructor Documentation

glv::Plottable::Plottable ( int  prim = draw::Points,
float  stroke = 1,
const Color col = Color(1,0,0) 
) [inline]
Parameters:
[in] prim drawing primitive
[in] stroke width of lines or points
[in] col color

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