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

#include <CPlotColors.h>

Inheritance diagram for CPlotColors:
Inheritance graph
[legend]

Static Public Member Functions

static std::string getCopasiColorStr (size_t index)
 
static size_t getNumCopasiColors ()
 

Detailed Description

Definition at line 26 of file CPlotColors.h.

Member Function Documentation

std::string CPlotColors::getCopasiColorStr ( size_t  index)
static

Definition at line 17 of file CPlotColors.cpp.

Referenced by COutputAssistant::createDefaultOutput(), CQPlotColors::getColor(), and Curve2DWidget::LoadFromCurveSpec().

18 {
19  index = index % 6;
20 
21  switch (index)
22  {
23  case 0: return "#FF0000";
24  case 1: return "#0000FF";
25  case 2: return "#00E600";
26  case 3: return "#00BEF0";
27  case 4: return "#F000FF";
28  case 5: return "#F0C800";
29 
30  }
31 
32  return "auto";
33 }
size_t CPlotColors::getNumCopasiColors ( )
static

Definition at line 36 of file CPlotColors.cpp.

Referenced by Curve2DWidget::LoadFromCurveSpec().

37 {
38  return 6;
39 }

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