Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CavityBall.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 core/scoring/packstat/CavityBall.hh
11 ///
12 /// @brief
13 /// @author will sheffler
14 
15 
16 #ifndef INCLUDED_core_scoring_packstat_CavityBall_hh
17 #define INCLUDED_core_scoring_packstat_CavityBall_hh
18 
19 
20 // Project forward headers
23 
24 // AUTO-REMOVED #include "utility/vector1.hh"
25 #include "numeric/xyzVector.hh"
26 
27 #include <iosfwd>
28 #include <string>
29 
30 namespace core {
31 namespace scoring {
32 namespace packstat {
33 
34 class CavityBall {
35 public:
36 
37  CavityBall( int const id, int const sphere, XYZ const xyz, PackstatReal const r );
38 
39  std::string const hetero_atom_line( int hetresnum = 1, int chain = 0, core::Real radsub = 0.0 ) const ;
40  // bool cmp( CavityBall * a, CavityBall * b );
41  // inline PackstatReal distto( CavityBall & b ) const { return distto( &b ); }
42  // inline bool touches( CavityBall & b ) const { return touches( &b ); }
43  // inline PackstatReal overlap( CavityBall & b ) const { return overlap( &b ); }
44  //
45  // bool overlaps( CavityBall const *b) const ;
46  //
47  // inline PackstatReal distto( CavityBall const * b) const {
48  // return distance(this->xyz_,b->xyz_) - radius_ - b->radius();
49  // }
50  // inline bool touches( CavityBall * b) const {
51  // return distance_squared(this->xyz_,b->xyz_) <
52  // (radius_+b->radius())*(radius_+b->radius());
53  // }
54  //
55  // inline PackstatReal overlap( CavityBall * b) const {
56  // PackstatReal o = abs(distance(this->xyz_,b->xyz_) - (radius_+b->radius()));
57  // return std::max( o/radius_, o/b->radius_ );
58  // }
59  // // int recursive_mark_hole_neighbors( utility::vector1<CavityBall> & holes, int const cluster );
60 
61  std::string const str() const;
62 
63  inline int sphere() const { return sphere_; };
64  inline PackstatReal radius() const { return radius_; };
65  // inline PackstatReal sasa() const { return sasa_; };
66  inline int id() const { return id_; };
67  inline numeric::xyzVector<PackstatReal> xyz() const { return xyz_; };
68  // inline void set_cluster_id(int cid) { cluster_id_ = cid; }
69 
70  int operator<(const CavityBall &rhs) const {
71  return radius() > rhs.radius();
72  }
73  // inline CavityBallCluster * cluster() const { return cluster_; }
74 
75 
76  // int get_cluster_id() const { return cluster_id_; }
77 //private: // make this stuf private at some point
78 
82  // PackstatReal sasa_; // if this > 0, the ball is considered pruned
85  PackstatReal exposed_radius; // largest radius that can reach ball from "outside"
86  int anb;
87 
88  // utility::vector1<PackstatReal> hole_sasa_; // these will only be computed if
89  // FArray2D_float surrounding_sasa_; // compute_packing_statistics is called
90  // //FArray1D_float surrounding_sasa_5A_; // withing 5A of center, like before for comparison
91  // utility::vector1<int> neighbor_count_; // # atoms within 1A, 2A, 3A...
92  // utility::vector1<PackstatReal> avg_occupancy_;
93  // utility::vector1<PackstatReal> avg_bfactor_;
94  // utility::vector1<PackstatReal> absolute_shell_rms_;
95  // utility::vector1<PackstatReal> relative_shell_rms_;
96  // //int neighbor_count_5A_; // within 5A of center, like before
97  //
98  // int num_other_balls_overlap_; // number of other "holes" we overlap with (any and all)
99  // int num_buried_other_balls_overlap_; // number of non-exposed balls we overlap with
100  // int num_big_other_balls_overlap_; // number of properly sized (not too small) balls overlap
101  // int num_big_buried_other_balls_overlap_; // num. properly sized and not exposed overlapers
102 
103  // utility::vector1<CavityBall*> neighboring_cavity_balls_; // number of other "holes" we overlap with (any and all)
104  // utility::vector1<CavityBall*> buried_neighboring_cavity_balls_; // number of non-exposed balls we overlap with
105  // utility::vector1<CavityBall*> big_neighboring_cavity_balls_; // number of properly sized (not too small) balls overlap
106  // utility::vector1<CavityBall*> big_buried_neighboring_cavity_balls_; // num. properly sized and not exposed overlapers
107  //
108  // int cluster_id_; // used for grouping holesa
109  // CavityBallCluster *cluster_;
110 
111 };
112 
116 
117 
118 } // namespace packstat
119 } // namespace scoring
120 } // namespace core
121 
122 
123 #endif // INCLUDED_core_scoring_packstat_CavityBall_HH