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_BOOST_SYSTEM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kinematics.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_kinematics.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_kinematics._ostream_write(self, osa_buf)
238 _IMP_kinematics._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_kinematics.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_RANDOM
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_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_kinematics.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_kinematics.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_kinematics.IMPALGEBRA_SHOW_WARNINGS
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_CGAL
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_RANDOM
278 IMP_DISPLAY_HAS_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_CGAL
280 IMP_DISPLAY_HAS_NUMPY = _IMP_kinematics.IMP_DISPLAY_HAS_NUMPY
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_kinematics.IMPDISPLAY_SHOW_WARNINGS
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_CGAL
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_HDF5
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_NUMPY
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_kinematics.IMPSCOREFUNCTOR_SHOW_WARNINGS
302 IMP_CORE_HAS_IMP_CGAL = _IMP_kinematics.IMP_CORE_HAS_IMP_CGAL
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CORE_HAS_IMP_KERNEL
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_FILESYSTEM
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CORE_HAS_BOOST_RANDOM
312 IMP_CORE_HAS_CGAL = _IMP_kinematics.IMP_CORE_HAS_CGAL
314 IMP_CORE_HAS_HDF5 = _IMP_kinematics.IMP_CORE_HAS_HDF5
316 IMP_CORE_HAS_NUMPY = _IMP_kinematics.IMP_CORE_HAS_NUMPY
318 IMPCORE_SHOW_WARNINGS = _IMP_kinematics.IMPCORE_SHOW_WARNINGS
321 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_ALGEBRA
323 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_CGAL
325 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_DISPLAY
327 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_KERNEL
329 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
331 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
333 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
335 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_RANDOM
337 IMP_CONTAINER_HAS_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_CGAL
339 IMP_CONTAINER_HAS_HDF5 = _IMP_kinematics.IMP_CONTAINER_HAS_HDF5
341 IMP_CONTAINER_HAS_NUMPY = _IMP_kinematics.IMP_CONTAINER_HAS_NUMPY
343 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_kinematics.IMP_CONTAINER_HAS_PYTHON_IHM
345 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
347 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_ROBIN_MAP
349 IMPCONTAINER_SHOW_WARNINGS = _IMP_kinematics.IMPCONTAINER_SHOW_WARNINGS
352 IMP_ATOM_HAS_IMP_CGAL = _IMP_kinematics.IMP_ATOM_HAS_IMP_CGAL
354 IMP_ATOM_HAS_IMP_KERNEL = _IMP_kinematics.IMP_ATOM_HAS_IMP_KERNEL
356 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
358 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
360 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_RANDOM
362 IMP_ATOM_HAS_BOOST_REGEX = _IMP_kinematics.IMP_ATOM_HAS_BOOST_REGEX
364 IMP_ATOM_HAS_CGAL = _IMP_kinematics.IMP_ATOM_HAS_CGAL
366 IMP_ATOM_HAS_HDF5 = _IMP_kinematics.IMP_ATOM_HAS_HDF5
368 IMP_ATOM_HAS_NUMPY = _IMP_kinematics.IMP_ATOM_HAS_NUMPY
370 IMP_ATOM_HAS_PYTHON_IHM = _IMP_kinematics.IMP_ATOM_HAS_PYTHON_IHM
372 IMPATOM_SHOW_WARNINGS = _IMP_kinematics.IMPATOM_SHOW_WARNINGS
374 IMP_ATOM_TYPE_INDEX = _IMP_kinematics.IMP_ATOM_TYPE_INDEX
376 IMP_RESIDUE_TYPE_INDEX = _IMP_kinematics.IMP_RESIDUE_TYPE_INDEX
378 IMP_HIERARCHY_TYPE_INDEX = _IMP_kinematics.IMP_HIERARCHY_TYPE_INDEX
380 IMP_CHAIN_TYPE_INDEX = _IMP_kinematics.IMP_CHAIN_TYPE_INDEX
383 IMP_SAXS_HAS_IMP_CGAL = _IMP_kinematics.IMP_SAXS_HAS_IMP_CGAL
385 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_kinematics.IMP_SAXS_HAS_IMP_CONTAINER
387 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_SAXS_HAS_IMP_DISPLAY
389 IMP_SAXS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_SAXS_HAS_IMP_KERNEL
391 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
393 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_FILESYSTEM
395 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
397 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_RANDOM
399 IMP_SAXS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_SAXS_HAS_BOOST_REGEX
401 IMP_SAXS_HAS_CGAL = _IMP_kinematics.IMP_SAXS_HAS_CGAL
403 IMP_SAXS_HAS_HDF5 = _IMP_kinematics.IMP_SAXS_HAS_HDF5
405 IMP_SAXS_HAS_NUMPY = _IMP_kinematics.IMP_SAXS_HAS_NUMPY
407 IMP_SAXS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_SAXS_HAS_PYTHON_IHM
409 IMPSAXS_SHOW_WARNINGS = _IMP_kinematics.IMPSAXS_SHOW_WARNINGS
412 IMP_KINEMATICS_HAS_IMP_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_CGAL
414 IMP_KINEMATICS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_DISPLAY
416 IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR
418 IMP_KINEMATICS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_FILESYSTEM
420 IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS
422 IMP_KINEMATICS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_RANDOM
424 IMP_KINEMATICS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_REGEX
426 IMP_KINEMATICS_HAS_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_CGAL
428 IMP_KINEMATICS_HAS_HDF5 = _IMP_kinematics.IMP_KINEMATICS_HAS_HDF5
430 IMP_KINEMATICS_HAS_NUMPY = _IMP_kinematics.IMP_KINEMATICS_HAS_NUMPY
432 IMP_KINEMATICS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_KINEMATICS_HAS_PYTHON_IHM
434 IMPKINEMATICS_SHOW_WARNINGS = _IMP_kinematics.IMPKINEMATICS_SHOW_WARNINGS
437 _object_types.append(
"Joint")
440 def _object_cast_to_Joint(o):
441 r"""_object_cast_to_Joint(Object o) -> Joint"""
442 return _IMP_kinematics._object_cast_to_Joint(o)
444 _object_types.append(
"TransformationJoint")
447 def _object_cast_to_TransformationJoint(o):
448 r"""_object_cast_to_TransformationJoint(Object o) -> TransformationJoint"""
449 return _IMP_kinematics._object_cast_to_TransformationJoint(o)
451 _object_types.append(
"RevoluteJoint")
454 def _object_cast_to_RevoluteJoint(o):
455 r"""_object_cast_to_RevoluteJoint(Object o) -> RevoluteJoint"""
456 return _IMP_kinematics._object_cast_to_RevoluteJoint(o)
458 _object_types.append(
"DihedralAngleRevoluteJoint")
461 def _object_cast_to_DihedralAngleRevoluteJoint(o):
462 r"""_object_cast_to_DihedralAngleRevoluteJoint(Object o) -> DihedralAngleRevoluteJoint"""
463 return _IMP_kinematics._object_cast_to_DihedralAngleRevoluteJoint(o)
465 _object_types.append(
"BondAngleRevoluteJoint")
468 def _object_cast_to_BondAngleRevoluteJoint(o):
469 r"""_object_cast_to_BondAngleRevoluteJoint(Object o) -> BondAngleRevoluteJoint"""
470 return _IMP_kinematics._object_cast_to_BondAngleRevoluteJoint(o)
472 _object_types.append(
"PrismaticJoint")
475 def _object_cast_to_PrismaticJoint(o):
476 r"""_object_cast_to_PrismaticJoint(Object o) -> PrismaticJoint"""
477 return _IMP_kinematics._object_cast_to_PrismaticJoint(o)
479 _object_types.append(
"KinematicForest")
482 def _object_cast_to_KinematicForest(o):
483 r"""_object_cast_to_KinematicForest(Object o) -> KinematicForest"""
484 return _IMP_kinematics._object_cast_to_KinematicForest(o)
486 _object_types.append(
"KinematicForestScoreState")
489 def _object_cast_to_KinematicForestScoreState(o):
490 r"""_object_cast_to_KinematicForestScoreState(Object o) -> KinematicForestScoreState"""
491 return _IMP_kinematics._object_cast_to_KinematicForestScoreState(o)
493 _object_types.append(
"CompositeJoint")
496 def _object_cast_to_CompositeJoint(o):
497 r"""_object_cast_to_CompositeJoint(Object o) -> CompositeJoint"""
498 return _IMP_kinematics._object_cast_to_CompositeJoint(o)
500 _object_types.append(
"RevoluteJointMover")
503 def _object_cast_to_RevoluteJointMover(o):
504 r"""_object_cast_to_RevoluteJointMover(Object o) -> RevoluteJointMover"""
505 return _IMP_kinematics._object_cast_to_RevoluteJointMover(o)
507 _object_types.append(
"DihedralMover")
510 def _object_cast_to_DihedralMover(o):
511 r"""_object_cast_to_DihedralMover(Object o) -> DihedralMover"""
512 return _IMP_kinematics._object_cast_to_DihedralMover(o)
514 _object_types.append(
"DOF")
517 def _object_cast_to_DOF(o):
518 r"""_object_cast_to_DOF(Object o) -> DOF"""
519 return _IMP_kinematics._object_cast_to_DOF(o)
522 _plural_types.append(
"DOFValuesList")
523 _value_types.append(
"DOFValues")
526 _object_types.append(
"DirectionalDOF")
529 def _object_cast_to_DirectionalDOF(o):
530 r"""_object_cast_to_DirectionalDOF(Object o) -> DirectionalDOF"""
531 return _IMP_kinematics._object_cast_to_DirectionalDOF(o)
533 _object_types.append(
"DOFsSampler")
536 def _object_cast_to_DOFsSampler(o):
537 r"""_object_cast_to_DOFsSampler(Object o) -> DOFsSampler"""
538 return _IMP_kinematics._object_cast_to_DOFsSampler(o)
540 _object_types.append(
"UniformBackboneSampler")
543 def _object_cast_to_UniformBackboneSampler(o):
544 r"""_object_cast_to_UniformBackboneSampler(Object o) -> UniformBackboneSampler"""
545 return _IMP_kinematics._object_cast_to_UniformBackboneSampler(o)
547 _object_types.append(
"FibrilSampler")
550 def _object_cast_to_FibrilSampler(o):
551 r"""_object_cast_to_FibrilSampler(Object o) -> FibrilSampler"""
552 return _IMP_kinematics._object_cast_to_FibrilSampler(o)
554 _object_types.append(
"ProteinKinematics")
557 def _object_cast_to_ProteinKinematics(o):
558 r"""_object_cast_to_ProteinKinematics(Object o) -> ProteinKinematics"""
559 return _IMP_kinematics._object_cast_to_ProteinKinematics(o)
561 _object_types.append(
"LocalPlanner")
564 def _object_cast_to_LocalPlanner(o):
565 r"""_object_cast_to_LocalPlanner(Object o) -> LocalPlanner"""
566 return _IMP_kinematics._object_cast_to_LocalPlanner(o)
568 _object_types.append(
"PathLocalPlanner")
571 def _object_cast_to_PathLocalPlanner(o):
572 r"""_object_cast_to_PathLocalPlanner(Object o) -> PathLocalPlanner"""
573 return _IMP_kinematics._object_cast_to_PathLocalPlanner(o)
575 _object_types.append(
"RRT")
578 def _object_cast_to_RRT(o):
579 r"""_object_cast_to_RRT(Object o) -> RRT"""
580 return _IMP_kinematics._object_cast_to_RRT(o)
582 r"""Proxy of C++ IMP::kinematics::Joint class."""
584 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
587 r"""get_version_info(Joint self) -> VersionInfo"""
588 return _IMP_kinematics.Joint_get_version_info(self)
589 __swig_destroy__ = _IMP_kinematics.delete_Joint
591 def __init__(self, parent, child):
592 r"""__init__(Joint self, RigidBody parent, RigidBody child) -> Joint"""
593 _IMP_kinematics.Joint_swiginit(self, _IMP_kinematics.new_Joint(parent, child))
595 def get_owner_kf(self):
596 r"""get_owner_kf(Joint self) -> KinematicForest"""
597 return _IMP_kinematics.Joint_get_owner_kf(self)
599 def get_transformation_child_to_parent(self):
600 r"""get_transformation_child_to_parent(Joint self) -> Transformation3D"""
601 return _IMP_kinematics.Joint_get_transformation_child_to_parent(self)
603 def get_parent_node(self):
604 r"""get_parent_node(Joint self) -> RigidBody"""
605 return _IMP_kinematics.Joint_get_parent_node(self)
607 def get_child_node(self):
608 r"""get_child_node(Joint self) -> RigidBody"""
609 return _IMP_kinematics.Joint_get_child_node(self)
612 r"""__str__(Joint self) -> std::string"""
613 return _IMP_kinematics.Joint___str__(self)
616 r"""__repr__(Joint self) -> std::string"""
617 return _IMP_kinematics.Joint___repr__(self)
621 return _object_cast_to_Joint(o)
625 _IMP_kinematics.Joint_swigregister(Joint)
626 class TransformationJoint(Joint):
627 r"""Proxy of C++ IMP::kinematics::TransformationJoint class."""
629 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
631 def __init__(self, parent, child):
632 r"""__init__(TransformationJoint self, RigidBody parent, RigidBody child) -> TransformationJoint"""
633 _IMP_kinematics.TransformationJoint_swiginit(self, _IMP_kinematics.new_TransformationJoint(parent, child))
635 def set_transformation_child_to_parent(self, transformation):
636 r"""set_transformation_child_to_parent(TransformationJoint self, Transformation3D transformation)"""
637 return _IMP_kinematics.TransformationJoint_set_transformation_child_to_parent(self, transformation)
640 r"""__str__(TransformationJoint self) -> std::string"""
641 return _IMP_kinematics.TransformationJoint___str__(self)
644 r"""__repr__(TransformationJoint self) -> std::string"""
645 return _IMP_kinematics.TransformationJoint___repr__(self)
649 return _object_cast_to_TransformationJoint(o)
651 __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
654 _IMP_kinematics.TransformationJoint_swigregister(TransformationJoint)
655 class PrismaticJoint(Joint):
656 r"""Proxy of C++ IMP::kinematics::PrismaticJoint class."""
658 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
660 def __init__(self, *args):
662 __init__(PrismaticJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b) -> PrismaticJoint
663 __init__(PrismaticJoint self, RigidBody parent, RigidBody child) -> PrismaticJoint
665 _IMP_kinematics.PrismaticJoint_swiginit(self, _IMP_kinematics.new_PrismaticJoint(*args))
667 def get_length(self):
668 r"""get_length(PrismaticJoint self) -> double"""
669 return _IMP_kinematics.PrismaticJoint_get_length(self)
671 def set_length(self, l):
672 r"""set_length(PrismaticJoint self, double l)"""
673 return _IMP_kinematics.PrismaticJoint_set_length(self, l)
676 r"""__str__(PrismaticJoint self) -> std::string"""
677 return _IMP_kinematics.PrismaticJoint___str__(self)
680 r"""__repr__(PrismaticJoint self) -> std::string"""
681 return _IMP_kinematics.PrismaticJoint___repr__(self)
685 return _object_cast_to_PrismaticJoint(o)
687 __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
690 _IMP_kinematics.PrismaticJoint_swigregister(PrismaticJoint)
691 class CompositeJoint(Joint):
692 r"""Proxy of C++ IMP::kinematics::CompositeJoint class."""
694 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
696 def __init__(self, *args):
697 r"""__init__(CompositeJoint self, RigidBody parent, RigidBody child, IMP::kinematics::Joints joints=IMP::kinematics::Joints()) -> CompositeJoint"""
698 _IMP_kinematics.CompositeJoint_swiginit(self, _IMP_kinematics.new_CompositeJoint(*args))
700 def add_downstream_joint(self, j):
701 r"""add_downstream_joint(CompositeJoint self, Joint j)"""
702 return _IMP_kinematics.CompositeJoint_add_downstream_joint(self, j)
704 def add_upstream_joint(self, j):
705 r"""add_upstream_joint(CompositeJoint self, Joint j)"""
706 return _IMP_kinematics.CompositeJoint_add_upstream_joint(self, j)
708 def set_joints(self, joints):
709 r"""set_joints(CompositeJoint self, IMP::kinematics::Joints joints)"""
710 return _IMP_kinematics.CompositeJoint_set_joints(self, joints)
712 def get_inner_joints(self):
713 r"""get_inner_joints(CompositeJoint self) -> IMP::kinematics::Joints const &"""
714 return _IMP_kinematics.CompositeJoint_get_inner_joints(self)
717 r"""__str__(CompositeJoint self) -> std::string"""
718 return _IMP_kinematics.CompositeJoint___str__(self)
721 r"""__repr__(CompositeJoint self) -> std::string"""
722 return _IMP_kinematics.CompositeJoint___repr__(self)
726 return _object_cast_to_CompositeJoint(o)
728 __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
731 _IMP_kinematics.CompositeJoint_swigregister(CompositeJoint)
732 class RevoluteJoint(Joint):
733 r"""Proxy of C++ IMP::kinematics::RevoluteJoint class."""
735 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
737 def __init__(self, parent, child):
738 r"""__init__(RevoluteJoint self, RigidBody parent, RigidBody child) -> RevoluteJoint"""
739 if self.__class__ == RevoluteJoint:
743 _IMP_kinematics.RevoluteJoint_swiginit(self, _IMP_kinematics.new_RevoluteJoint(_self, parent, child))
745 if self.__class__ != RevoluteJoint:
746 _director_objects.register(self)
750 __swig_destroy__ = _IMP_kinematics.delete_RevoluteJoint
752 def set_angle(self, angle):
753 r"""set_angle(RevoluteJoint self, double angle)"""
754 return _IMP_kinematics.RevoluteJoint_set_angle(self, angle)
757 r"""get_angle(RevoluteJoint self) -> double"""
758 return _IMP_kinematics.RevoluteJoint_get_angle(self)
760 def get_rot_axis_origin(self):
761 r"""get_rot_axis_origin(RevoluteJoint self) -> Vector3D"""
762 return _IMP_kinematics.RevoluteJoint_get_rot_axis_origin(self)
764 def get_rot_axis_unit_vector(self):
765 r"""get_rot_axis_unit_vector(RevoluteJoint self) -> Vector3D"""
766 return _IMP_kinematics.RevoluteJoint_get_rot_axis_unit_vector(self)
768 def update_child_node_reference_frame(self):
769 r"""update_child_node_reference_frame(RevoluteJoint self)"""
770 return _IMP_kinematics.RevoluteJoint_update_child_node_reference_frame(self)
772 def update_axis_of_rotation_from_cartesian_witnesses(self):
773 r"""update_axis_of_rotation_from_cartesian_witnesses(RevoluteJoint self)"""
774 return _IMP_kinematics.RevoluteJoint_update_axis_of_rotation_from_cartesian_witnesses(self)
776 def get_current_angle_from_cartesian_witnesses(self):
777 r"""get_current_angle_from_cartesian_witnesses(RevoluteJoint self) -> double"""
778 return _IMP_kinematics.RevoluteJoint_get_current_angle_from_cartesian_witnesses(self)
780 def update_joint_from_cartesian_witnesses(self):
781 r"""update_joint_from_cartesian_witnesses(RevoluteJoint self)"""
782 return _IMP_kinematics.RevoluteJoint_update_joint_from_cartesian_witnesses(self)
784 def get_rotation_about_joint_in_parent_coordinates(self):
785 r"""get_rotation_about_joint_in_parent_coordinates(RevoluteJoint self) -> Transformation3D"""
786 return _IMP_kinematics.RevoluteJoint_get_rotation_about_joint_in_parent_coordinates(self)
787 angle_ = property(_IMP_kinematics.RevoluteJoint_angle__get, _IMP_kinematics.RevoluteJoint_angle__set, doc=
r"""angle_ : double""")
788 last_updated_angle_ = property(_IMP_kinematics.RevoluteJoint_last_updated_angle__get, _IMP_kinematics.RevoluteJoint_last_updated_angle__set, doc=
r"""last_updated_angle_ : double""")
789 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""")
790 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""")
793 r"""__str__(RevoluteJoint self) -> std::string"""
794 return _IMP_kinematics.RevoluteJoint___str__(self)
797 r"""__repr__(RevoluteJoint self) -> std::string"""
798 return _IMP_kinematics.RevoluteJoint___repr__(self)
802 return _object_cast_to_RevoluteJoint(o)
805 def do_show(self, out):
810 return _object_cast_to_RevoluteJoint(o)
812 def __disown__(self):
814 _IMP_kinematics.disown_RevoluteJoint(self)
815 return weakref.proxy(self)
818 r"""do_destroy(RevoluteJoint self)"""
819 return _IMP_kinematics.RevoluteJoint_do_destroy(self)
822 _IMP_kinematics.RevoluteJoint_swigregister(RevoluteJoint)
823 class DihedralAngleRevoluteJoint(RevoluteJoint):
824 r"""Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class."""
826 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
828 def __init__(self, parent, child, a, b, c, d):
829 r"""__init__(DihedralAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c, XYZ d) -> DihedralAngleRevoluteJoint"""
830 _IMP_kinematics.DihedralAngleRevoluteJoint_swiginit(self, _IMP_kinematics.new_DihedralAngleRevoluteJoint(parent, child, a, b, c, d))
833 r"""get_a(DihedralAngleRevoluteJoint self) -> XYZ"""
834 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_a(self)
837 r"""get_b(DihedralAngleRevoluteJoint self) -> XYZ"""
838 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_b(self)
841 r"""get_c(DihedralAngleRevoluteJoint self) -> XYZ"""
842 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_c(self)
845 r"""get_d(DihedralAngleRevoluteJoint self) -> XYZ"""
846 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_d(self)
849 r"""__str__(DihedralAngleRevoluteJoint self) -> std::string"""
850 return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
853 r"""__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
854 return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
858 return _object_cast_to_DihedralAngleRevoluteJoint(o)
860 __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
863 _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
864 class BondAngleRevoluteJoint(RevoluteJoint):
865 r"""Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class."""
867 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
869 def __init__(self, parent, child, a, b, c):
870 r"""__init__(BondAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c) -> BondAngleRevoluteJoint"""
871 _IMP_kinematics.BondAngleRevoluteJoint_swiginit(self, _IMP_kinematics.new_BondAngleRevoluteJoint(parent, child, a, b, c))
874 r"""__str__(BondAngleRevoluteJoint self) -> std::string"""
875 return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
878 r"""__repr__(BondAngleRevoluteJoint self) -> std::string"""
879 return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
883 return _object_cast_to_BondAngleRevoluteJoint(o)
885 __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
888 _IMP_kinematics.BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
890 r"""Proxy of C++ IMP::kinematics::RevoluteJointMover class."""
892 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
894 def __init__(self, m, joints, stddev=0.01):
895 r"""__init__(RevoluteJointMover self, Model m, IMP::kinematics::RevoluteJoints const & joints, double const stddev=0.01) -> RevoluteJointMover"""
896 _IMP_kinematics.RevoluteJointMover_swiginit(self, _IMP_kinematics.new_RevoluteJointMover(m, joints, stddev))
898 def set_sigma(self, sigma):
899 r"""set_sigma(RevoluteJointMover self, IMP::Float sigma)"""
900 return _IMP_kinematics.RevoluteJointMover_set_sigma(self, sigma)
903 r"""get_sigma(RevoluteJointMover self) -> IMP::Float"""
904 return _IMP_kinematics.RevoluteJointMover_get_sigma(self)
907 r"""get_version_info(RevoluteJointMover self) -> VersionInfo"""
908 return _IMP_kinematics.RevoluteJointMover_get_version_info(self)
909 __swig_destroy__ = _IMP_kinematics.delete_RevoluteJointMover
912 r"""__str__(RevoluteJointMover self) -> std::string"""
913 return _IMP_kinematics.RevoluteJointMover___str__(self)
916 r"""__repr__(RevoluteJointMover self) -> std::string"""
917 return _IMP_kinematics.RevoluteJointMover___repr__(self)
921 return _object_cast_to_RevoluteJointMover(o)
925 _IMP_kinematics.RevoluteJointMover_swigregister(RevoluteJointMover)
927 r"""Proxy of C++ IMP::kinematics::DihedralMover class."""
929 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
931 def __init__(self, m, joints, max_rot=0.1):
932 r"""__init__(DihedralMover self, Model m, IMP::kinematics::RevoluteJoints const & joints, double const max_rot=0.1) -> DihedralMover"""
933 _IMP_kinematics.DihedralMover_swiginit(self, _IMP_kinematics.new_DihedralMover(m, joints, max_rot))
936 r"""get_version_info(DihedralMover self) -> VersionInfo"""
937 return _IMP_kinematics.DihedralMover_get_version_info(self)
938 __swig_destroy__ = _IMP_kinematics.delete_DihedralMover
941 r"""__str__(DihedralMover self) -> std::string"""
942 return _IMP_kinematics.DihedralMover___str__(self)
945 r"""__repr__(DihedralMover self) -> std::string"""
946 return _IMP_kinematics.DihedralMover___repr__(self)
950 return _object_cast_to_DihedralMover(o)
954 _IMP_kinematics.DihedralMover_swigregister(DihedralMover)
956 r"""Proxy of C++ IMP::kinematics::KinematicForest class."""
958 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
961 r"""get_version_info(KinematicForest self) -> VersionInfo"""
962 return _IMP_kinematics.KinematicForest_get_version_info(self)
963 __swig_destroy__ = _IMP_kinematics.delete_KinematicForest
965 def __init__(self, *args):
967 __init__(KinematicForest self, Model m) -> KinematicForest
968 __init__(KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
970 _IMP_kinematics.KinematicForest_swiginit(self, _IMP_kinematics.new_KinematicForest(*args))
972 def add_edge(self, *args):
974 add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
975 add_edge(KinematicForest self, Joint joint)
977 return _IMP_kinematics.KinematicForest_add_edge(self, *args)
979 def add_rigid_bodies_in_chain(self, rbs):
980 r"""add_rigid_bodies_in_chain(KinematicForest self, IMP::core::RigidBodies rbs)"""
981 return _IMP_kinematics.KinematicForest_add_rigid_bodies_in_chain(self, rbs)
983 def reset_root(self, new_root):
984 r"""reset_root(KinematicForest self, Particle new_root)"""
985 return _IMP_kinematics.KinematicForest_reset_root(self, new_root)
987 def update_all_internal_coordinates(self):
988 r"""update_all_internal_coordinates(KinematicForest self)"""
989 return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
991 def update_all_external_coordinates(self):
992 r"""update_all_external_coordinates(KinematicForest self)"""
993 return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
995 def get_ordered_joints(self):
996 r"""get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
997 return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
999 def transform_safe(self, tr):
1000 r"""transform_safe(KinematicForest self, Transformation3D tr)"""
1001 return _IMP_kinematics.KinematicForest_transform_safe(self, tr)
1003 def mark_internal_coordinates_changed(self):
1004 r"""mark_internal_coordinates_changed(KinematicForest self)"""
1005 return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
1007 def mark_external_coordinates_changed(self):
1008 r"""mark_external_coordinates_changed(KinematicForest self)"""
1009 return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
1011 def set_coordinates_safe(self, rb, c):
1012 r"""set_coordinates_safe(KinematicForest self, RigidBody rb, Vector3D c)"""
1013 return _IMP_kinematics.KinematicForest_set_coordinates_safe(self, rb, c)
1015 def get_coordinates_safe(self, rb):
1016 r"""get_coordinates_safe(KinematicForest self, RigidBody rb) -> Vector3D"""
1017 return _IMP_kinematics.KinematicForest_get_coordinates_safe(self, rb)
1019 def get_is_member(self, rb):
1020 r"""get_is_member(KinematicForest self, RigidBody rb) -> bool"""
1021 return _IMP_kinematics.KinematicForest_get_is_member(self, rb)
1023 def get_reference_frame_safe(self, rb):
1024 r"""get_reference_frame_safe(KinematicForest self, RigidBody rb) -> ReferenceFrame3D"""
1025 return _IMP_kinematics.KinematicForest_get_reference_frame_safe(self, rb)
1027 def set_reference_frame_safe(self, rb, r):
1028 r"""set_reference_frame_safe(KinematicForest self, RigidBody rb, ReferenceFrame3D r)"""
1029 return _IMP_kinematics.KinematicForest_set_reference_frame_safe(self, rb, r)
1031 def apply_transform_safely(self, tr):
1032 r"""apply_transform_safely(KinematicForest self, Transformation3D tr)"""
1033 return _IMP_kinematics.KinematicForest_apply_transform_safely(self, tr)
1036 r"""__str__(KinematicForest self) -> std::string"""
1037 return _IMP_kinematics.KinematicForest___str__(self)
1040 r"""__repr__(KinematicForest self) -> std::string"""
1041 return _IMP_kinematics.KinematicForest___repr__(self)
1045 return _object_cast_to_KinematicForest(o)
1049 _IMP_kinematics.KinematicForest_swigregister(KinematicForest)
1051 r"""Proxy of C++ IMP::kinematics::KinematicForestScoreState class."""
1053 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1056 r"""get_version_info(KinematicForestScoreState self) -> VersionInfo"""
1057 return _IMP_kinematics.KinematicForestScoreState_get_version_info(self)
1058 __swig_destroy__ = _IMP_kinematics.delete_KinematicForestScoreState
1060 def __init__(self, kf, rbs, atoms):
1061 r"""__init__(KinematicForestScoreState self, KinematicForest kf, IMP::core::RigidBodies rbs, IMP::ParticlesTemp atoms) -> KinematicForestScoreState"""
1062 _IMP_kinematics.KinematicForestScoreState_swiginit(self, _IMP_kinematics.new_KinematicForestScoreState(kf, rbs, atoms))
1064 def do_before_evaluate(self):
1065 r"""do_before_evaluate(KinematicForestScoreState self)"""
1066 return _IMP_kinematics.KinematicForestScoreState_do_before_evaluate(self)
1068 def do_after_evaluate(self, da):
1069 r"""do_after_evaluate(KinematicForestScoreState self, DerivativeAccumulator da)"""
1070 return _IMP_kinematics.KinematicForestScoreState_do_after_evaluate(self, da)
1073 r"""do_get_inputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1074 return _IMP_kinematics.KinematicForestScoreState_do_get_inputs(self)
1077 r"""do_get_outputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1078 return _IMP_kinematics.KinematicForestScoreState_do_get_outputs(self)
1081 r"""__str__(KinematicForestScoreState self) -> std::string"""
1082 return _IMP_kinematics.KinematicForestScoreState___str__(self)
1085 r"""__repr__(KinematicForestScoreState self) -> std::string"""
1086 return _IMP_kinematics.KinematicForestScoreState___repr__(self)
1090 return _object_cast_to_KinematicForestScoreState(o)
1094 _IMP_kinematics.KinematicForestScoreState_swigregister(KinematicForestScoreState)
1096 r"""Proxy of C++ IMP::kinematics::DOF class."""
1098 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1101 r"""get_version_info(DOF self) -> VersionInfo"""
1102 return _IMP_kinematics.DOF_get_version_info(self)
1103 __swig_destroy__ = _IMP_kinematics.delete_DOF
1105 def __init__(self, *args):
1107 __init__(DOF self, double v) -> DOF
1108 __init__(DOF self, double v, double min, double max, double step_size) -> DOF
1110 _IMP_kinematics.DOF_swiginit(self, _IMP_kinematics.new_DOF(*args))
1112 def get_value(self):
1113 r"""get_value(DOF self) -> double"""
1114 return _IMP_kinematics.DOF_get_value(self)
1116 def set_value(self, v):
1117 r"""set_value(DOF self, double v)"""
1118 return _IMP_kinematics.DOF_set_value(self, v)
1120 def get_range(self):
1121 r"""get_range(DOF self) -> std::pair< double,double >"""
1122 return _IMP_kinematics.DOF_get_range(self)
1124 def set_range(self, range):
1125 r"""set_range(DOF self, std::pair< double,double > range)"""
1126 return _IMP_kinematics.DOF_set_range(self, range)
1128 def get_step_size(self):
1129 r"""get_step_size(DOF self) -> double"""
1130 return _IMP_kinematics.DOF_get_step_size(self)
1132 def set_step_size(self, step_size):
1133 r"""set_step_size(DOF self, double step_size)"""
1134 return _IMP_kinematics.DOF_set_step_size(self, step_size)
1136 def get_number_of_steps(self, *args):
1138 get_number_of_steps(DOF self, double value) -> int
1139 get_number_of_steps(DOF self, double value1, double value2) -> int
1141 return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1144 r"""__str__(DOF self) -> std::string"""
1145 return _IMP_kinematics.DOF___str__(self)
1148 r"""__repr__(DOF self) -> std::string"""
1149 return _IMP_kinematics.DOF___repr__(self)
1153 return _object_cast_to_DOF(o)
1157 _IMP_kinematics.DOF_swigregister(DOF)
1158 class DOFValues(IMP.saxs.DistBase):
1159 r"""Proxy of C++ IMP::kinematics::DOFValues class."""
1161 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1163 def __init__(self, *args):
1165 __init__(DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1166 __init__(DOFValues self) -> DOFValues
1168 _IMP_kinematics.DOFValues_swiginit(self, _IMP_kinematics.new_DOFValues(*args))
1170 def get_distance2(self, *args):
1172 get_distance2(DOFValues self, DOFValues other_dof_values) -> double
1173 get_distance2(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1175 return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1179 get_distance(DOFValues self, DOFValues other_dof_values) -> double
1180 get_distance(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1182 return _IMP_kinematics.DOFValues_get_distance(self, *args)
1184 def show(self, *args):
1185 r"""show(DOFValues self, _ostream out=std::cout)"""
1186 return _IMP_kinematics.DOFValues_show(self, *args)
1189 r"""__str__(DOFValues self) -> std::string"""
1190 return _IMP_kinematics.DOFValues___str__(self)
1193 r"""__repr__(DOFValues self) -> std::string"""
1194 return _IMP_kinematics.DOFValues___repr__(self)
1196 def _get_as_binary(self):
1197 r"""_get_as_binary(DOFValues self) -> PyObject *"""
1198 return _IMP_kinematics.DOFValues__get_as_binary(self)
1200 def _set_from_binary(self, p):
1201 r"""_set_from_binary(DOFValues self, PyObject * p)"""
1202 return _IMP_kinematics.DOFValues__set_from_binary(self, p)
1204 def __getstate__(self):
1205 p = self._get_as_binary()
1206 if len(self.__dict__) > 1:
1207 d = self.__dict__.copy()
1212 def __setstate__(self, p):
1213 if not hasattr(self,
'this'):
1215 if isinstance(p, tuple):
1217 self.__dict__.update(d)
1218 return self._set_from_binary(p)
1220 __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1223 _IMP_kinematics.DOFValues_swigregister(DOFValues)
1225 r"""Proxy of C++ IMP::kinematics::DirectionalDOF class."""
1227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1229 def __init__(self, dofs):
1230 r"""__init__(DirectionalDOF self, IMP::kinematics::DOFs const & dofs) -> DirectionalDOF"""
1231 _IMP_kinematics.DirectionalDOF_swiginit(self, _IMP_kinematics.new_DirectionalDOF(dofs))
1233 def set_end_points(self, q1, q2):
1234 r"""set_end_points(DirectionalDOF self, DOFValues q1, DOFValues q2)"""
1235 return _IMP_kinematics.DirectionalDOF_set_end_points(self, q1, q2)
1237 def get_dofs_values(self):
1238 r"""get_dofs_values(DirectionalDOF self) -> DOFValues"""
1239 return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1241 def get_value(self):
1242 r"""get_value(DirectionalDOF self) -> double"""
1243 return _IMP_kinematics.DirectionalDOF_get_value(self)
1246 r"""get_version_info(DirectionalDOF self) -> VersionInfo"""
1247 return _IMP_kinematics.DirectionalDOF_get_version_info(self)
1248 __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1251 r"""__str__(DirectionalDOF self) -> std::string"""
1252 return _IMP_kinematics.DirectionalDOF___str__(self)
1255 r"""__repr__(DirectionalDOF self) -> std::string"""
1256 return _IMP_kinematics.DirectionalDOF___repr__(self)
1260 return _object_cast_to_DirectionalDOF(o)
1264 _IMP_kinematics.DirectionalDOF_swigregister(DirectionalDOF)
1266 r"""Proxy of C++ IMP::kinematics::DOFsSampler class."""
1268 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1270 def get_type_name(self):
1271 r"""get_type_name(DOFsSampler self) -> std::string"""
1272 return _IMP_kinematics.DOFsSampler_get_type_name(self)
1275 r"""get_version_info(DOFsSampler self) -> VersionInfo"""
1276 return _IMP_kinematics.DOFsSampler_get_version_info(self)
1277 __swig_destroy__ = _IMP_kinematics.delete_DOFsSampler
1279 def __init__(self, dofs):
1280 r"""__init__(DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1281 if self.__class__ == DOFsSampler:
1285 _IMP_kinematics.DOFsSampler_swiginit(self, _IMP_kinematics.new_DOFsSampler(_self, dofs))
1287 if self.__class__ != DOFsSampler:
1288 _director_objects.register(self)
1293 def get_sample(self):
1294 r"""get_sample(DOFsSampler self) -> DOFValues"""
1295 return _IMP_kinematics.DOFsSampler_get_sample(self)
1297 def apply(self, values):
1298 r"""apply(DOFsSampler self, DOFValues values)"""
1299 return _IMP_kinematics.DOFsSampler_apply(self, values)
1301 def apply_last_sample(self):
1302 r"""apply_last_sample(DOFsSampler self)"""
1303 return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1305 def sample_and_apply(self):
1306 r"""sample_and_apply(DOFsSampler self)"""
1307 return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1310 r"""get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1311 return _IMP_kinematics.DOFsSampler_get_dofs(self)
1313 def get_dof(self, i):
1314 r"""get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1315 return _IMP_kinematics.DOFsSampler_get_dof(self, i)
1317 def get_number_of_dofs(self):
1318 r"""get_number_of_dofs(DOFsSampler self) -> unsigned int"""
1319 return _IMP_kinematics.DOFsSampler_get_number_of_dofs(self)
1321 def do_get_sample(self):
1322 r"""do_get_sample(DOFsSampler self) -> DOFValues"""
1323 return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1326 r"""__str__(DOFsSampler self) -> std::string"""
1327 return _IMP_kinematics.DOFsSampler___str__(self)
1330 r"""__repr__(DOFsSampler self) -> std::string"""
1331 return _IMP_kinematics.DOFsSampler___repr__(self)
1335 return _object_cast_to_DOFsSampler(o)
1338 def do_show(self, out):
1343 return _object_cast_to_DOFsSampler(o)
1345 def __disown__(self):
1347 _IMP_kinematics.disown_DOFsSampler(self)
1348 return weakref.proxy(self)
1351 r"""do_destroy(DOFsSampler self)"""
1352 return _IMP_kinematics.DOFsSampler_do_destroy(self)
1355 _IMP_kinematics.DOFsSampler_swigregister(DOFsSampler)
1356 class FibrilSampler(DOFsSampler):
1357 r"""Proxy of C++ IMP::kinematics::FibrilSampler class."""
1359 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1361 def __init__(self, trans_joint, dihedral_joints, dofs):
1362 r"""__init__(FibrilSampler self, IMP::kinematics::TransformationJoints trans_joint, IMP::kinematics::DihedralAngleRevoluteJoints dihedral_joints, IMP::kinematics::DOFs dofs) -> FibrilSampler"""
1363 _IMP_kinematics.FibrilSampler_swiginit(self, _IMP_kinematics.new_FibrilSampler(trans_joint, dihedral_joints, dofs))
1365 def apply_floats(self, values):
1366 r"""apply_floats(FibrilSampler self, IMP::Floats const & values)"""
1367 return _IMP_kinematics.FibrilSampler_apply_floats(self, values)
1369 def get_dihedral_joints(self):
1370 r"""get_dihedral_joints(FibrilSampler self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1371 return _IMP_kinematics.FibrilSampler_get_dihedral_joints(self)
1373 def get_transformation_joint(self):
1374 r"""get_transformation_joint(FibrilSampler self) -> IMP::kinematics::TransformationJoints"""
1375 return _IMP_kinematics.FibrilSampler_get_transformation_joint(self)
1378 r"""__str__(FibrilSampler self) -> std::string"""
1379 return _IMP_kinematics.FibrilSampler___str__(self)
1382 r"""__repr__(FibrilSampler self) -> std::string"""
1383 return _IMP_kinematics.FibrilSampler___repr__(self)
1387 return _object_cast_to_FibrilSampler(o)
1389 __swig_destroy__ = _IMP_kinematics.delete_FibrilSampler
1392 _IMP_kinematics.FibrilSampler_swigregister(FibrilSampler)
1393 class UniformBackboneSampler(DOFsSampler):
1394 r"""Proxy of C++ IMP::kinematics::UniformBackboneSampler class."""
1396 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1398 def __init__(self, joints, dofs):
1399 r"""__init__(UniformBackboneSampler self, IMP::kinematics::DihedralAngleRevoluteJoints joints, IMP::kinematics::DOFs dofs) -> UniformBackboneSampler"""
1400 _IMP_kinematics.UniformBackboneSampler_swiginit(self, _IMP_kinematics.new_UniformBackboneSampler(joints, dofs))
1402 def apply_floats(self, values):
1403 r"""apply_floats(UniformBackboneSampler self, IMP::Floats const & values)"""
1404 return _IMP_kinematics.UniformBackboneSampler_apply_floats(self, values)
1406 def get_joints(self):
1407 r"""get_joints(UniformBackboneSampler self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1408 return _IMP_kinematics.UniformBackboneSampler_get_joints(self)
1411 r"""__str__(UniformBackboneSampler self) -> std::string"""
1412 return _IMP_kinematics.UniformBackboneSampler___str__(self)
1415 r"""__repr__(UniformBackboneSampler self) -> std::string"""
1416 return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1420 return _object_cast_to_UniformBackboneSampler(o)
1422 __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1425 _IMP_kinematics.UniformBackboneSampler_swigregister(UniformBackboneSampler)
1426 PHI = _IMP_kinematics.PHI
1428 PSI = _IMP_kinematics.PSI
1430 CHI = _IMP_kinematics.CHI
1432 CHI1 = _IMP_kinematics.CHI1
1434 CHI2 = _IMP_kinematics.CHI2
1436 CHI3 = _IMP_kinematics.CHI3
1438 CHI4 = _IMP_kinematics.CHI4
1440 CHI5 = _IMP_kinematics.CHI5
1442 OTHER = _IMP_kinematics.OTHER
1444 OTHER2 = _IMP_kinematics.OTHER2
1446 OTHER3 = _IMP_kinematics.OTHER3
1448 OTHER4 = _IMP_kinematics.OTHER4
1450 OTHER5 = _IMP_kinematics.OTHER5
1452 TOTAL = _IMP_kinematics.TOTAL
1455 r"""Proxy of C++ IMP::kinematics::ProteinKinematics class."""
1457 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1459 def __init__(self, *args):
1461 __init__(ProteinKinematics self, Hierarchy mhd, bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1462 __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
1463 __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
1464 __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
1466 _IMP_kinematics.ProteinKinematics_swiginit(self, _IMP_kinematics.new_ProteinKinematics(*args))
1468 def get_phi(self, r):
1469 r"""get_phi(ProteinKinematics self, Residue r) -> double"""
1470 return _IMP_kinematics.ProteinKinematics_get_phi(self, r)
1472 def get_psi(self, r):
1473 r"""get_psi(ProteinKinematics self, Residue r) -> double"""
1474 return _IMP_kinematics.ProteinKinematics_get_psi(self, r)
1476 def get_joints(self):
1477 r"""get_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1478 return _IMP_kinematics.ProteinKinematics_get_joints(self)
1480 def get_loop_joints(self):
1481 r"""get_loop_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1482 return _IMP_kinematics.ProteinKinematics_get_loop_joints(self)
1484 def get_ordered_joints(self):
1485 r"""get_ordered_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1486 return _IMP_kinematics.ProteinKinematics_get_ordered_joints(self)
1488 def get_kinematic_forest(self):
1489 r"""get_kinematic_forest(ProteinKinematics self) -> KinematicForest"""
1490 return _IMP_kinematics.ProteinKinematics_get_kinematic_forest(self)
1492 def get_rigid_bodies(self):
1493 r"""get_rigid_bodies(ProteinKinematics self) -> IMP::core::RigidBodies"""
1494 return _IMP_kinematics.ProteinKinematics_get_rigid_bodies(self)
1496 def set_phi(self, r, angle):
1497 r"""set_phi(ProteinKinematics self, Residue r, double angle)"""
1498 return _IMP_kinematics.ProteinKinematics_set_phi(self, r, angle)
1500 def set_psi(self, r, angle):
1501 r"""set_psi(ProteinKinematics self, Residue r, double angle)"""
1502 return _IMP_kinematics.ProteinKinematics_set_psi(self, r, angle)
1505 r"""get_version_info(ProteinKinematics self) -> VersionInfo"""
1506 return _IMP_kinematics.ProteinKinematics_get_version_info(self)
1507 __swig_destroy__ = _IMP_kinematics.delete_ProteinKinematics
1509 def build_topology_graph(self):
1510 r"""build_topology_graph(ProteinKinematics self)"""
1511 return _IMP_kinematics.ProteinKinematics_build_topology_graph(self)
1513 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):
1514 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)"""
1515 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)
1517 def mark_rotatable_angles(self, dihedral_angles):
1518 r"""mark_rotatable_angles(ProteinKinematics self, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & dihedral_angles)"""
1519 return _IMP_kinematics.ProteinKinematics_mark_rotatable_angles(self, dihedral_angles)
1521 def mark_rotatable_angle(self, dihedral_angle):
1522 r"""mark_rotatable_angle(ProteinKinematics self, std::vector< IMP::atom::Atom,std::allocator< IMP::atom::Atom > > const & dihedral_angle)"""
1523 return _IMP_kinematics.ProteinKinematics_mark_rotatable_angle(self, dihedral_angle)
1525 def build_rigid_bodies(self):
1526 r"""build_rigid_bodies(ProteinKinematics self)"""
1527 return _IMP_kinematics.ProteinKinematics_build_rigid_bodies(self)
1529 def add_dihedral_joints(self, residues, angle_type, dihedral_angles):
1530 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)"""
1531 return _IMP_kinematics.ProteinKinematics_add_dihedral_joints(self, residues, angle_type, dihedral_angles)
1533 def add_dihedral_joint(self, r, angle_type, atoms):
1534 r"""add_dihedral_joint(ProteinKinematics self, Residue r, IMP::kinematics::ProteinAngleType angle_type, IMP::atom::Atoms const & atoms)"""
1535 return _IMP_kinematics.ProteinKinematics_add_dihedral_joint(self, r, angle_type, atoms)
1537 def open_loop(self, open_loop_bond_atoms):
1538 r"""open_loop(ProteinKinematics self, IMP::atom::Atoms open_loop_bond_atoms)"""
1539 return _IMP_kinematics.ProteinKinematics_open_loop(self, open_loop_bond_atoms)
1541 def get_phi_joint(self, r):
1542 r"""get_phi_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1543 return _IMP_kinematics.ProteinKinematics_get_phi_joint(self, r)
1545 def get_psi_joint(self, r):
1546 r"""get_psi_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1547 return _IMP_kinematics.ProteinKinematics_get_psi_joint(self, r)
1549 def get_other_joint(self, r):
1550 r"""get_other_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1551 return _IMP_kinematics.ProteinKinematics_get_other_joint(self, r)
1553 def get_chi1_joint(self, r):
1554 r"""get_chi1_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1555 return _IMP_kinematics.ProteinKinematics_get_chi1_joint(self, r)
1557 def get_chi2_joint(self, r):
1558 r"""get_chi2_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1559 return _IMP_kinematics.ProteinKinematics_get_chi2_joint(self, r)
1561 def get_chi3_joint(self, r):
1562 r"""get_chi3_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1563 return _IMP_kinematics.ProteinKinematics_get_chi3_joint(self, r)
1565 def get_chi4_joint(self, r):
1566 r"""get_chi4_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1567 return _IMP_kinematics.ProteinKinematics_get_chi4_joint(self, r)
1569 def get_chi5_joint(self, r):
1570 r"""get_chi5_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1571 return _IMP_kinematics.ProteinKinematics_get_chi5_joint(self, r)
1573 def get_joint(self, r, angle):
1574 r"""get_joint(ProteinKinematics self, Residue r, IMP::kinematics::ProteinAngleType angle) -> DihedralAngleRevoluteJoint"""
1575 return _IMP_kinematics.ProteinKinematics_get_joint(self, r, angle)
1578 r"""__str__(ProteinKinematics self) -> std::string"""
1579 return _IMP_kinematics.ProteinKinematics___str__(self)
1582 r"""__repr__(ProteinKinematics self) -> std::string"""
1583 return _IMP_kinematics.ProteinKinematics___repr__(self)
1587 return _object_cast_to_ProteinKinematics(o)
1591 _IMP_kinematics.ProteinKinematics_swigregister(ProteinKinematics)
1593 r"""Proxy of C++ IMP::kinematics::LocalPlanner class."""
1595 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1597 def __init__(self, *args, **kwargs):
1598 raise AttributeError(
"No constructor defined - class is abstract")
1601 r"""get_version_info(LocalPlanner self) -> VersionInfo"""
1602 return _IMP_kinematics.LocalPlanner_get_version_info(self)
1603 __swig_destroy__ = _IMP_kinematics.delete_LocalPlanner
1605 def plan(self, q_near, q_rand, sf):
1606 r"""plan(LocalPlanner self, DOFValues q_near, DOFValues q_rand, ScoringFunction sf) -> std::vector< IMP::kinematics::DOFValues,std::allocator< IMP::kinematics::DOFValues > >"""
1607 return _IMP_kinematics.LocalPlanner_plan(self, q_near, q_rand, sf)
1609 def is_valid(self, values, sf):
1610 r"""is_valid(LocalPlanner self, DOFValues values, ScoringFunction sf) -> bool"""
1611 return _IMP_kinematics.LocalPlanner_is_valid(self, values, sf)
1614 r"""__str__(LocalPlanner self) -> std::string"""
1615 return _IMP_kinematics.LocalPlanner___str__(self)
1618 r"""__repr__(LocalPlanner self) -> std::string"""
1619 return _IMP_kinematics.LocalPlanner___repr__(self)
1623 return _object_cast_to_LocalPlanner(o)
1627 _IMP_kinematics.LocalPlanner_swigregister(LocalPlanner)
1628 class PathLocalPlanner(LocalPlanner):
1629 r"""Proxy of C++ IMP::kinematics::PathLocalPlanner class."""
1631 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1633 def __init__(self, model, dofs_sampler, directional_dof, save_step_interval=1):
1634 r"""__init__(PathLocalPlanner self, Model model, DOFsSampler dofs_sampler, DirectionalDOF directional_dof, int save_step_interval=1) -> PathLocalPlanner"""
1635 _IMP_kinematics.PathLocalPlanner_swiginit(self, _IMP_kinematics.new_PathLocalPlanner(model, dofs_sampler, directional_dof, save_step_interval))
1638 r"""__str__(PathLocalPlanner self) -> std::string"""
1639 return _IMP_kinematics.PathLocalPlanner___str__(self)
1642 r"""__repr__(PathLocalPlanner self) -> std::string"""
1643 return _IMP_kinematics.PathLocalPlanner___repr__(self)
1647 return _object_cast_to_PathLocalPlanner(o)
1649 __swig_destroy__ = _IMP_kinematics.delete_PathLocalPlanner
1652 _IMP_kinematics.PathLocalPlanner_swigregister(PathLocalPlanner)
1654 r"""Proxy of C++ IMP::kinematics::RRT class."""
1656 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1659 r"""get_version_info(RRT self) -> VersionInfo"""
1660 return _IMP_kinematics.RRT_get_version_info(self)
1661 __swig_destroy__ = _IMP_kinematics.delete_RRT
1663 def __init__(self, m, sampler, planner, cspace_dofs, iteration_number=1000, tree_size=100, number_of_sampled_dofs=0):
1664 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"""
1665 _IMP_kinematics.RRT_swiginit(self, _IMP_kinematics.new_RRT(m, sampler, planner, cspace_dofs, iteration_number, tree_size, number_of_sampled_dofs))
1667 def do_sample(self):
1668 r"""do_sample(RRT self) -> ConfigurationSet"""
1669 return _IMP_kinematics.RRT_do_sample(self)
1671 def run(self, number_of_iterations=0):
1672 r"""run(RRT self, unsigned int number_of_iterations=0) -> bool"""
1673 return _IMP_kinematics.RRT_run(self, number_of_iterations)
1675 def get_DOFValuesList(self):
1676 r"""get_DOFValuesList(RRT self) -> IMP::kinematics::DOFValuesList"""
1677 return _IMP_kinematics.RRT_get_DOFValuesList(self)
1679 def set_number_of_iterations(self, num):
1680 r"""set_number_of_iterations(RRT self, unsigned int num)"""
1681 return _IMP_kinematics.RRT_set_number_of_iterations(self, num)
1683 def set_tree_size(self, num):
1684 r"""set_tree_size(RRT self, unsigned int num)"""
1685 return _IMP_kinematics.RRT_set_tree_size(self, num)
1687 def set_actual_tree_size(self, num):
1688 r"""set_actual_tree_size(RRT self, unsigned int num)"""
1689 return _IMP_kinematics.RRT_set_actual_tree_size(self, num)
1691 def set_number_of_collisions(self, num):
1692 r"""set_number_of_collisions(RRT self, unsigned int num)"""
1693 return _IMP_kinematics.RRT_set_number_of_collisions(self, num)
1695 def check_initial_configuration(self, sf):
1696 r"""check_initial_configuration(RRT self, ScoringFunction sf)"""
1697 return _IMP_kinematics.RRT_check_initial_configuration(self, sf)
1700 r"""__str__(RRT self) -> std::string"""
1701 return _IMP_kinematics.RRT___str__(self)
1704 r"""__repr__(RRT self) -> std::string"""
1705 return _IMP_kinematics.RRT___repr__(self)
1709 return _object_cast_to_RRT(o)
1713 _IMP_kinematics.RRT_swigregister(RRT)
1715 def get_module_name():
1716 r"""get_module_name() -> std::string const"""
1717 return _IMP_kinematics.get_module_name()
1720 r"""get_module_version() -> std::string const"""
1721 return _IMP_kinematics.get_module_version()
1724 r"""get_example_path(std::string fname) -> std::string"""
1725 return _IMP_kinematics.get_example_path(fname)
1728 r"""get_data_path(std::string fname) -> std::string"""
1729 return _IMP_kinematics.get_data_path(fname)
1731 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.
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.