|
3Depict
|
Base class for data plotting. More...
#include <plot.h>


Public Member Functions | |
| PlotBase () | |
| virtual | ~PlotBase () |
| virtual PlotBase * | clone () const =0 |
| unsigned int | getType () const |
| unsigned int | getMode () const |
| virtual bool | isEmpty () const =0 |
| virtual void | drawPlot (mglGraph *graph) const =0 |
| virtual void | getBounds (float &xMin, float &xMax, float &yMin, float &yMax) const |
| Return the true data bounds for this plot. More... | |
| virtual void | getRawData (std::vector< std::vector< float > > &f, std::vector< std::string > &labels) const =0 |
| void | setStrings (const std::string &x, const std::string &y, const std::string &t) |
| void | setColour (float rNew, float gNew, float bNew) |
| void | setTraceStyle (unsigned int newStyle) |
| std::string | getXLabel () const |
| std::string | getTitle () const |
| std::string | getYLabel () const |
| unsigned int | getPlotMode () const |
| void | setPlotMode (unsigned int newMode) |
| void | getColour (float &r, float &g, float &b) const |
Public Attributes | |
| float | minX |
| Bounding box for plot. More... | |
| float | maxX |
| float | minY |
| float | maxY |
| bool | visible |
| Is trace visible? More... | |
| bool | titleAsRawDataLabel |
| Use the plot title for Y data label when exporting raw data. More... | |
| const void * | parentObject |
| Pointer to some constant object that generated this plot. More... | |
| unsigned int | parentPlotIndex |
| integer to show which of the n plots that the parent generated More... | |
| RegionGroup | regionGroup |
Protected Member Functions | |
| void | copyBase (PlotBase *target) const |
Static Protected Member Functions | |
| static void | computeDataBounds (const std::vector< float > &d, float &minV, float &maxV) |
| static void | computeDataBounds (const std::vector< float > &d, const std::vector< float > &errorBar, float &minV, float &maxV) |
| static void | computeDataBounds (const std::vector< std::pair< float, float > > &d, float &minVx, float &maxVx, float &minVy, float &maxVy) |
Protected Attributes | |
| unsigned int | plotMode |
| Type of plot. More... | |
| std::string | xLabel |
| xaxis label More... | |
| std::string | yLabel |
| y axis label More... | |
| std::string | title |
| Plot title. More... | |
| float | r |
| float | g |
| float | b |
| unsigned int | traceStyle |
Base class for data plotting.
| PlotBase::PlotBase | ( | ) |
|
inlinevirtual |
|
pure virtual |
Implemented in Plot2DScatter, Plot2DFunc, and Plot1D.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
References b, g, maxX, maxY, minX, minY, parentObject, parentPlotIndex, plotMode, r, regionGroup, title, titleAsRawDataLabel, traceStyle, visible, xLabel, and yLabel.
|
pure virtual |
Implemented in Plot2DScatter, Plot2DFunc, and Plot1D.
|
virtual |
Return the true data bounds for this plot.
References ASSERT.
| void PlotBase::getColour | ( | float & | r, |
| float & | g, | ||
| float & | b | ||
| ) | const |
| unsigned int PlotBase::getMode | ( | ) | const |
References ASSERT, and PLOT_MODE_ENUM_END.
Referenced by PlotWrapper::drawPlot().

|
inline |
|
pure virtual |
Implemented in Plot2DScatter, Plot2DFunc, and Plot1D.
|
inline |
| unsigned int PlotBase::getType | ( | ) | const |
References ASSERT, and PLOT_TYPE_ENUM_END.
|
inline |
|
inline |
|
pure virtual |
Implemented in Plot2DScatter, Plot2DFunc, and Plot1D.
| void PlotBase::setColour | ( | float | rNew, |
| float | gNew, | ||
| float | bNew | ||
| ) |
References ASSERT.
Referenced by VisController::updateScene().

|
inline |
| void PlotBase::setStrings | ( | const std::string & | x, |
| const std::string & | y, | ||
| const std::string & | t | ||
| ) |
|
inline |
|
protected |
Referenced by copyBase().
|
protected |
Referenced by copyBase().
| float PlotBase::maxX |
Referenced by copyBase().
| float PlotBase::maxY |
Referenced by copyBase().
| float PlotBase::minX |
Bounding box for plot.
Referenced by copyBase().
| float PlotBase::minY |
Referenced by copyBase().
| const void* PlotBase::parentObject |
Pointer to some constant object that generated this plot.
Referenced by copyBase(), and VisController::updateScene().
| unsigned int PlotBase::parentPlotIndex |
integer to show which of the n plots that the parent generated
Referenced by copyBase(), and VisController::updateScene().
|
protected |
Type of plot.
Referenced by copyBase().
|
protected |
Referenced by copyBase().
| RegionGroup PlotBase::regionGroup |
Referenced by copyBase(), PlotWrapper::getRegions(), PlotWrapper::switchOutRegionParent(), and VisController::updateScene().
|
protected |
Plot title.
Referenced by copyBase().
| bool PlotBase::titleAsRawDataLabel |
Use the plot title for Y data label when exporting raw data.
Referenced by copyBase(), and VisController::updateScene().
|
protected |
Referenced by copyBase().
| bool PlotBase::visible |
Is trace visible?
Referenced by copyBase(), PlotWrapper::drawPlot(), and PlotWrapper::getRegions().
|
protected |
xaxis label
Referenced by copyBase().
|
protected |
y axis label
Referenced by copyBase().
1.8.13