source: trunk/SECEDIT/SEC_bonddef.hxx

Last change on this file was 19407, checked in by westram, 10 months ago
  • reintegrates 'ali' into 'trunk'
    • use bond settings from EDIT4 in SECEDIT
    • fix refresh logic
    • refactor underlying code
  • adds: log:branches/ali@19393:19406
  • 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      : 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
23using namespace AW;
24
25class AW_device;
26class AW_root;
27class AW_helix;
28
29class 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
36public:
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
Note: See TracBrowser for help on using the repository browser.