Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RecoverSideChainsMover.cc
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 /// @brief simple mover that applies another Mover, and then recovers the input
11 /// sidechains from the input Pose.
12 /// @author James Thompson
13 
14 #include <core/types.hh>
15 #include <core/pose/Pose.hh>
19 
20 #include <protocols/moves/Mover.hh>
21 
22 #include <utility/vector1.hh>
23 
24 
25 namespace protocols {
26 namespace comparative_modeling {
27 
29  Mover & mover
30 ) :
31  mover_( mover )
32 {}
33 
35  using core::Size;
36  using namespace core::id;
37  core::pose::Pose const original_pose( pose );
38 
39  // apply mover
40  mover_.apply( pose );
41 
42  SequenceMapping map(
43  SequenceMapping::identity( original_pose.total_residue() )
44  );
45  StealSideChainsMover sc_mover( original_pose, map );
46  sc_mover.apply( pose );
47 } // apply
48 
51  return "RecoverSideChainsMover";
52 }
53 
54 } // comparative_modeling
55 } // protocols