IMP  2.4.0
The Integrative Modeling Platform
kinematics/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
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 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_kinematics', [dirname(__file__)])
19  except ImportError:
20  import _IMP_kinematics
21  return _IMP_kinematics
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_kinematics', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_kinematics = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_kinematics
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 def _swig_setattr_nondynamic_method(set):
73  def set_attr(self,name,value):
74  if (name == "thisown"): return self.this.own(value)
75  if hasattr(self,name) or (name == "this"):
76  set(self,name,value)
77  else:
78  raise AttributeError("You cannot add attributes to %s" % self)
79  return set_attr
80 
81 
82 try:
83  import weakref
84  weakref_proxy = weakref.proxy
85 except:
86  weakref_proxy = lambda x: x
87 
88 
89 class IMP_KINEMATICS_SwigPyIterator(object):
90  """Proxy of C++ swig::IMP_KINEMATICS_SwigPyIterator class"""
91  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
92  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
93  __repr__ = _swig_repr
94  __swig_destroy__ = _IMP_kinematics.delete_IMP_KINEMATICS_SwigPyIterator
95  __del__ = lambda self : None;
96  def value(self):
97  """value(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
98  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_value(self)
99 
100  def incr(self, n=1):
101  """
102  incr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
103  incr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
104  """
105  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_incr(self, n)
106 
107  def decr(self, n=1):
108  """
109  decr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
110  decr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
111  """
112  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_decr(self, n)
113 
114  def distance(self, *args):
115  """distance(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t"""
116  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_distance(self, *args)
117 
118  def equal(self, *args):
119  """equal(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
120  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_equal(self, *args)
121 
122  def copy(self):
123  """copy(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator"""
124  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_copy(self)
125 
126  def next(self):
127  """next(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
128  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_next(self)
129 
130  def __next__(self):
131  """__next__(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
132  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___next__(self)
133 
134  def previous(self):
135  """previous(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
136  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_previous(self)
137 
138  def advance(self, *args):
139  """advance(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
140  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_advance(self, *args)
141 
142  def __eq__(self, *args):
143  """__eq__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
144  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___eq__(self, *args)
145 
146  def __ne__(self, *args):
147  """__ne__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
148  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___ne__(self, *args)
149 
150  def __iadd__(self, *args):
151  """__iadd__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
152  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___iadd__(self, *args)
153 
154  def __isub__(self, *args):
155  """__isub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
156  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___isub__(self, *args)
157 
158  def __add__(self, *args):
159  """__add__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
160  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___add__(self, *args)
161 
162  def __sub__(self, *args):
163  """
164  __sub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator
165  __sub__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t
166  """
167  return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___sub__(self, *args)
168 
169  def __iter__(self): return self
170 IMP_KINEMATICS_SwigPyIterator_swigregister = _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_swigregister
171 IMP_KINEMATICS_SwigPyIterator_swigregister(IMP_KINEMATICS_SwigPyIterator)
172 
173 _value_types=[]
174 _object_types=[]
175 _raii_types=[]
176 _plural_types=[]
177 
178 IMP_DEBUG = _IMP_kinematics.IMP_DEBUG
179 IMP_RELEASE = _IMP_kinematics.IMP_RELEASE
180 IMP_SILENT = _IMP_kinematics.IMP_SILENT
181 IMP_PROGRESS = _IMP_kinematics.IMP_PROGRESS
182 IMP_TERSE = _IMP_kinematics.IMP_TERSE
183 IMP_VERBOSE = _IMP_kinematics.IMP_VERBOSE
184 IMP_MEMORY = _IMP_kinematics.IMP_MEMORY
185 IMP_NONE = _IMP_kinematics.IMP_NONE
186 IMP_USAGE = _IMP_kinematics.IMP_USAGE
187 IMP_INTERNAL = _IMP_kinematics.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_kinematics.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_kinematics.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kinematics.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_kinematics.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_kinematics.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_kinematics.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_kinematics.IMPBASE_SHOW_WARNINGS
196 import sys
197 class _DirectorObjects(object):
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  """Proxy of C++ std::ostream class"""
224  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
225  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
226  __repr__ = _swig_repr
227  def write(self, *args):
228  """write(_ostream self, char const * osa_buf)"""
229  return _IMP_kinematics._ostream_write(self, *args)
230 
231 _ostream_swigregister = _IMP_kinematics._ostream_swigregister
232 _ostream_swigregister(_ostream)
233 
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_kinematics.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_kinematics.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_kinematics.IMP_HAS_NOEXCEPT
237 import IMP.base
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_kinematics.IMPCGAL_SHOW_WARNINGS
243 import IMP.cgal
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_kinematics.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_kinematics.IMPALGEBRA_SHOW_WARNINGS
252 import IMP.algebra
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_kinematics.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_kinematics.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_kinematics.IMPKERNEL_SHOW_WARNINGS
259 import IMP.kernel
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_kinematics.IMPDISPLAY_SHOW_WARNINGS
268 import IMP.display
269 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
270 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
271 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
272 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
273 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
274 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_CGAL
275 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_HDF5
276 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_kinematics.IMPSCOREFUNCTOR_SHOW_WARNINGS
277 import IMP.score_functor
278 IMP_CORE_HAS_IMP_BASE = _IMP_kinematics.IMP_CORE_HAS_IMP_BASE
279 IMP_CORE_HAS_IMP_CGAL = _IMP_kinematics.IMP_CORE_HAS_IMP_CGAL
280 IMP_CORE_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CORE_HAS_IMP_KERNEL
281 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_FILESYSTEM
282 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
283 IMP_CORE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CORE_HAS_BOOST_RANDOM
284 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_SYSTEM
285 IMP_CORE_HAS_CGAL = _IMP_kinematics.IMP_CORE_HAS_CGAL
286 IMP_CORE_HAS_HDF5 = _IMP_kinematics.IMP_CORE_HAS_HDF5
287 IMPCORE_SHOW_WARNINGS = _IMP_kinematics.IMPCORE_SHOW_WARNINGS
288 import IMP.core
289 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_ALGEBRA
290 IMP_CONTAINER_HAS_IMP_BASE = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_BASE
291 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_CGAL
292 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_DISPLAY
293 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_KERNEL
294 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
295 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
296 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
297 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_RANDOM
298 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_SYSTEM
299 IMP_CONTAINER_HAS_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_CGAL
300 IMP_CONTAINER_HAS_HDF5 = _IMP_kinematics.IMP_CONTAINER_HAS_HDF5
301 IMPCONTAINER_SHOW_WARNINGS = _IMP_kinematics.IMPCONTAINER_SHOW_WARNINGS
302 import IMP.container
303 IMP_ATOM_HAS_IMP_BASE = _IMP_kinematics.IMP_ATOM_HAS_IMP_BASE
304 IMP_ATOM_HAS_IMP_CGAL = _IMP_kinematics.IMP_ATOM_HAS_IMP_CGAL
305 IMP_ATOM_HAS_IMP_KERNEL = _IMP_kinematics.IMP_ATOM_HAS_IMP_KERNEL
306 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
307 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
308 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_RANDOM
309 IMP_ATOM_HAS_BOOST_REGEX = _IMP_kinematics.IMP_ATOM_HAS_BOOST_REGEX
310 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_SYSTEM
311 IMP_ATOM_HAS_CGAL = _IMP_kinematics.IMP_ATOM_HAS_CGAL
312 IMP_ATOM_HAS_HDF5 = _IMP_kinematics.IMP_ATOM_HAS_HDF5
313 IMPATOM_SHOW_WARNINGS = _IMP_kinematics.IMPATOM_SHOW_WARNINGS
314 IMP_ATOM_TYPE_INDEX = _IMP_kinematics.IMP_ATOM_TYPE_INDEX
315 IMP_RESIDUE_TYPE_INDEX = _IMP_kinematics.IMP_RESIDUE_TYPE_INDEX
316 IMP_HIERARCHY_TYPE_INDEX = _IMP_kinematics.IMP_HIERARCHY_TYPE_INDEX
317 import IMP.atom
318 IMP_SAXS_HAS_IMP_BASE = _IMP_kinematics.IMP_SAXS_HAS_IMP_BASE
319 IMP_SAXS_HAS_IMP_CGAL = _IMP_kinematics.IMP_SAXS_HAS_IMP_CGAL
320 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_kinematics.IMP_SAXS_HAS_IMP_CONTAINER
321 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_SAXS_HAS_IMP_DISPLAY
322 IMP_SAXS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_SAXS_HAS_IMP_KERNEL
323 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
324 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_FILESYSTEM
325 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
326 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_RANDOM
327 IMP_SAXS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_SAXS_HAS_BOOST_REGEX
328 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_SYSTEM
329 IMP_SAXS_HAS_CGAL = _IMP_kinematics.IMP_SAXS_HAS_CGAL
330 IMP_SAXS_HAS_HDF5 = _IMP_kinematics.IMP_SAXS_HAS_HDF5
331 IMPSAXS_SHOW_WARNINGS = _IMP_kinematics.IMPSAXS_SHOW_WARNINGS
332 import IMP.saxs
333 IMP_KINEMATICS_HAS_IMP_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_CGAL
334 IMP_KINEMATICS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_DISPLAY
335 IMP_KINEMATICS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_KERNEL
336 IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR
337 IMP_KINEMATICS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_FILESYSTEM
338 IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS
339 IMP_KINEMATICS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_RANDOM
340 IMP_KINEMATICS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_REGEX
341 IMP_KINEMATICS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_SYSTEM
342 IMP_KINEMATICS_HAS_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_CGAL
343 IMP_KINEMATICS_HAS_HDF5 = _IMP_kinematics.IMP_KINEMATICS_HAS_HDF5
344 IMPKINEMATICS_SHOW_WARNINGS = _IMP_kinematics.IMPKINEMATICS_SHOW_WARNINGS
345 class VectorOfDoubles(object):
346  """Proxy of C++ std::vector<(double)> class"""
347  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
348  __repr__ = _swig_repr
349  def iterator(self):
350  """iterator(VectorOfDoubles self) -> IMP_KINEMATICS_SwigPyIterator"""
351  return _IMP_kinematics.VectorOfDoubles_iterator(self)
352 
353  def __iter__(self): return self.iterator()
354  def __nonzero__(self):
355  """__nonzero__(VectorOfDoubles self) -> bool"""
356  return _IMP_kinematics.VectorOfDoubles___nonzero__(self)
357 
358  def __bool__(self):
359  """__bool__(VectorOfDoubles self) -> bool"""
360  return _IMP_kinematics.VectorOfDoubles___bool__(self)
361 
362  def __len__(self):
363  """__len__(VectorOfDoubles self) -> std::vector< double >::size_type"""
364  return _IMP_kinematics.VectorOfDoubles___len__(self)
365 
366  def pop(self):
367  """pop(VectorOfDoubles self) -> std::vector< double >::value_type"""
368  return _IMP_kinematics.VectorOfDoubles_pop(self)
369 
370  def __getslice__(self, *args):
371  """__getslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j) -> DistBase"""
372  return _IMP_kinematics.VectorOfDoubles___getslice__(self, *args)
373 
374  def __setslice__(self, *args):
375  """
376  __setslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j,
377  DistBase v=std::vector< double,std::allocator< double > >())
378  __setslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)
379  """
380  return _IMP_kinematics.VectorOfDoubles___setslice__(self, *args)
381 
382  def __delslice__(self, *args):
383  """__delslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)"""
384  return _IMP_kinematics.VectorOfDoubles___delslice__(self, *args)
385 
386  def __delitem__(self, *args):
387  """
388  __delitem__(VectorOfDoubles self, std::vector< double >::difference_type i)
389  __delitem__(VectorOfDoubles self, PySliceObject * slice)
390  """
391  return _IMP_kinematics.VectorOfDoubles___delitem__(self, *args)
392 
393  def __getitem__(self, *args):
394  """
395  __getitem__(VectorOfDoubles self, PySliceObject * slice) -> DistBase
396  __getitem__(VectorOfDoubles self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
397  """
398  return _IMP_kinematics.VectorOfDoubles___getitem__(self, *args)
399 
400  def __setitem__(self, *args):
401  """
402  __setitem__(VectorOfDoubles self, PySliceObject * slice, DistBase v)
403  __setitem__(VectorOfDoubles self, PySliceObject * slice)
404  __setitem__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::value_type const & x)
405  """
406  return _IMP_kinematics.VectorOfDoubles___setitem__(self, *args)
407 
408  def append(self, *args):
409  """append(VectorOfDoubles self, std::vector< double >::value_type const & x)"""
410  return _IMP_kinematics.VectorOfDoubles_append(self, *args)
411 
412  def empty(self):
413  """empty(VectorOfDoubles self) -> bool"""
414  return _IMP_kinematics.VectorOfDoubles_empty(self)
415 
416  def size(self):
417  """size(VectorOfDoubles self) -> std::vector< double >::size_type"""
418  return _IMP_kinematics.VectorOfDoubles_size(self)
419 
420  def clear(self):
421  """clear(VectorOfDoubles self)"""
422  return _IMP_kinematics.VectorOfDoubles_clear(self)
423 
424  def swap(self, *args):
425  """swap(VectorOfDoubles self, DistBase v)"""
426  return _IMP_kinematics.VectorOfDoubles_swap(self, *args)
427 
428  def get_allocator(self):
429  """get_allocator(VectorOfDoubles self) -> std::vector< double >::allocator_type"""
430  return _IMP_kinematics.VectorOfDoubles_get_allocator(self)
431 
432  def begin(self):
433  """begin(VectorOfDoubles self) -> std::vector< double >::iterator"""
434  return _IMP_kinematics.VectorOfDoubles_begin(self)
435 
436  def end(self):
437  """end(VectorOfDoubles self) -> std::vector< double >::iterator"""
438  return _IMP_kinematics.VectorOfDoubles_end(self)
439 
440  def rbegin(self):
441  """rbegin(VectorOfDoubles self) -> std::vector< double >::reverse_iterator"""
442  return _IMP_kinematics.VectorOfDoubles_rbegin(self)
443 
444  def rend(self):
445  """rend(VectorOfDoubles self) -> std::vector< double >::reverse_iterator"""
446  return _IMP_kinematics.VectorOfDoubles_rend(self)
447 
448  def pop_back(self):
449  """pop_back(VectorOfDoubles self)"""
450  return _IMP_kinematics.VectorOfDoubles_pop_back(self)
451 
452  def erase(self, *args):
453  """
454  erase(VectorOfDoubles self, std::vector< double >::iterator pos) -> std::vector< double >::iterator
455  erase(VectorOfDoubles self, std::vector< double >::iterator first, std::vector< double >::iterator last) -> std::vector< double >::iterator
456  """
457  return _IMP_kinematics.VectorOfDoubles_erase(self, *args)
458 
459  def __init__(self, *args):
460  """
461  __init__(std::vector<(double)> self) -> VectorOfDoubles
462  __init__(std::vector<(double)> self, DistBase arg2) -> VectorOfDoubles
463  __init__(std::vector<(double)> self, std::vector< double >::size_type size) -> VectorOfDoubles
464  __init__(std::vector<(double)> self, std::vector< double >::size_type size, std::vector< double >::value_type const & value) -> VectorOfDoubles
465  """
466  this = _IMP_kinematics.new_VectorOfDoubles(*args)
467  try: self.this.append(this)
468  except: self.this = this
469  def push_back(self, *args):
470  """push_back(VectorOfDoubles self, std::vector< double >::value_type const & x)"""
471  return _IMP_kinematics.VectorOfDoubles_push_back(self, *args)
472 
473  def front(self):
474  """front(VectorOfDoubles self) -> std::vector< double >::value_type const &"""
475  return _IMP_kinematics.VectorOfDoubles_front(self)
476 
477  def back(self):
478  """back(VectorOfDoubles self) -> std::vector< double >::value_type const &"""
479  return _IMP_kinematics.VectorOfDoubles_back(self)
480 
481  def assign(self, *args):
482  """assign(VectorOfDoubles self, std::vector< double >::size_type n, std::vector< double >::value_type const & x)"""
483  return _IMP_kinematics.VectorOfDoubles_assign(self, *args)
484 
485  def resize(self, *args):
486  """
487  resize(VectorOfDoubles self, std::vector< double >::size_type new_size)
488  resize(VectorOfDoubles self, std::vector< double >::size_type new_size, std::vector< double >::value_type const & x)
489  """
490  return _IMP_kinematics.VectorOfDoubles_resize(self, *args)
491 
492  def insert(self, *args):
493  """
494  insert(VectorOfDoubles self, std::vector< double >::iterator pos, std::vector< double >::value_type const & x) -> std::vector< double >::iterator
495  insert(VectorOfDoubles self, std::vector< double >::iterator pos, std::vector< double >::size_type n, std::vector< double >::value_type const & x)
496  """
497  return _IMP_kinematics.VectorOfDoubles_insert(self, *args)
498 
499  def reserve(self, *args):
500  """reserve(VectorOfDoubles self, std::vector< double >::size_type n)"""
501  return _IMP_kinematics.VectorOfDoubles_reserve(self, *args)
502 
503  def capacity(self):
504  """capacity(VectorOfDoubles self) -> std::vector< double >::size_type"""
505  return _IMP_kinematics.VectorOfDoubles_capacity(self)
506 
507  __swig_destroy__ = _IMP_kinematics.delete_VectorOfDoubles
508  __del__ = lambda self : None;
509 VectorOfDoubles_swigregister = _IMP_kinematics.VectorOfDoubles_swigregister
510 VectorOfDoubles_swigregister(VectorOfDoubles)
511 
512 _object_types.append("Joint")
513 
514 
515 def _object_cast_to_Joint(*args):
516  """_object_cast_to_Joint(Object o) -> Joint"""
517  return _IMP_kinematics._object_cast_to_Joint(*args)
518 _object_types.append("TransformationJoint")
519 
520 
521 def _object_cast_to_TransformationJoint(*args):
522  """_object_cast_to_TransformationJoint(Object o) -> TransformationJoint"""
523  return _IMP_kinematics._object_cast_to_TransformationJoint(*args)
524 _object_types.append("RevoluteJoint")
525 
526 
527 def _object_cast_to_RevoluteJoint(*args):
528  """_object_cast_to_RevoluteJoint(Object o) -> RevoluteJoint"""
529  return _IMP_kinematics._object_cast_to_RevoluteJoint(*args)
530 _object_types.append("DihedralAngleRevoluteJoint")
531 
532 
533 def _object_cast_to_DihedralAngleRevoluteJoint(*args):
534  """_object_cast_to_DihedralAngleRevoluteJoint(Object o) -> DihedralAngleRevoluteJoint"""
535  return _IMP_kinematics._object_cast_to_DihedralAngleRevoluteJoint(*args)
536 _object_types.append("BondAngleRevoluteJoint")
537 
538 
539 def _object_cast_to_BondAngleRevoluteJoint(*args):
540  """_object_cast_to_BondAngleRevoluteJoint(Object o) -> BondAngleRevoluteJoint"""
541  return _IMP_kinematics._object_cast_to_BondAngleRevoluteJoint(*args)
542 _object_types.append("PrismaticJoint")
543 
544 
545 def _object_cast_to_PrismaticJoint(*args):
546  """_object_cast_to_PrismaticJoint(Object o) -> PrismaticJoint"""
547  return _IMP_kinematics._object_cast_to_PrismaticJoint(*args)
548 _object_types.append("KinematicForest")
549 
550 
551 def _object_cast_to_KinematicForest(*args):
552  """_object_cast_to_KinematicForest(Object o) -> KinematicForest"""
553  return _IMP_kinematics._object_cast_to_KinematicForest(*args)
554 _object_types.append("CompositeJoint")
555 
556 
557 def _object_cast_to_CompositeJoint(*args):
558  """_object_cast_to_CompositeJoint(Object o) -> CompositeJoint"""
559  return _IMP_kinematics._object_cast_to_CompositeJoint(*args)
560 _object_types.append("DOF")
561 
562 
563 def _object_cast_to_DOF(*args):
564  """_object_cast_to_DOF(Object o) -> DOF"""
565  return _IMP_kinematics._object_cast_to_DOF(*args)
566 DOFValuesList=list
567 _plural_types.append("DOFValuesList")
568 _value_types.append("DOFValues")
569 
570 DirectionalDOFs=list
571 _plural_types.append("DirectionalDOFs")
572 _value_types.append("DirectionalDOF")
573 
574 _object_types.append("DOFsSampler")
575 
576 
577 def _object_cast_to_DOFsSampler(*args):
578  """_object_cast_to_DOFsSampler(Object o) -> DOFsSampler"""
579  return _IMP_kinematics._object_cast_to_DOFsSampler(*args)
580 _object_types.append("UniformBackboneSampler")
581 
582 
583 def _object_cast_to_UniformBackboneSampler(*args):
584  """_object_cast_to_UniformBackboneSampler(Object o) -> UniformBackboneSampler"""
585  return _IMP_kinematics._object_cast_to_UniformBackboneSampler(*args)
586 class Joint(IMP.base.Object):
587  """Proxy of C++ IMP::kinematics::Joint class"""
588  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
589  def get_version_info(self):
590  """get_version_info(Joint self) -> VersionInfo"""
591  return _IMP_kinematics.Joint_get_version_info(self)
592 
593  def __init__(self, *args):
594  """__init__(IMP::kinematics::Joint self, RigidBody parent, RigidBody child) -> Joint"""
595  this = _IMP_kinematics.new_Joint(*args)
596  try: self.this.append(this)
597  except: self.this = this
598  def get_owner_kf(self):
599  """get_owner_kf(Joint self) -> KinematicForest"""
600  return _IMP_kinematics.Joint_get_owner_kf(self)
601 
602  def get_transformation_child_to_parent(self):
603  """get_transformation_child_to_parent(Joint self) -> Transformation3D"""
604  return _IMP_kinematics.Joint_get_transformation_child_to_parent(self)
605 
606  def get_parent_node(self):
607  """get_parent_node(Joint self) -> RigidBody"""
608  return _IMP_kinematics.Joint_get_parent_node(self)
609 
610  def get_child_node(self):
611  """get_child_node(Joint self) -> RigidBody"""
612  return _IMP_kinematics.Joint_get_child_node(self)
613 
614  def __str__(self):
615  """__str__(Joint self) -> std::string"""
616  return _IMP_kinematics.Joint___str__(self)
617 
618  def __repr__(self):
619  """__repr__(Joint self) -> std::string"""
620  return _IMP_kinematics.Joint___repr__(self)
621 
622  def get_from(o):
623  return _object_cast_to_Joint(o)
624  get_from = staticmethod(get_from)
625 
626 Joint_swigregister = _IMP_kinematics.Joint_swigregister
627 Joint_swigregister(Joint)
628 
629 class TransformationJoint(Joint):
630  """Proxy of C++ IMP::kinematics::TransformationJoint class"""
631  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
632  def __init__(self, *args):
633  """__init__(IMP::kinematics::TransformationJoint self, RigidBody parent, RigidBody child) -> TransformationJoint"""
634  this = _IMP_kinematics.new_TransformationJoint(*args)
635  try: self.this.append(this)
636  except: self.this = this
637  def set_transformation_child_to_parent(self, *args):
638  """set_transformation_child_to_parent(TransformationJoint self, Transformation3D transformation)"""
639  return _IMP_kinematics.TransformationJoint_set_transformation_child_to_parent(self, *args)
640 
641  def __str__(self):
642  """__str__(TransformationJoint self) -> std::string"""
643  return _IMP_kinematics.TransformationJoint___str__(self)
644 
645  def __repr__(self):
646  """__repr__(TransformationJoint self) -> std::string"""
647  return _IMP_kinematics.TransformationJoint___repr__(self)
648 
649  def get_from(o):
650  return _object_cast_to_TransformationJoint(o)
651  get_from = staticmethod(get_from)
652 
653  __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
654  __del__ = lambda self : None;
655 TransformationJoint_swigregister = _IMP_kinematics.TransformationJoint_swigregister
656 TransformationJoint_swigregister(TransformationJoint)
657 
658 class PrismaticJoint(Joint):
659  """Proxy of C++ IMP::kinematics::PrismaticJoint class"""
660  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
661  def __init__(self, *args):
662  """
663  __init__(IMP::kinematics::PrismaticJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b) -> PrismaticJoint
664  __init__(IMP::kinematics::PrismaticJoint self, RigidBody parent, RigidBody child) -> PrismaticJoint
665  """
666  this = _IMP_kinematics.new_PrismaticJoint(*args)
667  try: self.this.append(this)
668  except: self.this = this
669  def get_length(self):
670  """get_length(PrismaticJoint self) -> double"""
671  return _IMP_kinematics.PrismaticJoint_get_length(self)
672 
673  def set_length(self, *args):
674  """set_length(PrismaticJoint self, double l)"""
675  return _IMP_kinematics.PrismaticJoint_set_length(self, *args)
676 
677  def __str__(self):
678  """__str__(PrismaticJoint self) -> std::string"""
679  return _IMP_kinematics.PrismaticJoint___str__(self)
680 
681  def __repr__(self):
682  """__repr__(PrismaticJoint self) -> std::string"""
683  return _IMP_kinematics.PrismaticJoint___repr__(self)
684 
685  def get_from(o):
686  return _object_cast_to_PrismaticJoint(o)
687  get_from = staticmethod(get_from)
688 
689  __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
690  __del__ = lambda self : None;
691 PrismaticJoint_swigregister = _IMP_kinematics.PrismaticJoint_swigregister
692 PrismaticJoint_swigregister(PrismaticJoint)
693 
694 class CompositeJoint(Joint):
695  """Proxy of C++ IMP::kinematics::CompositeJoint class"""
696  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
697  def __init__(self, *args):
698  """
699  __init__(IMP::kinematics::CompositeJoint self, RigidBody parent, RigidBody child, IMP::kinematics::Joints joints=IMP::kinematics::Joints()) -> CompositeJoint
700  __init__(IMP::kinematics::CompositeJoint self, RigidBody parent, RigidBody child) -> CompositeJoint
701  """
702  this = _IMP_kinematics.new_CompositeJoint(*args)
703  try: self.this.append(this)
704  except: self.this = this
705  def add_downstream_joint(self, *args):
706  """add_downstream_joint(CompositeJoint self, Joint j)"""
707  return _IMP_kinematics.CompositeJoint_add_downstream_joint(self, *args)
708 
709  def add_upstream_joint(self, *args):
710  """add_upstream_joint(CompositeJoint self, Joint j)"""
711  return _IMP_kinematics.CompositeJoint_add_upstream_joint(self, *args)
712 
713  def set_joints(self, *args):
714  """set_joints(CompositeJoint self, IMP::kinematics::Joints joints)"""
715  return _IMP_kinematics.CompositeJoint_set_joints(self, *args)
716 
717  def get_inner_joints(self):
718  """get_inner_joints(CompositeJoint self) -> IMP::kinematics::Joints const &"""
719  return _IMP_kinematics.CompositeJoint_get_inner_joints(self)
720 
721  def __str__(self):
722  """__str__(CompositeJoint self) -> std::string"""
723  return _IMP_kinematics.CompositeJoint___str__(self)
724 
725  def __repr__(self):
726  """__repr__(CompositeJoint self) -> std::string"""
727  return _IMP_kinematics.CompositeJoint___repr__(self)
728 
729  def get_from(o):
730  return _object_cast_to_CompositeJoint(o)
731  get_from = staticmethod(get_from)
732 
733  __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
734  __del__ = lambda self : None;
735 CompositeJoint_swigregister = _IMP_kinematics.CompositeJoint_swigregister
736 CompositeJoint_swigregister(CompositeJoint)
737 
738 class RevoluteJoint(Joint):
739  """Proxy of C++ IMP::kinematics::RevoluteJoint class"""
740  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
741  def __init__(self, *args):
742  """__init__(IMP::kinematics::RevoluteJoint self, RigidBody parent, RigidBody child) -> RevoluteJoint"""
743  if self.__class__ == RevoluteJoint:
744  _self = None
745  else:
746  _self = self
747  this = _IMP_kinematics.new_RevoluteJoint(_self, *args)
748  try: self.this.append(this)
749  except: self.this = this
750  if self.__class__ != RevoluteJoint:
751  import IMP.base
752  IMP.base._director_objects.register(self)
753 
754 
755 
756  __swig_destroy__ = _IMP_kinematics.delete_RevoluteJoint
757  __del__ = lambda self : None;
758  def set_angle(self, *args):
759  """set_angle(RevoluteJoint self, double angle)"""
760  return _IMP_kinematics.RevoluteJoint_set_angle(self, *args)
761 
762  def get_angle(self):
763  """get_angle(RevoluteJoint self) -> double"""
764  return _IMP_kinematics.RevoluteJoint_get_angle(self)
765 
766  def get_rot_axis_origin(self):
767  """get_rot_axis_origin(RevoluteJoint self) -> Vector3D"""
768  return _IMP_kinematics.RevoluteJoint_get_rot_axis_origin(self)
769 
770  def get_rot_axis_unit_vector(self):
771  """get_rot_axis_unit_vector(RevoluteJoint self) -> Vector3D"""
772  return _IMP_kinematics.RevoluteJoint_get_rot_axis_unit_vector(self)
773 
774  def update_child_node_reference_frame(self):
775  """update_child_node_reference_frame(RevoluteJoint self)"""
776  return _IMP_kinematics.RevoluteJoint_update_child_node_reference_frame(self)
777 
778  def update_axis_of_rotation_from_cartesian_witnesses(self):
779  """update_axis_of_rotation_from_cartesian_witnesses(RevoluteJoint self)"""
780  return _IMP_kinematics.RevoluteJoint_update_axis_of_rotation_from_cartesian_witnesses(self)
781 
782  def get_current_angle_from_cartesian_witnesses(self):
783  """get_current_angle_from_cartesian_witnesses(RevoluteJoint self) -> double"""
784  return _IMP_kinematics.RevoluteJoint_get_current_angle_from_cartesian_witnesses(self)
785 
786  def update_joint_from_cartesian_witnesses(self):
787  """update_joint_from_cartesian_witnesses(RevoluteJoint self)"""
788  return _IMP_kinematics.RevoluteJoint_update_joint_from_cartesian_witnesses(self)
789 
790  def get_rotation_about_joint_in_parent_coordinates(self):
791  """get_rotation_about_joint_in_parent_coordinates(RevoluteJoint self) -> Transformation3D"""
792  return _IMP_kinematics.RevoluteJoint_get_rotation_about_joint_in_parent_coordinates(self)
793 
794  angle_ = _swig_property(_IMP_kinematics.RevoluteJoint_angle__get, _IMP_kinematics.RevoluteJoint_angle__set)
795  last_updated_angle_ = _swig_property(_IMP_kinematics.RevoluteJoint_last_updated_angle__get, _IMP_kinematics.RevoluteJoint_last_updated_angle__set)
796  rot_axis_unit_vector_ = _swig_property(_IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__get, _IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__set)
797  rot_axis_origin_ = _swig_property(_IMP_kinematics.RevoluteJoint_rot_axis_origin__get, _IMP_kinematics.RevoluteJoint_rot_axis_origin__set)
798  def __str__(self):
799  """__str__(RevoluteJoint self) -> std::string"""
800  return _IMP_kinematics.RevoluteJoint___str__(self)
801 
802  def __repr__(self):
803  """__repr__(RevoluteJoint self) -> std::string"""
804  return _IMP_kinematics.RevoluteJoint___repr__(self)
805 
806  def get_from(o):
807  return _object_cast_to_RevoluteJoint(o)
808  get_from = staticmethod(get_from)
809 
810  def get_type_name(self):
811  return self.__class__.__name__
812  def do_show(self, out):
813  pass
814  def get_version_info(self):
815  if"IMP::kinematics" == "IMP":
816  return VersionInfo("python", "0")
817  else:
818  return IMP.VersionInfo("python", "0")
819  def get_from(o):
820  return _object_cast_to_RevoluteJoint(o)
821  get_from = staticmethod(get_from)
822 
823  def __disown__(self):
824  self.this.disown()
825  _IMP_kinematics.disown_RevoluteJoint(self)
826  return weakref_proxy(self)
827  def do_destroy(self):
828  """do_destroy(RevoluteJoint self)"""
829  return _IMP_kinematics.RevoluteJoint_do_destroy(self)
830 
831 RevoluteJoint_swigregister = _IMP_kinematics.RevoluteJoint_swigregister
832 RevoluteJoint_swigregister(RevoluteJoint)
833 
834 class DihedralAngleRevoluteJoint(RevoluteJoint):
835  """Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class"""
836  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
837  def __init__(self, *args):
838  """__init__(IMP::kinematics::DihedralAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c, XYZ d) -> DihedralAngleRevoluteJoint"""
839  this = _IMP_kinematics.new_DihedralAngleRevoluteJoint(*args)
840  try: self.this.append(this)
841  except: self.this = this
842  def __str__(self):
843  """__str__(DihedralAngleRevoluteJoint self) -> std::string"""
844  return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
845 
846  def __repr__(self):
847  """__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
848  return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
849 
850  def get_from(o):
851  return _object_cast_to_DihedralAngleRevoluteJoint(o)
852  get_from = staticmethod(get_from)
853 
854  __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
855  __del__ = lambda self : None;
856 DihedralAngleRevoluteJoint_swigregister = _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister
857 DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
858 
859 class BondAngleRevoluteJoint(RevoluteJoint):
860  """Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class"""
861  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
862  def __init__(self, *args):
863  """__init__(IMP::kinematics::BondAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c) -> BondAngleRevoluteJoint"""
864  this = _IMP_kinematics.new_BondAngleRevoluteJoint(*args)
865  try: self.this.append(this)
866  except: self.this = this
867  def __str__(self):
868  """__str__(BondAngleRevoluteJoint self) -> std::string"""
869  return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
870 
871  def __repr__(self):
872  """__repr__(BondAngleRevoluteJoint self) -> std::string"""
873  return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
874 
875  def get_from(o):
876  return _object_cast_to_BondAngleRevoluteJoint(o)
877  get_from = staticmethod(get_from)
878 
879  __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
880  __del__ = lambda self : None;
881 BondAngleRevoluteJoint_swigregister = _IMP_kinematics.BondAngleRevoluteJoint_swigregister
882 BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
883 
884 class KinematicForest(IMP.base.Object):
885  """Proxy of C++ IMP::kinematics::KinematicForest class"""
886  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
887  def get_version_info(self):
888  """get_version_info(KinematicForest self) -> VersionInfo"""
889  return _IMP_kinematics.KinematicForest_get_version_info(self)
890 
891  def __init__(self, *args):
892  """
893  __init__(IMP::kinematics::KinematicForest self, Model m) -> KinematicForest
894  __init__(IMP::kinematics::KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
895  """
896  this = _IMP_kinematics.new_KinematicForest(*args)
897  try: self.this.append(this)
898  except: self.this = this
899  def add_edge(self, *args):
900  """
901  add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
902  add_edge(KinematicForest self, Joint joint)
903  """
904  return _IMP_kinematics.KinematicForest_add_edge(self, *args)
905 
906  def add_rigid_bodies_in_chain(self, *args):
907  """add_rigid_bodies_in_chain(KinematicForest self, IMP::core::RigidBodies rbs)"""
908  return _IMP_kinematics.KinematicForest_add_rigid_bodies_in_chain(self, *args)
909 
910  def reset_root(self, *args):
911  """reset_root(KinematicForest self, Particle new_root)"""
912  return _IMP_kinematics.KinematicForest_reset_root(self, *args)
913 
914  def update_all_internal_coordinates(self):
915  """update_all_internal_coordinates(KinematicForest self)"""
916  return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
917 
918  def update_all_external_coordinates(self):
919  """update_all_external_coordinates(KinematicForest self)"""
920  return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
921 
922  def get_ordered_joints(self):
923  """get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
924  return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
925 
926  def mark_internal_coordinates_changed(self):
927  """mark_internal_coordinates_changed(KinematicForest self)"""
928  return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
929 
930  def mark_external_coordinates_changed(self):
931  """mark_external_coordinates_changed(KinematicForest self)"""
932  return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
933 
934  def set_coordinates_safe(self, *args):
935  """set_coordinates_safe(KinematicForest self, RigidBody rb, Vector3D c)"""
936  return _IMP_kinematics.KinematicForest_set_coordinates_safe(self, *args)
937 
938  def get_coordinates_safe(self, *args):
939  """get_coordinates_safe(KinematicForest self, RigidBody rb) -> Vector3D"""
940  return _IMP_kinematics.KinematicForest_get_coordinates_safe(self, *args)
941 
942  def get_is_member(self, *args):
943  """get_is_member(KinematicForest self, RigidBody rb) -> bool"""
944  return _IMP_kinematics.KinematicForest_get_is_member(self, *args)
945 
946  def get_reference_frame_safe(self, *args):
947  """get_reference_frame_safe(KinematicForest self, RigidBody rb) -> ReferenceFrame3D"""
948  return _IMP_kinematics.KinematicForest_get_reference_frame_safe(self, *args)
949 
950  def set_reference_frame_safe(self, *args):
951  """set_reference_frame_safe(KinematicForest self, RigidBody rb, ReferenceFrame3D r)"""
952  return _IMP_kinematics.KinematicForest_set_reference_frame_safe(self, *args)
953 
954  def __str__(self):
955  """__str__(KinematicForest self) -> std::string"""
956  return _IMP_kinematics.KinematicForest___str__(self)
957 
958  def __repr__(self):
959  """__repr__(KinematicForest self) -> std::string"""
960  return _IMP_kinematics.KinematicForest___repr__(self)
961 
962  def get_from(o):
963  return _object_cast_to_KinematicForest(o)
964  get_from = staticmethod(get_from)
965 
966 KinematicForest_swigregister = _IMP_kinematics.KinematicForest_swigregister
967 KinematicForest_swigregister(KinematicForest)
968 
969 class DOF(IMP.base.Object):
970  """Proxy of C++ IMP::kinematics::DOF class"""
971  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
972  def get_version_info(self):
973  """get_version_info(DOF self) -> VersionInfo"""
974  return _IMP_kinematics.DOF_get_version_info(self)
975 
976  def __init__(self, *args):
977  """
978  __init__(IMP::kinematics::DOF self, double v) -> DOF
979  __init__(IMP::kinematics::DOF self, double v, double min, double max, double step_size) -> DOF
980  """
981  this = _IMP_kinematics.new_DOF(*args)
982  try: self.this.append(this)
983  except: self.this = this
984  def get_value(self):
985  """get_value(DOF self) -> double"""
986  return _IMP_kinematics.DOF_get_value(self)
987 
988  def set_value(self, *args):
989  """set_value(DOF self, double v)"""
990  return _IMP_kinematics.DOF_set_value(self, *args)
991 
992  def get_range(self):
993  """get_range(DOF self) -> std::pair< double,double >"""
994  return _IMP_kinematics.DOF_get_range(self)
995 
996  def set_range(self, *args):
997  """set_range(DOF self, std::pair< double,double > range)"""
998  return _IMP_kinematics.DOF_set_range(self, *args)
999 
1000  def get_step_size(self):
1001  """get_step_size(DOF self) -> double"""
1002  return _IMP_kinematics.DOF_get_step_size(self)
1003 
1004  def set_step_size(self, *args):
1005  """set_step_size(DOF self, double step_size)"""
1006  return _IMP_kinematics.DOF_set_step_size(self, *args)
1007 
1008  def get_number_of_steps(self, *args):
1009  """
1010  get_number_of_steps(DOF self, double value) -> int
1011  get_number_of_steps(DOF self, double value1, double value2) -> int
1012  """
1013  return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1014 
1015  def __str__(self):
1016  """__str__(DOF self) -> std::string"""
1017  return _IMP_kinematics.DOF___str__(self)
1018 
1019  def __repr__(self):
1020  """__repr__(DOF self) -> std::string"""
1021  return _IMP_kinematics.DOF___repr__(self)
1022 
1023  def get_from(o):
1024  return _object_cast_to_DOF(o)
1025  get_from = staticmethod(get_from)
1026 
1027 DOF_swigregister = _IMP_kinematics.DOF_swigregister
1028 DOF_swigregister(DOF)
1029 
1030 class DOFValues(IMP.saxs.DistBase):
1031  """Proxy of C++ IMP::kinematics::DOFValues class"""
1032  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1033  def __init__(self, *args):
1034  """
1035  __init__(IMP::kinematics::DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1036  __init__(IMP::kinematics::DOFValues self) -> DOFValues
1037  """
1038  this = _IMP_kinematics.new_DOFValues(*args)
1039  try: self.this.append(this)
1040  except: self.this = this
1041  def get_distance2(self, *args):
1042  """
1043  get_distance2(DOFValues self, DOFValues other_dof_values) -> double
1044  get_distance2(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1045  """
1046  return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1047 
1048  def get_distance(self, *args):
1049  """
1050  get_distance(DOFValues self, DOFValues other_dof_values) -> double
1051  get_distance(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1052  """
1053  return _IMP_kinematics.DOFValues_get_distance(self, *args)
1054 
1055  def show(self, *args):
1056  """
1057  show(DOFValues self, _ostream out=std::cout)
1058  show(DOFValues self)
1059  """
1060  return _IMP_kinematics.DOFValues_show(self, *args)
1061 
1062  def __str__(self):
1063  """__str__(DOFValues self) -> std::string"""
1064  return _IMP_kinematics.DOFValues___str__(self)
1065 
1066  def __repr__(self):
1067  """__repr__(DOFValues self) -> std::string"""
1068  return _IMP_kinematics.DOFValues___repr__(self)
1069 
1070  __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1071  __del__ = lambda self : None;
1072 DOFValues_swigregister = _IMP_kinematics.DOFValues_swigregister
1073 DOFValues_swigregister(DOFValues)
1074 
1075 class DirectionalDOF(object):
1076  """Proxy of C++ IMP::kinematics::DirectionalDOF class"""
1077  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1078  def __init__(self, *args):
1079  """__init__(IMP::kinematics::DirectionalDOF self, IMP::kinematics::DOFs const & dofs) -> DirectionalDOF"""
1080  this = _IMP_kinematics.new_DirectionalDOF(*args)
1081  try: self.this.append(this)
1082  except: self.this = this
1083  def set_end_points(self, *args):
1084  """set_end_points(DirectionalDOF self, DOFValues q1, DOFValues q2)"""
1085  return _IMP_kinematics.DirectionalDOF_set_end_points(self, *args)
1086 
1087  def get_dofs_values(self):
1088  """get_dofs_values(DirectionalDOF self) -> DOFValues"""
1089  return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1090 
1091  def get_value(self):
1092  """get_value(DirectionalDOF self) -> double"""
1093  return _IMP_kinematics.DirectionalDOF_get_value(self)
1094 
1095  def show(self, *args):
1096  """
1097  show(DirectionalDOF self, _ostream out=std::cout)
1098  show(DirectionalDOF self)
1099  """
1100  return _IMP_kinematics.DirectionalDOF_show(self, *args)
1101 
1102  def __str__(self):
1103  """__str__(DirectionalDOF self) -> std::string"""
1104  return _IMP_kinematics.DirectionalDOF___str__(self)
1105 
1106  def __repr__(self):
1107  """__repr__(DirectionalDOF self) -> std::string"""
1108  return _IMP_kinematics.DirectionalDOF___repr__(self)
1109 
1110  __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1111  __del__ = lambda self : None;
1112 DirectionalDOF_swigregister = _IMP_kinematics.DirectionalDOF_swigregister
1113 DirectionalDOF_swigregister(DirectionalDOF)
1114 
1115 class DOFsSampler(IMP.base.Object):
1116  """Proxy of C++ IMP::kinematics::DOFsSampler class"""
1117  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1118  def get_type_name(self):
1119  """get_type_name(DOFsSampler self) -> std::string"""
1120  return _IMP_kinematics.DOFsSampler_get_type_name(self)
1121 
1122  def get_version_info(self):
1123  """get_version_info(DOFsSampler self) -> VersionInfo"""
1124  return _IMP_kinematics.DOFsSampler_get_version_info(self)
1125 
1126  def __init__(self, *args):
1127  """__init__(IMP::kinematics::DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1128  if self.__class__ == DOFsSampler:
1129  _self = None
1130  else:
1131  _self = self
1132  this = _IMP_kinematics.new_DOFsSampler(_self, *args)
1133  try: self.this.append(this)
1134  except: self.this = this
1135  if self.__class__ != DOFsSampler:
1136  import IMP.base
1137  IMP.base._director_objects.register(self)
1138 
1139 
1140 
1141  def get_sample(self):
1142  """get_sample(DOFsSampler self) -> DOFValues"""
1143  return _IMP_kinematics.DOFsSampler_get_sample(self)
1144 
1145  def apply(self, *args):
1146  """apply(DOFsSampler self, DOFValues values)"""
1147  return _IMP_kinematics.DOFsSampler_apply(self, *args)
1148 
1149  def apply_last_sample(self):
1150  """apply_last_sample(DOFsSampler self)"""
1151  return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1152 
1153  def sample_and_apply(self):
1154  """sample_and_apply(DOFsSampler self)"""
1155  return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1156 
1157  def get_dofs(self):
1158  """get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1159  return _IMP_kinematics.DOFsSampler_get_dofs(self)
1160 
1161  def get_dof(self, *args):
1162  """get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1163  return _IMP_kinematics.DOFsSampler_get_dof(self, *args)
1164 
1165  def get_number_of_dofs(self):
1166  """get_number_of_dofs(DOFsSampler self) -> unsigned int"""
1167  return _IMP_kinematics.DOFsSampler_get_number_of_dofs(self)
1168 
1169  def do_get_sample(self):
1170  """do_get_sample(DOFsSampler self) -> DOFValues"""
1171  return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1172 
1173  def __str__(self):
1174  """__str__(DOFsSampler self) -> std::string"""
1175  return _IMP_kinematics.DOFsSampler___str__(self)
1176 
1177  def __repr__(self):
1178  """__repr__(DOFsSampler self) -> std::string"""
1179  return _IMP_kinematics.DOFsSampler___repr__(self)
1180 
1181  def get_from(o):
1182  return _object_cast_to_DOFsSampler(o)
1183  get_from = staticmethod(get_from)
1184 
1185  def get_type_name(self):
1186  return self.__class__.__name__
1187  def do_show(self, out):
1188  pass
1189  def get_version_info(self):
1190  if"IMP::kinematics" == "IMP":
1191  return VersionInfo("python", "0")
1192  else:
1193  return IMP.VersionInfo("python", "0")
1194  def get_from(o):
1195  return _object_cast_to_DOFsSampler(o)
1196  get_from = staticmethod(get_from)
1197 
1198  def __disown__(self):
1199  self.this.disown()
1200  _IMP_kinematics.disown_DOFsSampler(self)
1201  return weakref_proxy(self)
1202  def do_destroy(self):
1203  """do_destroy(DOFsSampler self)"""
1204  return _IMP_kinematics.DOFsSampler_do_destroy(self)
1205 
1206 DOFsSampler_swigregister = _IMP_kinematics.DOFsSampler_swigregister
1207 DOFsSampler_swigregister(DOFsSampler)
1208 
1209 class UniformBackboneSampler(DOFsSampler):
1210  """Proxy of C++ IMP::kinematics::UniformBackboneSampler class"""
1211  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1212  def __init__(self, *args):
1213  """__init__(IMP::kinematics::UniformBackboneSampler self, IMP::kinematics::DihedralAngleRevoluteJoints joints, IMP::kinematics::DOFs dofs) -> UniformBackboneSampler"""
1214  this = _IMP_kinematics.new_UniformBackboneSampler(*args)
1215  try: self.this.append(this)
1216  except: self.this = this
1217  def __str__(self):
1218  """__str__(UniformBackboneSampler self) -> std::string"""
1219  return _IMP_kinematics.UniformBackboneSampler___str__(self)
1220 
1221  def __repr__(self):
1222  """__repr__(UniformBackboneSampler self) -> std::string"""
1223  return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1224 
1225  def get_from(o):
1226  return _object_cast_to_UniformBackboneSampler(o)
1227  get_from = staticmethod(get_from)
1228 
1229  __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1230  __del__ = lambda self : None;
1231 UniformBackboneSampler_swigregister = _IMP_kinematics.UniformBackboneSampler_swigregister
1232 UniformBackboneSampler_swigregister(UniformBackboneSampler)
1233 
1234 
1235 def get_module_version():
1236  """get_module_version() -> std::string const"""
1237  return _IMP_kinematics.get_module_version()
1238 
1239 def get_example_path(*args):
1240  """get_example_path(std::string fname) -> std::string"""
1241  return _IMP_kinematics.get_example_path(*args)
1242 
1243 def get_data_path(*args):
1244  """get_data_path(std::string fname) -> std::string"""
1245  return _IMP_kinematics.get_data_path(*args)
1246 from . import _version_check
1247 _version_check.check_version(get_module_version())
1248 
1249 
1250 
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Composable functors to implement scores via compile-time composition.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
Definition: Plane3D.h:71
Base functionality and abstract base classes for representation, scoring and sampling.
Common base class for heavy weight IMP objects.
Definition: Object.h:106
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...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for small angle X-ray scattering (SAXS) data.