Structure storing the data for a 3D plot. More...
Public Member Functions | |
Data3d (const std::string &title) | |
Initializes with value from m_defaultStyle. More... | |
virtual std::string | GetCommand () const |
Returns the plot type ("plot" or "splot"). More... | |
virtual bool | IsEmpty () const |
Checks to see if this GnuplotDataset is empty. More... | |
virtual void | PrintDataFile (std::ostream &os, bool generateOneOutputFile) const |
Print the inline data file contents trailing the plot command. More... | |
virtual void | PrintExpression (std::ostream &os, bool generateOneOutputFile, unsigned int dataFileDatasetIndex, std::string &dataFileName) const |
Prints the plot description used as argument to (s)plot. More... | |
Public Member Functions inherited from ns3::GnuplotDataset::Data | |
Data (const std::string &title) | |
Initializes the reference counter to 1 and sets m_title and m_extra. More... | |
virtual | ~Data () |
Required. More... | |
Public Attributes | |
PointSet | m_pointset |
The set of points in this data set. More... | |
std::string | m_style |
The plotting style to use for this dataset. More... | |
Public Attributes inherited from ns3::GnuplotDataset::Data | |
std::string | m_extra |
Extra parameters for the plot. More... | |
unsigned int | m_references |
ref/unref counter for garbage collection More... | |
std::string | m_title |
Dataset title. More... | |
Structure storing the data for a 3D plot.
Definition at line 501 of file gnuplot.cc.
ns3::Gnuplot3dDataset::Data3d::Data3d | ( | const std::string & | title | ) |
Initializes with value from m_defaultStyle.
title | Dataset title |
Definition at line 524 of file gnuplot.cc.
|
virtual |
Returns the plot type ("plot" or "splot").
Implements ns3::GnuplotDataset::Data.
Definition at line 531 of file gnuplot.cc.
|
virtual |
Checks to see if this GnuplotDataset is empty.
Implements ns3::GnuplotDataset::Data.
Definition at line 571 of file gnuplot.cc.
|
virtual |
Print the inline data file contents trailing the plot command.
Empty for functions.
os | Output stream |
generateOneOutputFile | If true, generate only one output file. |
Implements ns3::GnuplotDataset::Data.
Definition at line 555 of file gnuplot.cc.
|
virtual |
Prints the plot description used as argument to (s)plot.
Either the function expression or a datafile description. Should include m_title and m_extra in the output.
If more than one output file is being generated, i.e. separate data and control files, then the index for the current dataset and the name for the data file are also included.
os | Output stream |
generateOneOutputFile | If true, generate only one output file. |
dataFileDatasetIndex | Dataset Index |
dataFileName | Dataset file name |
Implements ns3::GnuplotDataset::Data.
Definition at line 537 of file gnuplot.cc.
PointSet ns3::Gnuplot3dDataset::Data3d::m_pointset |
The set of points in this data set.
Definition at line 507 of file gnuplot.cc.
std::string ns3::Gnuplot3dDataset::Data3d::m_style |
The plotting style to use for this dataset.
Definition at line 505 of file gnuplot.cc.