27 #include <utility/vector1.hh>
31 namespace conformation {
35 Size const kin_number,
40 ostr <<
"@kinemage {" << kin_number <<
"}\n";
41 ostr <<
"@title { " << title <<
" }\n";
42 ostr <<
"@1center " << ctr.x() <<
" " << ctr.y() <<
" " << ctr.z() <<
"\n";
43 ostr <<
"@1span 25\n";
58 if (atom_num == 0) atom_num = 1;
61 out <<
"{" << res.
name3() <<
" " << residue_num
62 <<
" " << res.
atom_name(atom_num) <<
" (" << atom_type.
name() <<
")"
67 out <<
" " << atom_xyz.x() <<
" " << atom_xyz.y() <<
" " << atom_xyz.z() <<
"\n";
94 if (atom_name ==
"") {
107 write_apolar_hydrogens_( false ),
108 write_polar_hydrogens_( false ),
109 write_backbone_hydrogens_( true ),
110 write_virtual_atoms_( false )
123 if ( atom_to_center_on == 0 ) {
126 center_point = rsd.
xyz( atom_to_center_on );
152 ostr <<
"@" << (
group_ ?
"group" :
"subgroup" ) <<
" { Res " << rsd.
seqpos() <<
" }";
156 ostr <<
"@vectorlist {";
158 ostr << rsd.
name() <<
" " << rsd.
seqpos() <<
"i";
162 ostr <<
"} color= " << color;
165 ostr <<
" instance= {" << rsd.
name() <<
" " << rsd.
seqpos() <<
"}";
169 if ( ! is_instance ) {
172 for(core::conformation::Residue::AtomIndices::const_iterator j = nbrs.begin(), end_j = nbrs.end(); j != end_j; ++j) {
174 if(atom_j <= atom_i)
continue;
184 std::string const ptmaster = ( is_H ?
" 'h'" :
"" );
186 print_node( ostr, rsd.seqpos(), atom_j, rsd, tag+ptmaster);
219 using namespace core::conformation;
223 rsd_writer.group(
false );
224 ostr <<
"@group { conformation } dominant on\n";
226 for (
Size ii = 1; ii <= conf.
size(); ++ii ) {
228 rsd_writer.write_rsd_coords( ostr, ii_rsd, is_instance );
231 for (
Size jj = 1; jj <= ii_rsd.n_residue_connections(); ++jj ) {
233 if ( jj_conn_residue < ii )
continue;
236 Size const jj_conn_id = ii_rsd.connect_map( jj ).connid();
237 Size const jj_conn_atom = jj_rsd.residue_connect_atom_index( jj_conn_id );
239 print_node( ostr, ii_rsd.seqpos(), ii_conn_atom, ii_rsd,
"P");
240 print_node( ostr, jj_rsd.seqpos(), jj_conn_atom, jj_rsd,
"");