Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ROBOOP::Plot2d Class Reference

#include <gnugraph.h>

Inheritance diagram for ROBOOP::Plot2d:

List of all members.


Detailed Description

2d plot object.

Definition at line 134 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 std::string &t)
 Set the title.
void setxlabel (const std::string &t)
 Set the x axis name.
void setylabel (const std::string &t)
 Set the y axis name.
void addcurve (const Matrix &data, const std::string &label="", int type=LINES)
 Add a curve on the graphic.
void gnuplot (void)
 Creates a GNUplot graphic.
void addcommand (const std::string &gcom)
 Add GNUplot command.

Private Attributes

std::string title
 Graph title.
std::string xlabel
 Graph x axis.
std::string ylabel
 Graph y axis.
std::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 136 of file gnugraph.cpp.

ROBOOP::Plot2d::~Plot2d ( void   ) 

Destructor.

Definition at line 152 of file gnugraph.cpp.


Member Function Documentation

void ROBOOP::Plot2d::dump ( void   ) 

Method to dump the content of Plot2d to stdout.

Definition at line 320 of file gnugraph.cpp.

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

Set the title.

Definition at line 302 of file gnugraph.cpp.

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

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

Set the x axis name.

Definition at line 308 of file gnugraph.cpp.

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

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

Set the y axis name.

Definition at line 314 of file gnugraph.cpp.

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

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

Add a curve on the graphic.

Definition at line 284 of file gnugraph.cpp.

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

void ROBOOP::Plot2d::gnuplot ( void   ) 

Creates a GNUplot graphic.

Definition at line 159 of file gnugraph.cpp.

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

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

Add GNUplot command.

Definition at line 296 of file gnugraph.cpp.


Member Data Documentation

std::string ROBOOP::Plot2d::title [private]

Graph title.

Definition at line 136 of file gnugraph.h.

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

std::string ROBOOP::Plot2d::xlabel [private]

Graph x axis.

Definition at line 136 of file gnugraph.h.

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

std::string ROBOOP::Plot2d::ylabel [private]

Graph y axis.

Definition at line 136 of file gnugraph.h.

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

std::string ROBOOP::Plot2d::gnucommand [private]

GNU plot command.

Definition at line 139 of file gnugraph.h.

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

int ROBOOP::Plot2d::ncurves [private]

Number of curves.

Definition at line 140 of file gnugraph.h.

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

Pointer to GNUcurve object.

Definition at line 141 of file gnugraph.h.

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


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

ROBOOP v1.21a
Generated Thu Nov 22 00:51:35 2007 by Doxygen 1.5.4