43 #ifndef PARTICLEGRAPH_HPP
44 #define PARTICLEGRAPH_HPP 1
74 std::vector<Color> _color;
81 void get_point(
const Coordmapper *cm,
double *coord,
double s,
82 double Ax,
double Bx,
double Cx,
double Dx,
83 double Ay,
double By,
double Cy,
double Dy )
const;
86 double x[5],
bool first )
const;
89 double x[5],
bool first );
96 int particlediv = 10,
bool qm_discr =
true );
126 virtual void plot( cairo_t *cairo,
const Coordmapper *cm,
const double range[4] );
132 virtual void plot_sample( cairo_t *cairo,
double x,
double y,
double width,
double height );
139 virtual void get_bbox(
double bbox[4] );
virtual void get_bbox(double bbox[4])
Get bounding box of graph.
Line clipper.
Definition: lineclip.hpp:57
virtual void plot(cairo_t *cairo, const Coordmapper *cm, const double range[4])
Plot graph with cairo.
void set_particle_div(size_t particle_div)
Set particle divisor.
1D and 2D coordinate transformations for plotter.
Geometry defining class.
Definition: geometry.hpp:131
ParticleGraph(const Geometry &g, const ParticleDataBase &pdb, int particlediv=10, bool qm_discr=true)
Constructor for particle plotter.
void set_qm_discretation(bool qm_discr)
Enable q/m discretation.
Class for drawing particle trajectories.
Definition: particlegraph.hpp:68
Linear-linear 2D coordinate mapper.
Definition: coordmapper.hpp:119
void add_color(const Color &color)
Add a color to the list of trajectory colors.
Abstract base class for geometry slice plots.
Definition: graph3d.hpp:78
virtual void plot_sample(cairo_t *cairo, double x, double y, double width, double height)
Plot sample for legend.
virtual ~ParticleGraph()
Destructor.
Base for three dimensional plottable graphs.
void clear_colors(void)
Clear the list of trajectory colors.
Floating point line clipping for cairo.
Color class for plotting.
Definition: color.hpp:53
Particle database base class.
Definition: particledatabase.hpp:167