Homepage Demos Overview Downloads Tutorials Reference
Credits

ROBOOP::Plot2d Class Reference

#include <gnugraph.h>

Inheritance diagram for ROBOOP::Plot2d:

Inheritance graph
[legend]
List of all members.

Detailed Description

2d plot object.

Definition at line 135 of file gnugraph.h.

Public Member Functions

 Plot2d (void)
 Constructor.
 ~Plot2d (void)
 Destructor.
void dump (void)
 Method to dump the content of Plot2d to stdout.
void settitle (const string &t)
 Set the title.
void setxlabel (const string &t)
 Set the x axis name.
void setylabel (const string &t)
 Set the y axis name.
void addcurve (const Matrix &data, const string &label="", int type=LINES)
 Add a curve on the graphic.
void gnuplot (void)
 Creates a GNUplot graphic.
void addcommand (const string &gcom)
 Add GNUplot command.

Private Attributes

string title
 Graph title.
string xlabel
 Graph x axis.
string ylabel
 Graph y axis.
string gnucommand
 GNU plot command.
int ncurves
 Number of curves.
GNUcurvecurves
 Pointer to GNUcurve object.


Constructor & Destructor Documentation

ROBOOP::Plot2d::Plot2d void   ) 
 

Constructor.

Definition at line 134 of file gnugraph.cpp.

ROBOOP::Plot2d::~Plot2d void   ) 
 

Destructor.

Definition at line 150 of file gnugraph.cpp.


Member Function Documentation

void ROBOOP::Plot2d::addcommand const string &  gcom  ) 
 

Add GNUplot command.

Definition at line 295 of file gnugraph.cpp.

void ROBOOP::Plot2d::addcurve const Matrix data,
const string &  label = "",
int  type = LINES
 

Add a curve on the graphic.

Definition at line 283 of file gnugraph.cpp.

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

void ROBOOP::Plot2d::dump void   ) 
 

Method to dump the content of Plot2d to stdout.

Definition at line 319 of file gnugraph.cpp.

void ROBOOP::Plot2d::gnuplot void   ) 
 

Creates a GNUplot graphic.

Definition at line 157 of file gnugraph.cpp.

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

void ROBOOP::Plot2d::settitle const string &  t  ) 
 

Set the title.

Definition at line 301 of file gnugraph.cpp.

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

void ROBOOP::Plot2d::setxlabel const string &  t  ) 
 

Set the x axis name.

Definition at line 307 of file gnugraph.cpp.

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

void ROBOOP::Plot2d::setylabel const string &  t  ) 
 

Set the y axis name.

Definition at line 313 of file gnugraph.cpp.

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


Member Data Documentation

GNUcurve* ROBOOP::Plot2d::curves [private]
 

Pointer to GNUcurve object.

Definition at line 142 of file gnugraph.h.

Referenced by addcurve(), dump(), gnuplot(), and Plot2d().

string ROBOOP::Plot2d::gnucommand [private]
 

GNU plot command.

Definition at line 140 of file gnugraph.h.

Referenced by addcommand(), dump(), and gnuplot().

int ROBOOP::Plot2d::ncurves [private]
 

Number of curves.

Definition at line 141 of file gnugraph.h.

Referenced by addcurve(), and Plot2d().

string ROBOOP::Plot2d::title [private]
 

Graph title.

Definition at line 138 of file gnugraph.h.

Referenced by dump(), gnuplot(), and settitle().

string ROBOOP::Plot2d::xlabel [private]
 

Graph x axis.

Definition at line 138 of file gnugraph.h.

Referenced by dump(), gnuplot(), and setxlabel().

string ROBOOP::Plot2d::ylabel [private]
 

Graph y axis.

Definition at line 138 of file gnugraph.h.

Referenced by dump(), gnuplot(), and setylabel().


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

ROBOOP v1.21a
Generated Tue Oct 19 14:18:30 2004 by Doxygen 1.3.9.1