10 from __future__
import print_function, division, absolute_import
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():
19 pkg = __name__.rpartition(
'.')[0]
20 mname =
'.'.join((pkg,
'_IMP_kinematics')).lstrip(
'.')
22 return importlib.import_module(mname)
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
33 fp, pathname, description = imp.find_module(
'_IMP_kinematics', [dirname(__file__)])
35 import _IMP_kinematics
36 return _IMP_kinematics
39 _mod = imp.load_module(
'_IMP_kinematics', fp, pathname, description)
43 _IMP_kinematics = swig_import_helper()
44 del swig_import_helper
46 import _IMP_kinematics
47 del _swig_python_version_info
49 _swig_property = property
54 import builtins
as __builtin__
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59 if (name ==
"thisown"):
60 return self.this.own(value)
62 if type(value).__name__ ==
'SwigPyObject':
63 self.__dict__[name] = value
65 method = class_type.__swig_setmethods__.get(name,
None)
67 return method(self, value)
69 object.__setattr__(self, name, value)
71 raise AttributeError(
"You cannot add attributes to %s" % self)
74 def _swig_setattr(self, class_type, name, value):
75 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
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)
84 raise AttributeError(
"'%s' object has no attribute '%s'" % (class_type.__name__, name))
89 strthis =
"proxy of " + self.this.__repr__()
90 except __builtin__.Exception:
92 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
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)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110 weakref_proxy =
lambda x: x
113 class IMP_KINEMATICS_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_KINEMATICS_SwigPyIterator class."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
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
125 """value(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
126 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_value(self)
131 incr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
132 incr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
134 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_incr(self, n)
139 decr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
140 decr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
142 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_decr(self, n)
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)
151 """equal(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
152 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_equal(self, x)
156 """copy(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator"""
157 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_copy(self)
161 """next(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
162 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_next(self)
166 """__next__(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
167 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___next__(self)
171 """previous(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
172 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_previous(self)
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)
181 """__eq__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
182 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
187 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___ne__(self, x)
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)
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)
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)
205 def __sub__(self, *args):
207 __sub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator
208 __sub__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___sub__(self, *args)
214 IMP_KINEMATICS_SwigPyIterator_swigregister = _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_swigregister
215 IMP_KINEMATICS_SwigPyIterator_swigregister(IMP_KINEMATICS_SwigPyIterator)
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
244 class _DirectorObjects(object):
245 """@internal Simple class to keep references to director objects
246 to prevent premature deletion."""
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)
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]
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()
269 class _ostream(object):
270 """Proxy of C++ std::ostream class."""
272 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
274 def __init__(self, *args, **kwargs):
275 raise AttributeError(
"No constructor defined")
276 __repr__ = _swig_repr
278 def write(self, osa_buf):
279 """write(_ostream self, char const * osa_buf)"""
280 return _IMP_kinematics._ostream_write(self, osa_buf)
282 _ostream_swigregister = _IMP_kinematics._ostream_swigregister
283 _ostream_swigregister(_ostream)
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
289 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_FILESYSTEM
290 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_RANDOM
292 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_SYSTEM
293 IMPCGAL_SHOW_WARNINGS = _IMP_kinematics.IMPCGAL_SHOW_WARNINGS
295 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_IMP_CGAL
296 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
297 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
298 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_RANDOM
299 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
300 IMP_ALGEBRA_HAS_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_CGAL
301 IMP_ALGEBRA_HAS_ANN = _IMP_kinematics.IMP_ALGEBRA_HAS_ANN
302 IMPALGEBRA_SHOW_WARNINGS = _IMP_kinematics.IMPALGEBRA_SHOW_WARNINGS
304 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_CGAL
305 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
306 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
307 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_RANDOM
308 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_SYSTEM
309 IMP_DISPLAY_HAS_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_CGAL
310 IMPDISPLAY_SHOW_WARNINGS = _IMP_kinematics.IMPDISPLAY_SHOW_WARNINGS
312 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
313 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
314 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
315 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
316 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
317 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_CGAL
318 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_HDF5
319 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_kinematics.IMPSCOREFUNCTOR_SHOW_WARNINGS
321 IMP_CORE_HAS_IMP_CGAL = _IMP_kinematics.IMP_CORE_HAS_IMP_CGAL
322 IMP_CORE_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CORE_HAS_IMP_KERNEL
323 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_FILESYSTEM
324 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
325 IMP_CORE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CORE_HAS_BOOST_RANDOM
326 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_SYSTEM
327 IMP_CORE_HAS_CGAL = _IMP_kinematics.IMP_CORE_HAS_CGAL
328 IMP_CORE_HAS_HDF5 = _IMP_kinematics.IMP_CORE_HAS_HDF5
329 IMPCORE_SHOW_WARNINGS = _IMP_kinematics.IMPCORE_SHOW_WARNINGS
331 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_ALGEBRA
332 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_CGAL
333 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_DISPLAY
334 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_KERNEL
335 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
336 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
337 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
338 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_RANDOM
339 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_SYSTEM
340 IMP_CONTAINER_HAS_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_CGAL
341 IMP_CONTAINER_HAS_HDF5 = _IMP_kinematics.IMP_CONTAINER_HAS_HDF5
342 IMPCONTAINER_SHOW_WARNINGS = _IMP_kinematics.IMPCONTAINER_SHOW_WARNINGS
344 IMP_ATOM_HAS_IMP_CGAL = _IMP_kinematics.IMP_ATOM_HAS_IMP_CGAL
345 IMP_ATOM_HAS_IMP_KERNEL = _IMP_kinematics.IMP_ATOM_HAS_IMP_KERNEL
346 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
347 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
348 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_RANDOM
349 IMP_ATOM_HAS_BOOST_REGEX = _IMP_kinematics.IMP_ATOM_HAS_BOOST_REGEX
350 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_SYSTEM
351 IMP_ATOM_HAS_CGAL = _IMP_kinematics.IMP_ATOM_HAS_CGAL
352 IMP_ATOM_HAS_HDF5 = _IMP_kinematics.IMP_ATOM_HAS_HDF5
353 IMPATOM_SHOW_WARNINGS = _IMP_kinematics.IMPATOM_SHOW_WARNINGS
354 IMP_ATOM_TYPE_INDEX = _IMP_kinematics.IMP_ATOM_TYPE_INDEX
355 IMP_RESIDUE_TYPE_INDEX = _IMP_kinematics.IMP_RESIDUE_TYPE_INDEX
356 IMP_HIERARCHY_TYPE_INDEX = _IMP_kinematics.IMP_HIERARCHY_TYPE_INDEX
358 IMP_SAXS_HAS_IMP_CGAL = _IMP_kinematics.IMP_SAXS_HAS_IMP_CGAL
359 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_kinematics.IMP_SAXS_HAS_IMP_CONTAINER
360 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_SAXS_HAS_IMP_DISPLAY
361 IMP_SAXS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_SAXS_HAS_IMP_KERNEL
362 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
363 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_FILESYSTEM
364 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
365 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_RANDOM
366 IMP_SAXS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_SAXS_HAS_BOOST_REGEX
367 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SAXS_HAS_BOOST_SYSTEM
368 IMP_SAXS_HAS_CGAL = _IMP_kinematics.IMP_SAXS_HAS_CGAL
369 IMP_SAXS_HAS_HDF5 = _IMP_kinematics.IMP_SAXS_HAS_HDF5
370 IMPSAXS_SHOW_WARNINGS = _IMP_kinematics.IMPSAXS_SHOW_WARNINGS
372 IMP_KINEMATICS_HAS_IMP_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_CGAL
373 IMP_KINEMATICS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_DISPLAY
374 IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR
375 IMP_KINEMATICS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_FILESYSTEM
376 IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS
377 IMP_KINEMATICS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_RANDOM
378 IMP_KINEMATICS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_REGEX
379 IMP_KINEMATICS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_SYSTEM
380 IMP_KINEMATICS_HAS_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_CGAL
381 IMP_KINEMATICS_HAS_HDF5 = _IMP_kinematics.IMP_KINEMATICS_HAS_HDF5
382 IMPKINEMATICS_SHOW_WARNINGS = _IMP_kinematics.IMPKINEMATICS_SHOW_WARNINGS
384 _object_types.append(
"Joint")
387 def _object_cast_to_Joint(o):
388 """_object_cast_to_Joint(Object o) -> Joint"""
389 return _IMP_kinematics._object_cast_to_Joint(o)
391 _object_types.append(
"TransformationJoint")
394 def _object_cast_to_TransformationJoint(o):
395 """_object_cast_to_TransformationJoint(Object o) -> TransformationJoint"""
396 return _IMP_kinematics._object_cast_to_TransformationJoint(o)
398 _object_types.append(
"RevoluteJoint")
401 def _object_cast_to_RevoluteJoint(o):
402 """_object_cast_to_RevoluteJoint(Object o) -> RevoluteJoint"""
403 return _IMP_kinematics._object_cast_to_RevoluteJoint(o)
405 _object_types.append(
"DihedralAngleRevoluteJoint")
408 def _object_cast_to_DihedralAngleRevoluteJoint(o):
409 """_object_cast_to_DihedralAngleRevoluteJoint(Object o) -> DihedralAngleRevoluteJoint"""
410 return _IMP_kinematics._object_cast_to_DihedralAngleRevoluteJoint(o)
412 _object_types.append(
"BondAngleRevoluteJoint")
415 def _object_cast_to_BondAngleRevoluteJoint(o):
416 """_object_cast_to_BondAngleRevoluteJoint(Object o) -> BondAngleRevoluteJoint"""
417 return _IMP_kinematics._object_cast_to_BondAngleRevoluteJoint(o)
419 _object_types.append(
"PrismaticJoint")
422 def _object_cast_to_PrismaticJoint(o):
423 """_object_cast_to_PrismaticJoint(Object o) -> PrismaticJoint"""
424 return _IMP_kinematics._object_cast_to_PrismaticJoint(o)
426 _object_types.append(
"KinematicForest")
429 def _object_cast_to_KinematicForest(o):
430 """_object_cast_to_KinematicForest(Object o) -> KinematicForest"""
431 return _IMP_kinematics._object_cast_to_KinematicForest(o)
433 _object_types.append(
"KinematicForestScoreState")
436 def _object_cast_to_KinematicForestScoreState(o):
437 """_object_cast_to_KinematicForestScoreState(Object o) -> KinematicForestScoreState"""
438 return _IMP_kinematics._object_cast_to_KinematicForestScoreState(o)
440 _object_types.append(
"CompositeJoint")
443 def _object_cast_to_CompositeJoint(o):
444 """_object_cast_to_CompositeJoint(Object o) -> CompositeJoint"""
445 return _IMP_kinematics._object_cast_to_CompositeJoint(o)
447 _object_types.append(
"RevoluteJointMover")
450 def _object_cast_to_RevoluteJointMover(o):
451 """_object_cast_to_RevoluteJointMover(Object o) -> RevoluteJointMover"""
452 return _IMP_kinematics._object_cast_to_RevoluteJointMover(o)
454 _object_types.append(
"DOF")
457 def _object_cast_to_DOF(o):
458 """_object_cast_to_DOF(Object o) -> DOF"""
459 return _IMP_kinematics._object_cast_to_DOF(o)
462 _plural_types.append(
"DOFValuesList")
463 _value_types.append(
"DOFValues")
467 _plural_types.append(
"DirectionalDOFs")
468 _value_types.append(
"DirectionalDOF")
471 _object_types.append(
"DOFsSampler")
474 def _object_cast_to_DOFsSampler(o):
475 """_object_cast_to_DOFsSampler(Object o) -> DOFsSampler"""
476 return _IMP_kinematics._object_cast_to_DOFsSampler(o)
478 _object_types.append(
"UniformBackboneSampler")
481 def _object_cast_to_UniformBackboneSampler(o):
482 """_object_cast_to_UniformBackboneSampler(Object o) -> UniformBackboneSampler"""
483 return _IMP_kinematics._object_cast_to_UniformBackboneSampler(o)
485 """Proxy of C++ IMP::kinematics::Joint class."""
487 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
490 """get_version_info(Joint self) -> VersionInfo"""
491 return _IMP_kinematics.Joint_get_version_info(self)
494 def __init__(self, parent, child):
495 """__init__(IMP::kinematics::Joint self, RigidBody parent, RigidBody child) -> Joint"""
496 this = _IMP_kinematics.new_Joint(parent, child)
498 self.this.append(this)
499 except __builtin__.Exception:
502 def get_owner_kf(self):
503 """get_owner_kf(Joint self) -> KinematicForest"""
504 return _IMP_kinematics.Joint_get_owner_kf(self)
507 def get_transformation_child_to_parent(self):
508 """get_transformation_child_to_parent(Joint self) -> Transformation3D"""
509 return _IMP_kinematics.Joint_get_transformation_child_to_parent(self)
512 def get_parent_node(self):
513 """get_parent_node(Joint self) -> RigidBody"""
514 return _IMP_kinematics.Joint_get_parent_node(self)
517 def get_child_node(self):
518 """get_child_node(Joint self) -> RigidBody"""
519 return _IMP_kinematics.Joint_get_child_node(self)
523 """__str__(Joint self) -> std::string"""
524 return _IMP_kinematics.Joint___str__(self)
528 """__repr__(Joint self) -> std::string"""
529 return _IMP_kinematics.Joint___repr__(self)
534 return _object_cast_to_Joint(o)
536 Joint_swigregister = _IMP_kinematics.Joint_swigregister
537 Joint_swigregister(Joint)
539 class TransformationJoint(Joint):
540 """Proxy of C++ IMP::kinematics::TransformationJoint class."""
542 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
544 def __init__(self, parent, child):
545 """__init__(IMP::kinematics::TransformationJoint self, RigidBody parent, RigidBody child) -> TransformationJoint"""
546 this = _IMP_kinematics.new_TransformationJoint(parent, child)
548 self.this.append(this)
549 except __builtin__.Exception:
552 def set_transformation_child_to_parent(self, transformation):
553 """set_transformation_child_to_parent(TransformationJoint self, Transformation3D transformation)"""
554 return _IMP_kinematics.TransformationJoint_set_transformation_child_to_parent(self, transformation)
558 """__str__(TransformationJoint self) -> std::string"""
559 return _IMP_kinematics.TransformationJoint___str__(self)
563 """__repr__(TransformationJoint self) -> std::string"""
564 return _IMP_kinematics.TransformationJoint___repr__(self)
569 return _object_cast_to_TransformationJoint(o)
571 __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
572 __del__ =
lambda self:
None
573 TransformationJoint_swigregister = _IMP_kinematics.TransformationJoint_swigregister
574 TransformationJoint_swigregister(TransformationJoint)
576 class PrismaticJoint(Joint):
577 """Proxy of C++ IMP::kinematics::PrismaticJoint class."""
579 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
581 def __init__(self, *args):
583 __init__(IMP::kinematics::PrismaticJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b) -> PrismaticJoint
584 __init__(IMP::kinematics::PrismaticJoint self, RigidBody parent, RigidBody child) -> PrismaticJoint
586 this = _IMP_kinematics.new_PrismaticJoint(*args)
588 self.this.append(this)
589 except __builtin__.Exception:
592 def get_length(self):
593 """get_length(PrismaticJoint self) -> double"""
594 return _IMP_kinematics.PrismaticJoint_get_length(self)
597 def set_length(self, l):
598 """set_length(PrismaticJoint self, double l)"""
599 return _IMP_kinematics.PrismaticJoint_set_length(self, l)
603 """__str__(PrismaticJoint self) -> std::string"""
604 return _IMP_kinematics.PrismaticJoint___str__(self)
608 """__repr__(PrismaticJoint self) -> std::string"""
609 return _IMP_kinematics.PrismaticJoint___repr__(self)
614 return _object_cast_to_PrismaticJoint(o)
616 __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
617 __del__ =
lambda self:
None
618 PrismaticJoint_swigregister = _IMP_kinematics.PrismaticJoint_swigregister
619 PrismaticJoint_swigregister(PrismaticJoint)
621 class CompositeJoint(Joint):
622 """Proxy of C++ IMP::kinematics::CompositeJoint class."""
624 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
626 def __init__(self, *args):
628 __init__(IMP::kinematics::CompositeJoint self, RigidBody parent, RigidBody child, IMP::kinematics::Joints joints) -> CompositeJoint
629 __init__(IMP::kinematics::CompositeJoint self, RigidBody parent, RigidBody child) -> CompositeJoint
631 this = _IMP_kinematics.new_CompositeJoint(*args)
633 self.this.append(this)
634 except __builtin__.Exception:
637 def add_downstream_joint(self, j):
638 """add_downstream_joint(CompositeJoint self, Joint j)"""
639 return _IMP_kinematics.CompositeJoint_add_downstream_joint(self, j)
642 def add_upstream_joint(self, j):
643 """add_upstream_joint(CompositeJoint self, Joint j)"""
644 return _IMP_kinematics.CompositeJoint_add_upstream_joint(self, j)
647 def set_joints(self, joints):
648 """set_joints(CompositeJoint self, IMP::kinematics::Joints joints)"""
649 return _IMP_kinematics.CompositeJoint_set_joints(self, joints)
652 def get_inner_joints(self):
653 """get_inner_joints(CompositeJoint self) -> IMP::kinematics::Joints const &"""
654 return _IMP_kinematics.CompositeJoint_get_inner_joints(self)
658 """__str__(CompositeJoint self) -> std::string"""
659 return _IMP_kinematics.CompositeJoint___str__(self)
663 """__repr__(CompositeJoint self) -> std::string"""
664 return _IMP_kinematics.CompositeJoint___repr__(self)
669 return _object_cast_to_CompositeJoint(o)
671 __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
672 __del__ =
lambda self:
None
673 CompositeJoint_swigregister = _IMP_kinematics.CompositeJoint_swigregister
674 CompositeJoint_swigregister(CompositeJoint)
676 class RevoluteJoint(Joint):
677 """Proxy of C++ IMP::kinematics::RevoluteJoint class."""
679 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
681 def __init__(self, parent, child):
682 """__init__(IMP::kinematics::RevoluteJoint self, RigidBody parent, RigidBody child) -> RevoluteJoint"""
683 if self.__class__ == RevoluteJoint:
687 this = _IMP_kinematics.new_RevoluteJoint(_self, parent, child)
689 self.this.append(this)
690 except __builtin__.Exception:
693 if self.__class__ != RevoluteJoint:
694 _director_objects.register(self)
698 __swig_destroy__ = _IMP_kinematics.delete_RevoluteJoint
699 __del__ =
lambda self:
None
701 def set_angle(self, angle):
702 """set_angle(RevoluteJoint self, double angle)"""
703 return _IMP_kinematics.RevoluteJoint_set_angle(self, angle)
707 """get_angle(RevoluteJoint self) -> double"""
708 return _IMP_kinematics.RevoluteJoint_get_angle(self)
711 def get_rot_axis_origin(self):
712 """get_rot_axis_origin(RevoluteJoint self) -> Vector3D"""
713 return _IMP_kinematics.RevoluteJoint_get_rot_axis_origin(self)
716 def get_rot_axis_unit_vector(self):
717 """get_rot_axis_unit_vector(RevoluteJoint self) -> Vector3D"""
718 return _IMP_kinematics.RevoluteJoint_get_rot_axis_unit_vector(self)
721 def update_child_node_reference_frame(self):
722 """update_child_node_reference_frame(RevoluteJoint self)"""
723 return _IMP_kinematics.RevoluteJoint_update_child_node_reference_frame(self)
726 def update_axis_of_rotation_from_cartesian_witnesses(self):
727 """update_axis_of_rotation_from_cartesian_witnesses(RevoluteJoint self)"""
728 return _IMP_kinematics.RevoluteJoint_update_axis_of_rotation_from_cartesian_witnesses(self)
731 def get_current_angle_from_cartesian_witnesses(self):
732 """get_current_angle_from_cartesian_witnesses(RevoluteJoint self) -> double"""
733 return _IMP_kinematics.RevoluteJoint_get_current_angle_from_cartesian_witnesses(self)
736 def update_joint_from_cartesian_witnesses(self):
737 """update_joint_from_cartesian_witnesses(RevoluteJoint self)"""
738 return _IMP_kinematics.RevoluteJoint_update_joint_from_cartesian_witnesses(self)
741 def get_rotation_about_joint_in_parent_coordinates(self):
742 """get_rotation_about_joint_in_parent_coordinates(RevoluteJoint self) -> Transformation3D"""
743 return _IMP_kinematics.RevoluteJoint_get_rotation_about_joint_in_parent_coordinates(self)
745 angle_ = _swig_property(_IMP_kinematics.RevoluteJoint_angle__get, _IMP_kinematics.RevoluteJoint_angle__set)
746 last_updated_angle_ = _swig_property(_IMP_kinematics.RevoluteJoint_last_updated_angle__get, _IMP_kinematics.RevoluteJoint_last_updated_angle__set)
747 rot_axis_unit_vector_ = _swig_property(_IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__get, _IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__set)
748 rot_axis_origin_ = _swig_property(_IMP_kinematics.RevoluteJoint_rot_axis_origin__get, _IMP_kinematics.RevoluteJoint_rot_axis_origin__set)
751 """__str__(RevoluteJoint self) -> std::string"""
752 return _IMP_kinematics.RevoluteJoint___str__(self)
756 """__repr__(RevoluteJoint self) -> std::string"""
757 return _IMP_kinematics.RevoluteJoint___repr__(self)
762 return _object_cast_to_RevoluteJoint(o)
765 def get_type_name(self):
766 return self.__class__.__name__
767 def do_show(self, out):
770 if"IMP::kinematics" ==
"IMP":
771 return VersionInfo(self.__module__,
772 __import__(self.__module__).get_module_version())
775 __import__(self.__module__).get_module_version())
778 return _object_cast_to_RevoluteJoint(o)
780 def __disown__(self):
782 _IMP_kinematics.disown_RevoluteJoint(self)
783 return weakref_proxy(self)
786 """do_destroy(RevoluteJoint self)"""
787 return _IMP_kinematics.RevoluteJoint_do_destroy(self)
789 RevoluteJoint_swigregister = _IMP_kinematics.RevoluteJoint_swigregister
790 RevoluteJoint_swigregister(RevoluteJoint)
792 class DihedralAngleRevoluteJoint(RevoluteJoint):
793 """Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class."""
795 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
797 def __init__(self, parent, child, a, b, c, d):
798 """__init__(IMP::kinematics::DihedralAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c, XYZ d) -> DihedralAngleRevoluteJoint"""
799 this = _IMP_kinematics.new_DihedralAngleRevoluteJoint(parent, child, a, b, c, d)
801 self.this.append(this)
802 except __builtin__.Exception:
806 """get_a(DihedralAngleRevoluteJoint self) -> XYZ"""
807 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_a(self)
811 """get_b(DihedralAngleRevoluteJoint self) -> XYZ"""
812 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_b(self)
816 """get_c(DihedralAngleRevoluteJoint self) -> XYZ"""
817 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_c(self)
821 """get_d(DihedralAngleRevoluteJoint self) -> XYZ"""
822 return _IMP_kinematics.DihedralAngleRevoluteJoint_get_d(self)
826 """__str__(DihedralAngleRevoluteJoint self) -> std::string"""
827 return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
831 """__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
832 return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
837 return _object_cast_to_DihedralAngleRevoluteJoint(o)
839 __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
840 __del__ =
lambda self:
None
841 DihedralAngleRevoluteJoint_swigregister = _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister
842 DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
844 class BondAngleRevoluteJoint(RevoluteJoint):
845 """Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class."""
847 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
849 def __init__(self, parent, child, a, b, c):
850 """__init__(IMP::kinematics::BondAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c) -> BondAngleRevoluteJoint"""
851 this = _IMP_kinematics.new_BondAngleRevoluteJoint(parent, child, a, b, c)
853 self.this.append(this)
854 except __builtin__.Exception:
858 """__str__(BondAngleRevoluteJoint self) -> std::string"""
859 return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
863 """__repr__(BondAngleRevoluteJoint self) -> std::string"""
864 return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
869 return _object_cast_to_BondAngleRevoluteJoint(o)
871 __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
872 __del__ =
lambda self:
None
873 BondAngleRevoluteJoint_swigregister = _IMP_kinematics.BondAngleRevoluteJoint_swigregister
874 BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
877 """Proxy of C++ IMP::kinematics::RevoluteJointMover class."""
879 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
881 def __init__(self, m, joints, stddev=0.01):
883 __init__(IMP::kinematics::RevoluteJointMover self, Model m, IMP::kinematics::RevoluteJoints const & joints, double const stddev=0.01) -> RevoluteJointMover
884 __init__(IMP::kinematics::RevoluteJointMover self, Model m, IMP::kinematics::RevoluteJoints const & joints) -> RevoluteJointMover
886 this = _IMP_kinematics.new_RevoluteJointMover(m, joints, stddev)
888 self.this.append(this)
889 except __builtin__.Exception:
892 def set_sigma(self, sigma):
893 """set_sigma(RevoluteJointMover self, IMP::Float sigma)"""
894 return _IMP_kinematics.RevoluteJointMover_set_sigma(self, sigma)
898 """get_sigma(RevoluteJointMover self) -> IMP::Float"""
899 return _IMP_kinematics.RevoluteJointMover_get_sigma(self)
903 """get_version_info(RevoluteJointMover self) -> VersionInfo"""
904 return _IMP_kinematics.RevoluteJointMover_get_version_info(self)
908 """__str__(RevoluteJointMover self) -> std::string"""
909 return _IMP_kinematics.RevoluteJointMover___str__(self)
913 """__repr__(RevoluteJointMover self) -> std::string"""
914 return _IMP_kinematics.RevoluteJointMover___repr__(self)
919 return _object_cast_to_RevoluteJointMover(o)
921 RevoluteJointMover_swigregister = _IMP_kinematics.RevoluteJointMover_swigregister
922 RevoluteJointMover_swigregister(RevoluteJointMover)
925 """Proxy of C++ IMP::kinematics::KinematicForest class."""
927 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
930 """get_version_info(KinematicForest self) -> VersionInfo"""
931 return _IMP_kinematics.KinematicForest_get_version_info(self)
934 def __init__(self, *args):
936 __init__(IMP::kinematics::KinematicForest self, Model m) -> KinematicForest
937 __init__(IMP::kinematics::KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
939 this = _IMP_kinematics.new_KinematicForest(*args)
941 self.this.append(this)
942 except __builtin__.Exception:
945 def add_edge(self, *args):
947 add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
948 add_edge(KinematicForest self, Joint joint)
950 return _IMP_kinematics.KinematicForest_add_edge(self, *args)
953 def add_rigid_bodies_in_chain(self, rbs):
954 """add_rigid_bodies_in_chain(KinematicForest self, IMP::core::RigidBodies rbs)"""
955 return _IMP_kinematics.KinematicForest_add_rigid_bodies_in_chain(self, rbs)
958 def reset_root(self, new_root):
959 """reset_root(KinematicForest self, Particle new_root)"""
960 return _IMP_kinematics.KinematicForest_reset_root(self, new_root)
963 def update_all_internal_coordinates(self):
964 """update_all_internal_coordinates(KinematicForest self)"""
965 return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
968 def update_all_external_coordinates(self):
969 """update_all_external_coordinates(KinematicForest self)"""
970 return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
973 def get_ordered_joints(self):
974 """get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
975 return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
978 def mark_internal_coordinates_changed(self):
979 """mark_internal_coordinates_changed(KinematicForest self)"""
980 return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
983 def mark_external_coordinates_changed(self):
984 """mark_external_coordinates_changed(KinematicForest self)"""
985 return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
988 def set_coordinates_safe(self, rb, c):
989 """set_coordinates_safe(KinematicForest self, RigidBody rb, Vector3D c)"""
990 return _IMP_kinematics.KinematicForest_set_coordinates_safe(self, rb, c)
993 def get_coordinates_safe(self, rb):
994 """get_coordinates_safe(KinematicForest self, RigidBody rb) -> Vector3D"""
995 return _IMP_kinematics.KinematicForest_get_coordinates_safe(self, rb)
998 def get_is_member(self, rb):
999 """get_is_member(KinematicForest self, RigidBody rb) -> bool"""
1000 return _IMP_kinematics.KinematicForest_get_is_member(self, rb)
1003 def get_reference_frame_safe(self, rb):
1004 """get_reference_frame_safe(KinematicForest self, RigidBody rb) -> ReferenceFrame3D"""
1005 return _IMP_kinematics.KinematicForest_get_reference_frame_safe(self, rb)
1008 def set_reference_frame_safe(self, rb, r):
1009 """set_reference_frame_safe(KinematicForest self, RigidBody rb, ReferenceFrame3D r)"""
1010 return _IMP_kinematics.KinematicForest_set_reference_frame_safe(self, rb, r)
1014 """__str__(KinematicForest self) -> std::string"""
1015 return _IMP_kinematics.KinematicForest___str__(self)
1019 """__repr__(KinematicForest self) -> std::string"""
1020 return _IMP_kinematics.KinematicForest___repr__(self)
1025 return _object_cast_to_KinematicForest(o)
1027 KinematicForest_swigregister = _IMP_kinematics.KinematicForest_swigregister
1028 KinematicForest_swigregister(KinematicForest)
1031 """Proxy of C++ IMP::kinematics::KinematicForestScoreState class."""
1033 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1036 """get_version_info(KinematicForestScoreState self) -> VersionInfo"""
1037 return _IMP_kinematics.KinematicForestScoreState_get_version_info(self)
1040 def __init__(self, kf, rbs, atoms):
1041 """__init__(IMP::kinematics::KinematicForestScoreState self, KinematicForest kf, IMP::core::RigidBodies rbs, IMP::ParticlesTemp atoms) -> KinematicForestScoreState"""
1042 this = _IMP_kinematics.new_KinematicForestScoreState(kf, rbs, atoms)
1044 self.this.append(this)
1045 except __builtin__.Exception:
1048 def do_before_evaluate(self):
1049 """do_before_evaluate(KinematicForestScoreState self)"""
1050 return _IMP_kinematics.KinematicForestScoreState_do_before_evaluate(self)
1053 def do_after_evaluate(self, da):
1054 """do_after_evaluate(KinematicForestScoreState self, DerivativeAccumulator da)"""
1055 return _IMP_kinematics.KinematicForestScoreState_do_after_evaluate(self, da)
1059 """do_get_inputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1060 return _IMP_kinematics.KinematicForestScoreState_do_get_inputs(self)
1064 """do_get_outputs(KinematicForestScoreState self) -> IMP::ModelObjectsTemp"""
1065 return _IMP_kinematics.KinematicForestScoreState_do_get_outputs(self)
1069 """__str__(KinematicForestScoreState self) -> std::string"""
1070 return _IMP_kinematics.KinematicForestScoreState___str__(self)
1074 """__repr__(KinematicForestScoreState self) -> std::string"""
1075 return _IMP_kinematics.KinematicForestScoreState___repr__(self)
1080 return _object_cast_to_KinematicForestScoreState(o)
1082 KinematicForestScoreState_swigregister = _IMP_kinematics.KinematicForestScoreState_swigregister
1083 KinematicForestScoreState_swigregister(KinematicForestScoreState)
1086 """Proxy of C++ IMP::kinematics::DOF class."""
1088 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1091 """get_version_info(DOF self) -> VersionInfo"""
1092 return _IMP_kinematics.DOF_get_version_info(self)
1095 def __init__(self, *args):
1097 __init__(IMP::kinematics::DOF self, double v) -> DOF
1098 __init__(IMP::kinematics::DOF self, double v, double min, double max, double step_size) -> DOF
1100 this = _IMP_kinematics.new_DOF(*args)
1102 self.this.append(this)
1103 except __builtin__.Exception:
1106 def get_value(self):
1107 """get_value(DOF self) -> double"""
1108 return _IMP_kinematics.DOF_get_value(self)
1111 def set_value(self, v):
1112 """set_value(DOF self, double v)"""
1113 return _IMP_kinematics.DOF_set_value(self, v)
1116 def get_range(self):
1117 """get_range(DOF self) -> std::pair< double,double >"""
1118 return _IMP_kinematics.DOF_get_range(self)
1121 def set_range(self, range):
1122 """set_range(DOF self, std::pair< double,double > range)"""
1123 return _IMP_kinematics.DOF_set_range(self, range)
1126 def get_step_size(self):
1127 """get_step_size(DOF self) -> double"""
1128 return _IMP_kinematics.DOF_get_step_size(self)
1131 def set_step_size(self, step_size):
1132 """set_step_size(DOF self, double step_size)"""
1133 return _IMP_kinematics.DOF_set_step_size(self, step_size)
1136 def get_number_of_steps(self, *args):
1138 get_number_of_steps(DOF self, double value) -> int
1139 get_number_of_steps(DOF self, double value1, double value2) -> int
1141 return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1145 """__str__(DOF self) -> std::string"""
1146 return _IMP_kinematics.DOF___str__(self)
1150 """__repr__(DOF self) -> std::string"""
1151 return _IMP_kinematics.DOF___repr__(self)
1156 return _object_cast_to_DOF(o)
1158 DOF_swigregister = _IMP_kinematics.DOF_swigregister
1159 DOF_swigregister(DOF)
1161 class DOFValues(IMP.saxs.DistBase):
1162 """Proxy of C++ IMP::kinematics::DOFValues class."""
1164 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1166 def __init__(self, *args):
1168 __init__(IMP::kinematics::DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1169 __init__(IMP::kinematics::DOFValues self) -> DOFValues
1171 this = _IMP_kinematics.new_DOFValues(*args)
1173 self.this.append(this)
1174 except __builtin__.Exception:
1177 def get_distance2(self, *args):
1179 get_distance2(DOFValues self, DOFValues other_dof_values) -> double
1180 get_distance2(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1182 return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1187 get_distance(DOFValues self, DOFValues other_dof_values) -> double
1188 get_distance(DOFValues self, DOFValues other_dof_values, std::vector< bool,std::allocator< bool > > const & active_dofs) -> double
1190 return _IMP_kinematics.DOFValues_get_distance(self, *args)
1193 def show(self, *args):
1195 show(DOFValues self, _ostream out)
1196 show(DOFValues self)
1198 return _IMP_kinematics.DOFValues_show(self, *args)
1202 """__str__(DOFValues self) -> std::string"""
1203 return _IMP_kinematics.DOFValues___str__(self)
1207 """__repr__(DOFValues self) -> std::string"""
1208 return _IMP_kinematics.DOFValues___repr__(self)
1210 __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1211 __del__ =
lambda self:
None
1212 DOFValues_swigregister = _IMP_kinematics.DOFValues_swigregister
1213 DOFValues_swigregister(DOFValues)
1215 class DirectionalDOF(object):
1216 """Proxy of C++ IMP::kinematics::DirectionalDOF class."""
1218 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1220 def __init__(self, dofs):
1221 """__init__(IMP::kinematics::DirectionalDOF self, IMP::kinematics::DOFs const & dofs) -> DirectionalDOF"""
1222 this = _IMP_kinematics.new_DirectionalDOF(dofs)
1224 self.this.append(this)
1225 except __builtin__.Exception:
1228 def set_end_points(self, q1, q2):
1229 """set_end_points(DirectionalDOF self, DOFValues q1, DOFValues q2)"""
1230 return _IMP_kinematics.DirectionalDOF_set_end_points(self, q1, q2)
1233 def get_dofs_values(self):
1234 """get_dofs_values(DirectionalDOF self) -> DOFValues"""
1235 return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1238 def get_value(self):
1239 """get_value(DirectionalDOF self) -> double"""
1240 return _IMP_kinematics.DirectionalDOF_get_value(self)
1243 def show(self, *args):
1245 show(DirectionalDOF self, _ostream out)
1246 show(DirectionalDOF self)
1248 return _IMP_kinematics.DirectionalDOF_show(self, *args)
1252 """__str__(DirectionalDOF self) -> std::string"""
1253 return _IMP_kinematics.DirectionalDOF___str__(self)
1257 """__repr__(DirectionalDOF self) -> std::string"""
1258 return _IMP_kinematics.DirectionalDOF___repr__(self)
1260 __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1261 __del__ =
lambda self:
None
1262 DirectionalDOF_swigregister = _IMP_kinematics.DirectionalDOF_swigregister
1263 DirectionalDOF_swigregister(DirectionalDOF)
1266 """Proxy of C++ IMP::kinematics::DOFsSampler class."""
1268 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1270 def get_type_name(self):
1271 """get_type_name(DOFsSampler self) -> std::string"""
1272 return _IMP_kinematics.DOFsSampler_get_type_name(self)
1276 """get_version_info(DOFsSampler self) -> VersionInfo"""
1277 return _IMP_kinematics.DOFsSampler_get_version_info(self)
1280 def __init__(self, dofs):
1281 """__init__(IMP::kinematics::DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1282 if self.__class__ == DOFsSampler:
1286 this = _IMP_kinematics.new_DOFsSampler(_self, dofs)
1288 self.this.append(this)
1289 except __builtin__.Exception:
1292 if self.__class__ != DOFsSampler:
1293 _director_objects.register(self)
1298 def get_sample(self):
1299 """get_sample(DOFsSampler self) -> DOFValues"""
1300 return _IMP_kinematics.DOFsSampler_get_sample(self)
1303 def apply(self, values):
1304 """apply(DOFsSampler self, DOFValues values)"""
1305 return _IMP_kinematics.DOFsSampler_apply(self, values)
1308 def apply_last_sample(self):
1309 """apply_last_sample(DOFsSampler self)"""
1310 return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1313 def sample_and_apply(self):
1314 """sample_and_apply(DOFsSampler self)"""
1315 return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1319 """get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1320 return _IMP_kinematics.DOFsSampler_get_dofs(self)
1323 def get_dof(self, i):
1324 """get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1325 return _IMP_kinematics.DOFsSampler_get_dof(self, i)
1328 def get_number_of_dofs(self):
1329 """get_number_of_dofs(DOFsSampler self) -> unsigned int"""
1330 return _IMP_kinematics.DOFsSampler_get_number_of_dofs(self)
1333 def do_get_sample(self):
1334 """do_get_sample(DOFsSampler self) -> DOFValues"""
1335 return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1339 """__str__(DOFsSampler self) -> std::string"""
1340 return _IMP_kinematics.DOFsSampler___str__(self)
1344 """__repr__(DOFsSampler self) -> std::string"""
1345 return _IMP_kinematics.DOFsSampler___repr__(self)
1350 return _object_cast_to_DOFsSampler(o)
1353 def get_type_name(self):
1354 return self.__class__.__name__
1355 def do_show(self, out):
1358 if"IMP::kinematics" ==
"IMP":
1359 return VersionInfo(self.__module__,
1360 __import__(self.__module__).get_module_version())
1363 __import__(self.__module__).get_module_version())
1366 return _object_cast_to_DOFsSampler(o)
1368 def __disown__(self):
1370 _IMP_kinematics.disown_DOFsSampler(self)
1371 return weakref_proxy(self)
1374 """do_destroy(DOFsSampler self)"""
1375 return _IMP_kinematics.DOFsSampler_do_destroy(self)
1377 DOFsSampler_swigregister = _IMP_kinematics.DOFsSampler_swigregister
1378 DOFsSampler_swigregister(DOFsSampler)
1380 class UniformBackboneSampler(DOFsSampler):
1381 """Proxy of C++ IMP::kinematics::UniformBackboneSampler class."""
1383 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1385 def __init__(self, joints, dofs):
1386 """__init__(IMP::kinematics::UniformBackboneSampler self, IMP::kinematics::DihedralAngleRevoluteJoints joints, IMP::kinematics::DOFs dofs) -> UniformBackboneSampler"""
1387 this = _IMP_kinematics.new_UniformBackboneSampler(joints, dofs)
1389 self.this.append(this)
1390 except __builtin__.Exception:
1394 """__str__(UniformBackboneSampler self) -> std::string"""
1395 return _IMP_kinematics.UniformBackboneSampler___str__(self)
1399 """__repr__(UniformBackboneSampler self) -> std::string"""
1400 return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1405 return _object_cast_to_UniformBackboneSampler(o)
1407 __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1408 __del__ =
lambda self:
None
1409 UniformBackboneSampler_swigregister = _IMP_kinematics.UniformBackboneSampler_swigregister
1410 UniformBackboneSampler_swigregister(UniformBackboneSampler)
1413 def get_module_version():
1414 """get_module_version() -> std::string const"""
1415 return _IMP_kinematics.get_module_version()
1418 """get_example_path(std::string fname) -> std::string"""
1419 return _IMP_kinematics.get_example_path(fname)
1422 """get_data_path(std::string fname) -> std::string"""
1423 return _IMP_kinematics.get_data_path(fname)
1425 from .
import _version_check
1426 _version_check.check_version(get_module_version())
1427 __version__ = get_module_version()
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the outputs.
Composable functors to implement scores via compile-time composition.
double get_angle(const Line3D &a, const Line3D &b)
Get angle in radians between two lines around their closest points.
virtual void do_destroy()
Common base class for heavy weight IMP objects.
ScoreStates maintain invariants in the Model.
A base class for classes which perturb particles.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Version and module information for Objects.
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.
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.