Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FastGapMover.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file src/protocols/loophash/FastGapMover.hh
11 /// @brief protocols for closing gaps
12 /// @author Ken Jung <kenjung@uw.ed>
13 
14 
15 #ifndef INCLUDED_protocols_loophash_FastGapMover_hh
16 #define INCLUDED_protocols_loophash_FastGapMover_hh
17 
18 #include <core/pose/Pose.fwd.hh>
19 #include <protocols/moves/Mover.hh>
24 
25 #include <utility/vector1.hh>
26 
27 
28 namespace protocols {
29 namespace loophash {
30 
31 
32 /// @brief Mover class for closing gaps.
33 /// This Mover checks for any gaps using residue residue distances
34 /// Then eats back at the chain surrounding it until loophash finds
35 /// a fragment that fits in the space without changing the rest of
36 /// pose too much.
37 
38 class FastGapMover : public moves::Mover {
39 
40 public:
41  typedef core::Size Size;
42  typedef core::Real Real;
44 
45  FastGapMover();
46 
47  /// @brief clone has to be overridden only if clone invocation is expected.
48  virtual moves::MoverOP clone() const {
49  return new FastGapMover( *this );
50  }
51 
52  virtual moves::MoverOP fresh_instance() const {
53  return new FastGapMover;
54  }
55 
56  void
57  apply( Pose & pose );
58 
59  virtual std::string get_name() const;
60 
61  FastGapMover &
62  min_rms( core::Real const setting )
63  {
64  min_rms_ = setting;
65  return *this;
66  }
67 
68  FastGapMover &
69  max_rms( core::Real const setting )
70  {
71  max_rms_ = setting;
72  return *this;
73  }
74 
75  FastGapMover &
76  non_ideal( bool const setting )
77  {
78  non_ideal_ = setting;
79  return *this;
80  }
81 
82 private:
83  // methods
84 void find_next_gap( Pose & pose, Size & idx, Real & gap_distance );
85 
86 
87 private:
88  // data
92 
97  bool non_ideal_;
98 
99 };
100 
101 } // loophash
102 } // protocols
103 
104 #endif