Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CoordConstraintClaimer.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 TopologyBroker
11 /// @brief top-class (Organizer) of the TopologyBroker mechanism
12 /// @detailed responsibilities:
13 /// @author Oliver Lange
14 
15 
16 #ifndef INCLUDED_protocols_topology_broker_CoordConstraintClaimer_hh
17 #define INCLUDED_protocols_topology_broker_CoordConstraintClaimer_hh
18 
19 
20 // Unit Headers
22 
23 // Package Headers
27 
28 // Project Headers
29 #include <core/pose/Pose.hh>
30 #include <protocols/loops/Loops.hh>
31 
32 // ObjexxFCL Headers
33 
34 // Utility headers
35 //#include <utility/io/izstream.hh>
36 //#include <utility/io/ozstream.hh>
37 //#include <utility/io/util.hh>
38 //#include <basic/Tracer.hh>
39 //#include <basic/options/option.hh>
40 
41 #include <utility/pointer/ReferenceCount.hh>
42 
43 #include <utility/vector1.hh>
44 
45 
46 //#include <basic/options/option_macros.hh>
47 
48 //// C++ headers
49 //#include <fstream>
50 
51 
52 // option key includes
53 
54 
55 namespace protocols {
56 namespace topology_broker {
57 
60 public:
61  CoordConstraintClaimer(); //for factory
62  ~CoordConstraintClaimer(); //for factory
64 
65  virtual TopologyClaimerOP clone() const {
66  return new CoordConstraintClaimer( *this );
67  }
68 
69  virtual void generate_claims( DofClaims& );
70 
71  ///@brief type() is specifying the output name of the TopologyClaimer
72  virtual std::string type() const {
73  return _static_type_name();
74  }
75 
77  return "CoordConstraintClaimer";
78  }
79 
80 
81  virtual void add_constraints( core::pose::Pose& /*pose*/ ) const;
82 
83  virtual void new_decoy();
84 
85  virtual void new_decoy( core::pose::Pose const& );
86 
87  ///@brief superimpose xyz coords in constraints_ with pose
88  void superimpose( core::pose::Pose const& ) const;
89 
90 protected:
91 
92  ///@brief virtual functions for IO
93  virtual bool read_tag( std::string tag, std::istream & );
94  virtual void set_defaults();
95  virtual void init_after_reading();
96 
97 private:
98  void read_cst_pose();
99  void set_cst_root();
100  void generate_constraints( core::pose::Pose const& cst_pose ) const;
101  void read_constraints_from_file( core::pose::Pose const& cst_pose ) const;
104  loops::Loops rigid_; //if empty ---> all residues, otherwise only on these
105 
109  Size root_; //if 0 -- it's ignored. otherwise try to set fold-tree root to this.
114 
115  ///@brief true if constraints are active in centroid mode
117 
118  ///@brief true if constraints are active in full-atom mode
120 
121  ///@brief tmp for backwards compatibility
122  bool bLocal_;
123 
124  ///@brief add 0..perturb_ random number to xyz-coords.
126 
127  ///@brief superimpose xyz coordinates with pose in add_constraints()
129 
130  ///@brief superimpose on these residues
132 
133 }; //class CoordConstraintClaimer
134 
135 }
136 }
137 
138 #endif