ROBOOP, A Robotics Object Oriented Package in C++
gnugraph.h File Reference

Header file for graphics definitions. More...

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdexcept>
#include <boost/shared_ptr.hpp>
#include "newmatap.h"
#include "newmatio.h"
#include <sys/stat.h>
#include <sstream>
#include <vector>

Go to the source code of this file.

Classes

class  GNUcurve
 Object for one curve. More...
 
class  Plot2d
 2d plot object. More...
 
class  Plot3d
 3d plot object. More...
 
class  IO_matrix_file
 Read and write data at every iterations in a file. More...
 
class  Plot_file
 Creates a graphic from a data file. More...
 

Macros

#define GNUPLOT   "gnuplot"
 
#define WANT_STRING   /* include.h will get string fns */
 
#define WANT_STREAM   /* include.h will get stream fns */
 
#define WANT_FSTREAM   /* include.h will get fstream fns */
 
#define WANT_MATH   /* include.h will get math fns */
 
#define OUT_OF_MEMORY   -1
 
#define X_Y_DATA_NO_MATCH   -2
 
#define LABELS_NBR_NO_MATCH   -3
 
#define NCURVESMAX   10
 
#define IO_COULD_NOT_OPEN_FILE   -1
 
#define IO_MISMATCH_SIZE   -2
 
#define IO_DATA_EMPTY   -3
 
#define IO_MISMATCH_ELEMENT_NBR   -4
 
#define PROBLEM_FILE_READING   -5
 

Typedefs

typedef boost::shared_ptr
< GNUcurve
PSHR_Curve
 
typedef std::vector< PSHR_Curve > VectorCurves
 

Enumerations

enum  LineType_en {
  LINES, DATAPOINTS, LINESPOINTS, IMPULSES,
  DOTS, STEPS, BOXES
}
 

Functions

short set_plot2d (const char *title_graph, const char *x_axis_title, const char *y_axis_title, const char *label, LineType_en enLineType, const Matrix &xdata, const Matrix &ydata, int start_y, int end_y)
 
short set_plot2d (const char *title_graph, const char *x_axis_title, const char *y_axis_title, const vector< char * > label, LineType_en enLineType, const Matrix &xdata, const Matrix &ydata, const vector< int > &data_select)
 
short set_plot3d (const Matrix &xyz, const std::string &title_graph, const std::string &x_axis_title, const std::string &y_axis_title, const std::string &z_axis_title)
 

Detailed Description

Header file for graphics definitions.

Definition in file gnugraph.h.