COPASI API  4.16.103
Static Public Member Functions | List of all members
CQPlotColors Class Reference

#include <CQPlotColors.h>

Inheritance diagram for CQPlotColors:
Inheritance graph
Collaboration diagram for CQPlotColors:
Collaboration graph

Static Public Member Functions

static QColor getColor (std::string colorstr, size_t colorindex)
- Static Public Member Functions inherited from CPlotColors
static std::string getCopasiColorStr (size_t index)
static size_t getNumCopasiColors ()

Detailed Description

Definition at line 17 of file CQPlotColors.h.

Member Function Documentation

QColor CQPlotColors::getColor ( std::string  colorstr,
size_t  colorindex 

Definition at line 18 of file CQPlotColors.cpp.

References CPlotColors::getCopasiColorStr().

Referenced by CopasiPlot::initFromSpec(), and Curve2DWidget::LoadFromCurveSpec().

19 {
20  if (colorstr == "auto")
21  {
22  return QColor(getCopasiColorStr(colorindex).c_str());
23  }
24  else
25  {
26  return QColor(colorstr.c_str());
27  }
28 }
static std::string getCopasiColorStr(size_t index)
Definition: CPlotColors.cpp:17

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