Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FoldTreeFromLoopsWrapper.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 /// @file protocols/loops/FoldTreeFromLoops.cc
11 /// @brief
12 /// @author Sarel Fleishman (sarelf@u.washington.edu)
13 
14 // Unit headers
17 
18 // Package headers
19 #include <protocols/loops/Loop.hh>
20 #include <protocols/loops/Loops.hh>
22 #include <protocols/loops/util.hh>
24 
25 // Project headers
27 #include <core/pose/Pose.hh>
28 
29 // Utility headers
30 #include <basic/Tracer.hh>
31 #include <utility/tag/Tag.hh>
32 
33 namespace protocols {
34 namespace loops {
35 
36 static basic::Tracer TR( "protocols.loops.FoldTreeFromLoopsWrapper" );
37 
39 Mover( FoldTreeFromLoopsCreator::mover_name() ), loop_str_( "" )
40 {
41  loops_ = new Loops;
42  loops_->clear();
43 }
44 
45 
47 
49 {
50  return protocols::moves::MoverOP( new FoldTreeFromLoops( *this ) );
51 }
52 
54 {
56 }
57 
58 void
60 {
61  if( loops()->empty() ) {
62  utility_exit_with_message( "No loops were specified");
63  }
65  fold_tree_from_loops( pose, *loops(), f );
66  TR<<"old foldtree "<<pose.fold_tree()<<"\nNew foldtree ";
67  pose.fold_tree( f );
68  TR<<pose.fold_tree()<<std::endl;
69 }
70 
74 }
75 
76 void
78  TagPtr const tag,
82  core::pose::Pose const & pose
83 ) {
84 
86 }
87 
89 {
90  loop_str_ = str;
91 }
93 {
94  return loop_str_;
95 }
96 
98 {
99  loops_ = l;
100 }
101 
103 {
104  return loops_;
105 }
106 
109 {
111 }
112 
115  return new FoldTreeFromLoops;
116 }
117 
120 {
121  return "FoldTreeFromLoops";
122 }
123 
124 } // namespace loops
125 } // namespace protocols