29 #include <basic/Tracer.hh>
30 #include <utility/tag/Tag.hh>
31 #include <utility/vector1.hh>
34 static basic::Tracer
TR(
"protocols.forge.constraints.RemoveCsts" );
38 namespace constraints{
66 generator_( rval.generator_ ),
67 generator_id_( rval.generator_id_ )
89 utility_exit_with_message(
"No Cst Generator was specified in the XML for RemoveCsts." );
92 assert( utility::pointer::dynamic_pointer_cast< protocols::forge::remodel::RemodelConstraintGenerator >( mover ) );
94 if ( (rcg = utility::pointer::static_pointer_cast< protocols::forge::remodel::RemodelConstraintGenerator >( mover )) ) {
97 utility_exit_with_message(
"Error parsing generator option to RemoveCsts: the specified mover " +
generator_id_ +
" is not a constraint generator." );
123 runtime_assert( generator );
134 TR <<
"Before removing csts from " <<
generator_->get_name() <<
", there were " << pose.
constraint_set()->get_all_constraints().size() <<
" constraints in the pose." << std::endl;
136 TR <<
"There are " << pose.
constraint_set()->get_all_constraints().size() <<
" constraints remaining in the pose." << std::endl;
139 TR <<
"Before removing csts from " <<
generator_->get_name() <<
", there were " << pose.
constraint_set()->get_all_constraints().size() <<
" constraints in the pose." << std::endl;
140 generator_->remove_remodel_constraints_from_pose( pose );
141 TR <<
"There are " << pose.
constraint_set()->get_all_constraints().size() <<
" constraints remaining in the pose." << std::endl;