Debian Codegraph @

include/BALL/MOLMEC/COMMON/forceField.iC

raw
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: forceField.iC,v 1.2.28.1 2007/05/18 12:02:44 oliver Exp $
5 //
6 // Author:
7 // Oliver Kohlbacher
8 //
9
10 BALL_INLINE
11 bool ForceField::isSelectionEnabled() const
12
13 {
14 return selection_enabled_;
15 }
16
17 bool ForceField::getUseSelection() const
18
19 {
20 return use_selection_;
21 }
22
23 BALL_INLINE
24 void ForceField::disableSelection()
25
26 {
27 use_selection_ = false;
28 selection_enabled_ = false;
29 }
30
31 BALL_INLINE
32 void ForceField::enableSelection()
33
34 {
35 // Mark the selection as enabled...
36 selection_enabled_ = true;
37
38 // ...and update the use_selection_ flag.
39 if (system_ != 0)
40 {
41 use_selection_ = system_->containsSelection();
42 }
43 else
44 {
45 use_selection_ = false;
46 }
47 }
48
49 BALL_INLINE
50 const System* ForceField::getSystem() const
51
52 {
53 return system_;
54 }
55
56 BALL_INLINE
57 System* ForceField::getSystem()
58
59 {
60 return system_;
61 }
62
63 BALL_INLINE
64 const AtomVector& ForceField::getAtoms() const
65
66 {
67 return atoms_;
68 }
69
70