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:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_KINEMATICS_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_KINEMATICS_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_KINEMATICS_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_KINEMATICS_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_kinematics.delete_IMP_KINEMATICS_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
91 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_value(self)
95 incr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
96 incr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
98 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_incr(self, n)
102 decr(IMP_KINEMATICS_SwigPyIterator self, size_t n=1) -> IMP_KINEMATICS_SwigPyIterator
103 decr(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator
105 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
113 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_equal(self, *args)
116 """copy(IMP_KINEMATICS_SwigPyIterator self) -> IMP_KINEMATICS_SwigPyIterator"""
117 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_copy(self)
120 """next(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
121 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_next(self)
124 """__next__(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
125 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___next__(self)
128 """previous(IMP_KINEMATICS_SwigPyIterator self) -> PyObject *"""
129 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
133 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
137 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> bool"""
141 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
145 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
149 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator"""
153 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_KINEMATICS_SwigPyIterator self, ptrdiff_t n) -> IMP_KINEMATICS_SwigPyIterator
158 __sub__(IMP_KINEMATICS_SwigPyIterator self, IMP_KINEMATICS_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_KINEMATICS_SwigPyIterator_swigregister = _IMP_kinematics.IMP_KINEMATICS_SwigPyIterator_swigregister
164 IMP_KINEMATICS_SwigPyIterator_swigregister(IMP_KINEMATICS_SwigPyIterator)
171 IMP_DEBUG = _IMP_kinematics.IMP_DEBUG
172 IMP_RELEASE = _IMP_kinematics.IMP_RELEASE
173 IMP_SILENT = _IMP_kinematics.IMP_SILENT
174 IMP_PROGRESS = _IMP_kinematics.IMP_PROGRESS
175 IMP_TERSE = _IMP_kinematics.IMP_TERSE
176 IMP_VERBOSE = _IMP_kinematics.IMP_VERBOSE
177 IMP_MEMORY = _IMP_kinematics.IMP_MEMORY
178 IMP_NONE = _IMP_kinematics.IMP_NONE
179 IMP_USAGE = _IMP_kinematics.IMP_USAGE
180 IMP_INTERNAL = _IMP_kinematics.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_kinematics.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_kinematics.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kinematics.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_kinematics.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_kinematics.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_kinematics.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_kinematics.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_kinematics.DEFAULT_CHECK
216 NONE = _IMP_kinematics.NONE
217 USAGE = _IMP_kinematics.USAGE
218 USAGE_AND_INTERNAL = _IMP_kinematics.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_kinematics.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_kinematics.get_check_level()
227 class _ostream(_object):
228 """Proxy of C++ std::ostream class"""
229 __swig_setmethods__ = {}
230 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231 __swig_getmethods__ = {}
232 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
233 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
235 def write(self, *args):
236 """write(_ostream self, char const * osa_buf)"""
237 return _IMP_kinematics._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_kinematics._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_kinematics.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_kinematics.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_kinematics.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_kinematics.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_kinematics.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_kinematics.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_kinematics.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_kinematics.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_kinematics.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_kinematics.IMPKERNEL_SHOW_WARNINGS
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_kinematics.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_kinematics.IMPDISPLAY_SHOW_WARNINGS
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_kinematics.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_kinematics.IMPSCOREFUNCTOR_SHOW_WARNINGS
286 IMP_CORE_HAS_IMP_BASE = _IMP_kinematics.IMP_CORE_HAS_IMP_BASE
287 IMP_CORE_HAS_IMP_CGAL = _IMP_kinematics.IMP_CORE_HAS_IMP_CGAL
288 IMP_CORE_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CORE_HAS_IMP_KERNEL
289 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_FILESYSTEM
290 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CORE_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CORE_HAS_BOOST_RANDOM
292 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CORE_HAS_BOOST_SYSTEM
293 IMP_CORE_HAS_CGAL = _IMP_kinematics.IMP_CORE_HAS_CGAL
294 IMP_CORE_HAS_HDF5 = _IMP_kinematics.IMP_CORE_HAS_HDF5
295 IMPCORE_SHOW_WARNINGS = _IMP_kinematics.IMPCORE_SHOW_WARNINGS
297 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_ALGEBRA
298 IMP_CONTAINER_HAS_IMP_BASE = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_BASE
299 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_CGAL
300 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_DISPLAY
301 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_KERNEL
302 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
303 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
304 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
305 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_RANDOM
306 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_CONTAINER_HAS_BOOST_SYSTEM
307 IMP_CONTAINER_HAS_CGAL = _IMP_kinematics.IMP_CONTAINER_HAS_CGAL
308 IMP_CONTAINER_HAS_HDF5 = _IMP_kinematics.IMP_CONTAINER_HAS_HDF5
309 IMPCONTAINER_SHOW_WARNINGS = _IMP_kinematics.IMPCONTAINER_SHOW_WARNINGS
311 IMP_ATOM_HAS_IMP_BASE = _IMP_kinematics.IMP_ATOM_HAS_IMP_BASE
312 IMP_ATOM_HAS_IMP_CGAL = _IMP_kinematics.IMP_ATOM_HAS_IMP_CGAL
313 IMP_ATOM_HAS_IMP_KERNEL = _IMP_kinematics.IMP_ATOM_HAS_IMP_KERNEL
314 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
315 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
316 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_RANDOM
317 IMP_ATOM_HAS_BOOST_REGEX = _IMP_kinematics.IMP_ATOM_HAS_BOOST_REGEX
318 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_ATOM_HAS_BOOST_SYSTEM
319 IMP_ATOM_HAS_CGAL = _IMP_kinematics.IMP_ATOM_HAS_CGAL
320 IMP_ATOM_HAS_HDF5 = _IMP_kinematics.IMP_ATOM_HAS_HDF5
321 IMPATOM_SHOW_WARNINGS = _IMP_kinematics.IMPATOM_SHOW_WARNINGS
322 IMP_ATOM_TYPE_INDEX = _IMP_kinematics.IMP_ATOM_TYPE_INDEX
323 IMP_RESIDUE_TYPE_INDEX = _IMP_kinematics.IMP_RESIDUE_TYPE_INDEX
324 IMP_HIERARCHY_TYPE_INDEX = _IMP_kinematics.IMP_HIERARCHY_TYPE_INDEX
326 IMP_KINEMATICS_HAS_IMP_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_CGAL
327 IMP_KINEMATICS_HAS_IMP_DISPLAY = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_DISPLAY
328 IMP_KINEMATICS_HAS_IMP_KERNEL = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_KERNEL
329 IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR = _IMP_kinematics.IMP_KINEMATICS_HAS_IMP_SCORE_FUNCTOR
330 IMP_KINEMATICS_HAS_BOOST_FILESYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_FILESYSTEM
331 IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_PROGRAMOPTIONS
332 IMP_KINEMATICS_HAS_BOOST_RANDOM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_RANDOM
333 IMP_KINEMATICS_HAS_BOOST_REGEX = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_REGEX
334 IMP_KINEMATICS_HAS_BOOST_SYSTEM = _IMP_kinematics.IMP_KINEMATICS_HAS_BOOST_SYSTEM
335 IMP_KINEMATICS_HAS_CGAL = _IMP_kinematics.IMP_KINEMATICS_HAS_CGAL
336 IMP_KINEMATICS_HAS_HDF5 = _IMP_kinematics.IMP_KINEMATICS_HAS_HDF5
337 IMPKINEMATICS_SHOW_WARNINGS = _IMP_kinematics.IMPKINEMATICS_SHOW_WARNINGS
338 class VectorOfDoubles(_object):
339 """Proxy of C++ std::vector<(double)> class"""
340 __swig_setmethods__ = {}
341 __setattr__ =
lambda self, name, value: _swig_setattr(self, VectorOfDoubles, name, value)
342 __swig_getmethods__ = {}
343 __getattr__ =
lambda self, name: _swig_getattr(self, VectorOfDoubles, name)
344 __repr__ = _swig_repr
346 """iterator(VectorOfDoubles self) -> IMP_KINEMATICS_SwigPyIterator"""
347 return _IMP_kinematics.VectorOfDoubles_iterator(self)
349 def __iter__(self):
return self.iterator()
350 def __nonzero__(self):
351 """__nonzero__(VectorOfDoubles self) -> bool"""
352 return _IMP_kinematics.VectorOfDoubles___nonzero__(self)
355 """__bool__(VectorOfDoubles self) -> bool"""
356 return _IMP_kinematics.VectorOfDoubles___bool__(self)
359 """__len__(VectorOfDoubles self) -> std::vector< double >::size_type"""
360 return _IMP_kinematics.VectorOfDoubles___len__(self)
363 """pop(VectorOfDoubles self) -> std::vector< double >::value_type"""
364 return _IMP_kinematics.VectorOfDoubles_pop(self)
366 def __getslice__(self, *args):
367 """__getslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j) -> VectorOfDoubles"""
368 return _IMP_kinematics.VectorOfDoubles___getslice__(self, *args)
370 def __setslice__(self, *args):
372 __setslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j,
373 VectorOfDoubles v=std::vector< double,std::allocator< double > >())
374 __setslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)
376 return _IMP_kinematics.VectorOfDoubles___setslice__(self, *args)
378 def __delslice__(self, *args):
379 """__delslice__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)"""
380 return _IMP_kinematics.VectorOfDoubles___delslice__(self, *args)
382 def __delitem__(self, *args):
384 __delitem__(VectorOfDoubles self, std::vector< double >::difference_type i)
385 __delitem__(VectorOfDoubles self, PySliceObject * slice)
387 return _IMP_kinematics.VectorOfDoubles___delitem__(self, *args)
389 def __getitem__(self, *args):
391 __getitem__(VectorOfDoubles self, PySliceObject * slice) -> VectorOfDoubles
392 __getitem__(VectorOfDoubles self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
394 return _IMP_kinematics.VectorOfDoubles___getitem__(self, *args)
396 def __setitem__(self, *args):
398 __setitem__(VectorOfDoubles self, PySliceObject * slice, VectorOfDoubles v)
399 __setitem__(VectorOfDoubles self, PySliceObject * slice)
400 __setitem__(VectorOfDoubles self, std::vector< double >::difference_type i, std::vector< double >::value_type const & x)
402 return _IMP_kinematics.VectorOfDoubles___setitem__(self, *args)
404 def append(self, *args):
405 """append(VectorOfDoubles self, std::vector< double >::value_type const & x)"""
406 return _IMP_kinematics.VectorOfDoubles_append(self, *args)
409 """empty(VectorOfDoubles self) -> bool"""
410 return _IMP_kinematics.VectorOfDoubles_empty(self)
413 """size(VectorOfDoubles self) -> std::vector< double >::size_type"""
414 return _IMP_kinematics.VectorOfDoubles_size(self)
417 """clear(VectorOfDoubles self)"""
418 return _IMP_kinematics.VectorOfDoubles_clear(self)
420 def swap(self, *args):
421 """swap(VectorOfDoubles self, VectorOfDoubles v)"""
422 return _IMP_kinematics.VectorOfDoubles_swap(self, *args)
424 def get_allocator(self):
425 """get_allocator(VectorOfDoubles self) -> std::vector< double >::allocator_type"""
426 return _IMP_kinematics.VectorOfDoubles_get_allocator(self)
429 """begin(VectorOfDoubles self) -> std::vector< double >::iterator"""
430 return _IMP_kinematics.VectorOfDoubles_begin(self)
433 """end(VectorOfDoubles self) -> std::vector< double >::iterator"""
434 return _IMP_kinematics.VectorOfDoubles_end(self)
437 """rbegin(VectorOfDoubles self) -> std::vector< double >::reverse_iterator"""
438 return _IMP_kinematics.VectorOfDoubles_rbegin(self)
441 """rend(VectorOfDoubles self) -> std::vector< double >::reverse_iterator"""
442 return _IMP_kinematics.VectorOfDoubles_rend(self)
445 """pop_back(VectorOfDoubles self)"""
446 return _IMP_kinematics.VectorOfDoubles_pop_back(self)
448 def erase(self, *args):
450 erase(VectorOfDoubles self, std::vector< double >::iterator pos) -> std::vector< double >::iterator
451 erase(VectorOfDoubles self, std::vector< double >::iterator first, std::vector< double >::iterator last) -> std::vector< double >::iterator
453 return _IMP_kinematics.VectorOfDoubles_erase(self, *args)
455 def __init__(self, *args):
457 __init__(std::vector<(double)> self) -> VectorOfDoubles
458 __init__(std::vector<(double)> self, VectorOfDoubles arg2) -> VectorOfDoubles
459 __init__(std::vector<(double)> self, std::vector< double >::size_type size) -> VectorOfDoubles
460 __init__(std::vector<(double)> self, std::vector< double >::size_type size, std::vector< double >::value_type const & value) -> VectorOfDoubles
462 this = _IMP_kinematics.new_VectorOfDoubles(*args)
463 try: self.this.append(this)
464 except: self.this = this
465 def push_back(self, *args):
466 """push_back(VectorOfDoubles self, std::vector< double >::value_type const & x)"""
467 return _IMP_kinematics.VectorOfDoubles_push_back(self, *args)
470 """front(VectorOfDoubles self) -> std::vector< double >::value_type const &"""
471 return _IMP_kinematics.VectorOfDoubles_front(self)
474 """back(VectorOfDoubles self) -> std::vector< double >::value_type const &"""
475 return _IMP_kinematics.VectorOfDoubles_back(self)
477 def assign(self, *args):
478 """assign(VectorOfDoubles self, std::vector< double >::size_type n, std::vector< double >::value_type const & x)"""
479 return _IMP_kinematics.VectorOfDoubles_assign(self, *args)
481 def resize(self, *args):
483 resize(VectorOfDoubles self, std::vector< double >::size_type new_size)
484 resize(VectorOfDoubles self, std::vector< double >::size_type new_size, std::vector< double >::value_type const & x)
486 return _IMP_kinematics.VectorOfDoubles_resize(self, *args)
488 def insert(self, *args):
490 insert(VectorOfDoubles self, std::vector< double >::iterator pos, std::vector< double >::value_type const & x) -> std::vector< double >::iterator
491 insert(VectorOfDoubles self, std::vector< double >::iterator pos, std::vector< double >::size_type n, std::vector< double >::value_type const & x)
493 return _IMP_kinematics.VectorOfDoubles_insert(self, *args)
495 def reserve(self, *args):
496 """reserve(VectorOfDoubles self, std::vector< double >::size_type n)"""
497 return _IMP_kinematics.VectorOfDoubles_reserve(self, *args)
500 """capacity(VectorOfDoubles self) -> std::vector< double >::size_type"""
501 return _IMP_kinematics.VectorOfDoubles_capacity(self)
503 __swig_destroy__ = _IMP_kinematics.delete_VectorOfDoubles
504 __del__ =
lambda self :
None;
505 VectorOfDoubles_swigregister = _IMP_kinematics.VectorOfDoubles_swigregister
506 VectorOfDoubles_swigregister(VectorOfDoubles)
508 _object_types.append(
"Joint")
511 def _object_cast_to_Joint(*args):
512 """_object_cast_to_Joint(Object o) -> Joint"""
513 return _IMP_kinematics._object_cast_to_Joint(*args)
514 _object_types.append(
"TransformationJoint")
517 def _object_cast_to_TransformationJoint(*args):
518 """_object_cast_to_TransformationJoint(Object o) -> TransformationJoint"""
519 return _IMP_kinematics._object_cast_to_TransformationJoint(*args)
520 _object_types.append(
"RevoluteJoint")
523 def _object_cast_to_RevoluteJoint(*args):
524 """_object_cast_to_RevoluteJoint(Object o) -> RevoluteJoint"""
525 return _IMP_kinematics._object_cast_to_RevoluteJoint(*args)
526 _object_types.append(
"DihedralAngleRevoluteJoint")
529 def _object_cast_to_DihedralAngleRevoluteJoint(*args):
530 """_object_cast_to_DihedralAngleRevoluteJoint(Object o) -> DihedralAngleRevoluteJoint"""
531 return _IMP_kinematics._object_cast_to_DihedralAngleRevoluteJoint(*args)
532 _object_types.append(
"BondAngleRevoluteJoint")
535 def _object_cast_to_BondAngleRevoluteJoint(*args):
536 """_object_cast_to_BondAngleRevoluteJoint(Object o) -> BondAngleRevoluteJoint"""
537 return _IMP_kinematics._object_cast_to_BondAngleRevoluteJoint(*args)
538 _object_types.append(
"PrismaticJoint")
541 def _object_cast_to_PrismaticJoint(*args):
542 """_object_cast_to_PrismaticJoint(Object o) -> PrismaticJoint"""
543 return _IMP_kinematics._object_cast_to_PrismaticJoint(*args)
544 _object_types.append(
"KinematicForest")
547 def _object_cast_to_KinematicForest(*args):
548 """_object_cast_to_KinematicForest(Object o) -> KinematicForest"""
549 return _IMP_kinematics._object_cast_to_KinematicForest(*args)
550 _object_types.append(
"CompositeJoint")
553 def _object_cast_to_CompositeJoint(*args):
554 """_object_cast_to_CompositeJoint(Object o) -> CompositeJoint"""
555 return _IMP_kinematics._object_cast_to_CompositeJoint(*args)
556 _object_types.append(
"DOF")
559 def _object_cast_to_DOF(*args):
560 """_object_cast_to_DOF(Object o) -> DOF"""
561 return _IMP_kinematics._object_cast_to_DOF(*args)
563 _plural_types.append(
"DOFValuesList")
564 _value_types.append(
"DOFValues")
567 _plural_types.append(
"DirectionalDOFs")
568 _value_types.append(
"DirectionalDOF")
570 _object_types.append(
"DOFsSampler")
573 def _object_cast_to_DOFsSampler(*args):
574 """_object_cast_to_DOFsSampler(Object o) -> DOFsSampler"""
575 return _IMP_kinematics._object_cast_to_DOFsSampler(*args)
576 _object_types.append(
"UniformBackboneSampler")
579 def _object_cast_to_UniformBackboneSampler(*args):
580 """_object_cast_to_UniformBackboneSampler(Object o) -> UniformBackboneSampler"""
581 return _IMP_kinematics._object_cast_to_UniformBackboneSampler(*args)
583 """Proxy of C++ IMP::kinematics::Joint class"""
584 __swig_setmethods__ = {}
585 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
586 __setattr__ =
lambda self, name, value: _swig_setattr(self, Joint, name, value)
587 __swig_getmethods__ = {}
588 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
589 __getattr__ =
lambda self, name: _swig_getattr(self, Joint, name)
590 def get_version_info(self):
591 """get_version_info(Joint self) -> VersionInfo"""
592 return _IMP_kinematics.Joint_get_version_info(self)
594 def __init__(self, *args):
595 """__init__(IMP::kinematics::Joint self, RigidBody parent, RigidBody child) -> Joint"""
596 this = _IMP_kinematics.new_Joint(*args)
597 try: self.this.append(this)
598 except: self.this = this
599 def get_owner_kf(self):
600 """get_owner_kf(Joint self) -> KinematicForest"""
601 return _IMP_kinematics.Joint_get_owner_kf(self)
603 def get_transformation_child_to_parent(self):
604 """get_transformation_child_to_parent(Joint self) -> Transformation3D"""
605 return _IMP_kinematics.Joint_get_transformation_child_to_parent(self)
607 def get_parent_node(self):
608 """get_parent_node(Joint self) -> RigidBody"""
609 return _IMP_kinematics.Joint_get_parent_node(self)
611 def get_child_node(self):
612 """get_child_node(Joint self) -> RigidBody"""
613 return _IMP_kinematics.Joint_get_child_node(self)
616 """__str__(Joint self) -> std::string"""
617 return _IMP_kinematics.Joint___str__(self)
620 """__repr__(Joint self) -> std::string"""
621 return _IMP_kinematics.Joint___repr__(self)
624 return _object_cast_to_Joint(o)
625 get_from = staticmethod(get_from)
627 Joint_swigregister = _IMP_kinematics.Joint_swigregister
628 Joint_swigregister(Joint)
630 class TransformationJoint(Joint):
631 """Proxy of C++ IMP::kinematics::TransformationJoint class"""
632 __swig_setmethods__ = {}
633 for _s
in [Joint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
634 __setattr__ =
lambda self, name, value: _swig_setattr(self, TransformationJoint, name, value)
635 __swig_getmethods__ = {}
636 for _s
in [Joint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
637 __getattr__ =
lambda self, name: _swig_getattr(self, TransformationJoint, name)
638 def __init__(self, *args):
639 """__init__(IMP::kinematics::TransformationJoint self, RigidBody parent, RigidBody child) -> TransformationJoint"""
640 this = _IMP_kinematics.new_TransformationJoint(*args)
641 try: self.this.append(this)
642 except: self.this = this
643 def set_transformation_child_to_parent(self, *args):
644 """set_transformation_child_to_parent(TransformationJoint self, Transformation3D transformation)"""
645 return _IMP_kinematics.TransformationJoint_set_transformation_child_to_parent(self, *args)
648 """__str__(TransformationJoint self) -> std::string"""
649 return _IMP_kinematics.TransformationJoint___str__(self)
652 """__repr__(TransformationJoint self) -> std::string"""
653 return _IMP_kinematics.TransformationJoint___repr__(self)
656 return _object_cast_to_TransformationJoint(o)
657 get_from = staticmethod(get_from)
659 __swig_destroy__ = _IMP_kinematics.delete_TransformationJoint
660 __del__ =
lambda self :
None;
661 TransformationJoint_swigregister = _IMP_kinematics.TransformationJoint_swigregister
662 TransformationJoint_swigregister(TransformationJoint)
664 class PrismaticJoint(Joint):
665 """Proxy of C++ IMP::kinematics::PrismaticJoint class"""
666 __swig_setmethods__ = {}
667 for _s
in [Joint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
668 __setattr__ =
lambda self, name, value: _swig_setattr(self, PrismaticJoint, name, value)
669 __swig_getmethods__ = {}
670 for _s
in [Joint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
671 __getattr__ =
lambda self, name: _swig_getattr(self, PrismaticJoint, name)
672 def __init__(self, *args):
674 __init__(IMP::kinematics::PrismaticJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b) -> PrismaticJoint
675 __init__(IMP::kinematics::PrismaticJoint self, RigidBody parent, RigidBody child) -> PrismaticJoint
677 this = _IMP_kinematics.new_PrismaticJoint(*args)
678 try: self.this.append(this)
679 except: self.this = this
680 def get_length(self):
681 """get_length(PrismaticJoint self) -> double"""
682 return _IMP_kinematics.PrismaticJoint_get_length(self)
684 def set_length(self, *args):
685 """set_length(PrismaticJoint self, double l)"""
686 return _IMP_kinematics.PrismaticJoint_set_length(self, *args)
689 """__str__(PrismaticJoint self) -> std::string"""
690 return _IMP_kinematics.PrismaticJoint___str__(self)
693 """__repr__(PrismaticJoint self) -> std::string"""
694 return _IMP_kinematics.PrismaticJoint___repr__(self)
697 return _object_cast_to_PrismaticJoint(o)
698 get_from = staticmethod(get_from)
700 __swig_destroy__ = _IMP_kinematics.delete_PrismaticJoint
701 __del__ =
lambda self :
None;
702 PrismaticJoint_swigregister = _IMP_kinematics.PrismaticJoint_swigregister
703 PrismaticJoint_swigregister(PrismaticJoint)
705 class CompositeJoint(Joint):
706 """Proxy of C++ IMP::kinematics::CompositeJoint class"""
707 __swig_setmethods__ = {}
708 for _s
in [Joint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
709 __setattr__ =
lambda self, name, value: _swig_setattr(self, CompositeJoint, name, value)
710 __swig_getmethods__ = {}
711 for _s
in [Joint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
712 __getattr__ =
lambda self, name: _swig_getattr(self, CompositeJoint, name)
713 def __init__(self, *args):
715 __init__(IMP::kinematics::CompositeJoint self, RigidBody parent, RigidBody child, IMP::kinematics::Joints joints=IMP::kinematics::Joints()) -> CompositeJoint
716 __init__(IMP::kinematics::CompositeJoint self, RigidBody parent, RigidBody child) -> CompositeJoint
718 this = _IMP_kinematics.new_CompositeJoint(*args)
719 try: self.this.append(this)
720 except: self.this = this
721 def add_downstream_joint(self, *args):
722 """add_downstream_joint(CompositeJoint self, Joint j)"""
723 return _IMP_kinematics.CompositeJoint_add_downstream_joint(self, *args)
725 def add_upstream_joint(self, *args):
726 """add_upstream_joint(CompositeJoint self, Joint j)"""
727 return _IMP_kinematics.CompositeJoint_add_upstream_joint(self, *args)
729 def set_joints(self, *args):
730 """set_joints(CompositeJoint self, IMP::kinematics::Joints joints)"""
731 return _IMP_kinematics.CompositeJoint_set_joints(self, *args)
733 def get_inner_joints(self):
734 """get_inner_joints(CompositeJoint self) -> IMP::kinematics::Joints const &"""
735 return _IMP_kinematics.CompositeJoint_get_inner_joints(self)
738 """__str__(CompositeJoint self) -> std::string"""
739 return _IMP_kinematics.CompositeJoint___str__(self)
742 """__repr__(CompositeJoint self) -> std::string"""
743 return _IMP_kinematics.CompositeJoint___repr__(self)
746 return _object_cast_to_CompositeJoint(o)
747 get_from = staticmethod(get_from)
749 __swig_destroy__ = _IMP_kinematics.delete_CompositeJoint
750 __del__ =
lambda self :
None;
751 CompositeJoint_swigregister = _IMP_kinematics.CompositeJoint_swigregister
752 CompositeJoint_swigregister(CompositeJoint)
754 class RevoluteJoint(Joint):
755 """Proxy of C++ IMP::kinematics::RevoluteJoint class"""
756 __swig_setmethods__ = {}
757 for _s
in [Joint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
758 __setattr__ =
lambda self, name, value: _swig_setattr(self, RevoluteJoint, name, value)
759 __swig_getmethods__ = {}
760 for _s
in [Joint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
761 __getattr__ =
lambda self, name: _swig_getattr(self, RevoluteJoint, name)
762 def __init__(self, *args):
763 """__init__(IMP::kinematics::RevoluteJoint self, RigidBody parent, RigidBody child) -> RevoluteJoint"""
764 if self.__class__ == RevoluteJoint:
768 this = _IMP_kinematics.new_RevoluteJoint(_self, *args)
769 try: self.this.append(this)
770 except: self.this = this
771 if self.__class__ != RevoluteJoint:
773 IMP.base._director_objects.register(self)
777 __swig_destroy__ = _IMP_kinematics.delete_RevoluteJoint
778 __del__ =
lambda self :
None;
779 def set_angle(self, *args):
780 """set_angle(RevoluteJoint self, double angle)"""
781 return _IMP_kinematics.RevoluteJoint_set_angle(self, *args)
784 """get_angle(RevoluteJoint self) -> double"""
785 return _IMP_kinematics.RevoluteJoint_get_angle(self)
787 def get_rot_axis_origin(self):
788 """get_rot_axis_origin(RevoluteJoint self) -> Vector3D"""
789 return _IMP_kinematics.RevoluteJoint_get_rot_axis_origin(self)
791 def get_rot_axis_unit_vector(self):
792 """get_rot_axis_unit_vector(RevoluteJoint self) -> Vector3D"""
793 return _IMP_kinematics.RevoluteJoint_get_rot_axis_unit_vector(self)
795 def update_child_node_reference_frame(self):
796 """update_child_node_reference_frame(RevoluteJoint self)"""
797 return _IMP_kinematics.RevoluteJoint_update_child_node_reference_frame(self)
799 def update_axis_of_rotation_from_cartesian_witnesses(self):
800 """update_axis_of_rotation_from_cartesian_witnesses(RevoluteJoint self)"""
801 return _IMP_kinematics.RevoluteJoint_update_axis_of_rotation_from_cartesian_witnesses(self)
803 def get_current_angle_from_cartesian_witnesses(self):
804 """get_current_angle_from_cartesian_witnesses(RevoluteJoint self) -> double"""
805 return _IMP_kinematics.RevoluteJoint_get_current_angle_from_cartesian_witnesses(self)
807 def update_joint_from_cartesian_witnesses(self):
808 """update_joint_from_cartesian_witnesses(RevoluteJoint self)"""
809 return _IMP_kinematics.RevoluteJoint_update_joint_from_cartesian_witnesses(self)
811 def get_rotation_about_joint_in_parent_coordinates(self):
812 """get_rotation_about_joint_in_parent_coordinates(RevoluteJoint self) -> Transformation3D"""
813 return _IMP_kinematics.RevoluteJoint_get_rotation_about_joint_in_parent_coordinates(self)
815 __swig_setmethods__[
"angle_"] = _IMP_kinematics.RevoluteJoint_angle__set
816 __swig_getmethods__[
"angle_"] = _IMP_kinematics.RevoluteJoint_angle__get
817 if _newclass:angle_ = _swig_property(_IMP_kinematics.RevoluteJoint_angle__get, _IMP_kinematics.RevoluteJoint_angle__set)
818 __swig_setmethods__[
"last_updated_angle_"] = _IMP_kinematics.RevoluteJoint_last_updated_angle__set
819 __swig_getmethods__[
"last_updated_angle_"] = _IMP_kinematics.RevoluteJoint_last_updated_angle__get
820 if _newclass:last_updated_angle_ = _swig_property(_IMP_kinematics.RevoluteJoint_last_updated_angle__get, _IMP_kinematics.RevoluteJoint_last_updated_angle__set)
821 __swig_setmethods__[
"rot_axis_unit_vector_"] = _IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__set
822 __swig_getmethods__[
"rot_axis_unit_vector_"] = _IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__get
823 if _newclass:rot_axis_unit_vector_ = _swig_property(_IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__get, _IMP_kinematics.RevoluteJoint_rot_axis_unit_vector__set)
824 __swig_setmethods__[
"rot_axis_origin_"] = _IMP_kinematics.RevoluteJoint_rot_axis_origin__set
825 __swig_getmethods__[
"rot_axis_origin_"] = _IMP_kinematics.RevoluteJoint_rot_axis_origin__get
826 if _newclass:rot_axis_origin_ = _swig_property(_IMP_kinematics.RevoluteJoint_rot_axis_origin__get, _IMP_kinematics.RevoluteJoint_rot_axis_origin__set)
828 """__str__(RevoluteJoint self) -> std::string"""
829 return _IMP_kinematics.RevoluteJoint___str__(self)
832 """__repr__(RevoluteJoint self) -> std::string"""
833 return _IMP_kinematics.RevoluteJoint___repr__(self)
836 return _object_cast_to_RevoluteJoint(o)
837 get_from = staticmethod(get_from)
839 def get_type_name(self):
840 return self.__class__.__name__
841 def do_show(self, out):
843 def get_version_info(self):
844 if"IMP::kinematics" ==
"IMP":
845 return VersionInfo(
"python",
"0")
847 return IMP.VersionInfo(
"python",
"0")
849 return _object_cast_to_RevoluteJoint(o)
850 get_from = staticmethod(get_from)
852 def __disown__(self):
854 _IMP_kinematics.disown_RevoluteJoint(self)
855 return weakref_proxy(self)
856 def do_destroy(self):
857 """do_destroy(RevoluteJoint self)"""
858 return _IMP_kinematics.RevoluteJoint_do_destroy(self)
860 RevoluteJoint_swigregister = _IMP_kinematics.RevoluteJoint_swigregister
861 RevoluteJoint_swigregister(RevoluteJoint)
863 class DihedralAngleRevoluteJoint(RevoluteJoint):
864 """Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class"""
865 __swig_setmethods__ = {}
866 for _s
in [RevoluteJoint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
867 __setattr__ =
lambda self, name, value: _swig_setattr(self, DihedralAngleRevoluteJoint, name, value)
868 __swig_getmethods__ = {}
869 for _s
in [RevoluteJoint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
870 __getattr__ =
lambda self, name: _swig_getattr(self, DihedralAngleRevoluteJoint, name)
871 def __init__(self, *args):
872 """__init__(IMP::kinematics::DihedralAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c, XYZ d) -> DihedralAngleRevoluteJoint"""
873 this = _IMP_kinematics.new_DihedralAngleRevoluteJoint(*args)
874 try: self.this.append(this)
875 except: self.this = this
877 """__str__(DihedralAngleRevoluteJoint self) -> std::string"""
878 return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
881 """__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
882 return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
885 return _object_cast_to_DihedralAngleRevoluteJoint(o)
886 get_from = staticmethod(get_from)
888 __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
889 __del__ =
lambda self :
None;
890 DihedralAngleRevoluteJoint_swigregister = _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister
891 DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
893 class BondAngleRevoluteJoint(RevoluteJoint):
894 """Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class"""
895 __swig_setmethods__ = {}
896 for _s
in [RevoluteJoint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
897 __setattr__ =
lambda self, name, value: _swig_setattr(self, BondAngleRevoluteJoint, name, value)
898 __swig_getmethods__ = {}
899 for _s
in [RevoluteJoint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
900 __getattr__ =
lambda self, name: _swig_getattr(self, BondAngleRevoluteJoint, name)
901 def __init__(self, *args):
902 """__init__(IMP::kinematics::BondAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c) -> BondAngleRevoluteJoint"""
903 this = _IMP_kinematics.new_BondAngleRevoluteJoint(*args)
904 try: self.this.append(this)
905 except: self.this = this
907 """__str__(BondAngleRevoluteJoint self) -> std::string"""
908 return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
911 """__repr__(BondAngleRevoluteJoint self) -> std::string"""
912 return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
915 return _object_cast_to_BondAngleRevoluteJoint(o)
916 get_from = staticmethod(get_from)
918 __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
919 __del__ =
lambda self :
None;
920 BondAngleRevoluteJoint_swigregister = _IMP_kinematics.BondAngleRevoluteJoint_swigregister
921 BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
924 """Proxy of C++ IMP::kinematics::KinematicForest class"""
925 __swig_setmethods__ = {}
926 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
927 __setattr__ =
lambda self, name, value: _swig_setattr(self, KinematicForest, name, value)
928 __swig_getmethods__ = {}
929 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
930 __getattr__ =
lambda self, name: _swig_getattr(self, KinematicForest, name)
931 def get_version_info(self):
932 """get_version_info(KinematicForest self) -> VersionInfo"""
933 return _IMP_kinematics.KinematicForest_get_version_info(self)
935 def __init__(self, *args):
937 __init__(IMP::kinematics::KinematicForest self, Model m) -> KinematicForest
938 __init__(IMP::kinematics::KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
940 this = _IMP_kinematics.new_KinematicForest(*args)
941 try: self.this.append(this)
942 except: self.this = this
943 def add_edge(self, *args):
945 add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
946 add_edge(KinematicForest self, Joint joint)
948 return _IMP_kinematics.KinematicForest_add_edge(self, *args)
950 def add_rigid_bodies_in_chain(self, *args):
951 """add_rigid_bodies_in_chain(KinematicForest self, IMP::core::RigidBodies rbs)"""
952 return _IMP_kinematics.KinematicForest_add_rigid_bodies_in_chain(self, *args)
954 def reset_root(self, *args):
955 """reset_root(KinematicForest self, Particle new_root)"""
956 return _IMP_kinematics.KinematicForest_reset_root(self, *args)
958 def update_all_internal_coordinates(self):
959 """update_all_internal_coordinates(KinematicForest self)"""
960 return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
962 def update_all_external_coordinates(self):
963 """update_all_external_coordinates(KinematicForest self)"""
964 return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
966 def get_ordered_joints(self):
967 """get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
968 return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
970 def mark_internal_coordinates_changed(self):
971 """mark_internal_coordinates_changed(KinematicForest self)"""
972 return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
974 def mark_external_coordinates_changed(self):
975 """mark_external_coordinates_changed(KinematicForest self)"""
976 return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
978 def set_coordinates_safe(self, *args):
979 """set_coordinates_safe(KinematicForest self, RigidBody rb, Vector3D c)"""
980 return _IMP_kinematics.KinematicForest_set_coordinates_safe(self, *args)
982 def get_coordinates_safe(self, *args):
983 """get_coordinates_safe(KinematicForest self, RigidBody rb) -> Vector3D"""
984 return _IMP_kinematics.KinematicForest_get_coordinates_safe(self, *args)
986 def get_is_member(self, *args):
987 """get_is_member(KinematicForest self, RigidBody rb) -> bool"""
988 return _IMP_kinematics.KinematicForest_get_is_member(self, *args)
990 def get_reference_frame_safe(self, *args):
991 """get_reference_frame_safe(KinematicForest self, RigidBody rb) -> ReferenceFrame3D"""
992 return _IMP_kinematics.KinematicForest_get_reference_frame_safe(self, *args)
994 def set_reference_frame_safe(self, *args):
995 """set_reference_frame_safe(KinematicForest self, RigidBody rb, ReferenceFrame3D r)"""
996 return _IMP_kinematics.KinematicForest_set_reference_frame_safe(self, *args)
999 """__str__(KinematicForest self) -> std::string"""
1000 return _IMP_kinematics.KinematicForest___str__(self)
1003 """__repr__(KinematicForest self) -> std::string"""
1004 return _IMP_kinematics.KinematicForest___repr__(self)
1007 return _object_cast_to_KinematicForest(o)
1008 get_from = staticmethod(get_from)
1010 KinematicForest_swigregister = _IMP_kinematics.KinematicForest_swigregister
1011 KinematicForest_swigregister(KinematicForest)
1014 """Proxy of C++ IMP::kinematics::DOF class"""
1015 __swig_setmethods__ = {}
1016 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1017 __setattr__ =
lambda self, name, value: _swig_setattr(self, DOF, name, value)
1018 __swig_getmethods__ = {}
1019 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1020 __getattr__ =
lambda self, name: _swig_getattr(self, DOF, name)
1021 def get_version_info(self):
1022 """get_version_info(DOF self) -> VersionInfo"""
1023 return _IMP_kinematics.DOF_get_version_info(self)
1025 def __init__(self, *args):
1027 __init__(IMP::kinematics::DOF self, double v) -> DOF
1028 __init__(IMP::kinematics::DOF self, double v, double min, double max, double step_size) -> DOF
1030 this = _IMP_kinematics.new_DOF(*args)
1031 try: self.this.append(this)
1032 except: self.this = this
1033 def get_value(self):
1034 """get_value(DOF self) -> double"""
1035 return _IMP_kinematics.DOF_get_value(self)
1037 def set_value(self, *args):
1038 """set_value(DOF self, double v)"""
1039 return _IMP_kinematics.DOF_set_value(self, *args)
1041 def get_range(self):
1042 """get_range(DOF self) -> std::pair< double,double >"""
1043 return _IMP_kinematics.DOF_get_range(self)
1045 def set_range(self, *args):
1046 """set_range(DOF self, std::pair< double,double > range)"""
1047 return _IMP_kinematics.DOF_set_range(self, *args)
1049 def get_step_size(self):
1050 """get_step_size(DOF self) -> double"""
1051 return _IMP_kinematics.DOF_get_step_size(self)
1053 def set_step_size(self, *args):
1054 """set_step_size(DOF self, double step_size)"""
1055 return _IMP_kinematics.DOF_set_step_size(self, *args)
1057 def get_number_of_steps(self, *args):
1059 get_number_of_steps(DOF self, double value) -> int
1060 get_number_of_steps(DOF self, double value1, double value2) -> int
1062 return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1065 """__str__(DOF self) -> std::string"""
1066 return _IMP_kinematics.DOF___str__(self)
1069 """__repr__(DOF self) -> std::string"""
1070 return _IMP_kinematics.DOF___repr__(self)
1073 return _object_cast_to_DOF(o)
1074 get_from = staticmethod(get_from)
1076 DOF_swigregister = _IMP_kinematics.DOF_swigregister
1077 DOF_swigregister(DOF)
1079 class DOFValues(VectorOfDoubles):
1080 """Proxy of C++ IMP::kinematics::DOFValues class"""
1081 __swig_setmethods__ = {}
1082 for _s
in [VectorOfDoubles]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1083 __setattr__ =
lambda self, name, value: _swig_setattr(self, DOFValues, name, value)
1084 __swig_getmethods__ = {}
1085 for _s
in [VectorOfDoubles]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1086 __getattr__ =
lambda self, name: _swig_getattr(self, DOFValues, name)
1087 def __init__(self, *args):
1089 __init__(IMP::kinematics::DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1090 __init__(IMP::kinematics::DOFValues self) -> DOFValues
1092 this = _IMP_kinematics.new_DOFValues(*args)
1093 try: self.this.append(this)
1094 except: self.this = this
1095 def get_distance2(self, *args):
1096 """get_distance2(DOFValues self, DOFValues other_dof_values) -> double"""
1097 return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1100 """get_distance(DOFValues self, DOFValues other_dof_values) -> double"""
1101 return _IMP_kinematics.DOFValues_get_distance(self, *args)
1103 def show(self, *args):
1105 show(DOFValues self, _ostream out=std::cout)
1106 show(DOFValues self)
1108 return _IMP_kinematics.DOFValues_show(self, *args)
1111 """__str__(DOFValues self) -> std::string"""
1112 return _IMP_kinematics.DOFValues___str__(self)
1115 """__repr__(DOFValues self) -> std::string"""
1116 return _IMP_kinematics.DOFValues___repr__(self)
1118 __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1119 __del__ =
lambda self :
None;
1120 DOFValues_swigregister = _IMP_kinematics.DOFValues_swigregister
1121 DOFValues_swigregister(DOFValues)
1123 class DirectionalDOF(_object):
1124 """Proxy of C++ IMP::kinematics::DirectionalDOF class"""
1125 __swig_setmethods__ = {}
1126 __setattr__ =
lambda self, name, value: _swig_setattr(self, DirectionalDOF, name, value)
1127 __swig_getmethods__ = {}
1128 __getattr__ =
lambda self, name: _swig_getattr(self, DirectionalDOF, name)
1129 def __init__(self, *args):
1130 """__init__(IMP::kinematics::DirectionalDOF self, IMP::kinematics::DOFs const & dofs) -> DirectionalDOF"""
1131 this = _IMP_kinematics.new_DirectionalDOF(*args)
1132 try: self.this.append(this)
1133 except: self.this = this
1134 def set_end_points(self, *args):
1135 """set_end_points(DirectionalDOF self, DOFValues q1, DOFValues q2)"""
1136 return _IMP_kinematics.DirectionalDOF_set_end_points(self, *args)
1138 def get_dofs_values(self):
1139 """get_dofs_values(DirectionalDOF self) -> DOFValues"""
1140 return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1142 def get_value(self):
1143 """get_value(DirectionalDOF self) -> double"""
1144 return _IMP_kinematics.DirectionalDOF_get_value(self)
1146 def show(self, *args):
1148 show(DirectionalDOF self, _ostream out=std::cout)
1149 show(DirectionalDOF self)
1151 return _IMP_kinematics.DirectionalDOF_show(self, *args)
1154 """__str__(DirectionalDOF self) -> std::string"""
1155 return _IMP_kinematics.DirectionalDOF___str__(self)
1158 """__repr__(DirectionalDOF self) -> std::string"""
1159 return _IMP_kinematics.DirectionalDOF___repr__(self)
1161 __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1162 __del__ =
lambda self :
None;
1163 DirectionalDOF_swigregister = _IMP_kinematics.DirectionalDOF_swigregister
1164 DirectionalDOF_swigregister(DirectionalDOF)
1167 """Proxy of C++ IMP::kinematics::DOFsSampler class"""
1168 __swig_setmethods__ = {}
1169 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1170 __setattr__ =
lambda self, name, value: _swig_setattr(self, DOFsSampler, name, value)
1171 __swig_getmethods__ = {}
1172 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1173 __getattr__ =
lambda self, name: _swig_getattr(self, DOFsSampler, name)
1174 def get_type_name(self):
1175 """get_type_name(DOFsSampler self) -> std::string"""
1176 return _IMP_kinematics.DOFsSampler_get_type_name(self)
1178 def get_version_info(self):
1179 """get_version_info(DOFsSampler self) -> VersionInfo"""
1180 return _IMP_kinematics.DOFsSampler_get_version_info(self)
1182 def __init__(self, *args):
1183 """__init__(IMP::kinematics::DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1184 if self.__class__ == DOFsSampler:
1188 this = _IMP_kinematics.new_DOFsSampler(_self, *args)
1189 try: self.this.append(this)
1190 except: self.this = this
1191 if self.__class__ != DOFsSampler:
1193 IMP.base._director_objects.register(self)
1197 def get_sample(self):
1198 """get_sample(DOFsSampler self) -> DOFValues"""
1199 return _IMP_kinematics.DOFsSampler_get_sample(self)
1201 def apply(self, *args):
1202 """apply(DOFsSampler self, DOFValues values)"""
1203 return _IMP_kinematics.DOFsSampler_apply(self, *args)
1205 def apply_last_sample(self):
1206 """apply_last_sample(DOFsSampler self)"""
1207 return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1209 def sample_and_apply(self):
1210 """sample_and_apply(DOFsSampler self)"""
1211 return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1214 """get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1215 return _IMP_kinematics.DOFsSampler_get_dofs(self)
1217 def get_dof(self, *args):
1218 """get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1219 return _IMP_kinematics.DOFsSampler_get_dof(self, *args)
1221 def get_number_of_dofs(self):
1222 """get_number_of_dofs(DOFsSampler self) -> unsigned int"""
1223 return _IMP_kinematics.DOFsSampler_get_number_of_dofs(self)
1225 def do_get_sample(self):
1226 """do_get_sample(DOFsSampler self) -> DOFValues"""
1227 return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1230 """__str__(DOFsSampler self) -> std::string"""
1231 return _IMP_kinematics.DOFsSampler___str__(self)
1234 """__repr__(DOFsSampler self) -> std::string"""
1235 return _IMP_kinematics.DOFsSampler___repr__(self)
1238 return _object_cast_to_DOFsSampler(o)
1239 get_from = staticmethod(get_from)
1241 def get_type_name(self):
1242 return self.__class__.__name__
1243 def do_show(self, out):
1245 def get_version_info(self):
1246 if"IMP::kinematics" ==
"IMP":
1247 return VersionInfo(
"python",
"0")
1249 return IMP.VersionInfo(
"python",
"0")
1251 return _object_cast_to_DOFsSampler(o)
1252 get_from = staticmethod(get_from)
1254 def __disown__(self):
1256 _IMP_kinematics.disown_DOFsSampler(self)
1257 return weakref_proxy(self)
1258 def do_destroy(self):
1259 """do_destroy(DOFsSampler self)"""
1260 return _IMP_kinematics.DOFsSampler_do_destroy(self)
1262 DOFsSampler_swigregister = _IMP_kinematics.DOFsSampler_swigregister
1263 DOFsSampler_swigregister(DOFsSampler)
1265 class UniformBackboneSampler(DOFsSampler):
1266 """Proxy of C++ IMP::kinematics::UniformBackboneSampler class"""
1267 __swig_setmethods__ = {}
1268 for _s
in [DOFsSampler]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1269 __setattr__ =
lambda self, name, value: _swig_setattr(self, UniformBackboneSampler, name, value)
1270 __swig_getmethods__ = {}
1271 for _s
in [DOFsSampler]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1272 __getattr__ =
lambda self, name: _swig_getattr(self, UniformBackboneSampler, name)
1273 def __init__(self, *args):
1274 """__init__(IMP::kinematics::UniformBackboneSampler self, IMP::kinematics::DihedralAngleRevoluteJoints joints, IMP::kinematics::DOFs dofs) -> UniformBackboneSampler"""
1275 this = _IMP_kinematics.new_UniformBackboneSampler(*args)
1276 try: self.this.append(this)
1277 except: self.this = this
1279 """__str__(UniformBackboneSampler self) -> std::string"""
1280 return _IMP_kinematics.UniformBackboneSampler___str__(self)
1283 """__repr__(UniformBackboneSampler self) -> std::string"""
1284 return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1287 return _object_cast_to_UniformBackboneSampler(o)
1288 get_from = staticmethod(get_from)
1290 __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1291 __del__ =
lambda self :
None;
1292 UniformBackboneSampler_swigregister = _IMP_kinematics.UniformBackboneSampler_swigregister
1293 UniformBackboneSampler_swigregister(UniformBackboneSampler)
1296 def get_module_version():
1297 """get_module_version() -> std::string const"""
1298 return _IMP_kinematics.get_module_version()
1301 """get_example_path(std::string fname) -> std::string"""
1302 return _IMP_kinematics.get_example_path(*args)
1305 """get_data_path(std::string fname) -> std::string"""
1306 return _IMP_kinematics.get_data_path(*args)
1307 import _version_check
1308 _version_check.check_version(get_module_version())
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
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.
CheckLevel get_check_level()
Get the current audit mode.
Functionality for loading, creating, manipulating and scoring atomic structures.