Helper class for the volt_distr node. More...
#include <volt_distr_viz.h>
Public Member Functions | |
void | draw (const boost::array< double, 60 > &percents) |
Plots the voltage distribution of each channel. | |
VoltDistrViz (const std::string &file_name) | |
~VoltDistrViz () | |
Private Member Functions | |
void | init (const std::string &file_name) |
Initializes the visualizer. | |
Private Attributes | |
std::vector< boost::array< int, 4 > > | coords_ |
std::ofstream | file_ |
bool | is_ok_ |
SVGPlotter * | plotter_ |
Helper class for the volt_distr node.
Voltage distribution visualizer class. Creates a SVG image showing the voltage distribution of each channel.
Definition at line 35 of file volt_distr_viz.h.
VoltDistrViz::VoltDistrViz | ( | const std::string & | file_name | ) | [inline] |
file_name | the file path for saving the image |
Definition at line 41 of file volt_distr_viz.h.
Definition at line 21 of file volt_distr_viz.cpp.
void VoltDistrViz::draw | ( | const boost::array< double, 60 > & | percents | ) |
Plots the voltage distribution of each channel.
percents | an array of doubles, each representing what percentage of total voltages were negative for that channel |
Definition at line 89 of file volt_distr_viz.cpp.
void VoltDistrViz::init | ( | const std::string & | file_name | ) | [private] |
Initializes the visualizer.
Definition at line 29 of file volt_distr_viz.cpp.
std::vector< boost::array<int, 4> > VoltDistrViz::coords_ [private] |
Definition at line 51 of file volt_distr_viz.h.
std::ofstream VoltDistrViz::file_ [private] |
Definition at line 50 of file volt_distr_viz.h.
bool VoltDistrViz::is_ok_ [private] |
Definition at line 53 of file volt_distr_viz.h.
SVGPlotter* VoltDistrViz::plotter_ [private] |
Definition at line 49 of file volt_distr_viz.h.