3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Plot2DFunc Class Reference

2D function, f(x,y). More...

#include <plot.h>

Inheritance diagram for Plot2DFunc:
Inheritance graph
[legend]
Collaboration diagram for Plot2DFunc:
Collaboration graph
[legend]

Public Member Functions

 Plot2DFunc ()
 
virtual bool isEmpty () const
 
virtual PlotBaseclone () const
 
virtual void drawPlot (mglGraph *graph) const
 
void getRawData (std::vector< std::vector< float > > &rawData, std::vector< std::string > &labels) const
 Retrieve the raw data associated with the currently visible plots. More...
 
void setData (const Array2D< float > &a, float xLow, float xHigh, float yLow, float yHigh)
 
- Public Member Functions inherited from PlotBase
 PlotBase ()
 
virtual ~PlotBase ()
 
unsigned int getType () const
 
unsigned int getMode () const
 
virtual void getBounds (float &xMin, float &xMax, float &yMin, float &yMax) const
 Return the true data bounds for this plot. More...
 
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
 

Additional Inherited Members

- Public Attributes inherited from PlotBase
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 inherited from PlotBase
void copyBase (PlotBase *target) const
 
- Static Protected Member Functions inherited from PlotBase
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 inherited from PlotBase
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
 

Detailed Description

2D function, f(x,y).

Constructor & Destructor Documentation

◆ Plot2DFunc()

Plot2DFunc::Plot2DFunc ( )

References PLOT_2D_DENS, and PLOT_MODE_2D.

Member Function Documentation

◆ clone()

PlotBase * Plot2DFunc::clone ( ) const
virtual

Implements PlotBase.

◆ drawPlot()

void Plot2DFunc::drawPlot ( mglGraph *  graph) const
virtual

Implements PlotBase.

Referenced by PlotWrapper::drawPlot().

Here is the caller graph for this function:

◆ getRawData()

void Plot2DFunc::getRawData ( std::vector< std::vector< float > > &  rawData,
std::vector< std::string > &  labels 
) const
virtual

Retrieve the raw data associated with the currently visible plots.

Implements PlotBase.

◆ isEmpty()

bool Plot2DFunc::isEmpty ( ) const
virtual

Implements PlotBase.

◆ setData()

void Plot2DFunc::setData ( const Array2D< float > &  a,
float  xLow,
float  xHigh,
float  yLow,
float  yHigh 
)

Referenced by VisController::updateScene().

Here is the caller graph for this function:

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