111 virtual void plot( cairo_t *cairo,
const Coordmapper *cm,
const double range[4] ) = 0;
117 virtual void plot_sample( cairo_t *cairo,
double x,
double y,
double width,
double height ) = 0;
124 virtual void get_bbox(
double bbox[4] ) = 0;
Abstract base class for drawable plots.
Definition: graph.hpp:56
Definition: graph3d.hpp:55
view_e
View types.
Definition: graph3d.hpp:53
Base for plottable graphs.
virtual ~Graph3D()
Virtual destructor.
Definition: graph3d.hpp:100
void set_view(view_e view, int level)
Set the view of 3D drawable.
Definition: graph3d.hpp:130
Definition: graph3d.hpp:59
virtual void get_bbox(double bbox[4])=0
Get bounding box of drawable.
Definition: graph3d.hpp:58
#define ERROR_LOCATION
Macro for setting error location when throwing errors.
Definition: error.hpp:72
Definition: graph3d.hpp:57
Graph3D()
Constructor.
Definition: graph3d.hpp:90
Linear-linear 2D coordinate mapper.
Definition: coordmapper.hpp:119
Abstract base class for geometry slice plots.
Definition: graph3d.hpp:78
Error class to use if requested feature is unimplemented.
Definition: error.hpp:218
Error classes and handling
virtual void plot_sample(cairo_t *cairo, double x, double y, double width, double height)=0
Plot sample for legend.
Definition: graph3d.hpp:54
virtual void plot(cairo_t *cairo, const Coordmapper *cm, const double range[4])=0
Plot graph with cairo.
int _vb[3]
Coordinate index for first, second and third axes.
Definition: graph3d.hpp:83
view_e _view
Geometry view direction.
Definition: graph3d.hpp:82
Definition: graph3d.hpp:56
int _level
Level of slice in mesh units.
Definition: graph3d.hpp:84