A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::Gnuplot3dDataset Class Reference

Class to represent a 3D points plot. More...

#include "gnuplot.h"

+ Inheritance diagram for ns3::Gnuplot3dDataset:
+ Collaboration diagram for ns3::Gnuplot3dDataset:

Classes

struct  Data3d
 Structure storing the data for a 3D plot. More...
 
struct  Point
 A point in a 3D plot. More...
 

Public Member Functions

 Gnuplot3dDataset (const std::string &title="Untitled")
 
 Gnuplot3dDataset (const std::string &title="Untitled")
 
void Add (double x, double y, double z)
 
void Add (double x, double y, double z)
 
void AddEmptyLine ()
 Add an empty line in the data output sequence.
 
void AddEmptyLine ()
 Add an empty line in the data output sequence.
 
void SetStyle (const std::string &style)
 
void SetStyle (const std::string &style)
 
- Public Member Functions inherited from ns3::GnuplotDataset
 GnuplotDataset (const GnuplotDataset &original)
 Reference-counting copy constructor.
 
 GnuplotDataset (const GnuplotDataset &original)
 Reference-counting copy constructor.
 
 ~GnuplotDataset ()
 Reference-counting destructor.
 
 ~GnuplotDataset ()
 Reference-counting destructor.
 
GnuplotDatasetoperator= (const GnuplotDataset &original)
 Reference-counting assignment operator.
 
GnuplotDatasetoperator= (const GnuplotDataset &original)
 Reference-counting assignment operator.
 
void SetExtra (const std::string &extra)
 Add extra formatting parameters to this dataset.
 
void SetExtra (const std::string &extra)
 Add extra formatting parameters to this dataset.
 
void SetTitle (const std::string &title)
 Change line title.
 
void SetTitle (const std::string &title)
 Change line title.
 

Static Public Member Functions

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

Private Types

typedef std::vector< PointPointSet
 The set of points in the dataset.
 
typedef std::vector< PointPointSet
 The set of points in the dataset.
 

Static Private Attributes

static std::string m_defaultStyle = ""
 default plot style
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::GnuplotDataset
 GnuplotDataset (Data *data)
 Called by constructors of derived classes.
 
 GnuplotDataset (Data *data)
 Called by constructors of derived classes.
 
- Protected Attributes inherited from ns3::GnuplotDataset
Datam_data
 Reference counted data object.
 
- 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 261 of file gnuplot.h.

Member Typedef Documentation

◆ PointSet [1/2]

The set of points in the dataset.

Definition at line 311 of file gnuplot.h.

◆ PointSet [2/2]

The set of points in the dataset.

Definition at line 311 of file gnuplot_new.h.

Constructor & Destructor Documentation

◆ Gnuplot3dDataset() [1/2]

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

◆ Gnuplot3dDataset() [2/2]

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.

Member Function Documentation

◆ Add() [1/2]

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

References data, ns3::Gnuplot3dDataset::Point::empty, and ns3::GnuplotDataset::m_data.

◆ Add() [2/2]

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

◆ AddEmptyLine() [1/2]

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

References data, ns3::Gnuplot3dDataset::Point::empty, and ns3::GnuplotDataset::m_data.

◆ AddEmptyLine() [2/2]

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.

◆ SetDefaultStyle() [1/2]

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

References ns3::Create(), and m_defaultStyle.

+ Here is the call graph for this function:

◆ SetDefaultStyle() [2/2]

static 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.

◆ SetStyle() [1/2]

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

Definition at line 608 of file gnuplot.cc.

References ns3::Create(), and ns3::GnuplotDataset::m_data.

Referenced by TestProbabilistic().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetStyle() [2/2]

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

Member Data Documentation

◆ m_defaultStyle

static std::string ns3::Gnuplot3dDataset::m_defaultStyle = ""
staticprivate

default plot style

Definition at line 313 of file gnuplot.h.

Referenced by SetDefaultStyle().


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