Debian Codegraph @

include/BALL/DOCKING/GENETICDOCK/rotateBond.h

raw symbols SCIP
1 // ----------------------------------------------------
2 // $Maintainer: Marcel Schumann $
3 // $Authors: Jan Fuhrmann, Marcel Schumann $
4 // ----------------------------------------------------
5
6 #ifndef BALL_DOCKING_GENETICDOCK_ROTATE_BOND_H
7 #define BALL_DOCKING_GENETICDOCK_ROTATE_BOND_H
8
9 #include <BALL/DATATYPE/hashSet.h>
10 #include <BALL/MATHS/angle.h>
11 #include <BALL/MATHS/matrix44.h>
12
13 // This class changes the rotation angle(radians) around a defined axis, furthermore it is possible to select
14 // 2 additional atoms to calculate and change the dihedral angle. The rotation axis must not be contained in a
15 // ring system. If this condition holds true, the molecule is divided by the rotation axis. All atoms of the
16 // lighter part rotate while the larger part of the molecule remains unchanged.
17
18
19 namespace BALL
20 {
21 class Atom;
22
23 class Bond;
24
25 class BALL_EXPORT BALL_DEPRECATED RotateBond
26 {
27 public:
28
29 /** standard constructor
30 */
31 RotateBond();
32
33 /** copy constructor
34 */
35 RotateBond(const RotateBond&);
36
37 /** constructor using bond to define axis
38 */
39 RotateBond(const Bond&);
40
41 /** define axis by atoms
42 */
43 RotateBond(Atom*, Atom*);
44
45 /** define axis and 2 atoms for dihedral angle
46 */
47 RotateBond(const Bond&, Atom*, Atom*);
48
49 /** define 2 axis and 2 dihedral atoms
50 */
51 RotateBond(Atom*, Atom*, Atom*, Atom*);
52
53 /** destructor
54 */
55 ~RotateBond();
56
57 /** change dihedral angle
58 */
59 void rotate(const Angle&, bool restorePosition = true);
60
61 /** set dihedral angle to new value
62 */
63 void setDihedral(const Angle&);
64
65 /** get current dihedral angle
66 */
67 Angle getDihedral();
68
69 /** smaller operator
70 */
71 bool operator<(const RotateBond& rb);
72
73 private:
74
75 /** first atom of the rotation axis
76 */
77 Atom* hinge_;
78
79 /** second atom of the rotation axis
80 */
81 Atom* nail_;
82
83 /** defines dihedral angle
84 */
85 Atom* dihedral_lite_;
86
87 /** defines dihedral angle
88 */
89 Atom* dihedral_heavy_;
90
91 /** these atoms rotate
92 */
93 HashSet<Atom*> rotate_atoms_;
94
95 /** collects atoms
96 */
97 void collectAtoms(Atom*, Atom*, Atom*, HashSet<Atom*>&);
98
99 /** used by constructors
100 */
101 void setup(Atom*, Atom*, Atom*, Atom*);
102 };
103 }
104
105
106 #endif /* BALL_DOCKING_GENETICDOCK_ROTATE_BOND_H */