IMP logo
IMP Reference Guide  develop.63b38c487d,2024/12/22
The Integrative Modeling Platform
kinematics/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.0
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-2024 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_GPERFTOOLS = _IMP_kinematics.IMP_KERNEL_HAS_GPERFTOOLS
188 
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kinematics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
192 
193 IMPKERNEL_SHOW_WARNINGS = _IMP_kinematics.IMPKERNEL_SHOW_WARNINGS
194 
195 
196 import sys
197 class _DirectorObjects:
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214 # Do in two steps so the references are kept until the end of the
215 # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  r"""Proxy of C++ std::ostream class."""
224 
225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
226 
227  def __init__(self, *args, **kwargs):
228  raise AttributeError("No constructor defined")
229  __repr__ = _swig_repr
230 
231  def write(self, osa_buf):
232  r"""write(_ostream self, char const * osa_buf)"""
233  return _IMP_kinematics._ostream_write(self, osa_buf)
234 
235 # Register _ostream in _IMP_kinematics:
236 _IMP_kinematics._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_kinematics.IMP_C_OPEN_BINARY
238 
239 import IMP
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_FILESYSTEM
241 
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
243 
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_RANDOM
245 
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_SYSTEM
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_BOOST_SYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
262 
263 IMP_ALGEBRA_HAS_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_CGAL
264 
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_kinematics.IMP_ALGEBRA_HAS_NUMPY
266 
267 IMP_ALGEBRA_HAS_ANN = _IMP_kinematics.IMP_ALGEBRA_HAS_ANN
268 
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_kinematics.IMPALGEBRA_SHOW_WARNINGS
270 
271 import IMP.algebra
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_CGAL
273 
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
275 
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
277 
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_RANDOM
279 
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_SYSTEM
281 
282 IMP_DISPLAY_HAS_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_CGAL
283 
284 IMP_DISPLAY_HAS_NUMPY = _IMP_kinematics.IMP_DISPLAY_HAS_NUMPY
285 
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_kinematics.IMPDISPLAY_SHOW_WARNINGS
287 
288 import IMP.display
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
298 
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_CGAL
300 
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_HDF5
302 
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_NUMPY
304 
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_kinematics.IMPSCOREFUNCTOR_SHOW_WARNINGS
306 
307 import IMP.score_functor
308 IMP_CORE_HAS_IMP_CGAL = _IMP_kinematics.IMP_CORE_HAS_IMP_CGAL
309 
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CORE_HAS_IMP_KERNEL
311 
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_FILESYSTEM
313 
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
315 
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CORE_HAS_BOOST_RANDOM
317 
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_SYSTEM
319 
320 IMP_CORE_HAS_CGAL = _IMP_kinematics.IMP_CORE_HAS_CGAL
321 
322 IMP_CORE_HAS_HDF5 = _IMP_kinematics.IMP_CORE_HAS_HDF5
323 
324 IMP_CORE_HAS_NUMPY = _IMP_kinematics.IMP_CORE_HAS_NUMPY
325 
326 IMPCORE_SHOW_WARNINGS = _IMP_kinematics.IMPCORE_SHOW_WARNINGS
327 
328 import IMP.core
329 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_ALGEBRA
330 
331 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_CGAL
332 
333 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_DISPLAY
334 
335 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_KERNEL
336 
337 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
338 
339 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
340 
341 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
342 
343 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_RANDOM
344 
345 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_SYSTEM
346 
347 IMP_CONTAINER_HAS_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_CGAL
348 
349 IMP_CONTAINER_HAS_HDF5 = _IMP_kinematics.IMP_CONTAINER_HAS_HDF5
350 
351 IMP_CONTAINER_HAS_NUMPY = _IMP_kinematics.IMP_CONTAINER_HAS_NUMPY
352 
353 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_kinematics.IMP_CONTAINER_HAS_PYTHON_IHM
354 
355 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
356 
357 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_kinematics.IMP_CONTAINER_HAS_ROBIN_MAP
358 
359 IMPCONTAINER_SHOW_WARNINGS = _IMP_kinematics.IMPCONTAINER_SHOW_WARNINGS
360 
361 import IMP.container
362 IMP_ATOM_HAS_IMP_CGAL = _IMP_kinematics.IMP_ATOM_HAS_IMP_CGAL
363 
364 IMP_ATOM_HAS_IMP_KERNEL = _IMP_kinematics.IMP_ATOM_HAS_IMP_KERNEL
365 
366 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
367 
368 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
369 
370 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_RANDOM
371 
372 IMP_ATOM_HAS_BOOST_REGEX = _IMP_kinematics.IMP_ATOM_HAS_BOOST_REGEX
373 
374 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_SYSTEM
375 
376 IMP_ATOM_HAS_CGAL = _IMP_kinematics.IMP_ATOM_HAS_CGAL
377 
378 IMP_ATOM_HAS_HDF5 = _IMP_kinematics.IMP_ATOM_HAS_HDF5
379 
380 IMP_ATOM_HAS_NUMPY = _IMP_kinematics.IMP_ATOM_HAS_NUMPY
381 
382 IMP_ATOM_HAS_PYTHON_IHM = _IMP_kinematics.IMP_ATOM_HAS_PYTHON_IHM
383 
384 IMPATOM_SHOW_WARNINGS = _IMP_kinematics.IMPATOM_SHOW_WARNINGS
385 
386 IMP_ATOM_TYPE_INDEX = _IMP_kinematics.IMP_ATOM_TYPE_INDEX
387 
388 IMP_RESIDUE_TYPE_INDEX = _IMP_kinematics.IMP_RESIDUE_TYPE_INDEX
389 
390 IMP_HIERARCHY_TYPE_INDEX = _IMP_kinematics.IMP_HIERARCHY_TYPE_INDEX
391 
392 IMP_CHAIN_TYPE_INDEX = _IMP_kinematics.IMP_CHAIN_TYPE_INDEX
393 
394 import IMP.atom
395 IMP_SAXS_HAS_IMP_CGAL = _IMP_kinematics.IMP_SAXS_HAS_IMP_CGAL
396 
397 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_kinematics.IMP_SAXS_HAS_IMP_CONTAINER
398 
399 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_SAXS_HAS_IMP_DISPLAY
400 
401 IMP_SAXS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_SAXS_HAS_IMP_KERNEL
402 
403 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
404 
405 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_FILESYSTEM
406 
407 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
408 
409 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_RANDOM
410 
411 IMP_SAXS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_SAXS_HAS_BOOST_REGEX
412 
413 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_SYSTEM
414 
415 IMP_SAXS_HAS_CGAL = _IMP_kinematics.IMP_SAXS_HAS_CGAL
416 
417 IMP_SAXS_HAS_HDF5 = _IMP_kinematics.IMP_SAXS_HAS_HDF5
418 
419 IMP_SAXS_HAS_NUMPY = _IMP_kinematics.IMP_SAXS_HAS_NUMPY
420 
421 IMP_SAXS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_SAXS_HAS_PYTHON_IHM
422 
423 IMPSAXS_SHOW_WARNINGS = _IMP_kinematics.IMPSAXS_SHOW_WARNINGS
424 
425 import IMP.saxs
426 IMP_KINEMATICS_HAS_IMP_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_CGAL
427 
428 IMP_KINEMATICS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_DISPLAY
429 
430 IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR
431 
432 IMP_KINEMATICS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_FILESYSTEM
433 
434 IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS
435 
436 IMP_KINEMATICS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_RANDOM
437 
438 IMP_KINEMATICS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_REGEX
439 
440 IMP_KINEMATICS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_SYSTEM
441 
442 IMP_KINEMATICS_HAS_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_CGAL
443 
444 IMP_KINEMATICS_HAS_HDF5 = _IMP_kinematics.IMP_KINEMATICS_HAS_HDF5
445 
446 IMP_KINEMATICS_HAS_NUMPY = _IMP_kinematics.IMP_KINEMATICS_HAS_NUMPY
447 
448 IMP_KINEMATICS_HAS_PYTHON_IHM = _IMP_kinematics.IMP_KINEMATICS_HAS_PYTHON_IHM
449 
450 IMPKINEMATICS_SHOW_WARNINGS = _IMP_kinematics.IMPKINEMATICS_SHOW_WARNINGS
451 
452 
453 _object_types.append("Joint")
454 
455 
456 def _object_cast_to_Joint(o):
457  r"""_object_cast_to_Joint(Object o) -> Joint"""
458  return _IMP_kinematics._object_cast_to_Joint(o)
459 
460 _object_types.append("TransformationJoint")
461 
462 
463 def _object_cast_to_TransformationJoint(o):
464  r"""_object_cast_to_TransformationJoint(Object o) -> TransformationJoint"""
465  return _IMP_kinematics._object_cast_to_TransformationJoint(o)
466 
467 _object_types.append("RevoluteJoint")
468 
469 
470 def _object_cast_to_RevoluteJoint(o):
471  r"""_object_cast_to_RevoluteJoint(Object o) -> RevoluteJoint"""
472  return _IMP_kinematics._object_cast_to_RevoluteJoint(o)
473 
474 _object_types.append("DihedralAngleRevoluteJoint")
475 
476 
477 def _object_cast_to_DihedralAngleRevoluteJoint(o):
478  r"""_object_cast_to_DihedralAngleRevoluteJoint(Object o) -> DihedralAngleRevoluteJoint"""
479  return _IMP_kinematics._object_cast_to_DihedralAngleRevoluteJoint(o)
480 
481 _object_types.append("BondAngleRevoluteJoint")
482 
483 
484 def _object_cast_to_BondAngleRevoluteJoint(o):
485  r"""_object_cast_to_BondAngleRevoluteJoint(Object o) -> BondAngleRevoluteJoint"""
486  return _IMP_kinematics._object_cast_to_BondAngleRevoluteJoint(o)
487 
488 _object_types.append("PrismaticJoint")
489 
490 
491 def _object_cast_to_PrismaticJoint(o):
492  r"""_object_cast_to_PrismaticJoint(Object o) -> PrismaticJoint"""
493  return _IMP_kinematics._object_cast_to_PrismaticJoint(o)
494 
495 _object_types.append("KinematicForest")
496 
497 
498 def _object_cast_to_KinematicForest(o):
499  r"""_object_cast_to_KinematicForest(Object o) -> KinematicForest"""
500  return _IMP_kinematics._object_cast_to_KinematicForest(o)
501 
502 _object_types.append("KinematicForestScoreState")
503 
504 
505 def _object_cast_to_KinematicForestScoreState(o):
506  r"""_object_cast_to_KinematicForestScoreState(Object o) -> KinematicForestScoreState"""
507  return _IMP_kinematics._object_cast_to_KinematicForestScoreState(o)
508 
509 _object_types.append("CompositeJoint")
510 
511 
512 def _object_cast_to_CompositeJoint(o):
513  r"""_object_cast_to_CompositeJoint(Object o) -> CompositeJoint"""
514  return _IMP_kinematics._object_cast_to_CompositeJoint(o)
515 
516 _object_types.append("RevoluteJointMover")
517 
518 
519 def _object_cast_to_RevoluteJointMover(o):
520  r"""_object_cast_to_RevoluteJointMover(Object o) -> RevoluteJointMover"""
521  return _IMP_kinematics._object_cast_to_RevoluteJointMover(o)
522 
523 _object_types.append("DihedralMover")
524 
525 
526 def _object_cast_to_DihedralMover(o):
527  r"""_object_cast_to_DihedralMover(Object o) -> DihedralMover"""
528  return _IMP_kinematics._object_cast_to_DihedralMover(o)
529 
530 _object_types.append("DOF")
531 
532 
533 def _object_cast_to_DOF(o):
534  r"""_object_cast_to_DOF(Object o) -> DOF"""
535  return _IMP_kinematics._object_cast_to_DOF(o)
536 
537 DOFValuesList=list
538 _plural_types.append("DOFValuesList")
539 _value_types.append("DOFValues")
540 
541 
542 _object_types.append("DirectionalDOF")
543 
544 
545 def _object_cast_to_DirectionalDOF(o):
546  r"""_object_cast_to_DirectionalDOF(Object o) -> DirectionalDOF"""
547  return _IMP_kinematics._object_cast_to_DirectionalDOF(o)
548 
549 _object_types.append("DOFsSampler")
550 
551 
552 def _object_cast_to_DOFsSampler(o):
553  r"""_object_cast_to_DOFsSampler(Object o) -> DOFsSampler"""
554  return _IMP_kinematics._object_cast_to_DOFsSampler(o)
555 
556 _object_types.append("UniformBackboneSampler")
557 
558 
559 def _object_cast_to_UniformBackboneSampler(o):
560  r"""_object_cast_to_UniformBackboneSampler(Object o) -> UniformBackboneSampler"""
561  return _IMP_kinematics._object_cast_to_UniformBackboneSampler(o)
562 
563 _object_types.append("FibrilSampler")
564 
565 
566 def _object_cast_to_FibrilSampler(o):
567  r"""_object_cast_to_FibrilSampler(Object o) -> FibrilSampler"""
568  return _IMP_kinematics._object_cast_to_FibrilSampler(o)
569 
570 _object_types.append("ProteinKinematics")
571 
572 
573 def _object_cast_to_ProteinKinematics(o):
574  r"""_object_cast_to_ProteinKinematics(Object o) -> ProteinKinematics"""
575  return _IMP_kinematics._object_cast_to_ProteinKinematics(o)
576 
577 _object_types.append("LocalPlanner")
578 
579 
580 def _object_cast_to_LocalPlanner(o):
581  r"""_object_cast_to_LocalPlanner(Object o) -> LocalPlanner"""
582  return _IMP_kinematics._object_cast_to_LocalPlanner(o)
583 
584 _object_types.append("PathLocalPlanner")
585 
586 
587 def _object_cast_to_PathLocalPlanner(o):
588  r"""_object_cast_to_PathLocalPlanner(Object o) -> PathLocalPlanner"""
589  return _IMP_kinematics._object_cast_to_PathLocalPlanner(o)
590 
591 _object_types.append("RRT")
592 
593 
594 def _object_cast_to_RRT(o):
595  r"""_object_cast_to_RRT(Object o) -> RRT"""
596  return _IMP_kinematics._object_cast_to_RRT(o)
597 class Joint(IMP.Object):
598  r"""Proxy of C++ IMP::kinematics::Joint class."""
599 
600  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
601 
602  def get_version_info(self):
603  r"""get_version_info(Joint self) -> VersionInfo"""
604  return _IMP_kinematics.Joint_get_version_info(self)
605  __swig_destroy__ = _IMP_kinematics.delete_Joint
606 
607  def __init__(self, parent, child):
608  r"""__init__(Joint self, RigidBody parent, RigidBody child) -> Joint"""
609  _IMP_kinematics.Joint_swiginit(self, _IMP_kinematics.new_Joint(parent, child))
610 
611  def get_owner_kf(self):
612  r"""get_owner_kf(Joint self) -> KinematicForest"""
613  return _IMP_kinematics.Joint_get_owner_kf(self)
614 
615  def get_transformation_child_to_parent(self):
616  r"""get_transformation_child_to_parent(Joint self) -> Transformation3D"""
617  return _IMP_kinematics.Joint_get_transformation_child_to_parent(self)
618 
619  def get_parent_node(self):
620  r"""get_parent_node(Joint self) -> RigidBody"""
621  return _IMP_kinematics.Joint_get_parent_node(self)
622 
623  def get_child_node(self):
624  r"""get_child_node(Joint self) -> RigidBody"""
625  return _IMP_kinematics.Joint_get_child_node(self)
626 
627  def __str__(self):
628  r"""__str__(Joint self) -> std::string"""
629  return _IMP_kinematics.Joint___str__(self)
630 
631  def __repr__(self):
632  r"""__repr__(Joint self) -> std::string"""
633  return _IMP_kinematics.Joint___repr__(self)
634 
635  @staticmethod
636  def get_from(o):
637  return _object_cast_to_Joint(o)
638 
639 
640 # Register Joint in _IMP_kinematics:
641 _IMP_kinematics.Joint_swigregister(Joint)
642 class TransformationJoint(Joint):
643  r"""Proxy of C++ IMP::kinematics::TransformationJoint class."""
644 
645  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
646 
647  def __init__(self, parent, child):
648  r"""__init__(TransformationJoint self, RigidBody parent, RigidBody child) -> TransformationJoint"""
649  _IMP_kinematics.TransformationJoint_swiginit(self, _IMP_kinematics.new_TransformationJoint(parent, child))
650 
651  def set_transformation_child_to_parent(self, transformation):
652  r"""set_transformation_child_to_parent(TransformationJoint self, Transformation3D transformation)"""
653  return _IMP_kinematics.TransformationJoint_set_transformation_child_to_parent(self, transformation)
654 
655  def __str__(self):
656  r"""__str__(TransformationJoint self) -> std::string"""
657  return _IMP_kinematics.TransformationJoint___str__(self)
658 
659  def __repr__(self):
660  r"""__repr__(TransformationJoint self) -> std::string"""
661  return _IMP_kinematics.TransformationJoint___repr__(self)
662 
663  @staticmethod
664  def get_from(o):
665  return _object_cast_to_TransformationJoint(o)
666 
667  __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
668 
669 # Register TransformationJoint in _IMP_kinematics:
670 _IMP_kinematics.TransformationJoint_swigregister(TransformationJoint)
671 class PrismaticJoint(Joint):
672  r"""Proxy of C++ IMP::kinematics::PrismaticJoint class."""
673 
674  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
675 
676  def __init__(self, *args):
677  r"""
678  __init__(PrismaticJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b) -> PrismaticJoint
679  __init__(PrismaticJoint self, RigidBody parent, RigidBody child) -> PrismaticJoint
680  """
681  _IMP_kinematics.PrismaticJoint_swiginit(self, _IMP_kinematics.new_PrismaticJoint(*args))
682 
683  def get_length(self):
684  r"""get_length(PrismaticJoint self) -> double"""
685  return _IMP_kinematics.PrismaticJoint_get_length(self)
686 
687  def set_length(self, l):
688  r"""set_length(PrismaticJoint self, double l)"""
689  return _IMP_kinematics.PrismaticJoint_set_length(self, l)
690 
691  def __str__(self):
692  r"""__str__(PrismaticJoint self) -> std::string"""
693  return _IMP_kinematics.PrismaticJoint___str__(self)
694 
695  def __repr__(self):
696  r"""__repr__(PrismaticJoint self) -> std::string"""
697  return _IMP_kinematics.PrismaticJoint___repr__(self)
698 
699  @staticmethod
700  def get_from(o):
701  return _object_cast_to_PrismaticJoint(o)
702 
703  __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
704 
705 # Register PrismaticJoint in _IMP_kinematics:
706 _IMP_kinematics.PrismaticJoint_swigregister(PrismaticJoint)
707 class CompositeJoint(Joint):
708  r"""Proxy of C++ IMP::kinematics::CompositeJoint class."""
709 
710  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
711 
712  def __init__(self, *args):
713  r"""__init__(CompositeJoint self, RigidBody parent, RigidBody child, IMP::kinematics::Joints joints=IMP::kinematics::Joints()) -> CompositeJoint"""
714  _IMP_kinematics.CompositeJoint_swiginit(self, _IMP_kinematics.new_CompositeJoint(*args))
715 
716  def add_downstream_joint(self, j):
717  r"""add_downstream_joint(CompositeJoint self, Joint j)"""
718  return _IMP_kinematics.CompositeJoint_add_downstream_joint(self, j)
719 
720  def add_upstream_joint(self, j):
721  r"""add_upstream_joint(CompositeJoint self, Joint j)"""
722  return _IMP_kinematics.CompositeJoint_add_upstream_joint(self, j)
723 
724  def set_joints(self, joints):
725  r"""set_joints(CompositeJoint self, IMP::kinematics::Joints joints)"""
726  return _IMP_kinematics.CompositeJoint_set_joints(self, joints)
727 
728  def get_inner_joints(self):
729  r"""get_inner_joints(CompositeJoint self) -> IMP::kinematics::Joints const &"""
730  return _IMP_kinematics.CompositeJoint_get_inner_joints(self)
731 
732  def __str__(self):
733  r"""__str__(CompositeJoint self) -> std::string"""
734  return _IMP_kinematics.CompositeJoint___str__(self)
735 
736  def __repr__(self):
737  r"""__repr__(CompositeJoint self) -> std::string"""
738  return _IMP_kinematics.CompositeJoint___repr__(self)
739 
740  @staticmethod
741  def get_from(o):
742  return _object_cast_to_CompositeJoint(o)
743 
744  __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
745 
746 # Register CompositeJoint in _IMP_kinematics:
747 _IMP_kinematics.CompositeJoint_swigregister(CompositeJoint)
748 class RevoluteJoint(Joint):
749  r"""Proxy of C++ IMP::kinematics::RevoluteJoint class."""
750 
751  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
752 
753  def __init__(self, parent, child):
754  r"""__init__(RevoluteJoint self, RigidBody parent, RigidBody child) -> RevoluteJoint"""
755  if self.__class__ == RevoluteJoint:
756  _self = None
757  else:
758  _self = self
759  _IMP_kinematics.RevoluteJoint_swiginit(self, _IMP_kinematics.new_RevoluteJoint(_self, parent, child))
760 
761  if self.__class__ != RevoluteJoint:
762  _director_objects.register(self)
763 
764 
765 
766  __swig_destroy__ = _IMP_kinematics.delete_RevoluteJoint
767 
768  def set_angle(self, angle):
769  r"""set_angle(RevoluteJoint self, double angle)"""
770  return _IMP_kinematics.RevoluteJoint_set_angle(self, angle)
771 
772  def get_angle(self):
773  r"""get_angle(RevoluteJoint self) -> double"""
774  return _IMP_kinematics.RevoluteJoint_get_angle(self)
775 
776  def get_rot_axis_origin(self):
777  r"""get_rot_axis_origin(RevoluteJoint self) -> Vector3D"""
778  return _IMP_kinematics.RevoluteJoint_get_rot_axis_origin(self)
779 
780  def get_rot_axis_unit_vector(self):
781  r"""get_rot_axis_unit_vector(RevoluteJoint self) -> Vector3D"""
782  return _IMP_kinematics.RevoluteJoint_get_rot_axis_unit_vector(self)
783 
784  def update_child_node_reference_frame(self):
785  r"""update_child_node_reference_frame(RevoluteJoint self)"""
786  return _IMP_kinematics.RevoluteJoint_update_child_node_reference_frame(self)
787 
788  def update_axis_of_rotation_from_cartesian_witnesses(self):
789  r"""update_axis_of_rotation_from_cartesian_witnesses(RevoluteJoint self)"""
790  return _IMP_kinematics.RevoluteJoint_update_axis_of_rotation_from_cartesian_witnesses(self)
791 
792  def get_current_angle_from_cartesian_witnesses(self):
793  r"""get_current_angle_from_cartesian_witnesses(RevoluteJoint self) -> double"""
794  return _IMP_kinematics.RevoluteJoint_get_current_angle_from_cartesian_witnesses(self)
795 
796  def update_joint_from_cartesian_witnesses(self):
797  r"""update_joint_from_cartesian_witnesses(RevoluteJoint self)"""
798  return _IMP_kinematics.RevoluteJoint_update_joint_from_cartesian_witnesses(self)
799 
800  def get_rotation_about_joint_in_parent_coordinates(self):
801  r"""get_rotation_about_joint_in_parent_coordinates(RevoluteJoint self) -> Transformation3D"""
802  return _IMP_kinematics.RevoluteJoint_get_rotation_about_joint_in_parent_coordinates(self)
803  angle_ = property(_IMP_kinematics.RevoluteJoint_angle__get, _IMP_kinematics.RevoluteJoint_angle__set, doc=r"""angle_ : double""")
804  last_updated_angle_ = property(_IMP_kinematics.RevoluteJoint_last_updated_angle__get, _IMP_kinematics.RevoluteJoint_last_updated_angle__set, doc=r"""last_updated_angle_ : double""")
805  rot_axis_unit_vector_ = property(_IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__get, _IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__set, doc=r"""rot_axis_unit_vector_ : IMP::algebra::Vector3D""")
806  rot_axis_origin_ = property(_IMP_kinematics.RevoluteJoint_rot_axis_origin__get, _IMP_kinematics.RevoluteJoint_rot_axis_origin__set, doc=r"""rot_axis_origin_ : IMP::algebra::Vector3D""")
807 
808  def __str__(self):
809  r"""__str__(RevoluteJoint self) -> std::string"""
810  return _IMP_kinematics.RevoluteJoint___str__(self)
811 
812  def __repr__(self):
813  r"""__repr__(RevoluteJoint self) -> std::string"""
814  return _IMP_kinematics.RevoluteJoint___repr__(self)
815 
816  @staticmethod
817  def get_from(o):
818  return _object_cast_to_RevoluteJoint(o)
819 
820 
821  def get_type_name(self):
822  return self.__class__.__name__
823  def do_show(self, out):
824  pass
825  def get_version_info(self):
826  if"IMP::kinematics" == "IMP":
827  return VersionInfo(self.__module__,
828  __import__(self.__module__).get_module_version())
829  else:
830  return IMP.VersionInfo(self.__module__,
831  __import__(self.__module__).get_module_version())
832  @staticmethod
833  def get_from(o):
834  return _object_cast_to_RevoluteJoint(o)
835 
836  def __disown__(self):
837  self.this.disown()
838  _IMP_kinematics.disown_RevoluteJoint(self)
839  return weakref.proxy(self)
840 
841  def do_destroy(self):
842  r"""do_destroy(RevoluteJoint self)"""
843  return _IMP_kinematics.RevoluteJoint_do_destroy(self)
844 
845 # Register RevoluteJoint in _IMP_kinematics:
846 _IMP_kinematics.RevoluteJoint_swigregister(RevoluteJoint)
847 class DihedralAngleRevoluteJoint(RevoluteJoint):
848  r"""Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class."""
849 
850  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
851 
852  def __init__(self, parent, child, a, b, c, d):
853  r"""__init__(DihedralAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c, XYZ d) -> DihedralAngleRevoluteJoint"""
854  _IMP_kinematics.DihedralAngleRevoluteJoint_swiginit(self, _IMP_kinematics.new_DihedralAngleRevoluteJoint(parent, child, a, b, c, d))
855 
856  def get_a(self):
857  r"""get_a(DihedralAngleRevoluteJoint self) -> XYZ"""
858  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_a(self)
859 
860  def get_b(self):
861  r"""get_b(DihedralAngleRevoluteJoint self) -> XYZ"""
862  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_b(self)
863 
864  def get_c(self):
865  r"""get_c(DihedralAngleRevoluteJoint self) -> XYZ"""
866  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_c(self)
867 
868  def get_d(self):
869  r"""get_d(DihedralAngleRevoluteJoint self) -> XYZ"""
870  return _IMP_kinematics.DihedralAngleRevoluteJoint_get_d(self)
871 
872  def __str__(self):
873  r"""__str__(DihedralAngleRevoluteJoint self) -> std::string"""
874  return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
875 
876  def __repr__(self):
877  r"""__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
878  return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
879 
880  @staticmethod
881  def get_from(o):
882  return _object_cast_to_DihedralAngleRevoluteJoint(o)
883 
884  __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
885 
886 # Register DihedralAngleRevoluteJoint in _IMP_kinematics:
887 _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
888 class BondAngleRevoluteJoint(RevoluteJoint):
889  r"""Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class."""
890 
891  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
892 
893  def __init__(self, parent, child, a, b, c):
894  r"""__init__(BondAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c) -> BondAngleRevoluteJoint"""
895  _IMP_kinematics.BondAngleRevoluteJoint_swiginit(self, _IMP_kinematics.new_BondAngleRevoluteJoint(parent, child, a, b, c))
896 
897  def __str__(self):
898  r"""__str__(BondAngleRevoluteJoint self) -> std::string"""
899  return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
900 
901  def __repr__(self):
902  r"""__repr__(BondAngleRevoluteJoint self) -> std::string"""
903  return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
904 
905  @staticmethod
906  def get_from(o):
907  return _object_cast_to_BondAngleRevoluteJoint(o)
908 
909  __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
910 
911 # Register BondAngleRevoluteJoint in _IMP_kinematics:
912 _IMP_kinematics.BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
913 class RevoluteJointMover(IMP.core.MonteCarloMover):
914  r"""Proxy of C++ IMP::kinematics::RevoluteJointMover class."""
915 
916  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
917 
918  def __init__(self, m, joints, stddev=0.01):
919  r"""__init__(RevoluteJointMover self, Model m, IMP::kinematics::RevoluteJoints const & joints, double const stddev=0.01) -> RevoluteJointMover"""
920  _IMP_kinematics.RevoluteJointMover_swiginit(self, _IMP_kinematics.new_RevoluteJointMover(m, joints, stddev))
921 
922  def set_sigma(self, sigma):
923  r"""set_sigma(RevoluteJointMover self, IMP::Float sigma)"""
924  return _IMP_kinematics.RevoluteJointMover_set_sigma(self, sigma)
925 
926  def get_sigma(self):
927  r"""get_sigma(RevoluteJointMover self) -> IMP::Float"""
928  return _IMP_kinematics.RevoluteJointMover_get_sigma(self)
929 
930  def get_version_info(self):
931  r"""get_version_info(RevoluteJointMover self) -> VersionInfo"""
932  return _IMP_kinematics.RevoluteJointMover_get_version_info(self)
933  __swig_destroy__ = _IMP_kinematics.delete_RevoluteJointMover
934 
935  def __str__(self):
936  r"""__str__(RevoluteJointMover self) -> std::string"""
937  return _IMP_kinematics.RevoluteJointMover___str__(self)
938 
939  def __repr__(self):
940  r"""__repr__(RevoluteJointMover self) -> std::string"""
941  return _IMP_kinematics.RevoluteJointMover___repr__(self)
942 
943  @staticmethod
944  def get_from(o):
945  return _object_cast_to_RevoluteJointMover(o)
946 
947 
948 # Register RevoluteJointMover in _IMP_kinematics:
949 _IMP_kinematics.RevoluteJointMover_swigregister(RevoluteJointMover)
950 class DihedralMover(IMP.core.MonteCarloMover):
951  r"""Proxy of C++ IMP::kinematics::DihedralMover class."""
952 
953  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
954 
955  def __init__(self, m, joints, max_rot=0.1):
956  r"""__init__(DihedralMover self, Model m, IMP::kinematics::RevoluteJoints const & joints, double const max_rot=0.1) -> DihedralMover"""
957  _IMP_kinematics.DihedralMover_swiginit(self, _IMP_kinematics.new_DihedralMover(m, joints, max_rot))
958 
959  def get_version_info(self):
960  r"""get_version_info(DihedralMover self) -> VersionInfo"""
961  return _IMP_kinematics.DihedralMover_get_version_info(self)
962  __swig_destroy__ = _IMP_kinematics.delete_DihedralMover
963 
964  def __str__(self):
965  r"""__str__(DihedralMover self) -> std::string"""
966  return _IMP_kinematics.DihedralMover___str__(self)
967 
968  def __repr__(self):
969  r"""__repr__(DihedralMover self) -> std::string"""
970  return _IMP_kinematics.DihedralMover___repr__(self)
971 
972  @staticmethod
973  def get_from(o):
974  return _object_cast_to_DihedralMover(o)
975 
976 
977 # Register DihedralMover in _IMP_kinematics:
978 _IMP_kinematics.DihedralMover_swigregister(DihedralMover)
979 class KinematicForest(IMP.Object):
980  r"""Proxy of C++ IMP::kinematics::KinematicForest class."""
981 
982  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
983 
984  def get_version_info(self):
985  r"""get_version_info(KinematicForest self) -> VersionInfo"""
986  return _IMP_kinematics.KinematicForest_get_version_info(self)
987  __swig_destroy__ = _IMP_kinematics.delete_KinematicForest
988 
989  def __init__(self, *args):
990  r"""
991  __init__(KinematicForest self, Model m) -> KinematicForest
992  __init__(KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
993  """
994  _IMP_kinematics.KinematicForest_swiginit(self, _IMP_kinematics.new_KinematicForest(*args))
995 
996  def add_edge(self, *args):
997  r"""
998  add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
999  add_edge(KinematicForest self, Joint joint)
1000  """
1001  return _IMP_kinematics.KinematicForest_add_edge(self, *args)
1002 
1003  def add_rigid_bodies_in_chain(self, rbs):
1004  r"""add_rigid_bodies_in_chain(KinematicForest self, IMP::core::RigidBodies rbs)"""
1005  return _IMP_kinematics.KinematicForest_add_rigid_bodies_in_chain(self, rbs)
1006 
1007  def reset_root(self, new_root):
1008  r"""reset_root(KinematicForest self, Particle new_root)"""
1009  return _IMP_kinematics.KinematicForest_reset_root(self, new_root)
1010 
1011  def update_all_internal_coordinates(self):
1012  r"""update_all_internal_coordinates(KinematicForest self)"""
1013  return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
1014 
1015  def update_all_external_coordinates(self):
1016  r"""update_all_external_coordinates(KinematicForest self)"""
1017  return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
1018 
1019  def get_ordered_joints(self):
1020  r"""get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
1021  return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
1022 
1023  def transform_safe(self, tr):
1024  r"""transform_safe(KinematicForest self, Transformation3D tr)"""
1025  return _IMP_kinematics.KinematicForest_transform_safe(self, tr)
1026 
1027  def mark_internal_coordinates_changed(self):
1028  r"""mark_internal_coordinates_changed(KinematicForest self)"""
1029  return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
1030 
1031  def mark_external_coordinates_changed(self):
1032  r"""mark_external_coordinates_changed(KinematicForest self)"""
1033  return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
1034 
1035  def set_coordinates_safe(self, rb, c):
1036  r"""set_coordinates_safe(KinematicForest self, RigidBody rb, Vector3D c)"""
1037  return _IMP_kinematics.KinematicForest_set_coordinates_safe(self, rb, c)
1038 
1039  def get_coordinates_safe(self, rb):
1040  r"""get_coordinates_safe(KinematicForest self, RigidBody rb) -> Vector3D"""
1041  return _IMP_kinematics.KinematicForest_get_coordinates_safe(self, rb)
1042 
1043  def get_is_member(self, rb):
1044  r"""get_is_member(KinematicForest self, RigidBody rb) -> bool"""
1045  return _IMP_kinematics.KinematicForest_get_is_member(self, rb)
1046 
1047  def get_reference_frame_safe(self, rb):
1048  r"""get_reference_frame_safe(KinematicForest self, RigidBody rb) -> ReferenceFrame3D"""
1049  return _IMP_kinematics.KinematicForest_get_reference_frame_safe(self, rb)
1050 
1051  def set_reference_frame_safe(self, rb, r):
1052  r"""set_reference_frame_safe(KinematicForest self, RigidBody rb, ReferenceFrame3D r)"""
1053  return _IMP_kinematics.KinematicForest_set_reference_frame_safe(self, rb, r)
1054 
1055  def apply_transform_safely(self, tr):
1056  r"""apply_transform_safely(KinematicForest self, Transformation3D tr)"""
1057  return _IMP_kinematics.KinematicForest_apply_transform_safely(self, tr)
1058 
1059  def __str__(self):
1060  r"""__str__(KinematicForest self) -> std::string"""
1061  return _IMP_kinematics.KinematicForest___str__(self)
1062 
1063  def __repr__(self):
1064  r"""__repr__(KinematicForest self) -> std::string"""
1065  return _IMP_kinematics.KinematicForest___repr__(self)
1066 
1067  @staticmethod
1068  def get_from(o):
1069  return _object_cast_to_KinematicForest(o)
1070 
1071 
1072 # Register KinematicForest in _IMP_kinematics:
1073 _IMP_kinematics.KinematicForest_swigregister(KinematicForest)
1074 class KinematicForestScoreState(IMP.ScoreState):
1075  r"""Proxy of C++ IMP::kinematics::KinematicForestScoreState class."""
1076 
1077  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1078 
1079  def get_version_info(self):
1080  r"""get_version_info(KinematicForestScoreState self) -> VersionInfo"""
1081  return _IMP_kinematics.KinematicForestScoreState_get_version_info(self)
1082  __swig_destroy__ = _IMP_kinematics.delete_KinematicForestScoreState
1083 
1084  def __init__(self, kf, rbs, atoms):
1085  r"""__init__(KinematicForestScoreState self, KinematicForest kf, IMP::core::RigidBodies rbs, IMP::ParticlesTemp atoms) -> KinematicForestScoreState"""
1086  _IMP_kinematics.KinematicForestScoreState_swiginit(self, _IMP_kinematics.new_KinematicForestScoreState(kf, rbs, atoms))
1087 
1088  def do_before_evaluate(self):
1089  r"""do_before_evaluate(KinematicForestScoreState self)"""
1090  return _IMP_kinematics.KinematicForestScoreState_do_before_evaluate(self)
1091 
1092  def do_after_evaluate(self, da):
1093  r"""do_after_evaluate(KinematicForestScoreState self, DerivativeAccumulator da)"""
1094  return _IMP_kinematics.KinematicForestScoreState_do_after_evaluate(self, da)
1095 
1096  def do_get_inputs(self):
1097  r"""do_get_inputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1098  return _IMP_kinematics.KinematicForestScoreState_do_get_inputs(self)
1099 
1100  def do_get_outputs(self):
1101  r"""do_get_outputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1102  return _IMP_kinematics.KinematicForestScoreState_do_get_outputs(self)
1103 
1104  def __str__(self):
1105  r"""__str__(KinematicForestScoreState self) -> std::string"""
1106  return _IMP_kinematics.KinematicForestScoreState___str__(self)
1107 
1108  def __repr__(self):
1109  r"""__repr__(KinematicForestScoreState self) -> std::string"""
1110  return _IMP_kinematics.KinematicForestScoreState___repr__(self)
1111 
1112  @staticmethod
1113  def get_from(o):
1114  return _object_cast_to_KinematicForestScoreState(o)
1115 
1116 
1117 # Register KinematicForestScoreState in _IMP_kinematics:
1118 _IMP_kinematics.KinematicForestScoreState_swigregister(KinematicForestScoreState)
1119 class DOF(IMP.Object):
1120  r"""Proxy of C++ IMP::kinematics::DOF class."""
1121 
1122  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1123 
1124  def get_version_info(self):
1125  r"""get_version_info(DOF self) -> VersionInfo"""
1126  return _IMP_kinematics.DOF_get_version_info(self)
1127  __swig_destroy__ = _IMP_kinematics.delete_DOF
1128 
1129  def __init__(self, *args):
1130  r"""
1131  __init__(DOF self, double v) -> DOF
1132  __init__(DOF self, double v, double min, double max, double step_size) -> DOF
1133  """
1134  _IMP_kinematics.DOF_swiginit(self, _IMP_kinematics.new_DOF(*args))
1135 
1136  def get_value(self):
1137  r"""get_value(DOF self) -> double"""
1138  return _IMP_kinematics.DOF_get_value(self)
1139 
1140  def set_value(self, v):
1141  r"""set_value(DOF self, double v)"""
1142  return _IMP_kinematics.DOF_set_value(self, v)
1143 
1144  def get_range(self):
1145  r"""get_range(DOF self) -> std::pair< double,double >"""
1146  return _IMP_kinematics.DOF_get_range(self)
1147 
1148  def set_range(self, range):
1149  r"""set_range(DOF self, std::pair< double,double > range)"""
1150  return _IMP_kinematics.DOF_set_range(self, range)
1151 
1152  def get_step_size(self):
1153  r"""get_step_size(DOF self) -> double"""
1154  return _IMP_kinematics.DOF_get_step_size(self)
1155 
1156  def set_step_size(self, step_size):
1157  r"""set_step_size(DOF self, double step_size)"""
1158  return _IMP_kinematics.DOF_set_step_size(self, step_size)
1159 
1160  def get_number_of_steps(self, *args):
1161  r"""
1162  get_number_of_steps(DOF self, double value) -> int
1163  get_number_of_steps(DOF self, double value1, double value2) -> int
1164  """
1165  return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1166 
1167  def __str__(self):
1168  r"""__str__(DOF self) -> std::string"""
1169  return _IMP_kinematics.DOF___str__(self)
1170 
1171  def __repr__(self):
1172  r"""__repr__(DOF self) -> std::string"""
1173  return _IMP_kinematics.DOF___repr__(self)
1174 
1175  @staticmethod
1176  def get_from(o):
1177  return _object_cast_to_DOF(o)
1178 
1179 
1180 # Register DOF in _IMP_kinematics:
1181 _IMP_kinematics.DOF_swigregister(DOF)
1182 class DOFValues(IMP.saxs.DistBase):
1183  r"""Proxy of C++ IMP::kinematics::DOFValues class."""
1184 
1185  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1186 
1187  def __init__(self, *args):
1188  r"""
1189  __init__(DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1190  __init__(DOFValues self) -> DOFValues
1191  """
1192  _IMP_kinematics.DOFValues_swiginit(self, _IMP_kinematics.new_DOFValues(*args))
1193 
1194  def get_distance2(self, *args):
1195  r"""
1196  get_distance2(DOFValues self, DOFValues other_dof_values) -> double
1197  get_distance2(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1198  """
1199  return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1200 
1201  def get_distance(self, *args):
1202  r"""
1203  get_distance(DOFValues self, DOFValues other_dof_values) -> double
1204  get_distance(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1205  """
1206  return _IMP_kinematics.DOFValues_get_distance(self, *args)
1207 
1208  def show(self, *args):
1209  r"""show(DOFValues self, _ostream out=std::cout)"""
1210  return _IMP_kinematics.DOFValues_show(self, *args)
1211 
1212  def __str__(self):
1213  r"""__str__(DOFValues self) -> std::string"""
1214  return _IMP_kinematics.DOFValues___str__(self)
1215 
1216  def __repr__(self):
1217  r"""__repr__(DOFValues self) -> std::string"""
1218  return _IMP_kinematics.DOFValues___repr__(self)
1219 
1220  def _get_as_binary(self):
1221  r"""_get_as_binary(DOFValues self) -> PyObject *"""
1222  return _IMP_kinematics.DOFValues__get_as_binary(self)
1223 
1224  def _set_from_binary(self, p):
1225  r"""_set_from_binary(DOFValues self, PyObject * p)"""
1226  return _IMP_kinematics.DOFValues__set_from_binary(self, p)
1227 
1228  def __getstate__(self):
1229  p = self._get_as_binary()
1230  if len(self.__dict__) > 1:
1231  d = self.__dict__.copy()
1232  del d['this']
1233  p = (d, p)
1234  return p
1235 
1236  def __setstate__(self, p):
1237  if not hasattr(self, 'this'):
1238  self.__init__()
1239  if isinstance(p, tuple):
1240  d, p = p
1241  self.__dict__.update(d)
1242  return self._set_from_binary(p)
1243 
1244  __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1245 
1246 # Register DOFValues in _IMP_kinematics:
1247 _IMP_kinematics.DOFValues_swigregister(DOFValues)
1248 class DirectionalDOF(IMP.Object):
1249  r"""Proxy of C++ IMP::kinematics::DirectionalDOF class."""
1250 
1251  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1252 
1253  def __init__(self, dofs):
1254  r"""__init__(DirectionalDOF self, IMP::kinematics::DOFs const & dofs) -> DirectionalDOF"""
1255  _IMP_kinematics.DirectionalDOF_swiginit(self, _IMP_kinematics.new_DirectionalDOF(dofs))
1256 
1257  def set_end_points(self, q1, q2):
1258  r"""set_end_points(DirectionalDOF self, DOFValues q1, DOFValues q2)"""
1259  return _IMP_kinematics.DirectionalDOF_set_end_points(self, q1, q2)
1260 
1261  def get_dofs_values(self):
1262  r"""get_dofs_values(DirectionalDOF self) -> DOFValues"""
1263  return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1264 
1265  def get_value(self):
1266  r"""get_value(DirectionalDOF self) -> double"""
1267  return _IMP_kinematics.DirectionalDOF_get_value(self)
1268 
1269  def get_version_info(self):
1270  r"""get_version_info(DirectionalDOF self) -> VersionInfo"""
1271  return _IMP_kinematics.DirectionalDOF_get_version_info(self)
1272  __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1273 
1274  def __str__(self):
1275  r"""__str__(DirectionalDOF self) -> std::string"""
1276  return _IMP_kinematics.DirectionalDOF___str__(self)
1277 
1278  def __repr__(self):
1279  r"""__repr__(DirectionalDOF self) -> std::string"""
1280  return _IMP_kinematics.DirectionalDOF___repr__(self)
1281 
1282  @staticmethod
1283  def get_from(o):
1284  return _object_cast_to_DirectionalDOF(o)
1285 
1286 
1287 # Register DirectionalDOF in _IMP_kinematics:
1288 _IMP_kinematics.DirectionalDOF_swigregister(DirectionalDOF)
1289 class DOFsSampler(IMP.Object):
1290  r"""Proxy of C++ IMP::kinematics::DOFsSampler class."""
1291 
1292  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1293 
1294  def get_type_name(self):
1295  r"""get_type_name(DOFsSampler self) -> std::string"""
1296  return _IMP_kinematics.DOFsSampler_get_type_name(self)
1297 
1298  def get_version_info(self):
1299  r"""get_version_info(DOFsSampler self) -> VersionInfo"""
1300  return _IMP_kinematics.DOFsSampler_get_version_info(self)
1301  __swig_destroy__ = _IMP_kinematics.delete_DOFsSampler
1302 
1303  def __init__(self, dofs):
1304  r"""__init__(DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1305  if self.__class__ == DOFsSampler:
1306  _self = None
1307  else:
1308  _self = self
1309  _IMP_kinematics.DOFsSampler_swiginit(self, _IMP_kinematics.new_DOFsSampler(_self, dofs))
1310 
1311  if self.__class__ != DOFsSampler:
1312  _director_objects.register(self)
1313 
1314 
1315 
1316 
1317  def get_sample(self):
1318  r"""get_sample(DOFsSampler self) -> DOFValues"""
1319  return _IMP_kinematics.DOFsSampler_get_sample(self)
1320 
1321  def apply(self, values):
1322  r"""apply(DOFsSampler self, DOFValues values)"""
1323  return _IMP_kinematics.DOFsSampler_apply(self, values)
1324 
1325  def apply_last_sample(self):
1326  r"""apply_last_sample(DOFsSampler self)"""
1327  return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1328 
1329  def sample_and_apply(self):
1330  r"""sample_and_apply(DOFsSampler self)"""
1331  return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1332 
1333  def get_dofs(self):
1334  r"""get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1335  return _IMP_kinematics.DOFsSampler_get_dofs(self)
1336 
1337  def get_dof(self, i):
1338  r"""get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1339  return _IMP_kinematics.DOFsSampler_get_dof(self, i)
1340 
1341  def get_number_of_dofs(self):
1342  r"""get_number_of_dofs(DOFsSampler self) -> unsigned int"""
1343  return _IMP_kinematics.DOFsSampler_get_number_of_dofs(self)
1344 
1345  def do_get_sample(self):
1346  r"""do_get_sample(DOFsSampler self) -> DOFValues"""
1347  return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1348 
1349  def __str__(self):
1350  r"""__str__(DOFsSampler self) -> std::string"""
1351  return _IMP_kinematics.DOFsSampler___str__(self)
1352 
1353  def __repr__(self):
1354  r"""__repr__(DOFsSampler self) -> std::string"""
1355  return _IMP_kinematics.DOFsSampler___repr__(self)
1356 
1357  @staticmethod
1358  def get_from(o):
1359  return _object_cast_to_DOFsSampler(o)
1360 
1361 
1362  def get_type_name(self):
1363  return self.__class__.__name__
1364  def do_show(self, out):
1365  pass
1366  def get_version_info(self):
1367  if"IMP::kinematics" == "IMP":
1368  return VersionInfo(self.__module__,
1369  __import__(self.__module__).get_module_version())
1370  else:
1371  return IMP.VersionInfo(self.__module__,
1372  __import__(self.__module__).get_module_version())
1373  @staticmethod
1374  def get_from(o):
1375  return _object_cast_to_DOFsSampler(o)
1376 
1377  def __disown__(self):
1378  self.this.disown()
1379  _IMP_kinematics.disown_DOFsSampler(self)
1380  return weakref.proxy(self)
1381 
1382  def do_destroy(self):
1383  r"""do_destroy(DOFsSampler self)"""
1384  return _IMP_kinematics.DOFsSampler_do_destroy(self)
1385 
1386 # Register DOFsSampler in _IMP_kinematics:
1387 _IMP_kinematics.DOFsSampler_swigregister(DOFsSampler)
1388 class FibrilSampler(DOFsSampler):
1389  r"""Proxy of C++ IMP::kinematics::FibrilSampler class."""
1390 
1391  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1392 
1393  def __init__(self, trans_joint, dihedral_joints, dofs):
1394  r"""__init__(FibrilSampler self, IMP::kinematics::TransformationJoints trans_joint, IMP::kinematics::DihedralAngleRevoluteJoints dihedral_joints, IMP::kinematics::DOFs dofs) -> FibrilSampler"""
1395  _IMP_kinematics.FibrilSampler_swiginit(self, _IMP_kinematics.new_FibrilSampler(trans_joint, dihedral_joints, dofs))
1396 
1397  def apply_floats(self, values):
1398  r"""apply_floats(FibrilSampler self, IMP::Floats const & values)"""
1399  return _IMP_kinematics.FibrilSampler_apply_floats(self, values)
1400 
1401  def get_dihedral_joints(self):
1402  r"""get_dihedral_joints(FibrilSampler self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1403  return _IMP_kinematics.FibrilSampler_get_dihedral_joints(self)
1404 
1405  def get_transformation_joint(self):
1406  r"""get_transformation_joint(FibrilSampler self) -> IMP::kinematics::TransformationJoints"""
1407  return _IMP_kinematics.FibrilSampler_get_transformation_joint(self)
1408 
1409  def __str__(self):
1410  r"""__str__(FibrilSampler self) -> std::string"""
1411  return _IMP_kinematics.FibrilSampler___str__(self)
1412 
1413  def __repr__(self):
1414  r"""__repr__(FibrilSampler self) -> std::string"""
1415  return _IMP_kinematics.FibrilSampler___repr__(self)
1416 
1417  @staticmethod
1418  def get_from(o):
1419  return _object_cast_to_FibrilSampler(o)
1420 
1421  __swig_destroy__ = _IMP_kinematics.delete_FibrilSampler
1422 
1423 # Register FibrilSampler in _IMP_kinematics:
1424 _IMP_kinematics.FibrilSampler_swigregister(FibrilSampler)
1425 class UniformBackboneSampler(DOFsSampler):
1426  r"""Proxy of C++ IMP::kinematics::UniformBackboneSampler class."""
1427 
1428  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1429 
1430  def __init__(self, joints, dofs):
1431  r"""__init__(UniformBackboneSampler self, IMP::kinematics::DihedralAngleRevoluteJoints joints, IMP::kinematics::DOFs dofs) -> UniformBackboneSampler"""
1432  _IMP_kinematics.UniformBackboneSampler_swiginit(self, _IMP_kinematics.new_UniformBackboneSampler(joints, dofs))
1433 
1434  def apply_floats(self, values):
1435  r"""apply_floats(UniformBackboneSampler self, IMP::Floats const & values)"""
1436  return _IMP_kinematics.UniformBackboneSampler_apply_floats(self, values)
1437 
1438  def get_joints(self):
1439  r"""get_joints(UniformBackboneSampler self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1440  return _IMP_kinematics.UniformBackboneSampler_get_joints(self)
1441 
1442  def __str__(self):
1443  r"""__str__(UniformBackboneSampler self) -> std::string"""
1444  return _IMP_kinematics.UniformBackboneSampler___str__(self)
1445 
1446  def __repr__(self):
1447  r"""__repr__(UniformBackboneSampler self) -> std::string"""
1448  return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1449 
1450  @staticmethod
1451  def get_from(o):
1452  return _object_cast_to_UniformBackboneSampler(o)
1453 
1454  __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1455 
1456 # Register UniformBackboneSampler in _IMP_kinematics:
1457 _IMP_kinematics.UniformBackboneSampler_swigregister(UniformBackboneSampler)
1458 PHI = _IMP_kinematics.PHI
1459 
1460 PSI = _IMP_kinematics.PSI
1461 
1462 CHI = _IMP_kinematics.CHI
1463 
1464 CHI1 = _IMP_kinematics.CHI1
1465 
1466 CHI2 = _IMP_kinematics.CHI2
1467 
1468 CHI3 = _IMP_kinematics.CHI3
1469 
1470 CHI4 = _IMP_kinematics.CHI4
1471 
1472 CHI5 = _IMP_kinematics.CHI5
1473 
1474 OTHER = _IMP_kinematics.OTHER
1475 
1476 OTHER2 = _IMP_kinematics.OTHER2
1477 
1478 OTHER3 = _IMP_kinematics.OTHER3
1479 
1480 OTHER4 = _IMP_kinematics.OTHER4
1481 
1482 OTHER5 = _IMP_kinematics.OTHER5
1483 
1484 TOTAL = _IMP_kinematics.TOTAL
1485 
1486 class ProteinKinematics(IMP.Object):
1487  r"""Proxy of C++ IMP::kinematics::ProteinKinematics class."""
1488 
1489  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1490 
1491  def __init__(self, *args):
1492  r"""
1493  __init__(ProteinKinematics self, Hierarchy mhd, bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1494  __init__(ProteinKinematics self, Hierarchy mhd, IMP::atom::Residues const & flexible_residues, IMP::ParticleIndexQuads const custom_dihedral_angles, IMP::atom::Atoms open_loop_bond_atoms=IMP::atom::Atoms(), bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1495  __init__(ProteinKinematics self, Hierarchy mhd, IMP::atom::Residues const & flexible_residues, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & custom_dihedral_atoms, IMP::atom::Atoms open_loop_bond_atoms=IMP::atom::Atoms(), bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1496  __init__(ProteinKinematics self, Hierarchy mhd, IMP::atom::Residues const & flexible_residues, IMP::ParticleIndexQuads const custom_dihedral_angles, std::vector< IMP::kinematics::ProteinAngleType,std::allocator< IMP::kinematics::ProteinAngleType > > const & custom_dihedral_angle_types, IMP::atom::Atoms open_loop_bond_atoms=IMP::atom::Atoms(), bool flexible_backbone=True, bool flexible_side_chains=False) -> ProteinKinematics
1497  """
1498  _IMP_kinematics.ProteinKinematics_swiginit(self, _IMP_kinematics.new_ProteinKinematics(*args))
1499 
1500  def get_phi(self, r):
1501  r"""get_phi(ProteinKinematics self, Residue r) -> double"""
1502  return _IMP_kinematics.ProteinKinematics_get_phi(self, r)
1503 
1504  def get_psi(self, r):
1505  r"""get_psi(ProteinKinematics self, Residue r) -> double"""
1506  return _IMP_kinematics.ProteinKinematics_get_psi(self, r)
1507 
1508  def get_joints(self):
1509  r"""get_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1510  return _IMP_kinematics.ProteinKinematics_get_joints(self)
1511 
1512  def get_loop_joints(self):
1513  r"""get_loop_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1514  return _IMP_kinematics.ProteinKinematics_get_loop_joints(self)
1515 
1516  def get_ordered_joints(self):
1517  r"""get_ordered_joints(ProteinKinematics self) -> IMP::kinematics::DihedralAngleRevoluteJoints"""
1518  return _IMP_kinematics.ProteinKinematics_get_ordered_joints(self)
1519 
1520  def get_kinematic_forest(self):
1521  r"""get_kinematic_forest(ProteinKinematics self) -> KinematicForest"""
1522  return _IMP_kinematics.ProteinKinematics_get_kinematic_forest(self)
1523 
1524  def get_rigid_bodies(self):
1525  r"""get_rigid_bodies(ProteinKinematics self) -> IMP::core::RigidBodies"""
1526  return _IMP_kinematics.ProteinKinematics_get_rigid_bodies(self)
1527 
1528  def set_phi(self, r, angle):
1529  r"""set_phi(ProteinKinematics self, Residue r, double angle)"""
1530  return _IMP_kinematics.ProteinKinematics_set_phi(self, r, angle)
1531 
1532  def set_psi(self, r, angle):
1533  r"""set_psi(ProteinKinematics self, Residue r, double angle)"""
1534  return _IMP_kinematics.ProteinKinematics_set_psi(self, r, angle)
1535 
1536  def get_version_info(self):
1537  r"""get_version_info(ProteinKinematics self) -> VersionInfo"""
1538  return _IMP_kinematics.ProteinKinematics_get_version_info(self)
1539  __swig_destroy__ = _IMP_kinematics.delete_ProteinKinematics
1540 
1541  def build_topology_graph(self):
1542  r"""build_topology_graph(ProteinKinematics self)"""
1543  return _IMP_kinematics.ProteinKinematics_build_topology_graph(self)
1544 
1545  def order_rigid_bodies(self, dihedral_angles, phi_angles, psi_angles, chi1_angles, chi2_angles, chi3_angles, chi4_angles, chi5_angles, open_loop_bond_atoms):
1546  r"""order_rigid_bodies(ProteinKinematics self, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & dihedral_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & phi_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & psi_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi1_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi2_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi3_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi4_angles, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & chi5_angles, IMP::atom::Atoms open_loop_bond_atoms)"""
1547  return _IMP_kinematics.ProteinKinematics_order_rigid_bodies(self, dihedral_angles, phi_angles, psi_angles, chi1_angles, chi2_angles, chi3_angles, chi4_angles, chi5_angles, open_loop_bond_atoms)
1548 
1549  def mark_rotatable_angles(self, dihedral_angles):
1550  r"""mark_rotatable_angles(ProteinKinematics self, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & dihedral_angles)"""
1551  return _IMP_kinematics.ProteinKinematics_mark_rotatable_angles(self, dihedral_angles)
1552 
1553  def mark_rotatable_angle(self, dihedral_angle):
1554  r"""mark_rotatable_angle(ProteinKinematics self, std::vector< IMP::atom::Atom,std::allocator< IMP::atom::Atom > > const & dihedral_angle)"""
1555  return _IMP_kinematics.ProteinKinematics_mark_rotatable_angle(self, dihedral_angle)
1556 
1557  def build_rigid_bodies(self):
1558  r"""build_rigid_bodies(ProteinKinematics self)"""
1559  return _IMP_kinematics.ProteinKinematics_build_rigid_bodies(self)
1560 
1561  def add_dihedral_joints(self, residues, angle_type, dihedral_angles):
1562  r"""add_dihedral_joints(ProteinKinematics self, std::vector< IMP::atom::Residue,std::allocator< IMP::atom::Residue > > const & residues, IMP::kinematics::ProteinAngleType angle_type, std::vector< IMP::atom::Atoms,std::allocator< IMP::atom::Atoms > > const & dihedral_angles)"""
1563  return _IMP_kinematics.ProteinKinematics_add_dihedral_joints(self, residues, angle_type, dihedral_angles)
1564 
1565  def add_dihedral_joint(self, r, angle_type, atoms):
1566  r"""add_dihedral_joint(ProteinKinematics self, Residue r, IMP::kinematics::ProteinAngleType angle_type, IMP::atom::Atoms const & atoms)"""
1567  return _IMP_kinematics.ProteinKinematics_add_dihedral_joint(self, r, angle_type, atoms)
1568 
1569  def open_loop(self, open_loop_bond_atoms):
1570  r"""open_loop(ProteinKinematics self, IMP::atom::Atoms open_loop_bond_atoms)"""
1571  return _IMP_kinematics.ProteinKinematics_open_loop(self, open_loop_bond_atoms)
1572 
1573  def get_phi_joint(self, r):
1574  r"""get_phi_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1575  return _IMP_kinematics.ProteinKinematics_get_phi_joint(self, r)
1576 
1577  def get_psi_joint(self, r):
1578  r"""get_psi_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1579  return _IMP_kinematics.ProteinKinematics_get_psi_joint(self, r)
1580 
1581  def get_other_joint(self, r):
1582  r"""get_other_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1583  return _IMP_kinematics.ProteinKinematics_get_other_joint(self, r)
1584 
1585  def get_chi1_joint(self, r):
1586  r"""get_chi1_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1587  return _IMP_kinematics.ProteinKinematics_get_chi1_joint(self, r)
1588 
1589  def get_chi2_joint(self, r):
1590  r"""get_chi2_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1591  return _IMP_kinematics.ProteinKinematics_get_chi2_joint(self, r)
1592 
1593  def get_chi3_joint(self, r):
1594  r"""get_chi3_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1595  return _IMP_kinematics.ProteinKinematics_get_chi3_joint(self, r)
1596 
1597  def get_chi4_joint(self, r):
1598  r"""get_chi4_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1599  return _IMP_kinematics.ProteinKinematics_get_chi4_joint(self, r)
1600 
1601  def get_chi5_joint(self, r):
1602  r"""get_chi5_joint(ProteinKinematics self, Residue r) -> DihedralAngleRevoluteJoint"""
1603  return _IMP_kinematics.ProteinKinematics_get_chi5_joint(self, r)
1604 
1605  def get_joint(self, r, angle):
1606  r"""get_joint(ProteinKinematics self, Residue r, IMP::kinematics::ProteinAngleType angle) -> DihedralAngleRevoluteJoint"""
1607  return _IMP_kinematics.ProteinKinematics_get_joint(self, r, angle)
1608 
1609  def __str__(self):
1610  r"""__str__(ProteinKinematics self) -> std::string"""
1611  return _IMP_kinematics.ProteinKinematics___str__(self)
1612 
1613  def __repr__(self):
1614  r"""__repr__(ProteinKinematics self) -> std::string"""
1615  return _IMP_kinematics.ProteinKinematics___repr__(self)
1616 
1617  @staticmethod
1618  def get_from(o):
1619  return _object_cast_to_ProteinKinematics(o)
1620 
1621 
1622 # Register ProteinKinematics in _IMP_kinematics:
1623 _IMP_kinematics.ProteinKinematics_swigregister(ProteinKinematics)
1624 class LocalPlanner(IMP.Object):
1625  r"""Proxy of C++ IMP::kinematics::LocalPlanner class."""
1626 
1627  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1628 
1629  def __init__(self, *args, **kwargs):
1630  raise AttributeError("No constructor defined - class is abstract")
1631 
1632  def get_version_info(self):
1633  r"""get_version_info(LocalPlanner self) -> VersionInfo"""
1634  return _IMP_kinematics.LocalPlanner_get_version_info(self)
1635  __swig_destroy__ = _IMP_kinematics.delete_LocalPlanner
1636 
1637  def plan(self, q_near, q_rand, sf):
1638  r"""plan(LocalPlanner self, DOFValues q_near, DOFValues q_rand, ScoringFunction sf) -> std::vector< IMP::kinematics::DOFValues,std::allocator< IMP::kinematics::DOFValues > >"""
1639  return _IMP_kinematics.LocalPlanner_plan(self, q_near, q_rand, sf)
1640 
1641  def is_valid(self, values, sf):
1642  r"""is_valid(LocalPlanner self, DOFValues values, ScoringFunction sf) -> bool"""
1643  return _IMP_kinematics.LocalPlanner_is_valid(self, values, sf)
1644 
1645  def __str__(self):
1646  r"""__str__(LocalPlanner self) -> std::string"""
1647  return _IMP_kinematics.LocalPlanner___str__(self)
1648 
1649  def __repr__(self):
1650  r"""__repr__(LocalPlanner self) -> std::string"""
1651  return _IMP_kinematics.LocalPlanner___repr__(self)
1652 
1653  @staticmethod
1654  def get_from(o):
1655  return _object_cast_to_LocalPlanner(o)
1656 
1657 
1658 # Register LocalPlanner in _IMP_kinematics:
1659 _IMP_kinematics.LocalPlanner_swigregister(LocalPlanner)
1660 class PathLocalPlanner(LocalPlanner):
1661  r"""Proxy of C++ IMP::kinematics::PathLocalPlanner class."""
1662 
1663  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1664 
1665  def __init__(self, model, dofs_sampler, directional_dof, save_step_interval=1):
1666  r"""__init__(PathLocalPlanner self, Model model, DOFsSampler dofs_sampler, DirectionalDOF directional_dof, int save_step_interval=1) -> PathLocalPlanner"""
1667  _IMP_kinematics.PathLocalPlanner_swiginit(self, _IMP_kinematics.new_PathLocalPlanner(model, dofs_sampler, directional_dof, save_step_interval))
1668 
1669  def __str__(self):
1670  r"""__str__(PathLocalPlanner self) -> std::string"""
1671  return _IMP_kinematics.PathLocalPlanner___str__(self)
1672 
1673  def __repr__(self):
1674  r"""__repr__(PathLocalPlanner self) -> std::string"""
1675  return _IMP_kinematics.PathLocalPlanner___repr__(self)
1676 
1677  @staticmethod
1678  def get_from(o):
1679  return _object_cast_to_PathLocalPlanner(o)
1680 
1681  __swig_destroy__ = _IMP_kinematics.delete_PathLocalPlanner
1682 
1683 # Register PathLocalPlanner in _IMP_kinematics:
1684 _IMP_kinematics.PathLocalPlanner_swigregister(PathLocalPlanner)
1685 class RRT(IMP.Sampler):
1686  r"""Proxy of C++ IMP::kinematics::RRT class."""
1687 
1688  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1689 
1690  def get_version_info(self):
1691  r"""get_version_info(RRT self) -> VersionInfo"""
1692  return _IMP_kinematics.RRT_get_version_info(self)
1693  __swig_destroy__ = _IMP_kinematics.delete_RRT
1694 
1695  def __init__(self, m, sampler, planner, cspace_dofs, iteration_number=1000, tree_size=100, number_of_sampled_dofs=0):
1696  r"""__init__(RRT self, Model m, DOFsSampler sampler, LocalPlanner planner, IMP::kinematics::DOFs const & cspace_dofs, unsigned int iteration_number=1000, unsigned int tree_size=100, unsigned int number_of_sampled_dofs=0) -> RRT"""
1697  _IMP_kinematics.RRT_swiginit(self, _IMP_kinematics.new_RRT(m, sampler, planner, cspace_dofs, iteration_number, tree_size, number_of_sampled_dofs))
1698 
1699  def do_sample(self):
1700  r"""do_sample(RRT self) -> ConfigurationSet"""
1701  return _IMP_kinematics.RRT_do_sample(self)
1702 
1703  def run(self, number_of_iterations=0):
1704  r"""run(RRT self, unsigned int number_of_iterations=0) -> bool"""
1705  return _IMP_kinematics.RRT_run(self, number_of_iterations)
1706 
1707  def get_DOFValuesList(self):
1708  r"""get_DOFValuesList(RRT self) -> IMP::kinematics::DOFValuesList"""
1709  return _IMP_kinematics.RRT_get_DOFValuesList(self)
1710 
1711  def set_number_of_iterations(self, num):
1712  r"""set_number_of_iterations(RRT self, unsigned int num)"""
1713  return _IMP_kinematics.RRT_set_number_of_iterations(self, num)
1714 
1715  def set_tree_size(self, num):
1716  r"""set_tree_size(RRT self, unsigned int num)"""
1717  return _IMP_kinematics.RRT_set_tree_size(self, num)
1718 
1719  def set_actual_tree_size(self, num):
1720  r"""set_actual_tree_size(RRT self, unsigned int num)"""
1721  return _IMP_kinematics.RRT_set_actual_tree_size(self, num)
1722 
1723  def set_number_of_collisions(self, num):
1724  r"""set_number_of_collisions(RRT self, unsigned int num)"""
1725  return _IMP_kinematics.RRT_set_number_of_collisions(self, num)
1726 
1727  def check_initial_configuration(self, sf):
1728  r"""check_initial_configuration(RRT self, ScoringFunction sf)"""
1729  return _IMP_kinematics.RRT_check_initial_configuration(self, sf)
1730 
1731  def __str__(self):
1732  r"""__str__(RRT self) -> std::string"""
1733  return _IMP_kinematics.RRT___str__(self)
1734 
1735  def __repr__(self):
1736  r"""__repr__(RRT self) -> std::string"""
1737  return _IMP_kinematics.RRT___repr__(self)
1738 
1739  @staticmethod
1740  def get_from(o):
1741  return _object_cast_to_RRT(o)
1742 
1743 
1744 # Register RRT in _IMP_kinematics:
1745 _IMP_kinematics.RRT_swigregister(RRT)
1746 
1747 def get_module_version():
1748  r"""get_module_version() -> std::string const"""
1749  return _IMP_kinematics.get_module_version()
1750 
1751 def get_example_path(fname):
1752  r"""get_example_path(std::string fname) -> std::string"""
1753  return _IMP_kinematics.get_example_path(fname)
1754 
1755 def get_data_path(fname):
1756  r"""get_data_path(std::string fname) -> std::string"""
1757  return _IMP_kinematics.get_data_path(fname)
1758 
1759 from . import _version_check
1760 _version_check.check_version(get_module_version())
1761 __version__ = get_module_version()
1762 
1763 
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.
Version and module information for Objects.
Definition: VersionInfo.h:29
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.