Public Member Functions | Private Member Functions | Private Attributes
VoltDistrViz Class Reference

Helper class for the volt_distr node. More...

#include <volt_distr_viz.h>

List of all members.

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_

Detailed Description

Helper class for the volt_distr node.

Voltage distribution visualizer class. Creates a SVG image showing the voltage distribution of each channel.

Author:
Jonathan Hasenzahl

Definition at line 35 of file volt_distr_viz.h.


Constructor & Destructor Documentation

VoltDistrViz::VoltDistrViz ( const std::string &  file_name) [inline]
Parameters:
file_namethe 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.


Member Function Documentation

void VoltDistrViz::draw ( const boost::array< double, 60 > &  percents)

Plots the voltage distribution of each channel.

Parameters:
percentsan 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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


volt_distr
Author(s): Jonathan Hasenzahl
autogenerated on Sun Jan 5 2014 11:12:31