ARB
SEC_bonddef.hxx
Go to the documentation of this file.
1 // ================================================================= //
2 // //
3 // File : sec_bonddef.hxx //
4 // Purpose : //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in September 2007 //
7 // Institute of Microbiology (Technical University Munich) //
8 // http://www.arb-home.de/ //
9 // //
10 // ================================================================= //
11 
12 #ifndef SEC_BONDDEF_HXX
13 #define SEC_BONDDEF_HXX
14 
15 #ifndef ARBDB_H
16 #include <arbdb.h>
17 #endif
18 
19 #ifndef AW_POSITION_HXX
20 #include <aw_position.hxx>
21 #endif
22 
23 using namespace AW;
24 
25 class AW_device;
26 class AW_root;
27 class AW_helix;
28 
29 class SEC_bond_def {
30  char edit4_to_secedit[256]; // symbol translation table
31  const AW_helix *helix;
32 
33  GB_ERROR fill_translation_table(const char *from, const char *to);
34  void paint_symbol(AW_device *device, int gc, char bond, const Position& p1, const Position& p2, const Vector& toNextBase, const double& char_radius) const;
35 
36 public:
37 
38  SEC_bond_def(const AW_helix *helix_) : helix(helix_) {}
39 
40  GB_ERROR update_translation(AW_root *awr);
41  void paint(AW_device *device, char base1, char base2, const Position& p1, const Position& p2, const Vector& toNextBase, const double& char_radius) const;
42 };
43 
44 
45 #else
46 #error sec_bonddef.hxx included twice
47 #endif // SEC_BONDDEF_HXX
SEC_bond_def(const AW_helix *helix_)
Definition: SEC_bonddef.hxx:38