Equipotential line plot. More...
#include <eqpotgraph.hpp>
Classes | |
struct | EqPotLines |
struct | Line |
Public Member Functions | |
EqPotGraph (const ScalarField &epot, const Geometry &g) | |
Constructor for equipotential line plot. | |
virtual | ~EqPotGraph () |
Destructor,. | |
void | disable_cache (void) |
Disable internal cache. | |
void | set_eqlines_manual (const std::vector< double > &pot) |
Add manual equipotential lines to be plotted at specified potentials. | |
void | set_eqlines_auto (size_t N) |
Set N automatic equipotential lines to be plotted between minimum potential and maximum potentials. | |
virtual void | plot (cairo_t *cairo, const Coordmapper *cm, const double range[4]) |
Plot graph with cairo. | |
virtual void | plot_sample (cairo_t *cairo, double x, double y, double width, double height) |
Plot sample for legend. | |
virtual void | get_bbox (double bbox[4]) |
Get bounding box of drawable. | |
![]() | |
Graph3D () | |
Constructor. | |
virtual | ~Graph3D () |
Virtual destructor. | |
void | set_view (view_e view, int level) |
Set the view of 3D drawable. | |
![]() | |
virtual | ~Graph () |
Virtual destructor. |
Additional Inherited Members | |
![]() | |
view_e | _view |
Geometry view direction. | |
int | _vb [3] |
Coordinate index for first, second and third axes. | |
int | _level |
Level of slice in mesh units. |
Equipotential line plot.
Class for constructing and drawing equipotential line plots.
EqPotGraph::EqPotGraph | ( | const ScalarField & | epot, |
const Geometry & | g | ||
) |
Constructor for equipotential line plot.
Makes a plot object for plotting equipotential data from scalarfield field in geometry g.
|
virtual |
Destructor,.
void EqPotGraph::disable_cache | ( | void | ) |
Disable internal cache.
Makes equipotential lines to be calculated at every plot().
|
virtual |
Get bounding box of drawable.
Returns the bounding box of the drawable in array bbox in order xmin, ymin, xmax, ymax.
Implements Graph3D.
|
virtual |
|
virtual |
Plot sample for legend.
Plot graph sample for legend at cairo coordinates (x,y).
Implements Graph3D.
void EqPotGraph::set_eqlines_auto | ( | size_t | N | ) |
Set N automatic equipotential lines to be plotted between minimum potential and maximum potentials.
void EqPotGraph::set_eqlines_manual | ( | const std::vector< double > & | pot | ) |
Add manual equipotential lines to be plotted at specified potentials.