3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Enumerations | Functions
plot.h File Reference
#include "backend/filter.h"
#include "common/array2D.h"
#include <map>
#include <vector>
#include <utility>
#include "../config.h"
#include <mgl2/mgl.h>
Include dependency graph for plot.h:
This graph shows which files directly or indirectly include this file:

Classes

class  PlotRegion
 Data class for holding info about non-overlapping. More...
 
class  RegionGroup
 
struct  OVERLAY_DATA
 
class  PlotOverlays
 Thse are 1D-stem style overlays that can be used. More...
 
class  PlotBase
 Base class for data plotting. More...
 
class  Plot1D
 1D Function f(x) More...
 
class  Plot2DFunc
 2D function, f(x,y). More...
 
class  Plot2DScatter
 2D scatter plot, {x,y}_i More...
 
class  PlotWrapper
 

Enumerations

enum  {
  PLOT_LINE_LINES =0, PLOT_LINE_BARS, PLOT_LINE_STEPS, PLOT_LINE_STEM,
  PLOT_LINE_POINTS, PLOT_LINE_NONE, PLOT_2D_DENS, PLOT_2D_SCATTER,
  PLOT_TYPE_ENUM_END
}
 
enum  {
  PLOT_MODE_1D, PLOT_MODE_2D, PLOT_MODE_COLUMN, PLOT_MODE_MIXED,
  PLOT_MODE_ENUM_END
}
 

Functions

std::string plotString (unsigned int plotMode)
 Return a human readable string for a given plot type. More...
 
std::string plotErrmodeString (unsigned int errMode)
 Return a human readable string for the plot error mode. More...
 
unsigned int plotID (const std::string &plotString)
 Return the plot type given a human readable string. More...
 
unsigned int plotErrmodeID (const std::string &s)
 Return the error mode type, given the human readable string. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PLOT_LINE_LINES 
PLOT_LINE_BARS 
PLOT_LINE_STEPS 
PLOT_LINE_STEM 
PLOT_LINE_POINTS 
PLOT_LINE_NONE 
PLOT_2D_DENS 
PLOT_2D_SCATTER 
PLOT_TYPE_ENUM_END 

◆ anonymous enum

anonymous enum
Enumerator
PLOT_MODE_1D 
PLOT_MODE_2D 
PLOT_MODE_COLUMN 
PLOT_MODE_MIXED 
PLOT_MODE_ENUM_END 

Function Documentation

◆ plotErrmodeID()

unsigned int plotErrmodeID ( const std::string &  s)

Return the error mode type, given the human readable string.

References ASSERT, errModeStrings, and PLOT_ERROR_ENDOFENUM.

Referenced by ProfileFilter::setProperty().

Here is the caller graph for this function:

◆ plotErrmodeString()

std::string plotErrmodeString ( unsigned int  errMode)

Return a human readable string for the plot error mode.

References errModeStrings, and plotID().

Referenced by ProfileFilter::getProperties().

Here is the caller graph for this function:

◆ plotID()

unsigned int plotID ( const std::string &  plotString)

◆ plotString()

std::string plotString ( unsigned int  plotMode)

Return a human readable string for a given plot type.

References ASSERT, PLOT_TYPE_ENUM_END, traceStyleStrings, and TRANS.

Referenced by SpectrumPlotFilter::getProperties(), and ProfileFilter::getProperties().

Here is the caller graph for this function: