Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RestrictToInterfaceVectorOperation.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 protocols/toolbox/task_operations/RestrictToInterfaceVectorOperation.hh
11 /// @brief TaskOperation class that finds an interface based on InterfaceVectorDefinition
12 /// and leaves it mobile in the PackerTask. Serves mostly to wrap InterfaceVectorDefinition
13 /// into a TaskOperation. see src/core/pack/task/operation/util/interface_vector_calculate.hh
14 /// @author Ben Stranges (stranges@unc.edu)
15 
16 #ifndef INCLUDED_protocols_toolbox_task_operations_RestrictToInterfaceVectorOperation_hh
17 #define INCLUDED_protocols_toolbox_task_operations_RestrictToInterfaceVectorOperation_hh
18 
19 // Unit Headers
22 
23 // Project Headers
24 #include <core/pose/Pose.fwd.hh>
25 //#include <core/pack/task/PackerTask.fwd.hh>
26 #include <utility/tag/Tag.fwd.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 // Utility Headers
32 //#include <core/types.hh>
33 
34 // C++ Headers
35 //#include <string>
36 
37 namespace protocols {
38 namespace toolbox {
39 namespace task_operations {
40 
41 ///@details this class is a TaskOperation to prevent repacking of residues not near an interface.
43 {
44 public:
46 
47  //empty contstructor for parser, uses jumps
49 
50  RestrictToInterfaceVectorOperation( core::Size const lower_chain_id, core::Size const upper_chain_id );
51 
52  //full constructor
58 
59  //basic jump constructor
60  RestrictToInterfaceVectorOperation( utility::vector1_int const movable_jumps );
61 
62  //full constructor for jumps
63  RestrictToInterfaceVectorOperation( utility::vector1_int const movable_jumps ,
68 
69 
70  // //if you want to use chain characters this is probably the best way, define the calculator separately
71  // RestrictToInterfaceVectorOperation( std::string const & calculator );
72 
74 
75  virtual TaskOperationOP clone() const;
76 
77  virtual
78  void
80 
81  //@brief, setters for the calculator.
84 
87 
88  /// Commenting out to fix PyRosetta build void jump_num( int jump_num);
93  ///@brief parse_tag function for rosetta scripts
94  void parse_tag( TagPtr tag );
95 
96  /*
97  // Used to make the eventual inheritance frodm protocols::toolbox::task_operations::InterfaceTaskOperation easier.
98  void
99  setup_interface_chains_from_jumps( core::pose::Pose const & pose );
100  */
101 
102 private:
103 
104  ///@brief private data used to pass to the definition function
105  //chain ids of the interface lower=chain1 upper=chain2 for most purposes.
108  bool jump_active_; //is the jump deffinition being used
109 
110  //cutoffs for various restrictions
111  core::Real CB_dist_cutoff_; //distance for big CB cutoffs
112  core::Real nearby_atom_cutoff_; // used for finding atoms that are close
113  core::Real vector_angle_cutoff_; // used for cutoff for res1 CB to res2 CB angle cutoff
114  core::Real vector_dist_cutoff_; // used for distance between CBs for vector
115  //char upper_chain_char_, lower_chain_char;
116  //int jump_vector_; //what jump is the interface across
117 };
118 
119 } //namespace protocols
120 } //namespace toolbox
121 } //namespace task_operations
122 
123 #endif // INCLUDED_protocols_toolbox_TaskOperations_RestrictToInterfaceVectorOperation_HH