Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TorsionFilter.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 sw=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/filters/Torsion.hh
11 /// @brief Reports the average degree of connectivity of interface residues
12 /// @author Sarel Fleishman (sarelf@uw.edu)
13 
14 #ifndef INCLUDED_protocols_protein_interface_design_filters_TorsionFilter_hh
15 #define INCLUDED_protocols_protein_interface_design_filters_TorsionFilter_hh
16 
17 
18 // Project Headers
20 #include <core/pose/Pose.fwd.hh>
21 #include <utility/tag/Tag.fwd.hh>
25 
26 #include <utility/vector1.hh>
27 
28 // Unit headers
29 
30 namespace protocols {
31 namespace protein_interface_design{
32 namespace filters {
33 
35 {
36 private:
38 public:
39  /// @brief default ctor
40  Torsion();
41  ///@brief Constructor with a single target residue
42  virtual bool apply( core::pose::Pose const & pose ) const;
43  virtual void report( std::ostream & out, core::pose::Pose const & pose ) const;
44  virtual core::Real report_sm( core::pose::Pose const & pose ) const;
45  virtual protocols::filters::FilterOP clone() const;
47  core::Real compute( core::pose::Pose const & pose ) const;
48  virtual ~Torsion();
49  void parse_my_tag( utility::tag::TagPtr const tag,
53  core::pose::Pose const & );
54  core::Real lower() const{ return lower_; }
55  void lower( core::Real const l ) { lower_ = l; }
56  core::Real upper() const{ return upper_; }
57  void upper( core::Real const u ){ upper_ = u; }
58  core::Size resnum() const{ return resnum_; }
59  void resnum( core::Size const r ){ resnum_ = r; }
60  void torsion( std::string const t ){ torsion_ = t; }
61  std::string torsion() const{ return torsion_; }
64  void task_factory_set( bool const b ){ task_factory_set_ = b; }
65  bool task_factory_set() const { return task_factory_set_; }
66 private:
67 
72  bool task_factory_set_;/// if you call this filter from within another routine, rather than through rosetta_scripts, and you want to use a task_factory, set this parameter to true before apply
73 };
74 
75 } // filters
76 } //protein_interface_design
77 } // protocols
78 
79 #endif //INCLUDED_protocols_Filters_Torsion_HH_
80