11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_kinematics', [dirname(__file__)])
20 import _IMP_kinematics
21 return _IMP_kinematics
24 _mod = imp.load_module(
'_IMP_kinematics', fp, pathname, description)
28 _IMP_kinematics = swig_import_helper()
29 del swig_import_helper
31 import _IMP_kinematics
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
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"):
78 raise AttributeError(
"You cannot add attributes to %s" % self)
84 weakref_proxy = weakref.proxy
86 weakref_proxy =
lambda x: x
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")
94 __swig_destroy__ = _IMP_kinematics.delete_IMP_KINEMATICS_SwigPyIterator
95 __del__ =
lambda self :
None;
97 """value(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
98 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_value(self)
102 incr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
103 incr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
105 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_incr(self, n)
109 decr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
110 decr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
112 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_decr(self, n)
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)
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)
123 """copy(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator"""
124 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_copy(self)
127 """next(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
128 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_next(self)
131 """__next__(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
132 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___next__(self)
135 """previous(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
136 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_previous(self)
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)
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)
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)
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)
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)
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)
162 def __sub__(self, *args):
164 __sub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator
165 __sub__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t
167 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___sub__(self, *args)
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)
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
197 class _DirectorObjects(object):
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
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)
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]
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()
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)
231 _ostream_swigregister = _IMP_kinematics._ostream_swigregister
232 _ostream_swigregister(_ostream)
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
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
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
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
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
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
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
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
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
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
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
350 """iterator(VectorOfDoubles self) -> IMP_KINEMATICS_SwigPyIterator"""
351 return _IMP_kinematics.VectorOfDoubles_iterator(self)
353 def __iter__(self):
return self.iterator()
354 def __nonzero__(self):
355 """__nonzero__(VectorOfDoubles self) -> bool"""
356 return _IMP_kinematics.VectorOfDoubles___nonzero__(self)
359 """__bool__(VectorOfDoubles self) -> bool"""
360 return _IMP_kinematics.VectorOfDoubles___bool__(self)
363 """__len__(VectorOfDoubles self) -> std::vector< double >::size_type"""
364 return _IMP_kinematics.VectorOfDoubles___len__(self)
367 """pop(VectorOfDoubles self) -> std::vector< double >::value_type"""
368 return _IMP_kinematics.VectorOfDoubles_pop(self)
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)
374 def __setslice__(self, *args):
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)
380 return _IMP_kinematics.VectorOfDoubles___setslice__(self, *args)
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)
386 def __delitem__(self, *args):
388 __delitem__(VectorOfDoubles self, std::vector< double >::difference_type i)
389 __delitem__(VectorOfDoubles self, PySliceObject * slice)
391 return _IMP_kinematics.VectorOfDoubles___delitem__(self, *args)
393 def __getitem__(self, *args):
395 __getitem__(VectorOfDoubles self, PySliceObject * slice) -> DistBase
396 __getitem__(VectorOfDoubles self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
398 return _IMP_kinematics.VectorOfDoubles___getitem__(self, *args)
400 def __setitem__(self, *args):
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)
406 return _IMP_kinematics.VectorOfDoubles___setitem__(self, *args)
408 def append(self, *args):
409 """append(VectorOfDoubles self, std::vector< double >::value_type const & x)"""
410 return _IMP_kinematics.VectorOfDoubles_append(self, *args)
413 """empty(VectorOfDoubles self) -> bool"""
414 return _IMP_kinematics.VectorOfDoubles_empty(self)
417 """size(VectorOfDoubles self) -> std::vector< double >::size_type"""
418 return _IMP_kinematics.VectorOfDoubles_size(self)
421 """clear(VectorOfDoubles self)"""
422 return _IMP_kinematics.VectorOfDoubles_clear(self)
424 def swap(self, *args):
425 """swap(VectorOfDoubles self, DistBase v)"""
426 return _IMP_kinematics.VectorOfDoubles_swap(self, *args)
428 def get_allocator(self):
429 """get_allocator(VectorOfDoubles self) -> std::vector< double >::allocator_type"""
430 return _IMP_kinematics.VectorOfDoubles_get_allocator(self)
433 """begin(VectorOfDoubles self) -> std::vector< double >::iterator"""
434 return _IMP_kinematics.VectorOfDoubles_begin(self)
437 """end(VectorOfDoubles self) -> std::vector< double >::iterator"""
438 return _IMP_kinematics.VectorOfDoubles_end(self)
441 """rbegin(VectorOfDoubles self) -> std::vector< double >::reverse_iterator"""
442 return _IMP_kinematics.VectorOfDoubles_rbegin(self)
445 """rend(VectorOfDoubles self) -> std::vector< double >::reverse_iterator"""
446 return _IMP_kinematics.VectorOfDoubles_rend(self)
449 """pop_back(VectorOfDoubles self)"""
450 return _IMP_kinematics.VectorOfDoubles_pop_back(self)
452 def erase(self, *args):
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
457 return _IMP_kinematics.VectorOfDoubles_erase(self, *args)
459 def __init__(self, *args):
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
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)
474 """front(VectorOfDoubles self) -> std::vector< double >::value_type const &"""
475 return _IMP_kinematics.VectorOfDoubles_front(self)
478 """back(VectorOfDoubles self) -> std::vector< double >::value_type const &"""
479 return _IMP_kinematics.VectorOfDoubles_back(self)
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)
485 def resize(self, *args):
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)
490 return _IMP_kinematics.VectorOfDoubles_resize(self, *args)
492 def insert(self, *args):
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)
497 return _IMP_kinematics.VectorOfDoubles_insert(self, *args)
499 def reserve(self, *args):
500 """reserve(VectorOfDoubles self, std::vector< double >::size_type n)"""
501 return _IMP_kinematics.VectorOfDoubles_reserve(self, *args)
504 """capacity(VectorOfDoubles self) -> std::vector< double >::size_type"""
505 return _IMP_kinematics.VectorOfDoubles_capacity(self)
507 __swig_destroy__ = _IMP_kinematics.delete_VectorOfDoubles
508 __del__ =
lambda self :
None;
509 VectorOfDoubles_swigregister = _IMP_kinematics.VectorOfDoubles_swigregister
510 VectorOfDoubles_swigregister(VectorOfDoubles)
512 _object_types.append(
"Joint")
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")
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")
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")
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")
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")
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")
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")
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")
563 def _object_cast_to_DOF(*args):
564 """_object_cast_to_DOF(Object o) -> DOF"""
565 return _IMP_kinematics._object_cast_to_DOF(*args)
567 _plural_types.append(
"DOFValuesList")
568 _value_types.append(
"DOFValues")
571 _plural_types.append(
"DirectionalDOFs")
572 _value_types.append(
"DirectionalDOF")
574 _object_types.append(
"DOFsSampler")
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")
583 def _object_cast_to_UniformBackboneSampler(*args):
584 """_object_cast_to_UniformBackboneSampler(Object o) -> UniformBackboneSampler"""
585 return _IMP_kinematics._object_cast_to_UniformBackboneSampler(*args)
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)
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)
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)
606 def get_parent_node(self):
607 """get_parent_node(Joint self) -> RigidBody"""
608 return _IMP_kinematics.Joint_get_parent_node(self)
610 def get_child_node(self):
611 """get_child_node(Joint self) -> RigidBody"""
612 return _IMP_kinematics.Joint_get_child_node(self)
615 """__str__(Joint self) -> std::string"""
616 return _IMP_kinematics.Joint___str__(self)
619 """__repr__(Joint self) -> std::string"""
620 return _IMP_kinematics.Joint___repr__(self)
623 return _object_cast_to_Joint(o)
624 get_from = staticmethod(get_from)
626 Joint_swigregister = _IMP_kinematics.Joint_swigregister
627 Joint_swigregister(Joint)
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)
642 """__str__(TransformationJoint self) -> std::string"""
643 return _IMP_kinematics.TransformationJoint___str__(self)
646 """__repr__(TransformationJoint self) -> std::string"""
647 return _IMP_kinematics.TransformationJoint___repr__(self)
650 return _object_cast_to_TransformationJoint(o)
651 get_from = staticmethod(get_from)
653 __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
654 __del__ =
lambda self :
None;
655 TransformationJoint_swigregister = _IMP_kinematics.TransformationJoint_swigregister
656 TransformationJoint_swigregister(TransformationJoint)
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):
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
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)
673 def set_length(self, *args):
674 """set_length(PrismaticJoint self, double l)"""
675 return _IMP_kinematics.PrismaticJoint_set_length(self, *args)
678 """__str__(PrismaticJoint self) -> std::string"""
679 return _IMP_kinematics.PrismaticJoint___str__(self)
682 """__repr__(PrismaticJoint self) -> std::string"""
683 return _IMP_kinematics.PrismaticJoint___repr__(self)
686 return _object_cast_to_PrismaticJoint(o)
687 get_from = staticmethod(get_from)
689 __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
690 __del__ =
lambda self :
None;
691 PrismaticJoint_swigregister = _IMP_kinematics.PrismaticJoint_swigregister
692 PrismaticJoint_swigregister(PrismaticJoint)
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):
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
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)
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)
713 def set_joints(self, *args):
714 """set_joints(CompositeJoint self, IMP::kinematics::Joints joints)"""
715 return _IMP_kinematics.CompositeJoint_set_joints(self, *args)
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)
722 """__str__(CompositeJoint self) -> std::string"""
723 return _IMP_kinematics.CompositeJoint___str__(self)
726 """__repr__(CompositeJoint self) -> std::string"""
727 return _IMP_kinematics.CompositeJoint___repr__(self)
730 return _object_cast_to_CompositeJoint(o)
731 get_from = staticmethod(get_from)
733 __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
734 __del__ =
lambda self :
None;
735 CompositeJoint_swigregister = _IMP_kinematics.CompositeJoint_swigregister
736 CompositeJoint_swigregister(CompositeJoint)
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:
747 this = _IMP_kinematics.new_RevoluteJoint(_self, *args)
748 try: self.this.append(this)
749 except: self.this = this
750 if self.__class__ != RevoluteJoint:
752 IMP.base._director_objects.register(self)
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)
763 """get_angle(RevoluteJoint self) -> double"""
764 return _IMP_kinematics.RevoluteJoint_get_angle(self)
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)
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)
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)
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)
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)
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)
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)
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)
799 """__str__(RevoluteJoint self) -> std::string"""
800 return _IMP_kinematics.RevoluteJoint___str__(self)
803 """__repr__(RevoluteJoint self) -> std::string"""
804 return _IMP_kinematics.RevoluteJoint___repr__(self)
807 return _object_cast_to_RevoluteJoint(o)
808 get_from = staticmethod(get_from)
810 def get_type_name(self):
811 return self.__class__.__name__
812 def do_show(self, out):
814 def get_version_info(self):
815 if"IMP::kinematics" ==
"IMP":
816 return VersionInfo(
"python",
"0")
818 return IMP.VersionInfo(
"python",
"0")
820 return _object_cast_to_RevoluteJoint(o)
821 get_from = staticmethod(get_from)
823 def __disown__(self):
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)
831 RevoluteJoint_swigregister = _IMP_kinematics.RevoluteJoint_swigregister
832 RevoluteJoint_swigregister(RevoluteJoint)
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
843 """__str__(DihedralAngleRevoluteJoint self) -> std::string"""
844 return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
847 """__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
848 return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
851 return _object_cast_to_DihedralAngleRevoluteJoint(o)
852 get_from = staticmethod(get_from)
854 __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
855 __del__ =
lambda self :
None;
856 DihedralAngleRevoluteJoint_swigregister = _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister
857 DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
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
868 """__str__(BondAngleRevoluteJoint self) -> std::string"""
869 return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
872 """__repr__(BondAngleRevoluteJoint self) -> std::string"""
873 return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
876 return _object_cast_to_BondAngleRevoluteJoint(o)
877 get_from = staticmethod(get_from)
879 __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
880 __del__ =
lambda self :
None;
881 BondAngleRevoluteJoint_swigregister = _IMP_kinematics.BondAngleRevoluteJoint_swigregister
882 BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
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)
891 def __init__(self, *args):
893 __init__(IMP::kinematics::KinematicForest self, Model m) -> KinematicForest
894 __init__(IMP::kinematics::KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
896 this = _IMP_kinematics.new_KinematicForest(*args)
897 try: self.this.append(this)
898 except: self.this = this
899 def add_edge(self, *args):
901 add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
902 add_edge(KinematicForest self, Joint joint)
904 return _IMP_kinematics.KinematicForest_add_edge(self, *args)
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)
910 def reset_root(self, *args):
911 """reset_root(KinematicForest self, Particle new_root)"""
912 return _IMP_kinematics.KinematicForest_reset_root(self, *args)
914 def update_all_internal_coordinates(self):
915 """update_all_internal_coordinates(KinematicForest self)"""
916 return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
918 def update_all_external_coordinates(self):
919 """update_all_external_coordinates(KinematicForest self)"""
920 return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
922 def get_ordered_joints(self):
923 """get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
924 return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
926 def mark_internal_coordinates_changed(self):
927 """mark_internal_coordinates_changed(KinematicForest self)"""
928 return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
930 def mark_external_coordinates_changed(self):
931 """mark_external_coordinates_changed(KinematicForest self)"""
932 return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
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)
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)
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)
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)
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)
955 """__str__(KinematicForest self) -> std::string"""
956 return _IMP_kinematics.KinematicForest___str__(self)
959 """__repr__(KinematicForest self) -> std::string"""
960 return _IMP_kinematics.KinematicForest___repr__(self)
963 return _object_cast_to_KinematicForest(o)
964 get_from = staticmethod(get_from)
966 KinematicForest_swigregister = _IMP_kinematics.KinematicForest_swigregister
967 KinematicForest_swigregister(KinematicForest)
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)
976 def __init__(self, *args):
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
981 this = _IMP_kinematics.new_DOF(*args)
982 try: self.this.append(this)
983 except: self.this = this
985 """get_value(DOF self) -> double"""
986 return _IMP_kinematics.DOF_get_value(self)
988 def set_value(self, *args):
989 """set_value(DOF self, double v)"""
990 return _IMP_kinematics.DOF_set_value(self, *args)
993 """get_range(DOF self) -> std::pair< double,double >"""
994 return _IMP_kinematics.DOF_get_range(self)
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)
1000 def get_step_size(self):
1001 """get_step_size(DOF self) -> double"""
1002 return _IMP_kinematics.DOF_get_step_size(self)
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)
1008 def get_number_of_steps(self, *args):
1010 get_number_of_steps(DOF self, double value) -> int
1011 get_number_of_steps(DOF self, double value1, double value2) -> int
1013 return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1016 """__str__(DOF self) -> std::string"""
1017 return _IMP_kinematics.DOF___str__(self)
1020 """__repr__(DOF self) -> std::string"""
1021 return _IMP_kinematics.DOF___repr__(self)
1024 return _object_cast_to_DOF(o)
1025 get_from = staticmethod(get_from)
1027 DOF_swigregister = _IMP_kinematics.DOF_swigregister
1028 DOF_swigregister(DOF)
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):
1035 __init__(IMP::kinematics::DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1036 __init__(IMP::kinematics::DOFValues self) -> DOFValues
1038 this = _IMP_kinematics.new_DOFValues(*args)
1039 try: self.this.append(this)
1040 except: self.this = this
1041 def get_distance2(self, *args):
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
1046 return _IMP_kinematics.DOFValues_get_distance2(self, *args)
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
1053 return _IMP_kinematics.DOFValues_get_distance(self, *args)
1055 def show(self, *args):
1057 show(DOFValues self, _ostream out=std::cout)
1058 show(DOFValues self)
1060 return _IMP_kinematics.DOFValues_show(self, *args)
1063 """__str__(DOFValues self) -> std::string"""
1064 return _IMP_kinematics.DOFValues___str__(self)
1067 """__repr__(DOFValues self) -> std::string"""
1068 return _IMP_kinematics.DOFValues___repr__(self)
1070 __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1071 __del__ =
lambda self :
None;
1072 DOFValues_swigregister = _IMP_kinematics.DOFValues_swigregister
1073 DOFValues_swigregister(DOFValues)
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)
1087 def get_dofs_values(self):
1088 """get_dofs_values(DirectionalDOF self) -> DOFValues"""
1089 return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1091 def get_value(self):
1092 """get_value(DirectionalDOF self) -> double"""
1093 return _IMP_kinematics.DirectionalDOF_get_value(self)
1095 def show(self, *args):
1097 show(DirectionalDOF self, _ostream out=std::cout)
1098 show(DirectionalDOF self)
1100 return _IMP_kinematics.DirectionalDOF_show(self, *args)
1103 """__str__(DirectionalDOF self) -> std::string"""
1104 return _IMP_kinematics.DirectionalDOF___str__(self)
1107 """__repr__(DirectionalDOF self) -> std::string"""
1108 return _IMP_kinematics.DirectionalDOF___repr__(self)
1110 __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1111 __del__ =
lambda self :
None;
1112 DirectionalDOF_swigregister = _IMP_kinematics.DirectionalDOF_swigregister
1113 DirectionalDOF_swigregister(DirectionalDOF)
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)
1122 def get_version_info(self):
1123 """get_version_info(DOFsSampler self) -> VersionInfo"""
1124 return _IMP_kinematics.DOFsSampler_get_version_info(self)
1126 def __init__(self, *args):
1127 """__init__(IMP::kinematics::DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1128 if self.__class__ == DOFsSampler:
1132 this = _IMP_kinematics.new_DOFsSampler(_self, *args)
1133 try: self.this.append(this)
1134 except: self.this = this
1135 if self.__class__ != DOFsSampler:
1137 IMP.base._director_objects.register(self)
1141 def get_sample(self):
1142 """get_sample(DOFsSampler self) -> DOFValues"""
1143 return _IMP_kinematics.DOFsSampler_get_sample(self)
1145 def apply(self, *args):
1146 """apply(DOFsSampler self, DOFValues values)"""
1147 return _IMP_kinematics.DOFsSampler_apply(self, *args)
1149 def apply_last_sample(self):
1150 """apply_last_sample(DOFsSampler self)"""
1151 return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1153 def sample_and_apply(self):
1154 """sample_and_apply(DOFsSampler self)"""
1155 return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1158 """get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1159 return _IMP_kinematics.DOFsSampler_get_dofs(self)
1161 def get_dof(self, *args):
1162 """get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1163 return _IMP_kinematics.DOFsSampler_get_dof(self, *args)
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)
1169 def do_get_sample(self):
1170 """do_get_sample(DOFsSampler self) -> DOFValues"""
1171 return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1174 """__str__(DOFsSampler self) -> std::string"""
1175 return _IMP_kinematics.DOFsSampler___str__(self)
1178 """__repr__(DOFsSampler self) -> std::string"""
1179 return _IMP_kinematics.DOFsSampler___repr__(self)
1182 return _object_cast_to_DOFsSampler(o)
1183 get_from = staticmethod(get_from)
1185 def get_type_name(self):
1186 return self.__class__.__name__
1187 def do_show(self, out):
1189 def get_version_info(self):
1190 if"IMP::kinematics" ==
"IMP":
1191 return VersionInfo(
"python",
"0")
1193 return IMP.VersionInfo(
"python",
"0")
1195 return _object_cast_to_DOFsSampler(o)
1196 get_from = staticmethod(get_from)
1198 def __disown__(self):
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)
1206 DOFsSampler_swigregister = _IMP_kinematics.DOFsSampler_swigregister
1207 DOFsSampler_swigregister(DOFsSampler)
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
1218 """__str__(UniformBackboneSampler self) -> std::string"""
1219 return _IMP_kinematics.UniformBackboneSampler___str__(self)
1222 """__repr__(UniformBackboneSampler self) -> std::string"""
1223 return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1226 return _object_cast_to_UniformBackboneSampler(o)
1227 get_from = staticmethod(get_from)
1229 __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1230 __del__ =
lambda self :
None;
1231 UniformBackboneSampler_swigregister = _IMP_kinematics.UniformBackboneSampler_swigregister
1232 UniformBackboneSampler_swigregister(UniformBackboneSampler)
1235 def get_module_version():
1236 """get_module_version() -> std::string const"""
1237 return _IMP_kinematics.get_module_version()
1240 """get_example_path(std::string fname) -> std::string"""
1241 return _IMP_kinematics.get_example_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())
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.
Base functionality and abstract base classes for representation, scoring and sampling.
Common base class for heavy weight IMP 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...
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.