Public Member Functions | List of all members
Graph Class Referenceabstract

Abstract base class for drawable plots. More...

#include <graph.hpp>

Inheritance diagram for Graph:
Colormap Graph3D XYGraph FieldGraph EqPotGraph FieldGraph MeshGraph ParticleGraph SolidGraph

Public Member Functions

virtual ~Graph ()
 Virtual destructor. More...
 
virtual void plot (cairo_t *cairo, const Coordmapper *cm, const double range[4])=0
 Plot graph with cairo. More...
 
virtual void plot_sample (cairo_t *cairo, double x, double y, double width, double height)=0
 Plot sample for legend. More...
 
virtual void get_bbox (double bbox[4])=0
 Get bounding box of graph. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual Graph::~Graph ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

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, ParticleGraph, FieldGraph, SolidGraph, XYGraph, Graph3D, and MeshGraph.

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. 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.

virtual void Graph::plot_sample ( cairo_t *  cairo,
double  x,
double  y,
double  width,
double  height 
)
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.


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