00001 #include "tagcolormap.h"
00002
00003 using namespace std;
00004
00005
00006 TagColorMap::TagColorMap()
00007 {
00008
00009
00010
00011
00012
00013
00014
00015
00016 colors.insert(pair<string, QColor>("gene", Qt::red.light()));
00017 colors.insert(pair<string, QColor>("l4_cluster", Qt::blue.light()));
00018 colors.insert(pair<string, QColor>("DHS", QColor(255, 0, 0)));
00019
00020 }
00021
00022 QColor TagColorMap::getColor(string type)
00023 {
00024 map<string, QColor>::iterator it = colors.find(type);
00025
00026 if ( it != colors.end() ) {
00027 return (*it).second;
00028 }
00029
00030 return Qt::darkGray;
00031
00032 }
00033