tagcolormap.cc

Go to the documentation of this file.
00001 #include "tagcolormap.h"
00002 
00003 using namespace std;
00004 
00005 
00006 TagColorMap::TagColorMap()
00007 {
00008 //   colors.insert(pair<string, QColor>("hairpin_miRNA", Qt::red.light()));
00009 //   colors.insert(pair<string, QColor>("mature_miRNA", Qt::red));
00010 //   colors.insert(pair<string, QColor>("mitRNA", Qt::green));
00011 //   colors.insert(pair<string, QColor>("piRNA", Qt::yellow));
00012 //   colors.insert(pair<string, QColor>("rRNA", Qt::magenta));
00013 //   colors.insert(pair<string, QColor>("rRNA", Qt::blue));
00014 //   colors.insert(pair<string, QColor>("snRNA", Qt::cyan));
00015 //   colors.insert(pair<string, QColor>("snoRNA", Qt::black));
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 

Generated on Fri Jul 17 20:19:29 2009 for ngsview by  doxygen 1.5.1