Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PointGraph.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 core/conformation/PointGraph.cc
11 /// @brief Graph for detecting neighbors; vertices store points, edges store square distances
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 /// @author Sam DeLuca
14 /// @author Doug Renfrew
15 
16 
17 // Unit Headers
19 
20 // Project Headers
24 
27 #include <utility/vector1.hh>
28 
29 
30 namespace core {
31 namespace conformation {
32 
33 void
35  Conformation const & conformation,
36  PointGraph & pg
37 )
38 {
39  pg.set_num_vertices( conformation.size() );
40  for ( platform::Size ii = 1, ii_end = conformation.size(); ii <= ii_end; ++ii ) {
41  pg.get_vertex( ii ).data().xyz() = conformation.residue(ii).xyz( conformation.residue( ii ).nbr_atom() );
42  }
43 }
44 
45 } // namespace conformation
46 } // namespace core