// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: forceField.iC,v 1.2.28.1 2007/05/18 12:02:44 oliver Exp $ // // Author: // Oliver Kohlbacher // BALL_INLINE bool ForceField::isSelectionEnabled() const { return selection_enabled_; } bool ForceField::getUseSelection() const { return use_selection_; } BALL_INLINE void ForceField::disableSelection() { use_selection_ = false; selection_enabled_ = false; } BALL_INLINE void ForceField::enableSelection() { // Mark the selection as enabled... selection_enabled_ = true; // ...and update the use_selection_ flag. if (system_ != 0) { use_selection_ = system_->containsSelection(); } else { use_selection_ = false; } } BALL_INLINE const System* ForceField::getSystem() const { return system_; } BALL_INLINE System* ForceField::getSystem() { return system_; } BALL_INLINE const AtomVector& ForceField::getAtoms() const { return atoms_; }