Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GridInitMover.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 src/protocols/qsar/scoring_grid/GridInitMover.cc
11 /// @author Sam DeLuca
12 
17 
18 #include <core/pose/Pose.hh>
19 #include <core/pose/util.hh>
20 #include <core/kinematics/Jump.hh>
21 
22 #include <utility/excn/Exceptions.hh>
23 #include <utility/tag/Tag.hh>
24 
25 namespace protocols {
26 namespace qsar {
27 namespace scoring_grid {
28 
30 {
32 }
33 
35 {
36  return new GridInitMover;
37 }
38 
40 {
41  return "GridInitMover";
42 }
43 
45 {
46 
47 }
48 
50 {
51 
52 }
53 
55 {
56  return new GridInitMover(*this);
57 }
58 
60 {
61  return new GridInitMover;
62 }
63 
65 {
66  return "GridInitMover";
67 }
68 
70 (
71  utility::tag::TagPtr const tag,
72  protocols::moves::DataMap & /*data_map*/,
73  protocols::filters::Filters_map const & /*filters*/,
74  protocols::moves::Movers_map const & /*movers*/,
75  core::pose::Pose const & /*pose*/
76 )
77 {
78  if ( tag->getName() != "GridInitMover" )
79  {
80  throw utility::excn::EXCN_RosettaScriptsOption("This should be impossible");
81  }
82 
83  if ( ! tag->hasOption("chain") ) throw utility::excn::EXCN_RosettaScriptsOption("'GridInitMover' mover requires chain tag");
84 
85  chain_ = tag->getOption<std::string>("chain");
86 }
87 
89 {
91 
92  assert(chain_.size() == 1);
93 
94 
96  core::Size const jump_id = core::pose::get_jump_id_from_chain_id(chain_id,pose);
98 
99  grid_manager->initialize_all_grids(center);
100  grid_manager->update_grids(pose,center);
101 
102 }
103 
104 }
105 }
106 }
107 
108 
109