| 1 | /* ligand/rigid-body.hh |
| 2 | * |
| 3 | * Copyright 2005 by Paul Emsley, The University of York |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 18 | * 02110-1301, USA. |
| 19 | */ |
| 20 | |
| 21 | #ifndef COOT_RIGID_BODY_HH |
| 22 | #define COOT_RIGID_BODY_HHcxx . . $ `ligand/rigid-body.hh:22:9`! |
| 23 | |
| 24 | #include "clipper/core/xmap.h" |
| 25 | #include "mini-mol/mini-mol.hh"cxx . . $ `<file>/mini-mol/mini-mol.hh`/ |
| 26 | |
| 27 | // move the atoms of mol |
| 28 | namespace cootcxx . . $ coot/ { |
| 29 | void rigid_body_fitcxx . . $ coot/rigid_body_fit(387b8788d6e9adea).(minimolcxx . . $ coot/minimol/::moleculecxx . . $ coot/minimol/molecule# *mol, |
| 30 | const clippercxx . . $ clipper/::Xmapcxx . . $ clipper/Xmap#<float> &xmap, |
| 31 | float map_rmsd); |
| 32 | clippercxx . . $ clipper/::Vec3cxx . . $ clipper/Vec3#<double> |
| 33 | get_rigid_body_angle_componentscxx . . $ coot/get_rigid_body_angle_components(fc09d2868d6eb05d).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<minimolcxx . . $ coot/minimol/::atomcxx . . $ coot/minimol/atom# *> &atoms_p, |
| 34 | const clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# &mean_pos, |
| 35 | const stdcxx . . $ std/::vectorcxx . . $ std/vector#<clippercxx . . $ clipper/::Grad_orthcxx . . $ clipper/Grad_orth#<float> > &grad_vec, |
| 36 | double gradient_scale); |
| 37 | void apply_angles_to_moleculecxx . . $ coot/apply_angles_to_molecule(818f5e16e8fd9857).(const clippercxx . . $ clipper/::Vec3cxx . . $ clipper/Vec3#<double> &angles, |
| 38 | const stdcxx . . $ std/::vectorcxx . . $ std/vector#<minimolcxx . . $ coot/minimol/::atomcxx . . $ coot/minimol/atom# *> *atoms_p, |
| 39 | const clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# &mean_pos); |
| 40 | float score_moleculecxx . . $ coot/score_molecule(d4c32181d45d0ee7).(const cootcxx . . $ coot/::minimolcxx . . $ coot/minimol/::moleculecxx . . $ coot/minimol/molecule# &m, |
| 41 | const clippercxx . . $ clipper/::Xmapcxx . . $ clipper/Xmap#<float> &xmap); |
| 42 | |
| 43 | stdcxx . . $ std/::paircxx . . $ std/pair#<bool, clippercxx . . $ clipper/::RTop_orthcxx . . $ clipper/RTop_orth#> |
| 44 | get_rigid_body_fit_rtopcxx . . $ coot/get_rigid_body_fit_rtop(ff9f044910b6e0b0).(minimolcxx . . $ coot/minimol/::moleculecxx . . $ coot/minimol/molecule# *mol, |
| 45 | const clippercxx . . $ clipper/::Xmapcxx . . $ clipper/Xmap#<float> &xmap, |
| 46 | float map_rmsd); |
| 47 | // as above but make a local RTop, that is, remove local_centre |
| 48 | // from coordinates before calculating the RTop. |
| 49 | stdcxx . . $ std/::paircxx . . $ std/pair#<bool, clippercxx . . $ clipper/::RTop_orthcxx . . $ clipper/RTop_orth#> |
| 50 | get_rigid_body_fit_rtopcxx . . $ coot/get_rigid_body_fit_rtop(d9dfbd31d5a127cb).(minimolcxx . . $ coot/minimol/::moleculecxx . . $ coot/minimol/molecule# *mol, |
| 51 | const clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# &local_centre, |
| 52 | const clippercxx . . $ clipper/::Xmapcxx . . $ clipper/Xmap#<float> &xmap, |
| 53 | float map_rmsd); |
| 54 | |
| 55 | } |
| 56 | |
| 57 | #endif // COOT_RIGID_BODY_HH |