A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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:

Classes

struct  Data3d
 
struct  Point
 

Public Member Functions

 Gnuplot3dDataset (const std::string &title="Untitled")
 
void Add (double x, double y, double z)
 
void AddEmptyLine ()
 
void SetStyle (const std::string &style)
 
- Public Member Functions inherited from ns3::GnuplotDataset
 GnuplotDataset (const GnuplotDataset &original)
 
 ~GnuplotDataset ()
 
GnuplotDatasetoperator= (const GnuplotDataset &original)
 
void SetExtra (const std::string &extra)
 Add extra formatting parameters to this dataset. More...
 
void SetTitle (const std::string &title)
 Change line title. More...
 

Static Public Member Functions

static void SetDefaultStyle (const std::string &style)
 
- Static Public Member Functions inherited from ns3::GnuplotDataset
static void SetDefaultExtra (const std::string &extra)
 Change extra formatting style parameters for newly created objects. More...
 

Private Types

typedef std::vector< struct PointPointSet
 

Static Private Attributes

static std::string m_defaultStyle = ""
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::GnuplotDataset
 GnuplotDataset (struct Data *data)
 
- Protected Attributes inherited from ns3::GnuplotDataset
struct Datam_data
 
- Static Protected Attributes inherited from ns3::GnuplotDataset
static std::string m_defaultExtra = ""
 Extra gnuplot parameters set on every newly created dataset.
 

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 254 of file gnuplot.h.

Constructor & Destructor Documentation

ns3::Gnuplot3dDataset::Gnuplot3dDataset ( const std::string &  title = "Untitled")
Parameters
titlethe 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 468 of file gnuplot.cc.

Member Function Documentation

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

Use this method to add a new 3D point

Definition at line 485 of file gnuplot.cc.

References ns3::GnuplotDataset::m_data.

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 496 of file gnuplot.cc.

References ns3::GnuplotDataset::m_data.

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

Change default style for all newly created objects.

Parameters
stylethe style of plotting to use for newly created datasets.

Definition at line 474 of file gnuplot.cc.

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

Definition at line 479 of file gnuplot.cc.

References ns3::GnuplotDataset::m_data.


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