![]() |
Rosetta Protocols
2014.35
|
Manages harmonic restraints on torsions, so they can be turned off for packing. More...
#include <ResidueTorsionRestraints.hh>
Public Member Functions | |
ResidueTorsionRestraints (core::pose::Pose &pose, core::Size resid, core::Real stddev_degrees) | |
Establishes initial constraints set – constraints start off enabled. More... | |
virtual | ~ResidueTorsionRestraints () |
virtual void | enable (core::pose::Pose &pose) |
Constrain residue torsions for specified pose. More... | |
virtual void | disable (core::pose::Pose &pose) |
Remove residue torsions constraints added by this object (if any). More... | |
bool | operator== (const ResidueTorsionRestraints &other) |
Private Member Functions | |
virtual void | setup_constraints (core::pose::Pose &pose) |
Shared logic for creating torsional constraints. More... | |
virtual core::scoring::constraints::ConstraintSetOP | without_my_constraints (core::scoring::constraints::ConstraintSetCOP old_constraints, std::set< core::scoring::constraints::ConstraintCOP > &removed_constraints) |
Shared logic; returns old_constraints without my_constraints_. More... | |
Private Attributes | |
core::Size | resid_ |
core::Real | stddev_degrees_ |
std::set< std::string > | my_constraints_ |
utility::vector1< core::Real > | old_chi_ |
std::set < core::scoring::constraints::ConstraintCOP > | old_constraints_ |
Manages harmonic restraints on torsions, so they can be turned off for packing.
Restraints are created when object is created, so they start off enabled. I had to change from a PoseOP in the constructor to Pose references in enable/disable because Movers only get Pose references, not PoseOPs. Do not try to use one of these with multiple different poses, or surely the C++ gods will smite thee.
protocols::ligand_docking::ResidueTorsionRestraints::ResidueTorsionRestraints | ( | core::pose::Pose & | pose, |
core::Size | resid, | ||
core::Real | stddev_degrees | ||
) |
Establishes initial constraints set – constraints start off enabled.
References enable().
|
inlinevirtual |
|
virtual |
Remove residue torsions constraints added by this object (if any).
References core::conformation::Residue::chi(), core::pose::Pose::constraint_set(), old_chi_, old_constraints_, resid_, core::pose::Pose::residue(), protocols::ligand_docking::TR, and without_my_constraints().
|
virtual |
Constrain residue torsions for specified pose.
References core::scoring::constraints::ConstraintSet::add_constraint(), core::conformation::Residue::chi(), core::pose::Pose::constraint_set(), old_chi_, old_constraints_, resid_, core::pose::Pose::residue(), setup_constraints(), and protocols::ligand_docking::TR.
Referenced by ResidueTorsionRestraints().
bool protocols::ligand_docking::ResidueTorsionRestraints::operator== | ( | const ResidueTorsionRestraints & | other | ) |
References resid_.
|
privatevirtual |
Shared logic for creating torsional constraints.
Adds constraints to all rotatable torsions except proton chis. Conserves all existing constraints except ones previously added by this object.
References core::pose::Pose::constraint_set(), my_constraints_, numeric::conversions::radians(), resid_, core::pose::Pose::residue(), core::pose::Pose::residue_type(), stddev_degrees_, protocols::ligand_docking::TR, and without_my_constraints().
Referenced by enable().
|
privatevirtual |
Shared logic; returns old_constraints without my_constraints_.
References utility::pointer::owning_ptr< T >::get(), my_constraints_, and protocols::ligand_docking::TR.
Referenced by disable(), and setup_constraints().
|
private |
Constraints that were created and added by this object. We compare by to_string() names rather than object identity because copying a Pose creates a deep copy of its constraints.
Referenced by setup_constraints(), and without_my_constraints().
|
private |
|
private |
|
private |
Referenced by disable(), enable(), operator==(), and setup_constraints().
|
private |
Referenced by setup_constraints().