Last change
on this file was
6490,
checked in by westram, 15 years ago
|
- moved a few types to arbdb_base.h
- only use arbdb_base.h or arbdb.h where possible
- global included cleanup
- added MBI headers to many files
- moved SQ_ambiguities.SQ_count_ambiguities() to separate object
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.5 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 "awt_attributes.hxx" |
---|
15 | |
---|
16 | #include <arbdb.h> |
---|
17 | #include <aw_color_groups.hxx> |
---|
18 | |
---|
19 | using namespace std; |
---|
20 | |
---|
21 | // faked attribute-interface (currently uses deprecated color groups) |
---|
22 | |
---|
23 | int AWT_gene_get_dominant_color(GBDATA *gb_gene) { |
---|
24 | return AW_find_color_group(gb_gene, false); |
---|
25 | } |
---|
26 | |
---|
27 | int AWT_species_get_dominant_color(GBDATA *gb_species) { |
---|
28 | return AW_find_color_group(gb_species, false); |
---|
29 | } |
---|
30 | |
---|
31 | bool AWT_gene_has_attribute(GBDATA *gb_gene, int attribute_nr) { |
---|
32 | return AW_find_color_group(gb_gene, true) == attribute_nr; |
---|
33 | } |
---|
34 | bool AWT_species_has_attribute(GBDATA *gb_species, int attribute_nr) { |
---|
35 | return AW_find_color_group(gb_species, true) == attribute_nr; |
---|
36 | } |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.