IMP  2.0.1
The Integrative Modeling Platform
weighted_excluded_volume.h
Go to the documentation of this file.
1 /**
2  * \file IMP/multifit/weighted_excluded_volume.h
3  * \brief handles low resolution weighted excluded
4  * volume calculation.
5  *
6  * Copyright 2007-2013 IMP Inventors. All rights reserved.
7  *
8  */
9 
10 #ifndef IMPMULTIFIT_WEIGHTED_EXCLUDED_VOLUME_H
11 #define IMPMULTIFIT_WEIGHTED_EXCLUDED_VOLUME_H
12 
14 #include <IMP/Model.h>
15 #include <IMP/core/Hierarchy.h>
16 #include <IMP/core/rigid_bodies.h>
17 #include <IMP/atom/Mass.h>
18 #include <IMP/multifit/multifit_config.h>
19 IMPMULTIFIT_BEGIN_NAMESPACE
20 
21 
22 //! add shell index to leaves
23 /**
24 /param[in] apix sets the resolution of the surface
25 /note we assume that the leaves are xyz particles
26  */
27 IMPMULTIFITEXPORT void add_surface_index(core::Hierarchy mhd,
28  Float apix,
29  FloatKey shell_key= FloatKey("surf_ind"),
30  FloatKey radius_key=core::XYZR::get_radius_key(),
31  FloatKey weight_key=atom::Mass::get_mass_key()) ;
32 
33 //! create a weighted excluded volume restraint between two rigid bodies
34 /**
35 /param[in] rb1 the first rigid body
36 /param[in] rb2 the second rigid body
37 /param[in] shell_key the attribute that stored the particles
38  surface level with respect to its molecule
39  */
41  core::RigidBody rb1,
42  core::RigidBody rb2,
43  FloatKey shell_key= FloatKey("surf_ind")) ;
44 
45 IMPMULTIFIT_END_NAMESPACE
46 #endif /* IMPMULTIFIT_WEIGHTED_EXCLUDED_VOLUME_H */