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