COPASI API  4.16.103
CQPlotColors.h
Go to the documentation of this file.
1 // Copyright (C) 2012 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef CQPLOTCOLORS_H
7 #define CQPLOTCOLORS_H
8 
9 #include <QtGui/QColor>
10 #include <string>
12 
13 /*
14  * This is for handling colors for plotting in COPASI in a QT context.
15  * It is based on CPlotColors and adds the functionality that uses QT.
16  */
17 class CQPlotColors : public CPlotColors
18 {
19 public:
20 
21  /*
22  * returns a CColor. If colorstr is "auto" the color will be from a list of
23  * predefined colors with index colorindex.
24  * Otherwise colorstr is interpreted as RGBA in Hex.
25  */
26  static QColor getColor(std::string colorstr, size_t colorindex);
27 };
28 
29 #endif // CQPLOTCOLORS_H
static QColor getColor(std::string colorstr, size_t colorindex)