source: branches/port5/AWT/AWT_attributes.cxx

Last change on this file was 5675, checked in by westram, 15 years ago
  • removed automatic timestamps (the best they were good for, were vc-conflicts)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1//  ==================================================================== //
2//                                                                       //
3//    File      : AWT_attributes.cxx                                     //
4//    Purpose   : get attribute colors for species/genes                 //
5//                                                                       //
6//                                                                       //
7//  Coded by Ralf Westram (coder@reallysoft.de) in July 2004             //
8//  Copyright Department of Microbiology (Technical University Munich)   //
9//                                                                       //
10//  Visit our web site at: http://www.arb-home.de/                       //
11//                                                                       //
12//  ==================================================================== //
13
14#include <stdio.h>
15#include <arbdb.h>
16
17#include <aw_color_groups.hxx>
18#include "awt_attributes.hxx"
19
20using namespace std;
21
22// faked attribute-interface (currently uses deprecated color groups)
23
24int AWT_gene_get_dominant_color(GBDATA *gb_gene) {
25    return AW_find_color_group(gb_gene, false);
26}
27
28int AWT_species_get_dominant_color(GBDATA *gb_species) {
29    return AW_find_color_group(gb_species, false);
30}
31
32bool AWT_gene_has_attribute(GBDATA *gb_gene, int attribute_nr) {
33    return AW_find_color_group(gb_gene, true) == attribute_nr;
34}
35bool AWT_species_has_attribute(GBDATA *gb_species, int attribute_nr) {
36    return AW_find_color_group(gb_species, true) == attribute_nr;   
37}
38
39
Note: See TracBrowser for help on using the repository browser.