14 from sys
import version_info
as _swig_python_version_info
15 import _IMP_kinematics
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_KINEMATICS_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_KINEMATICS_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_kinematics.delete_IMP_KINEMATICS_SwigPyIterator
77 r"""value(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
78 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_value(self)
81 r"""incr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator"""
82 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator"""
86 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
94 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator"""
98 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_copy(self)
101 r"""next(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
102 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_next(self)
105 r"""__next__(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
106 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___next__(self)
109 r"""previous(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
110 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
114 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
118 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
122 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
126 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
130 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
134 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator
139 __sub__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___sub__(self, *args)
146 _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_swigregister(IMP_KINEMATICS_SwigPyIterator)
153 IMP_DEBUG = _IMP_kinematics.IMP_DEBUG
155 IMP_RELEASE = _IMP_kinematics.IMP_RELEASE
157 IMP_SILENT = _IMP_kinematics.IMP_SILENT
159 IMP_PROGRESS = _IMP_kinematics.IMP_PROGRESS
161 IMP_TERSE = _IMP_kinematics.IMP_TERSE
163 IMP_VERBOSE = _IMP_kinematics.IMP_VERBOSE
165 IMP_MEMORY = _IMP_kinematics.IMP_MEMORY
167 IMP_NONE = _IMP_kinematics.IMP_NONE
169 IMP_USAGE = _IMP_kinematics.IMP_USAGE
171 IMP_INTERNAL = _IMP_kinematics.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_kinematics.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_kinematics.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kinematics.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_kinematics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_kinematics.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_kinematics.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kinematics.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_kinematics.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_kinematics._ostream_write(self, osa_buf)
236 _IMP_kinematics._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_kinematics.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_kinematics.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_kinematics.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_kinematics.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_kinematics.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_kinematics.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_kinematics.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_kinematics.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_kinematics.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_CORE_HAS_IMP_CGAL = _IMP_kinematics.IMP_CORE_HAS_IMP_CGAL
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CORE_HAS_IMP_KERNEL
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_FILESYSTEM
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CORE_HAS_BOOST_RANDOM
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_SYSTEM
320 IMP_CORE_HAS_CGAL = _IMP_kinematics.IMP_CORE_HAS_CGAL
322 IMP_CORE_HAS_HDF5 = _IMP_kinematics.IMP_CORE_HAS_HDF5
324 IMP_CORE_HAS_NUMPY = _IMP_kinematics.IMP_CORE_HAS_NUMPY
326 IMPCORE_SHOW_WARNINGS = _IMP_kinematics.IMPCORE_SHOW_WARNINGS
329 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_ALGEBRA
331 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_CGAL
333 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_DISPLAY
335 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_KERNEL
337 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
339 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
341 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
343 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_RANDOM
345 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_SYSTEM
347 IMP_CONTAINER_HAS_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_CGAL
349 IMP_CONTAINER_HAS_HDF5 = _IMP_kinematics.IMP_CONTAINER_HAS_HDF5
351 IMP_CONTAINER_HAS_NUMPY = _IMP_kinematics.IMP_CONTAINER_HAS_NUMPY
353 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_kinematics.IMP_CONTAINER_HAS_PYTHON_IHM
355 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
357 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_ROBIN_MAP
359 IMPCONTAINER_SHOW_WARNINGS = _IMP_kinematics.IMPCONTAINER_SHOW_WARNINGS
362 IMP_ATOM_HAS_IMP_CGAL = _IMP_kinematics.IMP_ATOM_HAS_IMP_CGAL
364 IMP_ATOM_HAS_IMP_KERNEL = _IMP_kinematics.IMP_ATOM_HAS_IMP_KERNEL
366 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
368 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
370 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_RANDOM
372 IMP_ATOM_HAS_BOOST_REGEX = _IMP_kinematics.IMP_ATOM_HAS_BOOST_REGEX
374 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_SYSTEM
376 IMP_ATOM_HAS_CGAL = _IMP_kinematics.IMP_ATOM_HAS_CGAL
378 IMP_ATOM_HAS_HDF5 = _IMP_kinematics.IMP_ATOM_HAS_HDF5
380 IMP_ATOM_HAS_NUMPY = _IMP_kinematics.IMP_ATOM_HAS_NUMPY
382 IMP_ATOM_HAS_PYTHON_IHM = _IMP_kinematics.IMP_ATOM_HAS_PYTHON_IHM
384 IMPATOM_SHOW_WARNINGS = _IMP_kinematics.IMPATOM_SHOW_WARNINGS
386 IMP_ATOM_TYPE_INDEX = _IMP_kinematics.IMP_ATOM_TYPE_INDEX
388 IMP_RESIDUE_TYPE_INDEX = _IMP_kinematics.IMP_RESIDUE_TYPE_INDEX
390 IMP_HIERARCHY_TYPE_INDEX = _IMP_kinematics.IMP_HIERARCHY_TYPE_INDEX
392 IMP_CHAIN_TYPE_INDEX = _IMP_kinematics.IMP_CHAIN_TYPE_INDEX
395 IMP_SAXS_HAS_IMP_CGAL = _IMP_kinematics.IMP_SAXS_HAS_IMP_CGAL
397 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_kinematics.IMP_SAXS_HAS_IMP_CONTAINER
399 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_SAXS_HAS_IMP_DISPLAY
401 IMP_SAXS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_SAXS_HAS_IMP_KERNEL
403 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
405 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_FILESYSTEM
407 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
409 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_RANDOM
411 IMP_SAXS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_SAXS_HAS_BOOST_REGEX
413 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_SYSTEM
415 IMP_SAXS_HAS_CGAL = _IMP_kinematics.IMP_SAXS_HAS_CGAL
417 IMP_SAXS_HAS_HDF5 = _IMP_kinematics.IMP_SAXS_HAS_HDF5
419 IMP_SAXS_HAS_NUMPY = _IMP_kinematics.IMP_SAXS_HAS_NUMPY
421 IMP_SAXS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_SAXS_HAS_PYTHON_IHM
423 IMPSAXS_SHOW_WARNINGS = _IMP_kinematics.IMPSAXS_SHOW_WARNINGS
426 IMP_KINEMATICS_HAS_IMP_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_CGAL
428 IMP_KINEMATICS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_DISPLAY
430 IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR
432 IMP_KINEMATICS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_FILESYSTEM
434 IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS
436 IMP_KINEMATICS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_RANDOM
438 IMP_KINEMATICS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_REGEX
440 IMP_KINEMATICS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_SYSTEM
442 IMP_KINEMATICS_HAS_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_CGAL
444 IMP_KINEMATICS_HAS_HDF5 = _IMP_kinematics.IMP_KINEMATICS_HAS_HDF5
446 IMP_KINEMATICS_HAS_NUMPY = _IMP_kinematics.IMP_KINEMATICS_HAS_NUMPY
448 IMP_KINEMATICS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_KINEMATICS_HAS_PYTHON_IHM
450 IMPKINEMATICS_SHOW_WARNINGS = _IMP_kinematics.IMPKINEMATICS_SHOW_WARNINGS
453 _object_types.append(
"Joint")
456 def _object_cast_to_Joint(o):
457 r"""_object_cast_to_Joint(Object o) -> Joint"""
458 return _IMP_kinematics._object_cast_to_Joint(o)
460 _object_types.append(
"TransformationJoint")
463 def _object_cast_to_TransformationJoint(o):
464 r"""_object_cast_to_TransformationJoint(Object o) -> TransformationJoint"""
465 return _IMP_kinematics._object_cast_to_TransformationJoint(o)
467 _object_types.append(
"RevoluteJoint")
470 def _object_cast_to_RevoluteJoint(o):
471 r"""_object_cast_to_RevoluteJoint(Object o) -> RevoluteJoint"""
472 return _IMP_kinematics._object_cast_to_RevoluteJoint(o)
474 _object_types.append(
"DihedralAngleRevoluteJoint")
477 def _object_cast_to_DihedralAngleRevoluteJoint(o):
478 r"""_object_cast_to_DihedralAngleRevoluteJoint(Object o) -> DihedralAngleRevoluteJoint"""
479 return _IMP_kinematics._object_cast_to_DihedralAngleRevoluteJoint(o)
481 _object_types.append(
"BondAngleRevoluteJoint")
484 def _object_cast_to_BondAngleRevoluteJoint(o):
485 r"""_object_cast_to_BondAngleRevoluteJoint(Object o) -> BondAngleRevoluteJoint"""
486 return _IMP_kinematics._object_cast_to_BondAngleRevoluteJoint(o)
488 _object_types.append(
"PrismaticJoint")
491 def _object_cast_to_PrismaticJoint(o):
492 r"""_object_cast_to_PrismaticJoint(Object o) -> PrismaticJoint"""
493 return _IMP_kinematics._object_cast_to_PrismaticJoint(o)
495 _object_types.append(
"KinematicForest")
498 def _object_cast_to_KinematicForest(o):
499 r"""_object_cast_to_KinematicForest(Object o) -> KinematicForest"""
500 return _IMP_kinematics._object_cast_to_KinematicForest(o)
502 _object_types.append(
"KinematicForestScoreState")
505 def _object_cast_to_KinematicForestScoreState(o):
506 r"""_object_cast_to_KinematicForestScoreState(Object o) -> KinematicForestScoreState"""
507 return _IMP_kinematics._object_cast_to_KinematicForestScoreState(o)
509 _object_types.append(
"CompositeJoint")
512 def _object_cast_to_CompositeJoint(o):
513 r"""_object_cast_to_CompositeJoint(Object o) -> CompositeJoint"""
514 return _IMP_kinematics._object_cast_to_CompositeJoint(o)
516 _object_types.append(
"RevoluteJointMover")
519 def _object_cast_to_RevoluteJointMover(o):
520 r"""_object_cast_to_RevoluteJointMover(Object o) -> RevoluteJointMover"""
521 return _IMP_kinematics._object_cast_to_RevoluteJointMover(o)
523 _object_types.append(
"DihedralMover")
526 def _object_cast_to_DihedralMover(o):
527 r"""_object_cast_to_DihedralMover(Object o) -> DihedralMover"""
528 return _IMP_kinematics._object_cast_to_DihedralMover(o)
530 _object_types.append(
"DOF")
533 def _object_cast_to_DOF(o):
534 r"""_object_cast_to_DOF(Object o) -> DOF"""
535 return _IMP_kinematics._object_cast_to_DOF(o)
538 _plural_types.append(
"DOFValuesList")
539 _value_types.append(
"DOFValues")
542 _object_types.append(
"DirectionalDOF")
545 def _object_cast_to_DirectionalDOF(o):
546 r"""_object_cast_to_DirectionalDOF(Object o) -> DirectionalDOF"""
547 return _IMP_kinematics._object_cast_to_DirectionalDOF(o)
549 _object_types.append(
"DOFsSampler")
552 def _object_cast_to_DOFsSampler(o):
553 r"""_object_cast_to_DOFsSampler(Object o) -> DOFsSampler"""
554 return _IMP_kinematics._object_cast_to_DOFsSampler(o)
556 _object_types.append(
"UniformBackboneSampler")
559 def _object_cast_to_UniformBackboneSampler(o):
560 r"""_object_cast_to_UniformBackboneSampler(Object o) -> UniformBackboneSampler"""
561 return _IMP_kinematics._object_cast_to_UniformBackboneSampler(o)
563 _object_types.append(
"FibrilSampler")
566 def _object_cast_to_FibrilSampler(o):
567 r"""_object_cast_to_FibrilSampler(Object o) -> FibrilSampler"""
568 return _IMP_kinematics._object_cast_to_FibrilSampler(o)
570 _object_types.append(
"ProteinKinematics")
573 def _object_cast_to_ProteinKinematics(o):
574 r"""_object_cast_to_ProteinKinematics(Object o) -> ProteinKinematics"""
575 return _IMP_kinematics._object_cast_to_ProteinKinematics(o)
577 _object_types.append(
"LocalPlanner")
580 def _object_cast_to_LocalPlanner(o):
581 r"""_object_cast_to_LocalPlanner(Object o) -> LocalPlanner"""
582 return _IMP_kinematics._object_cast_to_LocalPlanner(o)
584 _object_types.append(
"PathLocalPlanner")
587 def _object_cast_to_PathLocalPlanner(o):
588 r"""_object_cast_to_PathLocalPlanner(Object o) -> PathLocalPlanner"""
589 return _IMP_kinematics._object_cast_to_PathLocalPlanner(o)
591 _object_types.append(
"RRT")
594 def _object_cast_to_RRT(o):
595 r"""_object_cast_to_RRT(Object o) -> RRT"""
596 return _IMP_kinematics._object_cast_to_RRT(o)
598 r"""Proxy of C++ IMP::kinematics::Joint class."""
600 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
603 r"""get_version_info(Joint self) -> VersionInfo"""
604 return _IMP_kinematics.Joint_get_version_info(self)
605 __swig_destroy__ = _IMP_kinematics.delete_Joint
607 def __init__(self, parent, child):
608 r"""__init__(Joint self, RigidBody parent, RigidBody child) -> Joint"""
609 _IMP_kinematics.Joint_swiginit(self, _IMP_kinematics.new_Joint(parent, child))
611 def get_owner_kf(self):
612 r"""get_owner_kf(Joint self) -> KinematicForest"""
613 return _IMP_kinematics.Joint_get_owner_kf(self)
615 def get_transformation_child_to_parent(self):
616 r"""get_transformation_child_to_parent(Joint self) -> Transformation3D"""
617 return _IMP_kinematics.Joint_get_transformation_child_to_parent(self)
619 def get_parent_node(self):
620 r"""get_parent_node(Joint self) -> RigidBody"""
621 return _IMP_kinematics.Joint_get_parent_node(self)
623 def get_child_node(self):
624 r"""get_child_node(Joint self) -> RigidBody"""
625 return _IMP_kinematics.Joint_get_child_node(self)
628 r"""__str__(Joint self) -> std::string"""
629 return _IMP_kinematics.Joint___str__(self)
632 r"""__repr__(Joint self) -> std::string"""
633 return _IMP_kinematics.Joint___repr__(self)
637 return _object_cast_to_Joint(o)
641 _IMP_kinematics.Joint_swigregister(Joint)
642 class TransformationJoint(Joint):
643 r"""Proxy of C++ IMP::kinematics::TransformationJoint class."""
645 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
647 def __init__(self, parent, child):
648 r"""__init__(TransformationJoint self, RigidBody parent, RigidBody child) -> TransformationJoint"""
649 _IMP_kinematics.TransformationJoint_swiginit(self, _IMP_kinematics.new_TransformationJoint(parent, child))
651 def set_transformation_child_to_parent(self, transformation):
652 r"""set_transformation_child_to_parent(TransformationJoint self, Transformation3D transformation)"""
653 return _IMP_kinematics.TransformationJoint_set_transformation_child_to_parent(self, transformation)
656 r"""__str__(TransformationJoint self) -> std::string"""
657 return _IMP_kinematics.TransformationJoint___str__(self)
660 r"""__repr__(TransformationJoint self) -> std::string"""
661 return _IMP_kinematics.TransformationJoint___repr__(self)
665 return _object_cast_to_TransformationJoint(o)
667 __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
670 _IMP_kinematics.TransformationJoint_swigregister(TransformationJoint)
671 class PrismaticJoint(Joint):
672 r"""Proxy of C++ IMP::kinematics::PrismaticJoint class."""
674 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
676 def __init__(self, *args):
678 __init__(PrismaticJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b) -> PrismaticJoint
679 __init__(PrismaticJoint self, RigidBody parent, RigidBody child) -> PrismaticJoint
681 _IMP_kinematics.PrismaticJoint_swiginit(self, _IMP_kinematics.new_PrismaticJoint(*args))
683 def get_length(self):
684 r"""get_length(PrismaticJoint self) -> double"""
685 return _IMP_kinematics.PrismaticJoint_get_length(self)
687 def set_length(self, l):
688 r"""set_length(PrismaticJoint self, double l)"""
689 return _IMP_kinematics.PrismaticJoint_set_length(self, l)
692 r"""__str__(PrismaticJoint self) -> std::string"""
693 return _IMP_kinematics.PrismaticJoint___str__(self)
696 r"""__repr__(PrismaticJoint self) -> std::string"""
697 return _IMP_kinematics.PrismaticJoint___repr__(self)
701 return _object_cast_to_PrismaticJoint(o)
703 __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
706 _IMP_kinematics.PrismaticJoint_swigregister(PrismaticJoint)
707 class CompositeJoint(Joint):
708 r"""Proxy of C++ IMP::kinematics::CompositeJoint class."""
710 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
712 def __init__(self, *args):
713 r"""__init__(CompositeJoint self, RigidBody parent, RigidBody child, IMP::kinematics::Joints joints=IMP::kinematics::Joints()) -> CompositeJoint"""
714 _IMP_kinematics.CompositeJoint_swiginit(self, _IMP_kinematics.new_CompositeJoint(*args))
716 def add_downstream_joint(self, j):
717 r"""add_downstream_joint(CompositeJoint self, Joint j)"""
718 return _IMP_kinematics.CompositeJoint_add_downstream_joint(self, j)
720 def add_upstream_joint(self, j):
721 r"""add_upstream_joint(CompositeJoint self, Joint j)"""
722 return _IMP_kinematics.CompositeJoint_add_upstream_joint(self, j)
724 def set_joints(self, joints):
725 r"""set_joints(CompositeJoint self, IMP::kinematics::Joints joints)"""
726 return _IMP_kinematics.CompositeJoint_set_joints(self, joints)
728 def get_inner_joints(self):
729 r"""get_inner_joints(CompositeJoint self) -> IMP::kinematics::Joints const &"""
730 return _IMP_kinematics.CompositeJoint_get_inner_joints(self)
733 r"""__str__(CompositeJoint self) -> std::string"""
734 return _IMP_kinematics.CompositeJoint___str__(self)
737 r"""__repr__(CompositeJoint self) -> std::string"""
738 return _IMP_kinematics.CompositeJoint___repr__(self)
742 return _object_cast_to_CompositeJoint(o)
744 __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
747 _IMP_kinematics.CompositeJoint_swigregister(CompositeJoint)
748 class RevoluteJoint(Joint):
749 r"""Proxy of C++ IMP::kinematics::RevoluteJoint class."""
751 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
753 def __init__(self, parent, child):
754 r"""__init__(RevoluteJoint self, RigidBody parent, RigidBody child) -> RevoluteJoint"""
755 if self.__class__ == RevoluteJoint:
759 _IMP_kinematics.RevoluteJoint_swiginit(self, _IMP_kinematics.new_RevoluteJoint(_self, parent, child))
761 if self.__class__ != RevoluteJoint:
762 _director_objects.register(self)
766 __swig_destroy__ = _IMP_kinematics.delete_RevoluteJoint
768 def set_angle(self, angle):
769 r"""set_angle(RevoluteJoint self, double angle)"""
770 return _IMP_kinematics.RevoluteJoint_set_angle(self, angle)
773 r"""get_angle(RevoluteJoint self) -> double"""
774 return _IMP_kinematics.RevoluteJoint_get_angle(self)
776 def get_rot_axis_origin(self):
777 r"""get_rot_axis_origin(RevoluteJoint self) -> Vector3D"""
778 return _IMP_kinematics.RevoluteJoint_get_rot_axis_origin(self)
780 def get_rot_axis_unit_vector(self):
781 r"""get_rot_axis_unit_vector(RevoluteJoint self) -> Vector3D"""
782 return _IMP_kinematics.RevoluteJoint_get_rot_axis_unit_vector(self)
784 def update_child_node_reference_frame(self):
785 r"""update_child_node_reference_frame(RevoluteJoint self)"""
786 return _IMP_kinematics.RevoluteJoint_update_child_node_reference_frame(self)
788 def update_axis_of_rotation_from_cartesian_witnesses(self):
789 r"""update_axis_of_rotation_from_cartesian_witnesses(RevoluteJoint self)"""
790 return _IMP_kinematics.RevoluteJoint_update_axis_of_rotation_from_cartesian_witnesses(self)
792 def get_current_angle_from_cartesian_witnesses(self):
793 r"""get_current_angle_from_cartesian_witnesses(RevoluteJoint self) -> double"""
794 return _IMP_kinematics.RevoluteJoint_get_current_angle_from_cartesian_witnesses(self)
796 def update_joint_from_cartesian_witnesses(self):
797 r"""update_joint_from_cartesian_witnesses(RevoluteJoint self)"""
798 return _IMP_kinematics.RevoluteJoint_update_joint_from_cartesian_witnesses(self)
800 def get_rotation_about_joint_in_parent_coordinates(self):
801 r"""get_rotation_about_joint_in_parent_coordinates(RevoluteJoint self) -> Transformation3D"""
802 return _IMP_kinematics.RevoluteJoint_get_rotation_about_joint_in_parent_coordinates(self)
803 angle_ = property(_IMP_kinematics.RevoluteJoint_angle__get, _IMP_kinematics.RevoluteJoint_angle__set, doc=
r"""angle_ : double""")
804 last_updated_angle_ = property(_IMP_kinematics.RevoluteJoint_last_updated_angle__get, _IMP_kinematics.RevoluteJoint_last_updated_angle__set, doc=
r"""last_updated_angle_ : double""")
805 rot_axis_unit_vector_ = property(_IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__get, _IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__set, doc=
r"""rot_axis_unit_vector_ : IMP::algebra::Vector3D""")
806 rot_axis_origin_ = property(_IMP_kinematics.RevoluteJoint_rot_axis_origin__get, _IMP_kinematics.RevoluteJoint_rot_axis_origin__set, doc=
r"""rot_axis_origin_ : IMP::algebra::Vector3D""")
809 r"""__str__(RevoluteJoint self) -> std::string"""
810 return _IMP_kinematics.RevoluteJoint___str__(self)
813 r"""__repr__(RevoluteJoint self) -> std::string"""
814 return _IMP_kinematics.RevoluteJoint___repr__(self)
818 return _object_cast_to_RevoluteJoint(o)
821 def get_type_name(self):
822 return self.__class__.__name__
823 def do_show(self, out):
826 if"IMP::kinematics" ==
"IMP":
827 return VersionInfo(self.__module__,
834 return _object_cast_to_RevoluteJoint(o)
836 def __disown__(self):
838 _IMP_kinematics.disown_RevoluteJoint(self)
839 return weakref.proxy(self)
842 r"""do_destroy(RevoluteJoint self)"""
843 return _IMP_kinematics.RevoluteJoint_do_destroy(self)
846 _IMP_kinematics.RevoluteJoint_swigregister(RevoluteJoint)
847 class DihedralAngleRevoluteJoint(RevoluteJoint):
848 r"""Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class."""
850 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
852 def __init__(self, parent, child, a, b, c, d):
853 r"""__init__(DihedralAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c, XYZ d) -> DihedralAngleRevoluteJoint"""
854 _IMP_kinematics.DihedralAngleRevoluteJoint_swiginit(self, _IMP_kinematics.new_DihedralAngleRevoluteJoint(parent, child, a, b, c, d))
857 r"""get_a(DihedralAngleRevoluteJoint self) -> XYZ"""
858 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_a(self)
861 r"""get_b(DihedralAngleRevoluteJoint self) -> XYZ"""
862 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_b(self)
865 r"""get_c(DihedralAngleRevoluteJoint self) -> XYZ"""
866 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_c(self)
869 r"""get_d(DihedralAngleRevoluteJoint self) -> XYZ"""
870 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_d(self)
873 r"""__str__(DihedralAngleRevoluteJoint self) -> std::string"""
874 return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
877 r"""__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
878 return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
882 return _object_cast_to_DihedralAngleRevoluteJoint(o)
884 __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
887 _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
888 class BondAngleRevoluteJoint(RevoluteJoint):
889 r"""Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class."""
891 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
893 def __init__(self, parent, child, a, b, c):
894 r"""__init__(BondAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c) -> BondAngleRevoluteJoint"""
895 _IMP_kinematics.BondAngleRevoluteJoint_swiginit(self, _IMP_kinematics.new_BondAngleRevoluteJoint(parent, child, a, b, c))
898 r"""__str__(BondAngleRevoluteJoint self) -> std::string"""
899 return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
902 r"""__repr__(BondAngleRevoluteJoint self) -> std::string"""
903 return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
907 return _object_cast_to_BondAngleRevoluteJoint(o)
909 __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
912 _IMP_kinematics.BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
914 r"""Proxy of C++ IMP::kinematics::RevoluteJointMover class."""
916 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
918 def __init__(self, m, joints, stddev=0.01):
919 r"""__init__(RevoluteJointMover self, Model m, IMP::kinematics::RevoluteJoints const & joints, double const stddev=0.01) -> RevoluteJointMover"""
920 _IMP_kinematics.RevoluteJointMover_swiginit(self, _IMP_kinematics.new_RevoluteJointMover(m, joints, stddev))
922 def set_sigma(self, sigma):
923 r"""set_sigma(RevoluteJointMover self, IMP::Float sigma)"""
924 return _IMP_kinematics.RevoluteJointMover_set_sigma(self, sigma)
927 r"""get_sigma(RevoluteJointMover self) -> IMP::Float"""
928 return _IMP_kinematics.RevoluteJointMover_get_sigma(self)
931 r"""get_version_info(RevoluteJointMover self) -> VersionInfo"""
932 return _IMP_kinematics.RevoluteJointMover_get_version_info(self)
933 __swig_destroy__ = _IMP_kinematics.delete_RevoluteJointMover
936 r"""__str__(RevoluteJointMover self) -> std::string"""
937 return _IMP_kinematics.RevoluteJointMover___str__(self)
940 r"""__repr__(RevoluteJointMover self) -> std::string"""
941 return _IMP_kinematics.RevoluteJointMover___repr__(self)
945 return _object_cast_to_RevoluteJointMover(o)
949 _IMP_kinematics.RevoluteJointMover_swigregister(RevoluteJointMover)
951 r"""Proxy of C++ IMP::kinematics::DihedralMover class."""
953 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
955 def __init__(self, m, joints, max_rot=0.1):
956 r"""__init__(DihedralMover self, Model m, IMP::kinematics::RevoluteJoints const & joints, double const max_rot=0.1) -> DihedralMover"""
957 _IMP_kinematics.DihedralMover_swiginit(self, _IMP_kinematics.new_DihedralMover(m, joints, max_rot))
960 r"""get_version_info(DihedralMover self) -> VersionInfo"""
961 return _IMP_kinematics.DihedralMover_get_version_info(self)
962 __swig_destroy__ = _IMP_kinematics.delete_DihedralMover
965 r"""__str__(DihedralMover self) -> std::string"""
966 return _IMP_kinematics.DihedralMover___str__(self)
969 r"""__repr__(DihedralMover self) -> std::string"""
970 return _IMP_kinematics.DihedralMover___repr__(self)
974 return _object_cast_to_DihedralMover(o)
978 _IMP_kinematics.DihedralMover_swigregister(DihedralMover)
980 r"""Proxy of C++ IMP::kinematics::KinematicForest class."""
982 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
985 r"""get_version_info(KinematicForest self) -> VersionInfo"""
986 return _IMP_kinematics.KinematicForest_get_version_info(self)
987 __swig_destroy__ = _IMP_kinematics.delete_KinematicForest
989 def __init__(self, *args):
991 __init__(KinematicForest self, Model m) -> KinematicForest
992 __init__(KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
994 _IMP_kinematics.KinematicForest_swiginit(self, _IMP_kinematics.new_KinematicForest(*args))
996 def add_edge(self, *args):
998 add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
999 add_edge(KinematicForest self, Joint joint)
1001 return _IMP_kinematics.KinematicForest_add_edge(self, *args)
1003 def add_rigid_bodies_in_chain(self, rbs):
1004 r"""add_rigid_bodies_in_chain(KinematicForest self, IMP::core::RigidBodies rbs)"""
1005 return _IMP_kinematics.KinematicForest_add_rigid_bodies_in_chain(self, rbs)
1007 def reset_root(self, new_root):
1008 r"""reset_root(KinematicForest self, Particle new_root)"""
1009 return _IMP_kinematics.KinematicForest_reset_root(self, new_root)
1011 def update_all_internal_coordinates(self):
1012 r"""update_all_internal_coordinates(KinematicForest self)"""
1013 return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
1015 def update_all_external_coordinates(self):
1016 r"""update_all_external_coordinates(KinematicForest self)"""
1017 return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
1019 def get_ordered_joints(self):
1020 r"""get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
1021 return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
1023 def transform_safe(self, tr):
1024 r"""transform_safe(KinematicForest self, Transformation3D tr)"""
1025 return _IMP_kinematics.KinematicForest_transform_safe(self, tr)
1027 def mark_internal_coordinates_changed(self):
1028 r"""mark_internal_coordinates_changed(KinematicForest self)"""
1029 return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
1031 def mark_external_coordinates_changed(self):
1032 r"""mark_external_coordinates_changed(KinematicForest self)"""
1033 return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
1035 def set_coordinates_safe(self, rb, c):
1036 r"""set_coordinates_safe(KinematicForest self, RigidBody rb, Vector3D c)"""
1037 return _IMP_kinematics.KinematicForest_set_coordinates_safe(self, rb, c)
1039 def get_coordinates_safe(self, rb):
1040 r"""get_coordinates_safe(KinematicForest self, RigidBody rb) -> Vector3D"""
1041 return _IMP_kinematics.KinematicForest_get_coordinates_safe(self, rb)
1043 def get_is_member(self, rb):
1044 r"""get_is_member(KinematicForest self, RigidBody rb) -> bool"""
1045 return _IMP_kinematics.KinematicForest_get_is_member(self, rb)
1047 def get_reference_frame_safe(self, rb):
1048 r"""get_reference_frame_safe(KinematicForest self, RigidBody rb) -> ReferenceFrame3D"""
1049 return _IMP_kinematics.KinematicForest_get_reference_frame_safe(self, rb)
1051 def set_reference_frame_safe(self, rb, r):
1052 r"""set_reference_frame_safe(KinematicForest self, RigidBody rb, ReferenceFrame3D r)"""
1053 return _IMP_kinematics.KinematicForest_set_reference_frame_safe(self, rb, r)
1055 def apply_transform_safely(self, tr):
1056 r"""apply_transform_safely(KinematicForest self, Transformation3D tr)"""
1057 return _IMP_kinematics.KinematicForest_apply_transform_safely(self, tr)
1060 r"""__str__(KinematicForest self) -> std::string"""
1061 return _IMP_kinematics.KinematicForest___str__(self)
1064 r"""__repr__(KinematicForest self) -> std::string"""
1065 return _IMP_kinematics.KinematicForest___repr__(self)
1069 return _object_cast_to_KinematicForest(o)
1073 _IMP_kinematics.KinematicForest_swigregister(KinematicForest)
1075 r"""Proxy of C++ IMP::kinematics::KinematicForestScoreState class."""
1077 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1080 r"""get_version_info(KinematicForestScoreState self) -> VersionInfo"""
1081 return _IMP_kinematics.KinematicForestScoreState_get_version_info(self)
1082 __swig_destroy__ = _IMP_kinematics.delete_KinematicForestScoreState
1084 def __init__(self, kf, rbs, atoms):
1085 r"""__init__(KinematicForestScoreState self, KinematicForest kf, IMP::core::RigidBodies rbs, IMP::ParticlesTemp atoms) -> KinematicForestScoreState"""
1086 _IMP_kinematics.KinematicForestScoreState_swiginit(self, _IMP_kinematics.new_KinematicForestScoreState(kf, rbs, atoms))
1088 def do_before_evaluate(self):
1089 r"""do_before_evaluate(KinematicForestScoreState self)"""
1090 return _IMP_kinematics.KinematicForestScoreState_do_before_evaluate(self)
1092 def do_after_evaluate(self, da):
1093 r"""do_after_evaluate(KinematicForestScoreState self, DerivativeAccumulator da)"""
1094 return _IMP_kinematics.KinematicForestScoreState_do_after_evaluate(self, da)
1097 r"""do_get_inputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1098 return _IMP_kinematics.KinematicForestScoreState_do_get_inputs(self)
1101 r"""do_get_outputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1102 return _IMP_kinematics.KinematicForestScoreState_do_get_outputs(self)
1105 r"""__str__(KinematicForestScoreState self) -> std::string"""
1106 return _IMP_kinematics.KinematicForestScoreState___str__(self)
1109 r"""__repr__(KinematicForestScoreState self) -> std::string"""
1110 return _IMP_kinematics.KinematicForestScoreState___repr__(self)
1114 return _object_cast_to_KinematicForestScoreState(o)
1118 _IMP_kinematics.KinematicForestScoreState_swigregister(KinematicForestScoreState)
1120 r"""Proxy of C++ IMP::kinematics::DOF class."""
1122 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1125 r"""get_version_info(DOF self) -> VersionInfo"""
1126 return _IMP_kinematics.DOF_get_version_info(self)
1127 __swig_destroy__ = _IMP_kinematics.delete_DOF
1129 def __init__(self, *args):
1131 __init__(DOF self, double v) -> DOF
1132 __init__(DOF self, double v, double min, double max, double step_size) -> DOF
1134 _IMP_kinematics.DOF_swiginit(self, _IMP_kinematics.new_DOF(*args))
1136 def get_value(self):
1137 r"""get_value(DOF self) -> double"""
1138 return _IMP_kinematics.DOF_get_value(self)
1140 def set_value(self, v):
1141 r"""set_value(DOF self, double v)"""
1142 return _IMP_kinematics.DOF_set_value(self, v)
1144 def get_range(self):
1145 r"""get_range(DOF self) -> std::pair< double,double >"""
1146 return _IMP_kinematics.DOF_get_range(self)
1148 def set_range(self, range):
1149 r"""set_range(DOF self, std::pair< double,double > range)"""
1150 return _IMP_kinematics.DOF_set_range(self, range)
1152 def get_step_size(self):
1153 r"""get_step_size(DOF self) -> double"""
1154 return _IMP_kinematics.DOF_get_step_size(self)
1156 def set_step_size(self, step_size):
1157 r"""set_step_size(DOF self, double step_size)"""
1158 return _IMP_kinematics.DOF_set_step_size(self, step_size)
1160 def get_number_of_steps(self, *args):
1162 get_number_of_steps(DOF self, double value) -> int
1163 get_number_of_steps(DOF self, double value1, double value2) -> int
1165 return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1168 r"""__str__(DOF self) -> std::string"""
1169 return _IMP_kinematics.DOF___str__(self)
1172 r"""__repr__(DOF self) -> std::string"""
1173 return _IMP_kinematics.DOF___repr__(self)
1177 return _object_cast_to_DOF(o)
1181 _IMP_kinematics.DOF_swigregister(DOF)
1182 class DOFValues(IMP.saxs.DistBase):
1183 r"""Proxy of C++ IMP::kinematics::DOFValues class."""
1185 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1187 def __init__(self, *args):
1189 __init__(DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1190 __init__(DOFValues self) -> DOFValues
1192 _IMP_kinematics.DOFValues_swiginit(self, _IMP_kinematics.new_DOFValues(*args))
1194 def get_distance2(self, *args):
1196 get_distance2(DOFValues self, DOFValues other_dof_values) -> double
1197 get_distance2(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1199 return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1203 get_distance(DOFValues self, DOFValues other_dof_values) -> double
1204 get_distance(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1206 return _IMP_kinematics.DOFValues_get_distance(self, *args)
1208 def show(self, *args):
1209 r"""show(DOFValues self, _ostream out=std::cout)"""
1210 return _IMP_kinematics.DOFValues_show(self, *args)
1213 r"""__str__(DOFValues self) -> std::string"""
1214 return _IMP_kinematics.DOFValues___str__(self)
1217 r"""__repr__(DOFValues self) -> std::string"""
1218 return _IMP_kinematics.DOFValues___repr__(self)
1220 def _get_as_binary(self):
1221 r"""_get_as_binary(DOFValues self) -> PyObject *"""
1222 return _IMP_kinematics.DOFValues__get_as_binary(self)
1224 def _set_from_binary(self, p):
1225 r"""_set_from_binary(DOFValues self, PyObject * p)"""
1226 return _IMP_kinematics.DOFValues__set_from_binary(self, p)
1228 def __getstate__(self):
1229 p = self._get_as_binary()
1230 if len(self.__dict__) > 1:
1231 d = self.__dict__.copy()
1236 def __setstate__(self, p):
1237 if not hasattr(self,
'this'):
1239 if isinstance(p, tuple):
1241 self.__dict__.update(d)
1242 return self._set_from_binary(p)
1244 __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1247 _IMP_kinematics.DOFValues_swigregister(DOFValues)
1249 r"""Proxy of C++ IMP::kinematics::DirectionalDOF class."""
1251 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1253 def __init__(self, dofs):
1254 r"""__init__(DirectionalDOF self, IMP::kinematics::DOFs const & dofs) -> DirectionalDOF"""
1255 _IMP_kinematics.DirectionalDOF_swiginit(self, _IMP_kinematics.new_DirectionalDOF(dofs))
1257 def set_end_points(self, q1, q2):
1258 r"""set_end_points(DirectionalDOF self, DOFValues q1, DOFValues q2)"""
1259 return _IMP_kinematics.DirectionalDOF_set_end_points(self, q1, q2)
1261 def get_dofs_values(self):
1262 r"""get_dofs_values(DirectionalDOF self) -> DOFValues"""
1263 return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1265 def get_value(self):
1266 r"""get_value(DirectionalDOF self) -> double"""
1267 return _IMP_kinematics.DirectionalDOF_get_value(self)
1270 r"""get_version_info(DirectionalDOF self) -> VersionInfo"""
1271 return _IMP_kinematics.DirectionalDOF_get_version_info(self)
1272 __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1275 r"""__str__(DirectionalDOF self) -> std::string"""
1276 return _IMP_kinematics.DirectionalDOF___str__(self)
1279 r"""__repr__(DirectionalDOF self) -> std::string"""
1280 return _IMP_kinematics.DirectionalDOF___repr__(self)
1284 return _object_cast_to_DirectionalDOF(o)
1288 _IMP_kinematics.DirectionalDOF_swigregister(DirectionalDOF)
1290 r"""Proxy of C++ IMP::kinematics::DOFsSampler class."""
1292 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1294 def get_type_name(self):
1295 r"""get_type_name(DOFsSampler self) -> std::string"""
1296 return _IMP_kinematics.DOFsSampler_get_type_name(self)
1299 r"""get_version_info(DOFsSampler self) -> VersionInfo"""
1300 return _IMP_kinematics.DOFsSampler_get_version_info(self)
1301 __swig_destroy__ = _IMP_kinematics.delete_DOFsSampler
1303 def __init__(self, dofs):
1304 r"""__init__(DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1305 if self.__class__ == DOFsSampler:
1309 _IMP_kinematics.DOFsSampler_swiginit(self, _IMP_kinematics.new_DOFsSampler(_self, dofs))
1311 if self.__class__ != DOFsSampler:
1312 _director_objects.register(self)
1317 def get_sample(self):
1318 r"""get_sample(DOFsSampler self) -> DOFValues"""
1319 return _IMP_kinematics.DOFsSampler_get_sample(self)
1321 def apply(self, values):
1322 r"""apply(DOFsSampler self, DOFValues values)"""
1323 return _IMP_kinematics.DOFsSampler_apply(self, values)
1325 def apply_last_sample(self):
1326 r"""apply_last_sample(DOFsSampler self)"""
1327 return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1329 def sample_and_apply(self):
1330 r"""sample_and_apply(DOFsSampler self)"""
1331 return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1334 r"""get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1335 return _IMP_kinematics.DOFsSampler_get_dofs(self)
1337 def get_dof(self, i):
1338 r"""get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1339 return _IMP_kinematics.DOFsSampler_get_dof(self, i)
1341 def get_number_of_dofs(self):
1342 r"""get_number_of_dofs(DOFsSampler self) -> unsigned int"""
1343 return _IMP_kinematics.DOFsSampler_get_number_of_dofs(self)
1345 def do_get_sample(self):
1346 r"""do_get_sample(DOFsSampler self) -> DOFValues"""
1347 return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1350 r"""__str__(DOFsSampler self) -> std::string"""
1351 return _IMP_kinematics.DOFsSampler___str__(self)
1354 r"""__repr__(DOFsSampler self) -> std::string"""
1355 return _IMP_kinematics.DOFsSampler___repr__(self)
1359 return _object_cast_to_DOFsSampler(o)
1362 def get_type_name(self):
1363 return self.__class__.__name__
1364 def do_show(self, out):
1367 if"IMP::kinematics" ==
"IMP":
1368 return VersionInfo(self.__module__,
1375 return _object_cast_to_DOFsSampler(o)
1377 def __disown__(self):
1379 _IMP_kinematics.disown_DOFsSampler(self)
1380 return weakref.proxy(self)
1383 r"""do_destroy(DOFsSampler self)"""
1384 return _IMP_kinematics.DOFsSampler_do_destroy(self)
1387 _IMP_kinematics.DOFsSampler_swigregister(DOFsSampler)
1388 class FibrilSampler(DOFsSampler):
1389 r"""Proxy of C++ IMP::kinematics::FibrilSampler class."""
1391 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1393 def __init__(self, trans_joint, dihedral_joints, dofs):
1394 r"""__init__(FibrilSampler self, IMP::kinematics::TransformationJoints trans_joint, IMP::kinematics::DihedralAngleRevoluteJoints dihedral_joints, IMP::kinematics::DOFs dofs) -> FibrilSampler"""
1395 _IMP_kinematics.FibrilSampler_swiginit(self, _IMP_kinematics.new_FibrilSampler(trans_joint, dihedral_joints, dofs))
1397 def apply_floats(self, values):
1398 r"""apply_floats(FibrilSampler self, IMP::Floats const & values)"""
1399 return _IMP_kinematics.FibrilSampler_apply_floats(self, values)
1401 def get_dihedral_joints(self):
1402 r"""get_dihedral_joints(FibrilSampler self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1403 return _IMP_kinematics.FibrilSampler_get_dihedral_joints(self)
1405 def get_transformation_joint(self):
1406 r"""get_transformation_joint(FibrilSampler self) -> IMP::kinematics::TransformationJoints"""
1407 return _IMP_kinematics.FibrilSampler_get_transformation_joint(self)
1410 r"""__str__(FibrilSampler self) -> std::string"""
1411 return _IMP_kinematics.FibrilSampler___str__(self)
1414 r"""__repr__(FibrilSampler self) -> std::string"""
1415 return _IMP_kinematics.FibrilSampler___repr__(self)
1419 return _object_cast_to_FibrilSampler(o)
1421 __swig_destroy__ = _IMP_kinematics.delete_FibrilSampler
1424 _IMP_kinematics.FibrilSampler_swigregister(FibrilSampler)
1425 class UniformBackboneSampler(DOFsSampler):
1426 r"""Proxy of C++ IMP::kinematics::UniformBackboneSampler class."""
1428 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1430 def __init__(self, joints, dofs):
1431 r"""__init__(UniformBackboneSampler self, IMP::kinematics::DihedralAngleRevoluteJoints joints, IMP::kinematics::DOFs dofs) -> UniformBackboneSampler"""
1432 _IMP_kinematics.UniformBackboneSampler_swiginit(self, _IMP_kinematics.new_UniformBackboneSampler(joints, dofs))
1434 def apply_floats(self, values):
1435 r"""apply_floats(UniformBackboneSampler self, IMP::Floats const & values)"""
1436 return _IMP_kinematics.UniformBackboneSampler_apply_floats(self, values)
1438 def get_joints(self):
1439 r"""get_joints(UniformBackboneSampler self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1440 return _IMP_kinematics.UniformBackboneSampler_get_joints(self)
1443 r"""__str__(UniformBackboneSampler self) -> std::string"""
1444 return _IMP_kinematics.UniformBackboneSampler___str__(self)
1447 r"""__repr__(UniformBackboneSampler self) -> std::string"""
1448 return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1452 return _object_cast_to_UniformBackboneSampler(o)
1454 __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1457 _IMP_kinematics.UniformBackboneSampler_swigregister(UniformBackboneSampler)
1458 PHI = _IMP_kinematics.PHI
1460 PSI = _IMP_kinematics.PSI
1462 CHI = _IMP_kinematics.CHI
1464 CHI1 = _IMP_kinematics.CHI1
1466 CHI2 = _IMP_kinematics.CHI2
1468 CHI3 = _IMP_kinematics.CHI3
1470 CHI4 = _IMP_kinematics.CHI4
1472 CHI5 = _IMP_kinematics.CHI5
1474 OTHER = _IMP_kinematics.OTHER
1476 OTHER2 = _IMP_kinematics.OTHER2
1478 OTHER3 = _IMP_kinematics.OTHER3
1480 OTHER4 = _IMP_kinematics.OTHER4
1482 OTHER5 = _IMP_kinematics.OTHER5
1484 TOTAL = _IMP_kinematics.TOTAL
1487 r"""Proxy of C++ IMP::kinematics::ProteinKinematics class."""
1489 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1491 def __init__(self, *args):
1493 __init__(ProteinKinematics self, Hierarchy mhd, bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1494 __init__(ProteinKinematics self, Hierarchy mhd, IMP::atom::Residues const & flexible_residues, IMP::ParticleIndexQuads const custom_dihedral_angles, IMP::atom::Atoms open_loop_bond_atoms=IMP::atom::Atoms(), bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1495 __init__(ProteinKinematics self, Hierarchy mhd, IMP::atom::Residues const & flexible_residues, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & custom_dihedral_atoms, IMP::atom::Atoms open_loop_bond_atoms=IMP::atom::Atoms(), bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1496 __init__(ProteinKinematics self, Hierarchy mhd, IMP::atom::Residues const & flexible_residues, IMP::ParticleIndexQuads const custom_dihedral_angles, std::vector< IMP::kinematics::ProteinAngleType,std::allocator< IMP::kinematics::ProteinAngleType > > const & custom_dihedral_angle_types, IMP::atom::Atoms open_loop_bond_atoms=IMP::atom::Atoms(), bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1498 _IMP_kinematics.ProteinKinematics_swiginit(self, _IMP_kinematics.new_ProteinKinematics(*args))
1500 def get_phi(self, r):
1501 r"""get_phi(ProteinKinematics self, Residue r) -> double"""
1502 return _IMP_kinematics.ProteinKinematics_get_phi(self, r)
1504 def get_psi(self, r):
1505 r"""get_psi(ProteinKinematics self, Residue r) -> double"""
1506 return _IMP_kinematics.ProteinKinematics_get_psi(self, r)
1508 def get_joints(self):
1509 r"""get_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1510 return _IMP_kinematics.ProteinKinematics_get_joints(self)
1512 def get_loop_joints(self):
1513 r"""get_loop_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1514 return _IMP_kinematics.ProteinKinematics_get_loop_joints(self)
1516 def get_ordered_joints(self):
1517 r"""get_ordered_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1518 return _IMP_kinematics.ProteinKinematics_get_ordered_joints(self)
1520 def get_kinematic_forest(self):
1521 r"""get_kinematic_forest(ProteinKinematics self) -> KinematicForest"""
1522 return _IMP_kinematics.ProteinKinematics_get_kinematic_forest(self)
1524 def get_rigid_bodies(self):
1525 r"""get_rigid_bodies(ProteinKinematics self) -> IMP::core::RigidBodies"""
1526 return _IMP_kinematics.ProteinKinematics_get_rigid_bodies(self)
1528 def set_phi(self, r, angle):
1529 r"""set_phi(ProteinKinematics self, Residue r, double angle)"""
1530 return _IMP_kinematics.ProteinKinematics_set_phi(self, r, angle)
1532 def set_psi(self, r, angle):
1533 r"""set_psi(ProteinKinematics self, Residue r, double angle)"""
1534 return _IMP_kinematics.ProteinKinematics_set_psi(self, r, angle)
1537 r"""get_version_info(ProteinKinematics self) -> VersionInfo"""
1538 return _IMP_kinematics.ProteinKinematics_get_version_info(self)
1539 __swig_destroy__ = _IMP_kinematics.delete_ProteinKinematics
1541 def build_topology_graph(self):
1542 r"""build_topology_graph(ProteinKinematics self)"""
1543 return _IMP_kinematics.ProteinKinematics_build_topology_graph(self)
1545 def order_rigid_bodies(self, dihedral_angles, phi_angles, psi_angles, chi1_angles, chi2_angles, chi3_angles, chi4_angles, chi5_angles, open_loop_bond_atoms):
1546 r"""order_rigid_bodies(ProteinKinematics self, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & dihedral_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & phi_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & psi_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi1_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi2_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi3_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi4_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi5_angles, IMP::atom::Atoms open_loop_bond_atoms)"""
1547 return _IMP_kinematics.ProteinKinematics_order_rigid_bodies(self, dihedral_angles, phi_angles, psi_angles, chi1_angles, chi2_angles, chi3_angles, chi4_angles, chi5_angles, open_loop_bond_atoms)
1549 def mark_rotatable_angles(self, dihedral_angles):
1550 r"""mark_rotatable_angles(ProteinKinematics self, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & dihedral_angles)"""
1551 return _IMP_kinematics.ProteinKinematics_mark_rotatable_angles(self, dihedral_angles)
1553 def mark_rotatable_angle(self, dihedral_angle):
1554 r"""mark_rotatable_angle(ProteinKinematics self, std::vector< IMP::atom::Atom,std::allocator< IMP::atom::Atom > > const & dihedral_angle)"""
1555 return _IMP_kinematics.ProteinKinematics_mark_rotatable_angle(self, dihedral_angle)
1557 def build_rigid_bodies(self):
1558 r"""build_rigid_bodies(ProteinKinematics self)"""
1559 return _IMP_kinematics.ProteinKinematics_build_rigid_bodies(self)
1561 def add_dihedral_joints(self, residues, angle_type, dihedral_angles):
1562 r"""add_dihedral_joints(ProteinKinematics self, std::vector< IMP::atom::Residue,std::allocator< IMP::atom::Residue > > const & residues, IMP::kinematics::ProteinAngleType angle_type, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & dihedral_angles)"""
1563 return _IMP_kinematics.ProteinKinematics_add_dihedral_joints(self, residues, angle_type, dihedral_angles)
1565 def add_dihedral_joint(self, r, angle_type, atoms):
1566 r"""add_dihedral_joint(ProteinKinematics self, Residue r, IMP::kinematics::ProteinAngleType angle_type, IMP::atom::Atoms const & atoms)"""
1567 return _IMP_kinematics.ProteinKinematics_add_dihedral_joint(self, r, angle_type, atoms)
1569 def open_loop(self, open_loop_bond_atoms):
1570 r"""open_loop(ProteinKinematics self, IMP::atom::Atoms open_loop_bond_atoms)"""
1571 return _IMP_kinematics.ProteinKinematics_open_loop(self, open_loop_bond_atoms)
1573 def get_phi_joint(self, r):
1574 r"""get_phi_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1575 return _IMP_kinematics.ProteinKinematics_get_phi_joint(self, r)
1577 def get_psi_joint(self, r):
1578 r"""get_psi_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1579 return _IMP_kinematics.ProteinKinematics_get_psi_joint(self, r)
1581 def get_other_joint(self, r):
1582 r"""get_other_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1583 return _IMP_kinematics.ProteinKinematics_get_other_joint(self, r)
1585 def get_chi1_joint(self, r):
1586 r"""get_chi1_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1587 return _IMP_kinematics.ProteinKinematics_get_chi1_joint(self, r)
1589 def get_chi2_joint(self, r):
1590 r"""get_chi2_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1591 return _IMP_kinematics.ProteinKinematics_get_chi2_joint(self, r)
1593 def get_chi3_joint(self, r):
1594 r"""get_chi3_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1595 return _IMP_kinematics.ProteinKinematics_get_chi3_joint(self, r)
1597 def get_chi4_joint(self, r):
1598 r"""get_chi4_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1599 return _IMP_kinematics.ProteinKinematics_get_chi4_joint(self, r)
1601 def get_chi5_joint(self, r):
1602 r"""get_chi5_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1603 return _IMP_kinematics.ProteinKinematics_get_chi5_joint(self, r)
1605 def get_joint(self, r, angle):
1606 r"""get_joint(ProteinKinematics self, Residue r, IMP::kinematics::ProteinAngleType angle) -> DihedralAngleRevoluteJoint"""
1607 return _IMP_kinematics.ProteinKinematics_get_joint(self, r, angle)
1610 r"""__str__(ProteinKinematics self) -> std::string"""
1611 return _IMP_kinematics.ProteinKinematics___str__(self)
1614 r"""__repr__(ProteinKinematics self) -> std::string"""
1615 return _IMP_kinematics.ProteinKinematics___repr__(self)
1619 return _object_cast_to_ProteinKinematics(o)
1623 _IMP_kinematics.ProteinKinematics_swigregister(ProteinKinematics)
1625 r"""Proxy of C++ IMP::kinematics::LocalPlanner class."""
1627 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1629 def __init__(self, *args, **kwargs):
1630 raise AttributeError(
"No constructor defined - class is abstract")
1633 r"""get_version_info(LocalPlanner self) -> VersionInfo"""
1634 return _IMP_kinematics.LocalPlanner_get_version_info(self)
1635 __swig_destroy__ = _IMP_kinematics.delete_LocalPlanner
1637 def plan(self, q_near, q_rand, sf):
1638 r"""plan(LocalPlanner self, DOFValues q_near, DOFValues q_rand, ScoringFunction sf) -> std::vector< IMP::kinematics::DOFValues,std::allocator< IMP::kinematics::DOFValues > >"""
1639 return _IMP_kinematics.LocalPlanner_plan(self, q_near, q_rand, sf)
1641 def is_valid(self, values, sf):
1642 r"""is_valid(LocalPlanner self, DOFValues values, ScoringFunction sf) -> bool"""
1643 return _IMP_kinematics.LocalPlanner_is_valid(self, values, sf)
1646 r"""__str__(LocalPlanner self) -> std::string"""
1647 return _IMP_kinematics.LocalPlanner___str__(self)
1650 r"""__repr__(LocalPlanner self) -> std::string"""
1651 return _IMP_kinematics.LocalPlanner___repr__(self)
1655 return _object_cast_to_LocalPlanner(o)
1659 _IMP_kinematics.LocalPlanner_swigregister(LocalPlanner)
1660 class PathLocalPlanner(LocalPlanner):
1661 r"""Proxy of C++ IMP::kinematics::PathLocalPlanner class."""
1663 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1665 def __init__(self, model, dofs_sampler, directional_dof, save_step_interval=1):
1666 r"""__init__(PathLocalPlanner self, Model model, DOFsSampler dofs_sampler, DirectionalDOF directional_dof, int save_step_interval=1) -> PathLocalPlanner"""
1667 _IMP_kinematics.PathLocalPlanner_swiginit(self, _IMP_kinematics.new_PathLocalPlanner(model, dofs_sampler, directional_dof, save_step_interval))
1670 r"""__str__(PathLocalPlanner self) -> std::string"""
1671 return _IMP_kinematics.PathLocalPlanner___str__(self)
1674 r"""__repr__(PathLocalPlanner self) -> std::string"""
1675 return _IMP_kinematics.PathLocalPlanner___repr__(self)
1679 return _object_cast_to_PathLocalPlanner(o)
1681 __swig_destroy__ = _IMP_kinematics.delete_PathLocalPlanner
1684 _IMP_kinematics.PathLocalPlanner_swigregister(PathLocalPlanner)
1686 r"""Proxy of C++ IMP::kinematics::RRT class."""
1688 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1691 r"""get_version_info(RRT self) -> VersionInfo"""
1692 return _IMP_kinematics.RRT_get_version_info(self)
1693 __swig_destroy__ = _IMP_kinematics.delete_RRT
1695 def __init__(self, m, sampler, planner, cspace_dofs, iteration_number=1000, tree_size=100, number_of_sampled_dofs=0):
1696 r"""__init__(RRT self, Model m, DOFsSampler sampler, LocalPlanner planner, IMP::kinematics::DOFs const & cspace_dofs, unsigned int iteration_number=1000, unsigned int tree_size=100, unsigned int number_of_sampled_dofs=0) -> RRT"""
1697 _IMP_kinematics.RRT_swiginit(self, _IMP_kinematics.new_RRT(m, sampler, planner, cspace_dofs, iteration_number, tree_size, number_of_sampled_dofs))
1699 def do_sample(self):
1700 r"""do_sample(RRT self) -> ConfigurationSet"""
1701 return _IMP_kinematics.RRT_do_sample(self)
1703 def run(self, number_of_iterations=0):
1704 r"""run(RRT self, unsigned int number_of_iterations=0) -> bool"""
1705 return _IMP_kinematics.RRT_run(self, number_of_iterations)
1707 def get_DOFValuesList(self):
1708 r"""get_DOFValuesList(RRT self) -> IMP::kinematics::DOFValuesList"""
1709 return _IMP_kinematics.RRT_get_DOFValuesList(self)
1711 def set_number_of_iterations(self, num):
1712 r"""set_number_of_iterations(RRT self, unsigned int num)"""
1713 return _IMP_kinematics.RRT_set_number_of_iterations(self, num)
1715 def set_tree_size(self, num):
1716 r"""set_tree_size(RRT self, unsigned int num)"""
1717 return _IMP_kinematics.RRT_set_tree_size(self, num)
1719 def set_actual_tree_size(self, num):
1720 r"""set_actual_tree_size(RRT self, unsigned int num)"""
1721 return _IMP_kinematics.RRT_set_actual_tree_size(self, num)
1723 def set_number_of_collisions(self, num):
1724 r"""set_number_of_collisions(RRT self, unsigned int num)"""
1725 return _IMP_kinematics.RRT_set_number_of_collisions(self, num)
1727 def check_initial_configuration(self, sf):
1728 r"""check_initial_configuration(RRT self, ScoringFunction sf)"""
1729 return _IMP_kinematics.RRT_check_initial_configuration(self, sf)
1732 r"""__str__(RRT self) -> std::string"""
1733 return _IMP_kinematics.RRT___str__(self)
1736 r"""__repr__(RRT self) -> std::string"""
1737 return _IMP_kinematics.RRT___repr__(self)
1741 return _object_cast_to_RRT(o)
1745 _IMP_kinematics.RRT_swigregister(RRT)
1748 r"""get_module_version() -> std::string const"""
1749 return _IMP_kinematics.get_module_version()
1752 r"""get_example_path(std::string fname) -> std::string"""
1753 return _IMP_kinematics.get_example_path(fname)
1756 r"""get_data_path(std::string fname) -> std::string"""
1757 return _IMP_kinematics.get_data_path(fname)
1759 from .
import _version_check
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
Base class for all samplers.
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the outputs.
Composable functors to implement scores via compile-time composition.
double get_angle(const Line3D &a, const Line3D &b)
Get angle in radians between two lines around their closest points.
virtual void do_destroy()
Common base class for heavy weight IMP objects.
ScoreStates maintain invariants in the Model.
A base class for classes which perturb particles.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Version and module information for Objects.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
std::string get_module_version()
Return the version of this module, as a string.
virtual VersionInfo get_version_info() const
Get information about the module and version of the object.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Support for small angle X-ray scattering (SAXS) data.