Homepage Demos Overview Downloads Tutorials Reference
Credits

gnugraph.h File Reference


Detailed Description

Header file for graphics definitions.

Definition in file gnugraph.h.

#include <sys/types.h>
#include <unistd.h>
#include "robot.h"
#include <sys/stat.h>
#include <sstream>
#include <vector>

Include dependency graph for gnugraph.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ROBOOP

Classes

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

Defines

#define GNUPLOT   "gnuplot"
#define OUT_OF_MEMORY   -1
#define X_Y_DATA_NO_MATCH   -2
#define LABELS_NBR_NO_MATCH   -3
#define LINES   0
#define POINTS   1
#define LINESPOINTS   2
#define IMPULSES   3
#define DOTS   4
#define STEPS   5
#define BOXES   6
#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

Functions

short ROBOOP::set_plot2d (const char *title_graph, const char *x_axis_title, const char *y_axis_title, const char *label, int type, const Matrix &xdata, const Matrix &ydata, int start_y, int end_y)
short ROBOOP::set_plot2d (const char *title_graph, const char *x_axis_title, const char *y_axis_title, const vector< char * > label, int type, const Matrix &xdata, const Matrix &ydata, const vector< int > &data_select)


Define Documentation

#define BOXES   6
 

Definition at line 105 of file gnugraph.h.

#define DOTS   4
 

Definition at line 103 of file gnugraph.h.

#define GNUPLOT   "gnuplot"
 

Definition at line 62 of file gnugraph.h.

Referenced by ROBOOP::Plot2d::gnuplot().

#define IMPULSES   3
 

Definition at line 102 of file gnugraph.h.

#define IO_COULD_NOT_OPEN_FILE   -1
 

Definition at line 154 of file gnugraph.h.

Referenced by ROBOOP::IO_matrix_file::read(), ROBOOP::IO_matrix_file::read_all(), and ROBOOP::IO_matrix_file::write().

#define IO_DATA_EMPTY   -3
 

Definition at line 156 of file gnugraph.h.

Referenced by ROBOOP::IO_matrix_file::write().

#define IO_MISMATCH_ELEMENT_NBR   -4
 

Definition at line 157 of file gnugraph.h.

#define IO_MISMATCH_SIZE   -2
 

Definition at line 155 of file gnugraph.h.

Referenced by ROBOOP::IO_matrix_file::read_all().

#define LABELS_NBR_NO_MATCH   -3
 

Definition at line 86 of file gnugraph.h.

Referenced by ROBOOP::set_plot2d().

#define LINES   0
 

Definition at line 99 of file gnugraph.h.

Referenced by ROBOOP::GNUcurve::GNUcurve().

#define LINESPOINTS   2
 

Definition at line 101 of file gnugraph.h.

#define NCURVESMAX   10
 

Definition at line 107 of file gnugraph.h.

Referenced by ROBOOP::Plot2d::addcurve(), and ROBOOP::Plot2d::Plot2d().

#define OUT_OF_MEMORY   -1
 

Definition at line 84 of file gnugraph.h.

Referenced by ROBOOP::set_plot2d().

#define POINTS   1
 

Definition at line 100 of file gnugraph.h.

Referenced by ROBOOP::Plot_file::graph().

#define PROBLEM_FILE_READING   -5
 

Definition at line 158 of file gnugraph.h.

Referenced by ROBOOP::Plot_file::graph().

#define STEPS   5
 

Definition at line 104 of file gnugraph.h.

#define X_Y_DATA_NO_MATCH   -2
 

Definition at line 85 of file gnugraph.h.

Referenced by ROBOOP::Plot_file::graph(), and ROBOOP::set_plot2d().


ROBOOP v1.21a
Generated Tue Aug 16 16:32:17 2005 by Doxygen 1.4.4