Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads
Graph Class Referenceabstract

Abstract base class for drawable plots. More...

#include <graph.hpp>

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

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

◆ ~Graph()

virtual Graph::~Graph ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ get_bbox()

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

◆ plot()

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

◆ plot_sample()

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


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


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.