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 RevoluteJoint_swigregister = _IMP_kinematics.RevoluteJoint_swigregister
857 RevoluteJoint_swigregister(RevoluteJoint)
859 class DihedralAngleRevoluteJoint(RevoluteJoint):
860 """Proxy of C++ IMP::kinematics::DihedralAngleRevoluteJoint class"""
861 __swig_setmethods__ = {}
862 for _s
in [RevoluteJoint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
863 __setattr__ =
lambda self, name, value: _swig_setattr(self, DihedralAngleRevoluteJoint, name, value)
864 __swig_getmethods__ = {}
865 for _s
in [RevoluteJoint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
866 __getattr__ =
lambda self, name: _swig_getattr(self, DihedralAngleRevoluteJoint, name)
867 def __init__(self, *args):
868 """__init__(IMP::kinematics::DihedralAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c, XYZ d) -> DihedralAngleRevoluteJoint"""
869 this = _IMP_kinematics.new_DihedralAngleRevoluteJoint(*args)
870 try: self.this.append(this)
871 except: self.this = this
873 """__str__(DihedralAngleRevoluteJoint self) -> std::string"""
874 return _IMP_kinematics.DihedralAngleRevoluteJoint___str__(self)
877 """__repr__(DihedralAngleRevoluteJoint self) -> std::string"""
878 return _IMP_kinematics.DihedralAngleRevoluteJoint___repr__(self)
881 return _object_cast_to_DihedralAngleRevoluteJoint(o)
882 get_from = staticmethod(get_from)
884 __swig_destroy__ = _IMP_kinematics.delete_DihedralAngleRevoluteJoint
885 __del__ =
lambda self :
None;
886 DihedralAngleRevoluteJoint_swigregister = _IMP_kinematics.DihedralAngleRevoluteJoint_swigregister
887 DihedralAngleRevoluteJoint_swigregister(DihedralAngleRevoluteJoint)
889 class BondAngleRevoluteJoint(RevoluteJoint):
890 """Proxy of C++ IMP::kinematics::BondAngleRevoluteJoint class"""
891 __swig_setmethods__ = {}
892 for _s
in [RevoluteJoint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
893 __setattr__ =
lambda self, name, value: _swig_setattr(self, BondAngleRevoluteJoint, name, value)
894 __swig_getmethods__ = {}
895 for _s
in [RevoluteJoint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
896 __getattr__ =
lambda self, name: _swig_getattr(self, BondAngleRevoluteJoint, name)
897 def __init__(self, *args):
898 """__init__(IMP::kinematics::BondAngleRevoluteJoint self, RigidBody parent, RigidBody child, XYZ a, XYZ b, XYZ c) -> BondAngleRevoluteJoint"""
899 this = _IMP_kinematics.new_BondAngleRevoluteJoint(*args)
900 try: self.this.append(this)
901 except: self.this = this
903 """__str__(BondAngleRevoluteJoint self) -> std::string"""
904 return _IMP_kinematics.BondAngleRevoluteJoint___str__(self)
907 """__repr__(BondAngleRevoluteJoint self) -> std::string"""
908 return _IMP_kinematics.BondAngleRevoluteJoint___repr__(self)
911 return _object_cast_to_BondAngleRevoluteJoint(o)
912 get_from = staticmethod(get_from)
914 __swig_destroy__ = _IMP_kinematics.delete_BondAngleRevoluteJoint
915 __del__ =
lambda self :
None;
916 BondAngleRevoluteJoint_swigregister = _IMP_kinematics.BondAngleRevoluteJoint_swigregister
917 BondAngleRevoluteJoint_swigregister(BondAngleRevoluteJoint)
920 """Proxy of C++ IMP::kinematics::KinematicForest class"""
921 __swig_setmethods__ = {}
922 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
923 __setattr__ =
lambda self, name, value: _swig_setattr(self, KinematicForest, name, value)
924 __swig_getmethods__ = {}
925 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
926 __getattr__ =
lambda self, name: _swig_getattr(self, KinematicForest, name)
927 def get_version_info(self):
928 """get_version_info(KinematicForest self) -> VersionInfo"""
929 return _IMP_kinematics.KinematicForest_get_version_info(self)
931 def __init__(self, *args):
933 __init__(IMP::kinematics::KinematicForest self, Model m) -> KinematicForest
934 __init__(IMP::kinematics::KinematicForest self, Model m, Hierarchy hierarchy) -> KinematicForest
936 this = _IMP_kinematics.new_KinematicForest(*args)
937 try: self.this.append(this)
938 except: self.this = this
939 def add_edge(self, *args):
941 add_edge(KinematicForest self, RigidBody parent, RigidBody child) -> Joint
942 add_edge(KinematicForest self, Joint joint)
944 return _IMP_kinematics.KinematicForest_add_edge(self, *args)
946 def add_rigid_bodies_in_chain(self, *args):
947 """add_rigid_bodies_in_chain(KinematicForest self, IMP::core::RigidBodies rbs)"""
948 return _IMP_kinematics.KinematicForest_add_rigid_bodies_in_chain(self, *args)
950 def reset_root(self, *args):
951 """reset_root(KinematicForest self, Particle new_root)"""
952 return _IMP_kinematics.KinematicForest_reset_root(self, *args)
954 def update_all_internal_coordinates(self):
955 """update_all_internal_coordinates(KinematicForest self)"""
956 return _IMP_kinematics.KinematicForest_update_all_internal_coordinates(self)
958 def update_all_external_coordinates(self):
959 """update_all_external_coordinates(KinematicForest self)"""
960 return _IMP_kinematics.KinematicForest_update_all_external_coordinates(self)
962 def get_ordered_joints(self):
963 """get_ordered_joints(KinematicForest self) -> IMP::kinematics::Joints"""
964 return _IMP_kinematics.KinematicForest_get_ordered_joints(self)
966 def mark_internal_coordinates_changed(self):
967 """mark_internal_coordinates_changed(KinematicForest self)"""
968 return _IMP_kinematics.KinematicForest_mark_internal_coordinates_changed(self)
970 def mark_external_coordinates_changed(self):
971 """mark_external_coordinates_changed(KinematicForest self)"""
972 return _IMP_kinematics.KinematicForest_mark_external_coordinates_changed(self)
974 def set_coordinates_safe(self, *args):
975 """set_coordinates_safe(KinematicForest self, RigidBody rb, Vector3D c)"""
976 return _IMP_kinematics.KinematicForest_set_coordinates_safe(self, *args)
978 def get_coordinates_safe(self, *args):
979 """get_coordinates_safe(KinematicForest self, RigidBody rb) -> Vector3D"""
980 return _IMP_kinematics.KinematicForest_get_coordinates_safe(self, *args)
982 def get_is_member(self, *args):
983 """get_is_member(KinematicForest self, RigidBody rb) -> bool"""
984 return _IMP_kinematics.KinematicForest_get_is_member(self, *args)
986 def get_reference_frame_safe(self, *args):
987 """get_reference_frame_safe(KinematicForest self, RigidBody rb) -> ReferenceFrame3D"""
988 return _IMP_kinematics.KinematicForest_get_reference_frame_safe(self, *args)
990 def set_reference_frame_safe(self, *args):
991 """set_reference_frame_safe(KinematicForest self, RigidBody rb, ReferenceFrame3D r)"""
992 return _IMP_kinematics.KinematicForest_set_reference_frame_safe(self, *args)
995 """__str__(KinematicForest self) -> std::string"""
996 return _IMP_kinematics.KinematicForest___str__(self)
999 """__repr__(KinematicForest self) -> std::string"""
1000 return _IMP_kinematics.KinematicForest___repr__(self)
1003 return _object_cast_to_KinematicForest(o)
1004 get_from = staticmethod(get_from)
1006 KinematicForest_swigregister = _IMP_kinematics.KinematicForest_swigregister
1007 KinematicForest_swigregister(KinematicForest)
1010 """Proxy of C++ IMP::kinematics::DOF class"""
1011 __swig_setmethods__ = {}
1012 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1013 __setattr__ =
lambda self, name, value: _swig_setattr(self, DOF, name, value)
1014 __swig_getmethods__ = {}
1015 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1016 __getattr__ =
lambda self, name: _swig_getattr(self, DOF, name)
1017 def get_version_info(self):
1018 """get_version_info(DOF self) -> VersionInfo"""
1019 return _IMP_kinematics.DOF_get_version_info(self)
1021 def __init__(self, *args):
1023 __init__(IMP::kinematics::DOF self, double v) -> DOF
1024 __init__(IMP::kinematics::DOF self, double v, double min, double max, double step_size) -> DOF
1026 this = _IMP_kinematics.new_DOF(*args)
1027 try: self.this.append(this)
1028 except: self.this = this
1029 def get_value(self):
1030 """get_value(DOF self) -> double"""
1031 return _IMP_kinematics.DOF_get_value(self)
1033 def set_value(self, *args):
1034 """set_value(DOF self, double v)"""
1035 return _IMP_kinematics.DOF_set_value(self, *args)
1037 def get_range(self):
1038 """get_range(DOF self) -> std::pair< double,double >"""
1039 return _IMP_kinematics.DOF_get_range(self)
1041 def set_range(self, *args):
1042 """set_range(DOF self, std::pair< double,double > range)"""
1043 return _IMP_kinematics.DOF_set_range(self, *args)
1045 def get_step_size(self):
1046 """get_step_size(DOF self) -> double"""
1047 return _IMP_kinematics.DOF_get_step_size(self)
1049 def set_step_size(self, *args):
1050 """set_step_size(DOF self, double step_size)"""
1051 return _IMP_kinematics.DOF_set_step_size(self, *args)
1053 def get_number_of_steps(self, *args):
1055 get_number_of_steps(DOF self, double value) -> int
1056 get_number_of_steps(DOF self, double value1, double value2) -> int
1058 return _IMP_kinematics.DOF_get_number_of_steps(self, *args)
1061 """__str__(DOF self) -> std::string"""
1062 return _IMP_kinematics.DOF___str__(self)
1065 """__repr__(DOF self) -> std::string"""
1066 return _IMP_kinematics.DOF___repr__(self)
1069 return _object_cast_to_DOF(o)
1070 get_from = staticmethod(get_from)
1072 DOF_swigregister = _IMP_kinematics.DOF_swigregister
1073 DOF_swigregister(DOF)
1075 class DOFValues(VectorOfDoubles):
1076 """Proxy of C++ IMP::kinematics::DOFValues class"""
1077 __swig_setmethods__ = {}
1078 for _s
in [VectorOfDoubles]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1079 __setattr__ =
lambda self, name, value: _swig_setattr(self, DOFValues, name, value)
1080 __swig_getmethods__ = {}
1081 for _s
in [VectorOfDoubles]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1082 __getattr__ =
lambda self, name: _swig_getattr(self, DOFValues, name)
1083 def __init__(self, *args):
1085 __init__(IMP::kinematics::DOFValues self, IMP::kinematics::DOFs const & dofs) -> DOFValues
1086 __init__(IMP::kinematics::DOFValues self) -> DOFValues
1088 this = _IMP_kinematics.new_DOFValues(*args)
1089 try: self.this.append(this)
1090 except: self.this = this
1091 def get_distance2(self, *args):
1092 """get_distance2(DOFValues self, DOFValues other_dof_values) -> double"""
1093 return _IMP_kinematics.DOFValues_get_distance2(self, *args)
1096 """get_distance(DOFValues self, DOFValues other_dof_values) -> double"""
1097 return _IMP_kinematics.DOFValues_get_distance(self, *args)
1099 def show(self, *args):
1101 show(DOFValues self, _ostream out=std::cout)
1102 show(DOFValues self)
1104 return _IMP_kinematics.DOFValues_show(self, *args)
1107 """__str__(DOFValues self) -> std::string"""
1108 return _IMP_kinematics.DOFValues___str__(self)
1111 """__repr__(DOFValues self) -> std::string"""
1112 return _IMP_kinematics.DOFValues___repr__(self)
1114 __swig_destroy__ = _IMP_kinematics.delete_DOFValues
1115 __del__ =
lambda self :
None;
1116 DOFValues_swigregister = _IMP_kinematics.DOFValues_swigregister
1117 DOFValues_swigregister(DOFValues)
1119 class DirectionalDOF(_object):
1120 """Proxy of C++ IMP::kinematics::DirectionalDOF class"""
1121 __swig_setmethods__ = {}
1122 __setattr__ =
lambda self, name, value: _swig_setattr(self, DirectionalDOF, name, value)
1123 __swig_getmethods__ = {}
1124 __getattr__ =
lambda self, name: _swig_getattr(self, DirectionalDOF, name)
1125 def __init__(self, *args):
1126 """__init__(IMP::kinematics::DirectionalDOF self, IMP::kinematics::DOFs const & dofs) -> DirectionalDOF"""
1127 this = _IMP_kinematics.new_DirectionalDOF(*args)
1128 try: self.this.append(this)
1129 except: self.this = this
1130 def set_end_points(self, *args):
1131 """set_end_points(DirectionalDOF self, DOFValues q1, DOFValues q2)"""
1132 return _IMP_kinematics.DirectionalDOF_set_end_points(self, *args)
1134 def get_dofs_values(self):
1135 """get_dofs_values(DirectionalDOF self) -> DOFValues"""
1136 return _IMP_kinematics.DirectionalDOF_get_dofs_values(self)
1138 def get_value(self):
1139 """get_value(DirectionalDOF self) -> double"""
1140 return _IMP_kinematics.DirectionalDOF_get_value(self)
1142 def show(self, *args):
1144 show(DirectionalDOF self, _ostream out=std::cout)
1145 show(DirectionalDOF self)
1147 return _IMP_kinematics.DirectionalDOF_show(self, *args)
1150 """__str__(DirectionalDOF self) -> std::string"""
1151 return _IMP_kinematics.DirectionalDOF___str__(self)
1154 """__repr__(DirectionalDOF self) -> std::string"""
1155 return _IMP_kinematics.DirectionalDOF___repr__(self)
1157 __swig_destroy__ = _IMP_kinematics.delete_DirectionalDOF
1158 __del__ =
lambda self :
None;
1159 DirectionalDOF_swigregister = _IMP_kinematics.DirectionalDOF_swigregister
1160 DirectionalDOF_swigregister(DirectionalDOF)
1163 """Proxy of C++ IMP::kinematics::DOFsSampler class"""
1164 __swig_setmethods__ = {}
1165 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1166 __setattr__ =
lambda self, name, value: _swig_setattr(self, DOFsSampler, name, value)
1167 __swig_getmethods__ = {}
1168 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1169 __getattr__ =
lambda self, name: _swig_getattr(self, DOFsSampler, name)
1170 def get_type_name(self):
1171 """get_type_name(DOFsSampler self) -> std::string"""
1172 return _IMP_kinematics.DOFsSampler_get_type_name(self)
1174 def get_version_info(self):
1175 """get_version_info(DOFsSampler self) -> VersionInfo"""
1176 return _IMP_kinematics.DOFsSampler_get_version_info(self)
1178 def __init__(self, *args):
1179 """__init__(IMP::kinematics::DOFsSampler self, IMP::kinematics::DOFs dofs) -> DOFsSampler"""
1180 if self.__class__ == DOFsSampler:
1184 this = _IMP_kinematics.new_DOFsSampler(_self, *args)
1185 try: self.this.append(this)
1186 except: self.this = this
1187 if self.__class__ != DOFsSampler:
1189 IMP.base._director_objects.register(self)
1193 def get_sample(self):
1194 """get_sample(DOFsSampler self) -> DOFValues"""
1195 return _IMP_kinematics.DOFsSampler_get_sample(self)
1197 def apply(self, *args):
1198 """apply(DOFsSampler self, DOFValues values)"""
1199 return _IMP_kinematics.DOFsSampler_apply(self, *args)
1201 def apply_last_sample(self):
1202 """apply_last_sample(DOFsSampler self)"""
1203 return _IMP_kinematics.DOFsSampler_apply_last_sample(self)
1205 def sample_and_apply(self):
1206 """sample_and_apply(DOFsSampler self)"""
1207 return _IMP_kinematics.DOFsSampler_sample_and_apply(self)
1210 """get_dofs(DOFsSampler self) -> IMP::kinematics::DOFs const &"""
1211 return _IMP_kinematics.DOFsSampler_get_dofs(self)
1213 def get_dof(self, *args):
1214 """get_dof(DOFsSampler self, unsigned int i) -> DOF"""
1215 return _IMP_kinematics.DOFsSampler_get_dof(self, *args)
1217 def get_number_of_dofs(self):
1218 """get_number_of_dofs(DOFsSampler self) -> unsigned int"""
1219 return _IMP_kinematics.DOFsSampler_get_number_of_dofs(self)
1221 def do_get_sample(self):
1222 """do_get_sample(DOFsSampler self) -> DOFValues"""
1223 return _IMP_kinematics.DOFsSampler_do_get_sample(self)
1226 """__str__(DOFsSampler self) -> std::string"""
1227 return _IMP_kinematics.DOFsSampler___str__(self)
1230 """__repr__(DOFsSampler self) -> std::string"""
1231 return _IMP_kinematics.DOFsSampler___repr__(self)
1234 return _object_cast_to_DOFsSampler(o)
1235 get_from = staticmethod(get_from)
1237 def get_type_name(self):
1238 return self.__class__.__name__
1239 def do_show(self, out):
1241 def get_version_info(self):
1242 if"IMP::kinematics" ==
"IMP":
1243 return VersionInfo(
"python",
"0")
1245 return IMP.VersionInfo(
"python",
"0")
1247 return _object_cast_to_DOFsSampler(o)
1248 get_from = staticmethod(get_from)
1250 def __disown__(self):
1252 _IMP_kinematics.disown_DOFsSampler(self)
1253 return weakref_proxy(self)
1254 DOFsSampler_swigregister = _IMP_kinematics.DOFsSampler_swigregister
1255 DOFsSampler_swigregister(DOFsSampler)
1257 class UniformBackboneSampler(DOFsSampler):
1258 """Proxy of C++ IMP::kinematics::UniformBackboneSampler class"""
1259 __swig_setmethods__ = {}
1260 for _s
in [DOFsSampler]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1261 __setattr__ =
lambda self, name, value: _swig_setattr(self, UniformBackboneSampler, name, value)
1262 __swig_getmethods__ = {}
1263 for _s
in [DOFsSampler]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1264 __getattr__ =
lambda self, name: _swig_getattr(self, UniformBackboneSampler, name)
1265 def __init__(self, *args):
1266 """__init__(IMP::kinematics::UniformBackboneSampler self, IMP::kinematics::DihedralAngleRevoluteJoints joints, IMP::kinematics::DOFs dofs) -> UniformBackboneSampler"""
1267 this = _IMP_kinematics.new_UniformBackboneSampler(*args)
1268 try: self.this.append(this)
1269 except: self.this = this
1271 """__str__(UniformBackboneSampler self) -> std::string"""
1272 return _IMP_kinematics.UniformBackboneSampler___str__(self)
1275 """__repr__(UniformBackboneSampler self) -> std::string"""
1276 return _IMP_kinematics.UniformBackboneSampler___repr__(self)
1279 return _object_cast_to_UniformBackboneSampler(o)
1280 get_from = staticmethod(get_from)
1282 __swig_destroy__ = _IMP_kinematics.delete_UniformBackboneSampler
1283 __del__ =
lambda self :
None;
1284 UniformBackboneSampler_swigregister = _IMP_kinematics.UniformBackboneSampler_swigregister
1285 UniformBackboneSampler_swigregister(UniformBackboneSampler)
1288 def get_module_version():
1289 """get_module_version() -> std::string const"""
1290 return _IMP_kinematics.get_module_version()
1293 """get_example_path(std::string fname) -> std::string"""
1294 return _IMP_kinematics.get_example_path(*args)
1297 """get_data_path(std::string fname) -> std::string"""
1298 return _IMP_kinematics.get_data_path(*args)
1299 import _version_check
1300 _version_check.check_version(get_module_version())
See IMP.container for more information.
See IMP.cgal for more information.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
See IMP.base for more information.
std::string get_data_path(std::string file_name)
Return the full path to installed data.
See IMP.score_functor for more information.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
See IMP.kernel for more information.
Common base class for heavy weight IMP objects.
See IMP.core for more information.
See IMP.algebra for more information.
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.
See IMP.display for more information.
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.