COPASI API
4.16.103
Main Page
Namespaces
Classes
Files
File List
File Members
copasi
plotUI
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>
11
#include "
copasi/plot/CPlotColors.h
"
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
CQPlotColors::getColor
static QColor getColor(std::string colorstr, size_t colorindex)
Definition:
CQPlotColors.cpp:18
CPlotColors
Definition:
CPlotColors.h:26
CQPlotColors
Definition:
CQPlotColors.h:17
CPlotColors.h
Generated on Thu Jul 2 2015 14:50:32 for COPASI API by
1.8.6