COPASI API  4.16.103
CPlotColors.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /fs/turing/cvs/copasi_dev/cvs_admin/addHeader,v $
3 // $Revision: 1.18 $
4 // $Name: HEAD $
5 // $Author: shoops $
6 // $Date: 2012/03/07 20:49:51 $
7 // End CVS Header
8 
9 // Copyright (C) 2012 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #include "CPlotColors.h"
15 
16 //static
17 std::string CPlotColors::getCopasiColorStr(size_t index)
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 }
34 
35 //static
37 {
38  return 6;
39 }
40 
41 
42 
43 //QColor curveColours[6] = {QColor(255, 0, 0), QColor(0, 0, 255), QColor(0, 230, 0), QColor(0, 190, 240), QColor(240, 0, 255), QColor(240, 200, 0)} ; //TODO
static size_t getNumCopasiColors()
Definition: CPlotColors.cpp:36
static std::string getCopasiColorStr(size_t index)
Definition: CPlotColors.cpp:17