Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
util.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://wsic_dockosettacommons.org. Questions about this casic_dock
8 // (c) addressed to University of Waprotocolsgton UW TechTransfer, email: license@u.washington.eprotocols
9 #ifndef INCLUDED_protocols_sic_dock_util_hh
10 #define INCLUDED_protocols_sic_dock_util_hh
11 
12 #include <core/types.hh>
13 #include <core/kinematics/Stub.hh>
17 #include <core/pose/Pose.fwd.hh>
18 #include <core/id/AtomID_Map.hh>
19 #include <numeric/geometry/hashing/SixDHasher.fwd.hh>
20 //#include <numeric/xyzVector.fwd.hh>
21 #include <ObjexxFCL/FArray3D.fwd.hh>
22 #include <numeric/xyzTransform.hh>
23 
24 
25 namespace protocols {
26 namespace sic_dock {
27 
28 int
30  core::pose::Pose const & pose,
31  int ires,
32  double distance_threshold=10.0
33 );
34 
36 cb_weight(
37  core::pose::Pose const &pose,
38  core::Size ires,
39  core::Real distance_threshold=10.0
40 );
41 
42 double
44  protocols::sic_dock::SICFast const & sic,
47  core::kinematics::Stub const & xb,
49  platform::Real & score
50 );
51 
52 double
54  protocols::sic_dock::SICFast const & sic,
56  numeric::xyzTransform<core::Real> & xa,
57  numeric::xyzTransform<core::Real> const & xb,
59  platform::Real & score
60 );
61 
62 core::pose::Pose const & pose_with_most_CBs( core::pose::Pose const & pose1, core::pose::Pose const & pose2 );
63 bool pose1_has_most_CBs( core::pose::Pose const & pose1, core::pose::Pose const & pose2 );
68 
69 void
71  core::pose::Pose & pose,
72  core::kinematics::Stub const & s,
73  platform::Size sres=1,
74  platform::Size eres=0
75 );
76 void
78  core::pose::Pose & pose,
79  core::kinematics::Stub const & s,
80  platform::Size sres=1,
81  platform::Size eres=0
82 );
83 
84 void
86  core::pose::Pose & pose,
87  numeric::xyzTransform<core::Real> const & x,
88  platform::Size sres=1,
89  platform::Size eres=0
90 );
91 
92 /* Undefinded, commenting out to fix PyRosetta build void
93 xform_pose_rev(
94  core::pose::Pose & pose,
95  numeric::xyzTransform<core::Real> const & x,
96  platform::Size sres=1,
97  platform::Size eres=0
98 ); */
99 
101 Vec3
103  core::pose::Pose const & pose,
104  platform::Size ir
105 );
106 
107 int flood_fill3D(int i, int j, int k, ObjexxFCL::FArray3D<double> & grid, double t);
108 
109 // void termini_exposed(core::pose::Pose const & pose, bool & ntgood, bool & ctgood );
110 
112  return core::kinematics::Stub( a.M*b.M, a.M*b.v+a.v );
113 }
115  numeric::xyzMatrix<platform::Real> const MR = a.M.transposed();
116  return core::kinematics::Stub( MR, MR * -a.v );
117 }
118 
119 
120 } // sic_dock
121 } // protocols
122 
123 #endif // INCLUDED_protocols_sic_dock_util_HH