Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResidueVicinityRCG.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 protocols/forge/remodel/ResidueVicinityRCG.hh
11 ///
12 /// @brief
13 /// @author Florian Richter, floric@u.washington.edu, april 2009
14 
15 #ifndef INCLUDED_protocols_forge_remodel_ResidueVicinityRCG_hh
16 #define INCLUDED_protocols_forge_remodel_ResidueVicinityRCG_hh
17 
18 // protocol headers
20 // AUTO-REMOVED #include <protocols/forge/build/BuildInstruction.hh>
21 
22 // project headers
23 #include <core/pose/Pose.fwd.hh>
26 #include <core/types.hh>
28 
29 //utility headers
30 #include <utility/vector1.hh>
31 
32 
33 
34 namespace protocols{
35 namespace forge{
36 namespace remodel{
37 
39 
42 
46 
47 /// @brief small helper class for the ResidueVicinityRCG
48 class
50 {
51 
52 public:
54  core::Size old_seqpos,
55  utility::vector1< core::Size > const & residue_atoms,
56  utility::vector1< core::Size > const & loopres_atoms,
57  core::Size desired_remodelres_in_vicinity
58  );
59 
60  virtual ~ResidueVicinityInfo();
61 
63  old_seqpos() const {
64  return old_seqpos_; }
65 
67  residue_atoms() const {
68  return residue_atoms_; }
69 
72  return residue_base_atoms_; }
73 
76  return residue_base2_atoms_; }
77 
79  loopres_atoms() const {
80  return loopres_atoms_; }
81 
84  return loopres_base_atoms_; }
85 
88  return loopres_base2_atoms_; }
89 
90  void
92  utility::vector1< core::Size > const & residue_base_atoms ) {
93  residue_base_atoms_ = residue_base_atoms; }
94 
95  void
97  utility::vector1< core::Size > const & residue_base2_atoms ) {
98  residue_base2_atoms_ = residue_base2_atoms; }
99 
100  void
102  utility::vector1< core::Size > const & loopres_base_atoms ) {
103  loopres_base_atoms_ = loopres_base_atoms; }
104 
105  void
107  utility::vector1< core::Size > const & loopres_base2_atoms ) {
108  loopres_base2_atoms_ = loopres_base2_atoms; }
109 
110 
111  core::Size
113  return desired_remodelres_in_vicinity_; }
114 
116  dis() const;
117 
119  loop_ang() const;
120 
122  targ_ang() const;
123 
125  loop_dih() const;
126 
128  targ_dih() const;
129 
131  lt_dih() const;
132 
133  void
134  set_dis( core::scoring::constraints::FuncOP dis );
135 
136  void
137  set_loop_ang( core::scoring::constraints::FuncOP loop_ang );
138 
139  void
140  set_targ_ang( core::scoring::constraints::FuncOP targ_ang );
141 
142  void
143  set_loop_dih( core::scoring::constraints::FuncOP loop_dih );
144 
145  void
146  set_targ_dih( core::scoring::constraints::FuncOP targ_dih );
147 
148  void
149  set_lt_dih( core::scoring::constraints::FuncOP lt_dih );
150 
151 private:
152 
154  utility::vector1< core::Size > residue_atoms_, residue_base_atoms_, residue_base2_atoms_;
155  utility::vector1< core::Size > loopres_atoms_, loopres_base_atoms_, loopres_base2_atoms_;
156 
157  core::scoring::constraints::FuncOP dis_, loop_ang_, targ_ang_, loop_dih_, targ_dih_, lt_dih_;
158 
160 
161 }; //ResidueVicinityInfo
162 
163 
164 /// @brief a RemodelConstraintGenerator that creates AmbiguousMultiConstraints for all positions
165 /// @brief in the remodeled loop to the desired positions, such that during remodeling, the remodeled
166 /// @brief region will be driven towards the vicinity of these residues
168 {
169 
170 public:
171  // Constructors and virtual functions
173 
174  /// @brief copy construtor
175  ResidueVicinityRCG( ResidueVicinityRCG const & rval );
176 
181  );
182 
183  virtual ~ResidueVicinityRCG();
184 
185  virtual
186  void
188  core::pose::Pose const & pose );
189 
190  virtual void
191  parse_my_tag( TagPtr const tag,
193  protocols::filters::Filters_map const & filters,
194  protocols::moves::Movers_map const & movers,
195  core::pose::Pose const & pose );
196 
197  virtual std::string
198  get_name() const;
199 
201  fresh_instance() const;
202 
204  clone() const;
205 
206 public:
207  // Public member functions
208  void
210  rv_infos_.clear(); }
211 
212 
213  void
215  ResidueVicinityInfoOP rv_info ){
216  rv_infos_.push_back( rv_info ); }
217 
218  void
219  lstart( core::Size const lstart );
220 
221  void
222  lstop( core::Size const lstop );
223 
224  void
226 
227 protected:
228 
229  void
231  core::pose::Pose const & pose,
232  core::Size const loopres,
233  ResidueVicinityInfo const & rv_info,
235  );
236 
237 
238 private:
239 
241 
243 
244 
245 }; //class ResidueVicinityRCG
246 
247 
248 } //namespace remodel
249 } //namespace forge
250 } //namespace protocols
251 
252 
253 
254 
255 #endif // INCLUDED_protocols_forge_remodel_ResidueVicinityRCG_HH