ns3::Gnuplot3dDataset Class Reference

Class to represent a 3D points plot. Set the line or points style using SetStyle() and set points using Add(). More...

#include <gnuplot.h>

Inheritance diagram for ns3::Gnuplot3dDataset:
Inheritance graph
[legend]
Collaboration diagram for ns3::Gnuplot3dDataset:
Collaboration graph
[legend]

List of all members.

Classes

struct  Data3d
struct  Point

Public Member Functions

 Gnuplot3dDataset (const std::string &title="Untitled")
void SetStyle (const std::string &style)
void Add (double x, double y, double z)
void AddEmptyLine ()

Static Public Member Functions

static void SetDefaultStyle (const std::string &style)

Private Types

typedef std::vector< struct PointPointSet

Static Private Attributes

static std::string m_defaultStyle = ""

Detailed Description

Class to represent a 3D points plot. Set the line or points style using SetStyle() and set points using Add().

Definition at line 252 of file gnuplot.h.


Member Typedef Documentation

typedef std::vector<struct Point> ns3::Gnuplot3dDataset::PointSet [private]

Definition at line 296 of file gnuplot.h.


Constructor & Destructor Documentation

ns3::Gnuplot3dDataset::Gnuplot3dDataset ( const std::string &  title = "Untitled"  ) 
Parameters:
title the title to be associated to this dataset.

Create an empty dataset. Usually, the dataset's title is displayed in the legend box.

Definition at line 465 of file gnuplot.cc.


Member Function Documentation

void ns3::Gnuplot3dDataset::Add ( double  x,
double  y,
double  z 
)
Parameters:
x x coord to new data point
y y coord to new data point
z z coord to new data point

Use this method to add a new 3D point

Definition at line 482 of file gnuplot.cc.

void ns3::Gnuplot3dDataset::AddEmptyLine (  ) 

Add an empty line in the data output sequence. Empty lines in the plot data break continuous lines and do other things in the output.

Definition at line 493 of file gnuplot.cc.

void ns3::Gnuplot3dDataset::SetDefaultStyle ( const std::string &  style  )  [static]

Change default style for all newly created objects.

Parameters:
style the style of plotting to use for newly created datasets.

Definition at line 471 of file gnuplot.cc.

void ns3::Gnuplot3dDataset::SetStyle ( const std::string &  style  ) 
Parameters:
style the style of plotting to use for this dataset.

Definition at line 476 of file gnuplot.cc.

References m_defaultStyle.


Member Data Documentation

std::string ns3::Gnuplot3dDataset::m_defaultStyle = "" [static, private]

Definition at line 298 of file gnuplot.h.

Referenced by SetStyle().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:04 2009 for NS-3 by  doxygen 1.6.3