IMP logo
IMP Reference Guide  develop.50fdd7fa33,2025/08/31
The Integrative Modeling Platform
kinematics/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.1
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2025 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_kinematics
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
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):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
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"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
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__)
62 
63 
64 import weakref
65 
66 class IMP_KINEMATICS_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_KINEMATICS_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_kinematics.delete_IMP_KINEMATICS_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
78  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator"""
82  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator"""
86  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_decr(self, n)
87 
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)
91 
92  def equal(self, x):
93  r"""equal(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
94  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator"""
98  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
102  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
106  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
110  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_previous(self)
111 
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)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
118  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
122  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___ne__(self, x)
123 
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)
127 
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)
131 
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)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator
139  __sub__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_KINEMATICS_SwigPyIterator in _IMP_kinematics:
146 _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_swigregister(IMP_KINEMATICS_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_kinematics.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_kinematics.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_kinematics.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_kinematics.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_kinematics.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_kinematics.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_kinematics.IMP_MEMORY
166 
167 IMP_NONE = _IMP_kinematics.IMP_NONE
168 
169 IMP_USAGE = _IMP_kinematics.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_kinematics.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_kinematics.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_kinematics.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kinematics.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_kinematics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_kinematics.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_kinematics.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_SYSTEM
188 
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kinematics.IMP_KERNEL_HAS_GPERFTOOLS
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 
195 IMPKERNEL_SHOW_WARNINGS = _IMP_kinematics.IMPKERNEL_SHOW_WARNINGS
196 
197 
198 import sys
199 class _DirectorObjects:
200  """@internal Simple class to keep references to director objects
201  to prevent premature deletion."""
202  def __init__(self):
203  self._objects = []
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)
209  def cleanup(self):
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]
216 # Do in two steps so the references are kept until the end of the
217 # function (deleting references may trigger a fresh call to this method)
218  self._objects = objs
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()
223 
224 class _ostream(object):
225  r"""Proxy of C++ std::ostream class."""
226 
227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
228 
229  def __init__(self, *args, **kwargs):
230  raise AttributeError("No constructor defined")
231  __repr__ = _swig_repr
232 
233  def write(self, osa_buf):
234  r"""write(_ostream self, char const * osa_buf)"""
235  return _IMP_kinematics._ostream_write(self, osa_buf)
236 
237 # Register _ostream in _IMP_kinematics:
238 _IMP_kinematics._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_kinematics.IMP_C_OPEN_BINARY
240 
241 import IMP
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_RANDOM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_kinematics.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_kinematics.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_CGAL
262 
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_kinematics.IMP_ALGEBRA_HAS_NUMPY
264 
265 IMP_ALGEBRA_HAS_ANN = _IMP_kinematics.IMP_ALGEBRA_HAS_ANN
266 
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_kinematics.IMPALGEBRA_SHOW_WARNINGS
268 
269 import IMP.algebra
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_CGAL
271 
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
273 
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
275 
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_RANDOM
277 
278 IMP_DISPLAY_HAS_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_CGAL
279 
280 IMP_DISPLAY_HAS_NUMPY = _IMP_kinematics.IMP_DISPLAY_HAS_NUMPY
281 
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_kinematics.IMPDISPLAY_SHOW_WARNINGS
283 
284 import IMP.display
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
286 
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
288 
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
292 
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_CGAL
294 
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_HDF5
296 
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_NUMPY
298 
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_kinematics.IMPSCOREFUNCTOR_SHOW_WARNINGS
300 
301 import IMP.score_functor
302 IMP_CORE_HAS_IMP_CGAL = _IMP_kinematics.IMP_CORE_HAS_IMP_CGAL
303 
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CORE_HAS_IMP_KERNEL
305 
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_FILESYSTEM
307 
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
309 
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CORE_HAS_BOOST_RANDOM
311 
312 IMP_CORE_HAS_CGAL = _IMP_kinematics.IMP_CORE_HAS_CGAL
313 
314 IMP_CORE_HAS_HDF5 = _IMP_kinematics.IMP_CORE_HAS_HDF5
315 
316 IMP_CORE_HAS_NUMPY = _IMP_kinematics.IMP_CORE_HAS_NUMPY
317 
318 IMPCORE_SHOW_WARNINGS = _IMP_kinematics.IMPCORE_SHOW_WARNINGS
319 
320 import IMP.core
321 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_ALGEBRA
322 
323 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_CGAL
324 
325 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_DISPLAY
326 
327 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_KERNEL
328 
329 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
330 
331 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
332 
333 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
334 
335 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_RANDOM
336 
337 IMP_CONTAINER_HAS_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_CGAL
338 
339 IMP_CONTAINER_HAS_HDF5 = _IMP_kinematics.IMP_CONTAINER_HAS_HDF5
340 
341 IMP_CONTAINER_HAS_NUMPY = _IMP_kinematics.IMP_CONTAINER_HAS_NUMPY
342 
343 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_kinematics.IMP_CONTAINER_HAS_PYTHON_IHM
344 
345 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
346 
347 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_ROBIN_MAP
348 
349 IMPCONTAINER_SHOW_WARNINGS = _IMP_kinematics.IMPCONTAINER_SHOW_WARNINGS
350 
351 import IMP.container
352 IMP_ATOM_HAS_IMP_CGAL = _IMP_kinematics.IMP_ATOM_HAS_IMP_CGAL
353 
354 IMP_ATOM_HAS_IMP_KERNEL = _IMP_kinematics.IMP_ATOM_HAS_IMP_KERNEL
355 
356 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
357 
358 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
359 
360 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_RANDOM
361 
362 IMP_ATOM_HAS_BOOST_REGEX = _IMP_kinematics.IMP_ATOM_HAS_BOOST_REGEX
363 
364 IMP_ATOM_HAS_CGAL = _IMP_kinematics.IMP_ATOM_HAS_CGAL
365 
366 IMP_ATOM_HAS_HDF5 = _IMP_kinematics.IMP_ATOM_HAS_HDF5
367 
368 IMP_ATOM_HAS_NUMPY = _IMP_kinematics.IMP_ATOM_HAS_NUMPY
369 
370 IMP_ATOM_HAS_PYTHON_IHM = _IMP_kinematics.IMP_ATOM_HAS_PYTHON_IHM
371 
372 IMPATOM_SHOW_WARNINGS = _IMP_kinematics.IMPATOM_SHOW_WARNINGS
373 
374 IMP_ATOM_TYPE_INDEX = _IMP_kinematics.IMP_ATOM_TYPE_INDEX
375 
376 IMP_RESIDUE_TYPE_INDEX = _IMP_kinematics.IMP_RESIDUE_TYPE_INDEX
377 
378 IMP_HIERARCHY_TYPE_INDEX = _IMP_kinematics.IMP_HIERARCHY_TYPE_INDEX
379 
380 IMP_CHAIN_TYPE_INDEX = _IMP_kinematics.IMP_CHAIN_TYPE_INDEX
381 
382 import IMP.atom
383 IMP_SAXS_HAS_IMP_CGAL = _IMP_kinematics.IMP_SAXS_HAS_IMP_CGAL
384 
385 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_kinematics.IMP_SAXS_HAS_IMP_CONTAINER
386 
387 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_SAXS_HAS_IMP_DISPLAY
388 
389 IMP_SAXS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_SAXS_HAS_IMP_KERNEL
390 
391 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
392 
393 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_FILESYSTEM
394 
395 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
396 
397 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_RANDOM
398 
399 IMP_SAXS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_SAXS_HAS_BOOST_REGEX
400 
401 IMP_SAXS_HAS_CGAL = _IMP_kinematics.IMP_SAXS_HAS_CGAL
402 
403 IMP_SAXS_HAS_HDF5 = _IMP_kinematics.IMP_SAXS_HAS_HDF5
404 
405 IMP_SAXS_HAS_NUMPY = _IMP_kinematics.IMP_SAXS_HAS_NUMPY
406 
407 IMP_SAXS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_SAXS_HAS_PYTHON_IHM
408 
409 IMPSAXS_SHOW_WARNINGS = _IMP_kinematics.IMPSAXS_SHOW_WARNINGS
410 
411 import IMP.saxs
412 IMP_KINEMATICS_HAS_IMP_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_CGAL
413 
414 IMP_KINEMATICS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_DISPLAY
415 
416 IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR
417 
418 IMP_KINEMATICS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_FILESYSTEM
419 
420 IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS
421 
422 IMP_KINEMATICS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_RANDOM
423 
424 IMP_KINEMATICS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_REGEX
425 
426 IMP_KINEMATICS_HAS_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_CGAL
427 
428 IMP_KINEMATICS_HAS_HDF5 = _IMP_kinematics.IMP_KINEMATICS_HAS_HDF5
429 
430 IMP_KINEMATICS_HAS_NUMPY = _IMP_kinematics.IMP_KINEMATICS_HAS_NUMPY
431 
432 IMP_KINEMATICS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_KINEMATICS_HAS_PYTHON_IHM
433 
434 IMPKINEMATICS_SHOW_WARNINGS = _IMP_kinematics.IMPKINEMATICS_SHOW_WARNINGS
435 
436 
437 _object_types.append("Joint")
438 
439 
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)
443 
444 _object_types.append("TransformationJoint")
445 
446 
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)
450 
451 _object_types.append("RevoluteJoint")
452 
453 
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)
457 
458 _object_types.append("DihedralAngleRevoluteJoint")
459 
460 
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)
464 
465 _object_types.append("BondAngleRevoluteJoint")
466 
467 
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)
471 
472 _object_types.append("PrismaticJoint")
473 
474 
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)
478 
479 _object_types.append("KinematicForest")
480 
481 
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)
485 
486 _object_types.append("KinematicForestScoreState")
487 
488 
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)
492 
493 _object_types.append("CompositeJoint")
494 
495 
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)
499 
500 _object_types.append("RevoluteJointMover")
501 
502 
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)
506 
507 _object_types.append("DihedralMover")
508 
509 
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)
513 
514 _object_types.append("DOF")
515 
516 
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)
520 
521 DOFValuesList=list
522 _plural_types.append("DOFValuesList")
523 _value_types.append("DOFValues")
524 
525 
526 _object_types.append("DirectionalDOF")
527 
528 
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)
532 
533 _object_types.append("DOFsSampler")
534 
535 
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)
539 
540 _object_types.append("UniformBackboneSampler")
541 
542 
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)
546 
547 _object_types.append("FibrilSampler")
548 
549 
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)
553 
554 _object_types.append("ProteinKinematics")
555 
556 
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)
560 
561 _object_types.append("LocalPlanner")
562 
563 
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)
567 
568 _object_types.append("PathLocalPlanner")
569 
570 
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)
574 
575 _object_types.append("RRT")
576 
577 
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)
581 class Joint(IMP.Object):
582  r"""Proxy of C++ IMP::kinematics::Joint class."""
583 
584  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
585 
586  def get_version_info(self):
587  r"""get_version_info(Joint self) -> VersionInfo"""
588  return _IMP_kinematics.Joint_get_version_info(self)
589  __swig_destroy__ = _IMP_kinematics.delete_Joint
590 
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))
594 
595  def get_owner_kf(self):
596  r"""get_owner_kf(Joint self) -> KinematicForest"""
597  return _IMP_kinematics.Joint_get_owner_kf(self)
598 
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)
602 
603  def get_parent_node(self):
604  r"""get_parent_node(Joint self) -> RigidBody"""
605  return _IMP_kinematics.Joint_get_parent_node(self)
606 
607  def get_child_node(self):
608  r"""get_child_node(Joint self) -> RigidBody"""
609  return _IMP_kinematics.Joint_get_child_node(self)
610 
611  def __str__(self):
612  r"""__str__(Joint self) -> std::string"""
613  return _IMP_kinematics.Joint___str__(self)
614 
615  def __repr__(self):
616  r"""__repr__(Joint self) -> std::string"""
617  return _IMP_kinematics.Joint___repr__(self)
618 
619  @staticmethod
620  def get_from(o):
621  return _object_cast_to_Joint(o)
622 
623 
624 # Register Joint in _IMP_kinematics:
625 _IMP_kinematics.Joint_swigregister(Joint)
626 class TransformationJoint(Joint):
627  r"""Proxy of C++ IMP::kinematics::TransformationJoint class."""
628 
629  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
630 
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))
634 
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)
638 
639  def __str__(self):
640  r"""__str__(TransformationJoint self) -> std::string"""
641  return _IMP_kinematics.TransformationJoint___str__(self)
642 
643  def __repr__(self):
644  r"""__repr__(TransformationJoint self) -> std::string"""
645  return _IMP_kinematics.TransformationJoint___repr__(self)
646 
647  @staticmethod
648  def get_from(o):
649  return _object_cast_to_TransformationJoint(o)
650 
651  __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
652 
653 # Register TransformationJoint in _IMP_kinematics:
654 _IMP_kinematics.TransformationJoint_swigregister(TransformationJoint)
655 class PrismaticJoint(Joint):
656  r"""Proxy of C++ IMP::kinematics::PrismaticJoint class."""
657 
658  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
659 
660  def __init__(self, *args):
661  r"""
662  __init__(PrismaticJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b) -> PrismaticJoint
663  __init__(PrismaticJoint self, RigidBody parent, RigidBody child) -> PrismaticJoint
664  """
665  _IMP_kinematics.PrismaticJoint_swiginit(self, _IMP_kinematics.new_PrismaticJoint(*args))
666 
667  def get_length(self):
668  r"""get_length(PrismaticJoint self) -> double"""
669  return _IMP_kinematics.PrismaticJoint_get_length(self)
670 
671  def set_length(self, l):
672  r"""set_length(PrismaticJoint self, double l)"""
673  return _IMP_kinematics.PrismaticJoint_set_length(self, l)
674 
675  def __str__(self):
676  r"""__str__(PrismaticJoint self) -> std::string"""
677  return _IMP_kinematics.PrismaticJoint___str__(self)
678 
679  def __repr__(self):
680  r"""__repr__(PrismaticJoint self) -> std::string"""
681  return _IMP_kinematics.PrismaticJoint___repr__(self)
682 
683  @staticmethod
684  def get_from(o):
685  return _object_cast_to_PrismaticJoint(o)
686 
687  __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
688 
689 # Register PrismaticJoint in _IMP_kinematics:
690 _IMP_kinematics.PrismaticJoint_swigregister(PrismaticJoint)
691 class CompositeJoint(Joint):
692  r"""Proxy of C++ IMP::kinematics::CompositeJoint class."""
693 
694  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
695 
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))
699 
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)
703 
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)
707 
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)
711 
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)
715 
716  def __str__(self):
717  r"""__str__(CompositeJoint self) -> std::string"""
718  return _IMP_kinematics.CompositeJoint___str__(self)
719 
720  def __repr__(self):
721  r"""__repr__(CompositeJoint self) -> std::string"""
722  return _IMP_kinematics.CompositeJoint___repr__(self)
723 
724  @staticmethod
725  def get_from(o):
726  return _object_cast_to_CompositeJoint(o)
727 
728  __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
729 
730 # Register CompositeJoint in _IMP_kinematics:
731 _IMP_kinematics.CompositeJoint_swigregister(CompositeJoint)
732 class RevoluteJoint(Joint):
733  r"""Proxy of C++ IMP::kinematics::RevoluteJoint class."""
734 
735  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
736 
737  def __init__(self, parent, child):
738  r"""__init__(RevoluteJoint self, RigidBody parent, RigidBody child) -> RevoluteJoint"""
739  if self.__class__ == RevoluteJoint:
740  _self = None
741  else:
742  _self = self
743  _IMP_kinematics.RevoluteJoint_swiginit(self, _IMP_kinematics.new_RevoluteJoint(_self, parent, child))
744 
745  if self.__class__ != RevoluteJoint:
746  _director_objects.register(self)
747 
748 
749 
750  __swig_destroy__ = _IMP_kinematics.delete_RevoluteJoint
751 
752  def set_angle(self, angle):
753  r"""set_angle(RevoluteJoint self, double angle)"""
754  return _IMP_kinematics.RevoluteJoint_set_angle(self, angle)
755 
756  def get_angle(self):
757  r"""get_angle(RevoluteJoint self) -> double"""
758  return _IMP_kinematics.RevoluteJoint_get_angle(self)
759 
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)
763 
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)
767 
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)
771 
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)
775 
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)
779 
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)
783 
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""")
791 
792  def __str__(self):
793  r"""__str__(RevoluteJoint self) -> std::string"""
794  return _IMP_kinematics.RevoluteJoint___str__(self)
795 
796  def __repr__(self):
797  r"""__repr__(RevoluteJoint self) -> std::string"""
798  return _IMP_kinematics.RevoluteJoint___repr__(self)
799 
800  @staticmethod
801  def get_from(o):
802  return _object_cast_to_RevoluteJoint(o)
803 
804 
805  def do_show(self, out):
806  pass
807 
808  @staticmethod
809  def get_from(o):
810  return _object_cast_to_RevoluteJoint(o)
811 
812  def __disown__(self):
813  self.this.disown()
814  _IMP_kinematics.disown_RevoluteJoint(self)
815  return weakref.proxy(self)
816 
817  def do_destroy(self):
818  r"""do_destroy(RevoluteJoint self)"""
819  return _IMP_kinematics.RevoluteJoint_do_destroy(self)
820 
821 # Register RevoluteJoint in _IMP_kinematics:
822 _IMP_kinematics.RevoluteJoint_swigregister(RevoluteJoint)
823 class DihedralAngleRevoluteJoint(RevoluteJoint):
824  r"""Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class."""
825 
826  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
827 
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))
831 
832  def get_a(self):
833  r"""get_a(DihedralAngleRevoluteJoint self) -> XYZ"""
834  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_a(self)
835 
836  def get_b(self):
837  r"""get_b(DihedralAngleRevoluteJoint self) -> XYZ"""
838  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_b(self)
839 
840  def get_c(self):
841  r"""get_c(DihedralAngleRevoluteJoint self) -> XYZ"""
842  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_c(self)
843 
844  def get_d(self):
845  r"""get_d(DihedralAngleRevoluteJoint self) -> XYZ"""
846  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_d(self)
847 
848  def __str__(self):
849  r"""__str__(DihedralAngleRevoluteJoint self) -> std::string"""
850  return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
851 
852  def __repr__(self):
853  r"""__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
854  return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
855 
856  @staticmethod
857  def get_from(o):
858  return _object_cast_to_DihedralAngleRevoluteJoint(o)
859 
860  __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
861 
862 # Register DihedralAngleRevoluteJoint in _IMP_kinematics:
863 _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
864 class BondAngleRevoluteJoint(RevoluteJoint):
865  r"""Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class."""
866 
867  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
868 
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))
872 
873  def __str__(self):
874  r"""__str__(BondAngleRevoluteJoint self) -> std::string"""
875  return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
876 
877  def __repr__(self):
878  r"""__repr__(BondAngleRevoluteJoint self) -> std::string"""
879  return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
880 
881  @staticmethod
882  def get_from(o):
883  return _object_cast_to_BondAngleRevoluteJoint(o)
884 
885  __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
886 
887 # Register BondAngleRevoluteJoint in _IMP_kinematics:
888 _IMP_kinematics.BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
889 class RevoluteJointMover(IMP.core.MonteCarloMover):
890  r"""Proxy of C++ IMP::kinematics::RevoluteJointMover class."""
891 
892  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
893 
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))
897 
898  def set_sigma(self, sigma):
899  r"""set_sigma(RevoluteJointMover self, IMP::Float sigma)"""
900  return _IMP_kinematics.RevoluteJointMover_set_sigma(self, sigma)
901 
902  def get_sigma(self):
903  r"""get_sigma(RevoluteJointMover self) -> IMP::Float"""
904  return _IMP_kinematics.RevoluteJointMover_get_sigma(self)
905 
906  def get_version_info(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
910 
911  def __str__(self):
912  r"""__str__(RevoluteJointMover self) -> std::string"""
913  return _IMP_kinematics.RevoluteJointMover___str__(self)
914 
915  def __repr__(self):
916  r"""__repr__(RevoluteJointMover self) -> std::string"""
917  return _IMP_kinematics.RevoluteJointMover___repr__(self)
918 
919  @staticmethod
920  def get_from(o):
921  return _object_cast_to_RevoluteJointMover(o)
922 
923 
924 # Register RevoluteJointMover in _IMP_kinematics:
925 _IMP_kinematics.RevoluteJointMover_swigregister(RevoluteJointMover)
926 class DihedralMover(IMP.core.MonteCarloMover):
927  r"""Proxy of C++ IMP::kinematics::DihedralMover class."""
928 
929  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
930 
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))
934 
935  def get_version_info(self):
936  r"""get_version_info(DihedralMover self) -> VersionInfo"""
937  return _IMP_kinematics.DihedralMover_get_version_info(self)
938  __swig_destroy__ = _IMP_kinematics.delete_DihedralMover
939 
940  def __str__(self):
941  r"""__str__(DihedralMover self) -> std::string"""
942  return _IMP_kinematics.DihedralMover___str__(self)
943 
944  def __repr__(self):
945  r"""__repr__(DihedralMover self) -> std::string"""
946  return _IMP_kinematics.DihedralMover___repr__(self)
947 
948  @staticmethod
949  def get_from(o):
950  return _object_cast_to_DihedralMover(o)
951 
952 
953 # Register DihedralMover in _IMP_kinematics:
954 _IMP_kinematics.DihedralMover_swigregister(DihedralMover)
955 class KinematicForest(IMP.Object):
956  r"""Proxy of C++ IMP::kinematics::KinematicForest class."""
957 
958  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
959 
960  def get_version_info(self):
961  r"""get_version_info(KinematicForest self) -> VersionInfo"""
962  return _IMP_kinematics.KinematicForest_get_version_info(self)
963  __swig_destroy__ = _IMP_kinematics.delete_KinematicForest
964 
965  def __init__(self, *args):
966  r"""
967  __init__(KinematicForest self, Model m) -> KinematicForest
968  __init__(KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
969  """
970  _IMP_kinematics.KinematicForest_swiginit(self, _IMP_kinematics.new_KinematicForest(*args))
971 
972  def add_edge(self, *args):
973  r"""
974  add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
975  add_edge(KinematicForest self, Joint joint)
976  """
977  return _IMP_kinematics.KinematicForest_add_edge(self, *args)
978 
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)
982 
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)
986 
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)
990 
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)
994 
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)
998 
999  def transform_safe(self, tr):
1000  r"""transform_safe(KinematicForest self, Transformation3D tr)"""
1001  return _IMP_kinematics.KinematicForest_transform_safe(self, tr)
1002 
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)
1006 
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)
1010 
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)
1014 
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)
1018 
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)
1022 
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)
1026 
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)
1030 
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)
1034 
1035  def __str__(self):
1036  r"""__str__(KinematicForest self) -> std::string"""
1037  return _IMP_kinematics.KinematicForest___str__(self)
1038 
1039  def __repr__(self):
1040  r"""__repr__(KinematicForest self) -> std::string"""
1041  return _IMP_kinematics.KinematicForest___repr__(self)
1042 
1043  @staticmethod
1044  def get_from(o):
1045  return _object_cast_to_KinematicForest(o)
1046 
1047 
1048 # Register KinematicForest in _IMP_kinematics:
1049 _IMP_kinematics.KinematicForest_swigregister(KinematicForest)
1050 class KinematicForestScoreState(IMP.ScoreState):
1051  r"""Proxy of C++ IMP::kinematics::KinematicForestScoreState class."""
1052 
1053  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1054 
1055  def get_version_info(self):
1056  r"""get_version_info(KinematicForestScoreState self) -> VersionInfo"""
1057  return _IMP_kinematics.KinematicForestScoreState_get_version_info(self)
1058  __swig_destroy__ = _IMP_kinematics.delete_KinematicForestScoreState
1059 
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))
1063 
1064  def do_before_evaluate(self):
1065  r"""do_before_evaluate(KinematicForestScoreState self)"""
1066  return _IMP_kinematics.KinematicForestScoreState_do_before_evaluate(self)
1067 
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)
1071 
1072  def do_get_inputs(self):
1073  r"""do_get_inputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1074  return _IMP_kinematics.KinematicForestScoreState_do_get_inputs(self)
1075 
1076  def do_get_outputs(self):
1077  r"""do_get_outputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1078  return _IMP_kinematics.KinematicForestScoreState_do_get_outputs(self)
1079 
1080  def __str__(self):
1081  r"""__str__(KinematicForestScoreState self) -> std::string"""
1082  return _IMP_kinematics.KinematicForestScoreState___str__(self)
1083 
1084  def __repr__(self):
1085  r"""__repr__(KinematicForestScoreState self) -> std::string"""
1086  return _IMP_kinematics.KinematicForestScoreState___repr__(self)
1087 
1088  @staticmethod
1089  def get_from(o):
1090  return _object_cast_to_KinematicForestScoreState(o)
1091 
1092 
1093 # Register KinematicForestScoreState in _IMP_kinematics:
1094 _IMP_kinematics.KinematicForestScoreState_swigregister(KinematicForestScoreState)
1095 class DOF(IMP.Object):
1096  r"""Proxy of C++ IMP::kinematics::DOF class."""
1097 
1098  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1099 
1100  def get_version_info(self):
1101  r"""get_version_info(DOF self) -> VersionInfo"""
1102  return _IMP_kinematics.DOF_get_version_info(self)
1103  __swig_destroy__ = _IMP_kinematics.delete_DOF
1104 
1105  def __init__(self, *args):
1106  r"""
1107  __init__(DOF self, double v) -> DOF
1108  __init__(DOF self, double v, double min, double max, double step_size) -> DOF
1109  """
1110  _IMP_kinematics.DOF_swiginit(self, _IMP_kinematics.new_DOF(*args))
1111 
1112  def get_value(self):
1113  r"""get_value(DOF self) -> double"""
1114  return _IMP_kinematics.DOF_get_value(self)
1115 
1116  def set_value(self, v):
1117  r"""set_value(DOF self, double v)"""
1118  return _IMP_kinematics.DOF_set_value(self, v)
1119 
1120  def get_range(self):
1121  r"""get_range(DOF self) -> std::pair< double,double >"""
1122  return _IMP_kinematics.DOF_get_range(self)
1123 
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)
1127 
1128  def get_step_size(self):
1129  r"""get_step_size(DOF self) -> double"""
1130  return _IMP_kinematics.DOF_get_step_size(self)
1131 
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)
1135 
1136  def get_number_of_steps(self, *args):
1137  r"""
1138  get_number_of_steps(DOF self, double value) -> int
1139  get_number_of_steps(DOF self, double value1, double value2) -> int
1140  """
1141  return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1142 
1143  def __str__(self):
1144  r"""__str__(DOF self) -> std::string"""
1145  return _IMP_kinematics.DOF___str__(self)
1146 
1147  def __repr__(self):
1148  r"""__repr__(DOF self) -> std::string"""
1149  return _IMP_kinematics.DOF___repr__(self)
1150 
1151  @staticmethod
1152  def get_from(o):
1153  return _object_cast_to_DOF(o)
1154 
1155 
1156 # Register DOF in _IMP_kinematics:
1157 _IMP_kinematics.DOF_swigregister(DOF)
1158 class DOFValues(IMP.saxs.DistBase):
1159  r"""Proxy of C++ IMP::kinematics::DOFValues class."""
1160 
1161  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1162 
1163  def __init__(self, *args):
1164  r"""
1165  __init__(DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1166  __init__(DOFValues self) -> DOFValues
1167  """
1168  _IMP_kinematics.DOFValues_swiginit(self, _IMP_kinematics.new_DOFValues(*args))
1169 
1170  def get_distance2(self, *args):
1171  r"""
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
1174  """
1175  return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1176 
1177  def get_distance(self, *args):
1178  r"""
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
1181  """
1182  return _IMP_kinematics.DOFValues_get_distance(self, *args)
1183 
1184  def show(self, *args):
1185  r"""show(DOFValues self, _ostream out=std::cout)"""
1186  return _IMP_kinematics.DOFValues_show(self, *args)
1187 
1188  def __str__(self):
1189  r"""__str__(DOFValues self) -> std::string"""
1190  return _IMP_kinematics.DOFValues___str__(self)
1191 
1192  def __repr__(self):
1193  r"""__repr__(DOFValues self) -> std::string"""
1194  return _IMP_kinematics.DOFValues___repr__(self)
1195 
1196  def _get_as_binary(self):
1197  r"""_get_as_binary(DOFValues self) -> PyObject *"""
1198  return _IMP_kinematics.DOFValues__get_as_binary(self)
1199 
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)
1203 
1204  def __getstate__(self):
1205  p = self._get_as_binary()
1206  if len(self.__dict__) > 1:
1207  d = self.__dict__.copy()
1208  del d['this']
1209  p = (d, p)
1210  return p
1211 
1212  def __setstate__(self, p):
1213  if not hasattr(self, 'this'):
1214  self.__init__()
1215  if isinstance(p, tuple):
1216  d, p = p
1217  self.__dict__.update(d)
1218  return self._set_from_binary(p)
1219 
1220  __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1221 
1222 # Register DOFValues in _IMP_kinematics:
1223 _IMP_kinematics.DOFValues_swigregister(DOFValues)
1224 class DirectionalDOF(IMP.Object):
1225  r"""Proxy of C++ IMP::kinematics::DirectionalDOF class."""
1226 
1227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1228 
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))
1232 
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)
1236 
1237  def get_dofs_values(self):
1238  r"""get_dofs_values(DirectionalDOF self) -> DOFValues"""
1239  return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1240 
1241  def get_value(self):
1242  r"""get_value(DirectionalDOF self) -> double"""
1243  return _IMP_kinematics.DirectionalDOF_get_value(self)
1244 
1245  def get_version_info(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
1249 
1250  def __str__(self):
1251  r"""__str__(DirectionalDOF self) -> std::string"""
1252  return _IMP_kinematics.DirectionalDOF___str__(self)
1253 
1254  def __repr__(self):
1255  r"""__repr__(DirectionalDOF self) -> std::string"""
1256  return _IMP_kinematics.DirectionalDOF___repr__(self)
1257 
1258  @staticmethod
1259  def get_from(o):
1260  return _object_cast_to_DirectionalDOF(o)
1261 
1262 
1263 # Register DirectionalDOF in _IMP_kinematics:
1264 _IMP_kinematics.DirectionalDOF_swigregister(DirectionalDOF)
1265 class DOFsSampler(IMP.Object):
1266  r"""Proxy of C++ IMP::kinematics::DOFsSampler class."""
1267 
1268  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1269 
1270  def get_type_name(self):
1271  r"""get_type_name(DOFsSampler self) -> std::string"""
1272  return _IMP_kinematics.DOFsSampler_get_type_name(self)
1273 
1274  def get_version_info(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
1278 
1279  def __init__(self, dofs):
1280  r"""__init__(DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1281  if self.__class__ == DOFsSampler:
1282  _self = None
1283  else:
1284  _self = self
1285  _IMP_kinematics.DOFsSampler_swiginit(self, _IMP_kinematics.new_DOFsSampler(_self, dofs))
1286 
1287  if self.__class__ != DOFsSampler:
1288  _director_objects.register(self)
1289 
1290 
1291 
1292 
1293  def get_sample(self):
1294  r"""get_sample(DOFsSampler self) -> DOFValues"""
1295  return _IMP_kinematics.DOFsSampler_get_sample(self)
1296 
1297  def apply(self, values):
1298  r"""apply(DOFsSampler self, DOFValues values)"""
1299  return _IMP_kinematics.DOFsSampler_apply(self, values)
1300 
1301  def apply_last_sample(self):
1302  r"""apply_last_sample(DOFsSampler self)"""
1303  return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1304 
1305  def sample_and_apply(self):
1306  r"""sample_and_apply(DOFsSampler self)"""
1307  return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1308 
1309  def get_dofs(self):
1310  r"""get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1311  return _IMP_kinematics.DOFsSampler_get_dofs(self)
1312 
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)
1316 
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)
1320 
1321  def do_get_sample(self):
1322  r"""do_get_sample(DOFsSampler self) -> DOFValues"""
1323  return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1324 
1325  def __str__(self):
1326  r"""__str__(DOFsSampler self) -> std::string"""
1327  return _IMP_kinematics.DOFsSampler___str__(self)
1328 
1329  def __repr__(self):
1330  r"""__repr__(DOFsSampler self) -> std::string"""
1331  return _IMP_kinematics.DOFsSampler___repr__(self)
1332 
1333  @staticmethod
1334  def get_from(o):
1335  return _object_cast_to_DOFsSampler(o)
1336 
1337 
1338  def do_show(self, out):
1339  pass
1340 
1341  @staticmethod
1342  def get_from(o):
1343  return _object_cast_to_DOFsSampler(o)
1344 
1345  def __disown__(self):
1346  self.this.disown()
1347  _IMP_kinematics.disown_DOFsSampler(self)
1348  return weakref.proxy(self)
1349 
1350  def do_destroy(self):
1351  r"""do_destroy(DOFsSampler self)"""
1352  return _IMP_kinematics.DOFsSampler_do_destroy(self)
1353 
1354 # Register DOFsSampler in _IMP_kinematics:
1355 _IMP_kinematics.DOFsSampler_swigregister(DOFsSampler)
1356 class FibrilSampler(DOFsSampler):
1357  r"""Proxy of C++ IMP::kinematics::FibrilSampler class."""
1358 
1359  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1360 
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))
1364 
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)
1368 
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)
1372 
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)
1376 
1377  def __str__(self):
1378  r"""__str__(FibrilSampler self) -> std::string"""
1379  return _IMP_kinematics.FibrilSampler___str__(self)
1380 
1381  def __repr__(self):
1382  r"""__repr__(FibrilSampler self) -> std::string"""
1383  return _IMP_kinematics.FibrilSampler___repr__(self)
1384 
1385  @staticmethod
1386  def get_from(o):
1387  return _object_cast_to_FibrilSampler(o)
1388 
1389  __swig_destroy__ = _IMP_kinematics.delete_FibrilSampler
1390 
1391 # Register FibrilSampler in _IMP_kinematics:
1392 _IMP_kinematics.FibrilSampler_swigregister(FibrilSampler)
1393 class UniformBackboneSampler(DOFsSampler):
1394  r"""Proxy of C++ IMP::kinematics::UniformBackboneSampler class."""
1395 
1396  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1397 
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))
1401 
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)
1405 
1406  def get_joints(self):
1407  r"""get_joints(UniformBackboneSampler self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1408  return _IMP_kinematics.UniformBackboneSampler_get_joints(self)
1409 
1410  def __str__(self):
1411  r"""__str__(UniformBackboneSampler self) -> std::string"""
1412  return _IMP_kinematics.UniformBackboneSampler___str__(self)
1413 
1414  def __repr__(self):
1415  r"""__repr__(UniformBackboneSampler self) -> std::string"""
1416  return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1417 
1418  @staticmethod
1419  def get_from(o):
1420  return _object_cast_to_UniformBackboneSampler(o)
1421 
1422  __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1423 
1424 # Register UniformBackboneSampler in _IMP_kinematics:
1425 _IMP_kinematics.UniformBackboneSampler_swigregister(UniformBackboneSampler)
1426 PHI = _IMP_kinematics.PHI
1427 
1428 PSI = _IMP_kinematics.PSI
1429 
1430 CHI = _IMP_kinematics.CHI
1431 
1432 CHI1 = _IMP_kinematics.CHI1
1433 
1434 CHI2 = _IMP_kinematics.CHI2
1435 
1436 CHI3 = _IMP_kinematics.CHI3
1437 
1438 CHI4 = _IMP_kinematics.CHI4
1439 
1440 CHI5 = _IMP_kinematics.CHI5
1441 
1442 OTHER = _IMP_kinematics.OTHER
1443 
1444 OTHER2 = _IMP_kinematics.OTHER2
1445 
1446 OTHER3 = _IMP_kinematics.OTHER3
1447 
1448 OTHER4 = _IMP_kinematics.OTHER4
1449 
1450 OTHER5 = _IMP_kinematics.OTHER5
1451 
1452 TOTAL = _IMP_kinematics.TOTAL
1453 
1454 class ProteinKinematics(IMP.Object):
1455  r"""Proxy of C++ IMP::kinematics::ProteinKinematics class."""
1456 
1457  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1458 
1459  def __init__(self, *args):
1460  r"""
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
1465  """
1466  _IMP_kinematics.ProteinKinematics_swiginit(self, _IMP_kinematics.new_ProteinKinematics(*args))
1467 
1468  def get_phi(self, r):
1469  r"""get_phi(ProteinKinematics self, Residue r) -> double"""
1470  return _IMP_kinematics.ProteinKinematics_get_phi(self, r)
1471 
1472  def get_psi(self, r):
1473  r"""get_psi(ProteinKinematics self, Residue r) -> double"""
1474  return _IMP_kinematics.ProteinKinematics_get_psi(self, r)
1475 
1476  def get_joints(self):
1477  r"""get_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1478  return _IMP_kinematics.ProteinKinematics_get_joints(self)
1479 
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)
1483 
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)
1487 
1488  def get_kinematic_forest(self):
1489  r"""get_kinematic_forest(ProteinKinematics self) -> KinematicForest"""
1490  return _IMP_kinematics.ProteinKinematics_get_kinematic_forest(self)
1491 
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)
1495 
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)
1499 
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)
1503 
1504  def get_version_info(self):
1505  r"""get_version_info(ProteinKinematics self) -> VersionInfo"""
1506  return _IMP_kinematics.ProteinKinematics_get_version_info(self)
1507  __swig_destroy__ = _IMP_kinematics.delete_ProteinKinematics
1508 
1509  def build_topology_graph(self):
1510  r"""build_topology_graph(ProteinKinematics self)"""
1511  return _IMP_kinematics.ProteinKinematics_build_topology_graph(self)
1512 
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)
1516 
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)
1520 
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)
1524 
1525  def build_rigid_bodies(self):
1526  r"""build_rigid_bodies(ProteinKinematics self)"""
1527  return _IMP_kinematics.ProteinKinematics_build_rigid_bodies(self)
1528 
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)
1532 
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)
1536 
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)
1540 
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)
1544 
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)
1548 
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)
1552 
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)
1556 
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)
1560 
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)
1564 
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)
1568 
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)
1572 
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)
1576 
1577  def __str__(self):
1578  r"""__str__(ProteinKinematics self) -> std::string"""
1579  return _IMP_kinematics.ProteinKinematics___str__(self)
1580 
1581  def __repr__(self):
1582  r"""__repr__(ProteinKinematics self) -> std::string"""
1583  return _IMP_kinematics.ProteinKinematics___repr__(self)
1584 
1585  @staticmethod
1586  def get_from(o):
1587  return _object_cast_to_ProteinKinematics(o)
1588 
1589 
1590 # Register ProteinKinematics in _IMP_kinematics:
1591 _IMP_kinematics.ProteinKinematics_swigregister(ProteinKinematics)
1592 class LocalPlanner(IMP.Object):
1593  r"""Proxy of C++ IMP::kinematics::LocalPlanner class."""
1594 
1595  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1596 
1597  def __init__(self, *args, **kwargs):
1598  raise AttributeError("No constructor defined - class is abstract")
1599 
1600  def get_version_info(self):
1601  r"""get_version_info(LocalPlanner self) -> VersionInfo"""
1602  return _IMP_kinematics.LocalPlanner_get_version_info(self)
1603  __swig_destroy__ = _IMP_kinematics.delete_LocalPlanner
1604 
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)
1608 
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)
1612 
1613  def __str__(self):
1614  r"""__str__(LocalPlanner self) -> std::string"""
1615  return _IMP_kinematics.LocalPlanner___str__(self)
1616 
1617  def __repr__(self):
1618  r"""__repr__(LocalPlanner self) -> std::string"""
1619  return _IMP_kinematics.LocalPlanner___repr__(self)
1620 
1621  @staticmethod
1622  def get_from(o):
1623  return _object_cast_to_LocalPlanner(o)
1624 
1625 
1626 # Register LocalPlanner in _IMP_kinematics:
1627 _IMP_kinematics.LocalPlanner_swigregister(LocalPlanner)
1628 class PathLocalPlanner(LocalPlanner):
1629  r"""Proxy of C++ IMP::kinematics::PathLocalPlanner class."""
1630 
1631  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1632 
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))
1636 
1637  def __str__(self):
1638  r"""__str__(PathLocalPlanner self) -> std::string"""
1639  return _IMP_kinematics.PathLocalPlanner___str__(self)
1640 
1641  def __repr__(self):
1642  r"""__repr__(PathLocalPlanner self) -> std::string"""
1643  return _IMP_kinematics.PathLocalPlanner___repr__(self)
1644 
1645  @staticmethod
1646  def get_from(o):
1647  return _object_cast_to_PathLocalPlanner(o)
1648 
1649  __swig_destroy__ = _IMP_kinematics.delete_PathLocalPlanner
1650 
1651 # Register PathLocalPlanner in _IMP_kinematics:
1652 _IMP_kinematics.PathLocalPlanner_swigregister(PathLocalPlanner)
1653 class RRT(IMP.Sampler):
1654  r"""Proxy of C++ IMP::kinematics::RRT class."""
1655 
1656  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1657 
1658  def get_version_info(self):
1659  r"""get_version_info(RRT self) -> VersionInfo"""
1660  return _IMP_kinematics.RRT_get_version_info(self)
1661  __swig_destroy__ = _IMP_kinematics.delete_RRT
1662 
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))
1666 
1667  def do_sample(self):
1668  r"""do_sample(RRT self) -> ConfigurationSet"""
1669  return _IMP_kinematics.RRT_do_sample(self)
1670 
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)
1674 
1675  def get_DOFValuesList(self):
1676  r"""get_DOFValuesList(RRT self) -> IMP::kinematics::DOFValuesList"""
1677  return _IMP_kinematics.RRT_get_DOFValuesList(self)
1678 
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)
1682 
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)
1686 
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)
1690 
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)
1694 
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)
1698 
1699  def __str__(self):
1700  r"""__str__(RRT self) -> std::string"""
1701  return _IMP_kinematics.RRT___str__(self)
1702 
1703  def __repr__(self):
1704  r"""__repr__(RRT self) -> std::string"""
1705  return _IMP_kinematics.RRT___repr__(self)
1706 
1707  @staticmethod
1708  def get_from(o):
1709  return _object_cast_to_RRT(o)
1710 
1711 
1712 # Register RRT in _IMP_kinematics:
1713 _IMP_kinematics.RRT_swigregister(RRT)
1714 
1715 def get_module_name():
1716  r"""get_module_name() -> std::string const"""
1717  return _IMP_kinematics.get_module_name()
1718 
1719 def get_module_version():
1720  r"""get_module_version() -> std::string const"""
1721  return _IMP_kinematics.get_module_version()
1722 
1723 def get_example_path(fname):
1724  r"""get_example_path(std::string fname) -> std::string"""
1725  return _IMP_kinematics.get_example_path(fname)
1726 
1727 def get_data_path(fname):
1728  r"""get_data_path(std::string fname) -> std::string"""
1729  return _IMP_kinematics.get_data_path(fname)
1730 
1731 from . import _version_check
1732 _version_check.check_version(get_module_version())
1733 __version__ = get_module_version()
1734 
1735 
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
Base class for all samplers.
Definition: Sampler.h:31
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()
Definition: Object.h:274
Common base class for heavy weight IMP objects.
Definition: Object.h:111
ScoreStates maintain invariants in the Model.
Definition: ScoreState.h:56
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.
Definition: Object.h:206
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.