Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
conformation
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
18
#include <
core/conformation/PointGraph.hh
>
19
20
// Project Headers
21
#include <
core/conformation/Residue.hh
>
22
#include <
core/chemical/ResidueType.hh
>
23
#include <
core/conformation/Conformation.hh
>
24
25
#include <
core/conformation/PointGraphData.hh
>
26
#include <
core/graph/UpperEdgeGraph.hh
>
27
#include <utility/vector1.hh>
28
29
30
namespace
core {
31
namespace
conformation {
32
33
void
34
residue_point_graph_from_conformation
(
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
Generated on Sat Jun 1 2013 11:32:25 for Rosetta 3.5 by
1.8.4