IBSimu 1.0.4
|
Abstract base class for drawable plots. More...
#include <graph.hpp>
Public Member Functions | |
virtual | ~Graph () |
Virtual destructor. | |
virtual void | plot (cairo_t *cairo, const Coordmapper *cm, const double range[4])=0 |
Plot graph with cairo. | |
virtual void | get_bbox (double bbox[4])=0 |
Get bounding box of graph. |
Abstract base class for drawable plots.
virtual Graph::~Graph | ( | ) | [inline, virtual] |
Virtual destructor.
virtual void Graph::get_bbox | ( | double | bbox[4] | ) | [pure virtual] |
Get bounding box of graph.
Returns the bounding box of the graph in array bbox in order xmin, ymin, xmax, ymax.
Implemented in Colormap, EqPotGraph, FieldGraph, Graph3D, MeshGraph, ParticleGraph, SolidGraph, and XYGraph.
virtual void Graph::plot | ( | cairo_t * | cairo, |
const Coordmapper * | cm, | ||
const double | range[4] | ||
) | [pure virtual] |
Plot graph with cairo.
Plot the graph using cairo and coordinate mapper cm. The visible range of plot is given in array range in order xmin, ymin, xmax, ymax.
Implemented in Colormap, EqPotGraph, FieldGraph, Graph3D, MeshGraph, ParticleGraph, SolidGraph, and XYGraph.