Classes | Defines | Typedefs | Enumerations | Functions | Variables
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>
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.

Classes

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

Defines

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

Typedefs

typedef boost::shared_ptr
< GNUcurve
PSHR_Curve
typedef std::vector< PSHR_CurveVectorCurves

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)

Variables

static const char header_gnugraph_rcsid [] = "$Id: gnugraph.h,v 1.13 2006/05/16 19:24:26 gourdeau Exp $"
 RCS/CVS version.

Detailed Description

Header file for graphics definitions.

Definition in file gnugraph.h.


Define Documentation

#define GNUPLOT   "gnuplot"

Definition at line 74 of file gnugraph.h.

#define IO_COULD_NOT_OPEN_FILE   -1

Definition at line 190 of file gnugraph.h.

#define IO_DATA_EMPTY   -3

Definition at line 192 of file gnugraph.h.

#define IO_MISMATCH_ELEMENT_NBR   -4

Definition at line 193 of file gnugraph.h.

#define IO_MISMATCH_SIZE   -2

Definition at line 191 of file gnugraph.h.

#define LABELS_NBR_NO_MATCH   -3

Definition at line 104 of file gnugraph.h.

#define NCURVESMAX   10

Definition at line 119 of file gnugraph.h.

#define OUT_OF_MEMORY   -1

Definition at line 102 of file gnugraph.h.

#define PROBLEM_FILE_READING   -5

Definition at line 194 of file gnugraph.h.

#define WANT_FSTREAM   /* include.h will get fstream fns */

Definition at line 86 of file gnugraph.h.

#define WANT_MATH   /* include.h will get math fns */

Definition at line 87 of file gnugraph.h.

#define WANT_STREAM   /* include.h will get stream fns */

Definition at line 85 of file gnugraph.h.

#define WANT_STRING   /* include.h will get string fns */

Definition at line 84 of file gnugraph.h.

#define X_Y_DATA_NO_MATCH   -2

Definition at line 103 of file gnugraph.h.


Typedef Documentation

typedef boost::shared_ptr<GNUcurve> PSHR_Curve

Definition at line 141 of file gnugraph.h.

Definition at line 142 of file gnugraph.h.


Enumeration Type Documentation

Enumerator:
LINES 
DATAPOINTS 
LINESPOINTS 
IMPULSES 
DOTS 
STEPS 
BOXES 

Definition at line 108 of file gnugraph.h.


Function Documentation

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 
)

Definition at line 783 of file gnugraph.cpp.

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 
)

Definition at line 824 of file gnugraph.cpp.

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 
)

Variable Documentation

const char header_gnugraph_rcsid[] = "$Id: gnugraph.h,v 1.13 2006/05/16 19:24:26 gourdeau Exp $" [static]

RCS/CVS version.

Definition at line 55 of file gnugraph.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


kni
Author(s): Neuronics AG (see AUTHORS.txt); ROS wrapper by Martin Günther
autogenerated on Tue May 28 2013 14:52:55