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 | plot_sample (cairo_t *cairo, double x, double y, double width, double height)=0 |
Plot sample for legend. | |
virtual void | get_bbox (double bbox[4])=0 |
Get bounding box of graph. | |
Abstract base class for drawable plots.
Graph type objects are used in Frame type plots to provide the graphical view of the data content and legend sample.
|
inlinevirtual |
Virtual destructor.
|
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, ParticleGraph, FieldGraph, SolidGraph, XYGraph, Graph3D, and MeshGraph.
|
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. The graph should be able to handle any range values. Also min > max.
Called by Frame during drawing.
Implemented in Colormap, EqPotGraph, ParticleGraph, FieldGraph, SolidGraph, XYGraph, Graph3D, and MeshGraph.
|
pure virtual |
Plot sample for legend.
Plot graph sample for legend at cairo coordinates (x,y).
Implemented in Colormap, EqPotGraph, ParticleGraph, FieldGraph, SolidGraph, XYGraph, Graph3D, and MeshGraph.