GeomPlotter Class Reference
Non-interactive geometry plotter. More...
#include <geomplotter.hpp>
Inheritance diagram for GeomPlotter:

Public Member Functions | |
GeomPlotter (const Geometry &geom) | |
Constructor for geometry plotter. More... | |
~GeomPlotter () | |
Destructor for geometry plotter. More... | |
![]() | |
void | set_size (size_t width, size_t height) |
Set size of plot. More... | |
void | set_font_size (size_t size) |
Set font size for plot. More... | |
void | set_ranges (double xmin, double ymin, double xmax, double ymax) |
Set ranges of plot in x- and y-directions. More... | |
void | get_ranges (double &xmin, double &ymin, double &xmax, double &ymax) |
Get ranges of last plot in x- and y-directions. More... | |
void | plot_png (const std::string &filename) |
Make a plot to a PNG-file. More... | |
void | plot_eps (const std::string &filename) |
Make a plot to a EPS-file. More... | |
void | plot_pdf (const std::string &filename) |
Make a plot to a PDF-file. More... | |
void | plot_svg (const std::string &filename) |
Make a plot to a SVG-file. More... | |
![]() | |
GeomPlot (Frame &frame, const Geometry &geom) | |
Constructor for new geometry plot. More... | |
~GeomPlot () | |
Destructor for geometry plotter. More... | |
void | build_plot (void) |
Rebuild plot. More... | |
void | disable_cache (void) |
Disable plotting caches from use. More... | |
void | set_epot (const EpotField *epot) |
Set electric potential. More... | |
void | set_eqlines_manual (const std::vector< double > &pot) |
Set a vector of manual equipotential lines. More... | |
std::vector< double > | get_eqlines_manual (void) const |
Get a vector of manual equipotential lines. More... | |
void | set_eqlines_auto (uint32_t N) |
Set the number of automatic equipotential lines. More... | |
uint32_t | get_eqlines_auto (void) const |
Get the number of automatic equipotential lines. More... | |
void | set_bfield (const VectorField *bfield) |
Set magnetic field. More... | |
const VectorField * | get_bfield (void) const |
Get magnetic field. More... | |
void | set_efield (const VectorField *efield) |
Set electric field. More... | |
const VectorField * | get_efield (void) const |
Get electric field. More... | |
void | set_trajdens (const MeshScalarField *tdens) |
Set trajectory density field. More... | |
const MeshScalarField * | get_trajdens (void) const |
Get trajectory density field. More... | |
void | set_scharge (const MeshScalarField *scharge) |
Set space charge density field. More... | |
const MeshScalarField * | get_scharge (void) const |
Get space charge density field. More... | |
void | set_fieldgraph_plot (field_type_e fieldplot) |
Set field graph plotting type. More... | |
const FieldGraph * | fieldgraph (void) const |
Get field graph object. More... | |
FieldGraph * | fieldgraph (void) |
Get field graph object. More... | |
void | enable_colormap_legend (bool enable) |
Set colormap legend enable/disable. More... | |
void | set_particle_database (const ParticleDataBase *pdb) |
Set particle database used for particle plotting. More... | |
void | set_particledatabase (const ParticleDataBase *pdb) |
Set particle database used for particle plotting. More... | |
void | set_particle_div (uint32_t particle_div, uint32_t particle_offset=0) |
Set particle divisor and offset. More... | |
uint32_t | get_particle_div (void) const |
Get particle divisor. More... | |
uint32_t | get_particle_offset (void) const |
Get particle offset. More... | |
void | set_qm_discretation (bool enable) |
Set q/m particle discretation. More... | |
bool | get_qm_discretation (void) const |
Get q/m particle discretation. More... | |
void | set_mesh (bool enable) |
Set mesh plotting. More... | |
bool | get_mesh (void) const |
Get mesh plotting. More... | |
void | set_view (view_e view, int level=-1) |
Set view. More... | |
void | set_view_si (view_e view, double level) |
Set view in SI units. More... | |
view_e | get_view (void) const |
Get view. More... | |
int | get_level (void) const |
Get level of view in mesh squares. More... | |
double | get_level_si (void) const |
Get level of view in SI units. More... | |
int | vb (int i) const |
Get component i of view base vector. More... | |
void | get_vb (int vb[3]) const |
Get the view base vector. More... | |
Frame & | frame (void) |
Get a reference to the frame. More... | |
Additional Inherited Members | |
![]() | |
Plotter () | |
Constructor for plotter. More... | |
virtual | ~Plotter () |
Destructor for plotter. More... | |
![]() | |
Frame | _frame |
Detailed Description
Non-interactive geometry plotter.
This class ties together Plotter, which provides basic graphics features including frame control, and GeomPlot, which makes the geometry plot.
Constructor & Destructor Documentation
◆ GeomPlotter()
GeomPlotter::GeomPlotter | ( | const Geometry & | geom | ) |
Constructor for geometry plotter.
◆ ~GeomPlotter()
GeomPlotter::~GeomPlotter | ( | ) |
Destructor for geometry plotter.
The documentation for this class was generated from the following files: