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

Public Member Functions

void add (std::string in)
 
void flush ()
 
bool gnuplotExists ()
 
 PlotFileHandler (std::string filename)
 
void reset ()
 
void send (std::vector< std::pair< double, double >> pointBuffer)
 

Private Attributes

std::string mFileBuffer
 
std::string mFilename
 
boost::shared_ptr< GnuplotmGnuplotHandler
 

Detailed Description

Private class handling the writing to file and gnuplot output of the data

Definition at line 97 of file GMMGnuplotVisualization.h.

Constructor & Destructor Documentation

Visualization::GMMGnuplotVisualization::PlotFileHandler::PlotFileHandler ( std::string  filename)

Constructor

Parameters
filenameName of the file to write the gnuplot script into If "": Do not write to file

Definition at line 98 of file GMMGnuplotVisualization.cpp.

Member Function Documentation

void Visualization::GMMGnuplotVisualization::PlotFileHandler::add ( std::string  in)

Add string to gnuplot and file buffer

Definition at line 102 of file GMMGnuplotVisualization.cpp.

void Visualization::GMMGnuplotVisualization::PlotFileHandler::flush ( )

Flushes the gnuplot.

Definition at line 137 of file GMMGnuplotVisualization.cpp.

bool Visualization::GMMGnuplotVisualization::PlotFileHandler::gnuplotExists ( )

Checks whether gnuplot exists or not

Returns
existence of gnuplot

Definition at line 131 of file GMMGnuplotVisualization.cpp.

void Visualization::GMMGnuplotVisualization::PlotFileHandler::reset ( )

Create a clean interface to gnuplot.

Definition at line 100 of file GMMGnuplotVisualization.cpp.

void Visualization::GMMGnuplotVisualization::PlotFileHandler::send ( std::vector< std::pair< double, double >>  pointBuffer)

Send data to gnuplot and write them to file

Parameters
pointBufferThe buffer containing the point data

Definition at line 108 of file GMMGnuplotVisualization.cpp.

Member Data Documentation

std::string Visualization::GMMGnuplotVisualization::PlotFileHandler::mFileBuffer
private

Definition at line 138 of file GMMGnuplotVisualization.h.

std::string Visualization::GMMGnuplotVisualization::PlotFileHandler::mFilename
private

Definition at line 140 of file GMMGnuplotVisualization.h.

boost::shared_ptr<Gnuplot> Visualization::GMMGnuplotVisualization::PlotFileHandler::mGnuplotHandler
private

Definition at line 136 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