3Depict
|
#include "plot.h"
#include "common/stringFuncs.h"
#include "common/translation.h"
#include <mgl2/canvas_wnd.h>
Functions | |
bool | mglFloatTooClose (float a, float b) |
std::wstring | strToWStr (const std::string &s) |
std::string | wstrToStr (const std::wstring &s) |
std::string | mglColourCode (float r, float g, float b) |
string | plotString (unsigned int plotMode) |
Return a human readable string for a given plot type. 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... | |
string | plotErrmodeString (unsigned int plotID) |
Return a human readable string for the plot error mode. More... | |
Variables | |
const char * | errModeStrings [] |
Plot error bar estimation strings. More... | |
const char * | traceStyleStrings [] |
const float | AXIS_MIN_TOLERANCE =10*sqrtf(std::numeric_limits<float>::epsilon()) |
std::string mglColourCode | ( | float | r, |
float | g, | ||
float | b | ||
) |
References ASSERT, ColourRGBA::rgbString(), and uppercase().
Referenced by PlotOverlays::draw(), Plot1D::drawPlot(), Plot2DScatter::drawPlot(), PlotWrapper::drawPlot(), and Plot1D::drawRegions().
bool mglFloatTooClose | ( | float | a, |
float | b | ||
) |
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().
string plotErrmodeString | ( | unsigned int | plotID | ) |
Return a human readable string for the plot error mode.
References errModeStrings, and plotID().
Referenced by ProfileFilter::getProperties().
unsigned int plotID | ( | const std::string & | plotString | ) |
Return the plot type given a human readable string.
References ASSERT, COMPILE_ASSERT, PLOT_TYPE_ENUM_END, THREEDEP_ARRAYSIZE, traceStyleStrings, and TRANS.
Referenced by PlotWrapper::getParent(), RangeEditorDialog::OnListPlots(), MainWindowFrame::OnSpectraListbox(), plotErrmodeString(), MathGLPane::registerUpdateHandler(), PlotWrapper::resetChange(), AnalysisState::save(), RangeEditorDialog::setPlotWrapper(), SpectrumPlotFilter::setProperty(), ProfileFilter::setProperty(), and VisController::updateScene().
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().
std::wstring strToWStr | ( | const std::string & | s | ) |
std::string wstrToStr | ( | const std::wstring & | s | ) |
const float AXIS_MIN_TOLERANCE =10*sqrtf(std::numeric_limits<float>::epsilon()) |
Referenced by Plot1D::setData().
const char* errModeStrings[] |
Plot error bar estimation strings.
Referenced by plotErrmodeID(), and plotErrmodeString().
const char* traceStyleStrings[] |
Referenced by plotID(), and plotString().