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

2D scatter plot, {x,y}_i More...

#include <plot.h>

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

Public Member Functions

 Plot2DScatter ()
 
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 std::vector< std::pair< float, float > > &pts)
 
void setData (const std::vector< std::pair< float, float > > &pts, const std::vector< float > &intens)
 
- 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
 

Public Attributes

bool scatterIntensityLog
 
- 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
 

Additional Inherited Members

- 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 scatter plot, {x,y}_i

Constructor & Destructor Documentation

◆ Plot2DScatter()

Plot2DScatter::Plot2DScatter ( )

Member Function Documentation

◆ clone()

PlotBase * Plot2DScatter::clone ( ) const
virtual

Implements PlotBase.

◆ drawPlot()

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

Implements PlotBase.

References mglColourCode().

◆ getRawData()

void Plot2DScatter::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.

References TRANS.

◆ isEmpty()

bool Plot2DScatter::isEmpty ( ) const
virtual

Implements PlotBase.

◆ setData() [1/2]

void Plot2DScatter::setData ( const std::vector< std::pair< float, float > > &  pts)

Referenced by Plot2DScatter(), and VisController::updateScene().

Here is the caller graph for this function:

◆ setData() [2/2]

void Plot2DScatter::setData ( const std::vector< std::pair< float, float > > &  pts,
const std::vector< float > &  intens 
)

Member Data Documentation

◆ scatterIntensityLog

bool Plot2DScatter::scatterIntensityLog

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