Non-interactive fielddiag plotter. More...
#include <fielddiagplotter.hpp>
Public Member Functions | |
FieldDiagPlotter (const Geometry *geom) | |
Constructor for field diagnostic plotter. | |
virtual | ~FieldDiagPlotter () |
Destructor for field diagnostic plotter. | |
![]() | |
void | set_size (size_t width, size_t height) |
Set size of plot. | |
void | set_font_size (size_t size) |
Set font size for plot. | |
void | set_ranges (double xmin, double ymin, double xmax, double ymax) |
Set ranges of plot in x- and y-directions. | |
void | plot_png (const std::string &filename) |
Make a plot to a PNG-file. | |
void | plot_eps (const std::string &filename) |
Make a plot to a EPS-file. | |
void | plot_pdf (const std::string &filename) |
Make a plot to a PDF-file. | |
void | plot_svg (const std::string &filename) |
Make a plot to a SVG-file. | |
![]() | |
FieldDiagPlot (Frame *frame, const Geometry *geom) | |
Constructor for field diagnostics plot. | |
~FieldDiagPlot () | |
Destructor for field diagnostics plot. | |
void | set_epot (const ScalarField *epot) |
Add pointer to electric potential. | |
void | set_efield (const VectorField *efield) |
Add pointer to electric field. | |
void | set_scharge (const ScalarField *scharge) |
Add pointer to space charge density map. | |
void | set_bfield (const VectorField *bfield) |
Add pointer to magnetic field. | |
void | set_coordinates (size_t N, const Vec3D &x1, const Vec3D &x2) |
Set coordinates for field diagnostics. | |
const Vec3D & | start (void) |
Get start coordinates of diagnostic line. | |
const Vec3D & | end (void) |
Get end coordinates of diagnostic line. | |
const size_t & | N (void) |
Get number of steps on diagnostic line. | |
void | set_diagnostic (const field_diag_type_e diag[2], const field_loc_type_e loc[2]) |
Set field and location plot types. | |
const field_diag_type_e & | get_diagnostic_type (int i) |
Get diagnostic type for y-axis i. | |
const field_loc_type_e & | get_location_type (int i) |
Get location type for x-axis i. | |
void | export_data (const std::string &filename) const |
Export plotted data as ASCII. | |
void | build_plot (void) |
Rebuild plot. | |
Additional Inherited Members | |
![]() | |
Plotter () | |
Constructor for plotter. | |
virtual | ~Plotter () |
Destructor for plotter. | |
![]() | |
Frame | _frame |
Non-interactive fielddiag plotter.
This class ties together Plotter, which provides basic graphics features including frame control, and FieldDiagPlot, which makes the fielddiag plot.
FieldDiagPlotter::FieldDiagPlotter | ( | const Geometry * | geom | ) |
Constructor for field diagnostic plotter.
|
virtual |
Destructor for field diagnostic plotter.