Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Visualization::GMMGnuplotVisualization Class Reference

#include <GMMGnuplotVisualization.h>

Classes

class  PlotFileHandler
 

Public Member Functions

 GMMGnuplotVisualization ()
 
void plotOrientationHistogram (const std::string &filename, const std::vector< std::pair< double, double >> data, const std::string &rotaxis)
 
 ~GMMGnuplotVisualization ()
 

Private Member Functions

void addPointToBuffer (double x, double y)
 
void initPlot (const std::string &pPlotTitle, const std::string &pXLabel, const std::string &pYLabel, const std::pair< double, double > &pXRange, const std::pair< double, double > &pYRange, unsigned int samples)
 
void sendPlot ()
 

Private Attributes

PlotFileHandler mPlotFileHandler
 
std::vector< std::pair< double, double > > mPointBuffer
 

Detailed Description

Visualizes and writes histograms to file.

Definition at line 41 of file GMMGnuplotVisualization.h.

Constructor & Destructor Documentation

Visualization::GMMGnuplotVisualization::GMMGnuplotVisualization ( )

Constructor.

Definition at line 22 of file GMMGnuplotVisualization.cpp.

Visualization::GMMGnuplotVisualization::~GMMGnuplotVisualization ( )

Destructor.

Definition at line 23 of file GMMGnuplotVisualization.cpp.

Member Function Documentation

void Visualization::GMMGnuplotVisualization::addPointToBuffer ( double  x,
double  y 
)
private

Adds a new point to the list of points

Definition at line 79 of file GMMGnuplotVisualization.cpp.

void Visualization::GMMGnuplotVisualization::initPlot ( const std::string &  pPlotTitle,
const std::string &  pXLabel,
const std::string &  pYLabel,
const std::pair< double, double > &  pXRange,
const std::pair< double, double > &  pYRange,
unsigned int  samples 
)
private

Initializes the Gnuplot

Parameters
pPlotTitle- the name of the plot
pxLabel- label of the x-axis
pyLabel- label of the y-axis
pXRange- x-axis range (min, max)
pYRange- y-axis range (min, max)
samples- number of samples

Definition at line 58 of file GMMGnuplotVisualization.cpp.

void Visualization::GMMGnuplotVisualization::plotOrientationHistogram ( const std::string &  filename,
const std::vector< std::pair< double, double >>  data,
const std::string &  rotaxis 
)

Writes the data to the gnuplot file with the given name and displays the gnuplot as a histogram

Parameters
filenameName of the gnuplot file to write into.
dataData to be written. Interpreted as buckets over [-pi,pi].
rotaxisName of the axis around which the orientation is given.

Definition at line 25 of file GMMGnuplotVisualization.cpp.

void Visualization::GMMGnuplotVisualization::sendPlot ( )
private

Sends the data to the gnuplot and draws the window which contains the plot. Also writes the gnuplot data created and used to file.

Definition at line 84 of file GMMGnuplotVisualization.cpp.

Member Data Documentation

PlotFileHandler Visualization::GMMGnuplotVisualization::mPlotFileHandler
private

Definition at line 144 of file GMMGnuplotVisualization.h.

std::vector<std::pair<double, double> > Visualization::GMMGnuplotVisualization::mPointBuffer
private

Definition at line 147 of file GMMGnuplotVisualization.h.


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


asr_psm_visualizations
Author(s): Gehrung Joachim, Meißner Pascal
autogenerated on Sat Nov 9 2019 03:49:13