11 from __future__
import print_function, division, absolute_import
17 from sys
import version_info
18 if version_info >= (2, 6, 0):
19 def swig_import_helper():
20 from os.path
import dirname
24 fp, pathname, description = imp.find_module(
'_IMP_display', [dirname(__file__)])
30 _mod = imp.load_module(
'_IMP_display', fp, pathname, description)
34 _IMP_display = swig_import_helper()
35 del swig_import_helper
40 _swig_property = property
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46 if (name ==
"thisown"):
47 return self.this.own(value)
49 if type(value).__name__ ==
'SwigPyObject':
50 self.__dict__[name] = value
52 method = class_type.__swig_setmethods__.get(name,
None)
54 return method(self, value)
56 object.__setattr__(self, name, value)
58 raise AttributeError(
"You cannot add attributes to %s" % self)
61 def _swig_setattr(self, class_type, name, value):
62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66 if (name ==
"thisown"):
67 return self.this.own()
68 method = class_type.__swig_getmethods__.get(name,
None)
72 return object.__getattr__(self, name)
74 raise AttributeError(name)
76 def _swig_getattr(self, class_type, name):
77 return _swig_getattr_nondynamic(self, class_type, name, 0)
82 strthis =
"proxy of " + self.this.__repr__()
85 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90 except AttributeError:
97 def _swig_setattr_nondynamic_method(set):
98 def set_attr(self, name, value):
99 if (name ==
"thisown"):
100 return self.this.own(value)
101 if hasattr(self, name)
or (name ==
"this"):
102 set(self, name, value)
104 raise AttributeError(
"You cannot add attributes to %s" % self)
110 weakref_proxy = weakref.proxy
112 weakref_proxy =
lambda x: x
115 class IMP_DISPLAY_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class"""
117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
119 def __init__(self, *args, **kwargs):
120 raise AttributeError(
"No constructor defined - class is abstract")
121 __repr__ = _swig_repr
122 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
127 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
132 incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
133 incr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
135 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
140 decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
141 decr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
143 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
152 """equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
153 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
157 """copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
158 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
162 """next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
163 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
167 """__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
168 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
172 """previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
173 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
178 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
183 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
188 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
193 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
198 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
203 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
209 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
215 IMP_DISPLAY_SwigPyIterator_swigregister = _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister
216 IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
225 _IMP_display.IMP_DEBUG_swigconstant(_IMP_display)
226 IMP_DEBUG = _IMP_display.IMP_DEBUG
228 _IMP_display.IMP_RELEASE_swigconstant(_IMP_display)
229 IMP_RELEASE = _IMP_display.IMP_RELEASE
231 _IMP_display.IMP_SILENT_swigconstant(_IMP_display)
232 IMP_SILENT = _IMP_display.IMP_SILENT
234 _IMP_display.IMP_PROGRESS_swigconstant(_IMP_display)
235 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
237 _IMP_display.IMP_TERSE_swigconstant(_IMP_display)
238 IMP_TERSE = _IMP_display.IMP_TERSE
240 _IMP_display.IMP_VERBOSE_swigconstant(_IMP_display)
241 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
243 _IMP_display.IMP_MEMORY_swigconstant(_IMP_display)
244 IMP_MEMORY = _IMP_display.IMP_MEMORY
246 _IMP_display.IMP_NONE_swigconstant(_IMP_display)
247 IMP_NONE = _IMP_display.IMP_NONE
249 _IMP_display.IMP_USAGE_swigconstant(_IMP_display)
250 IMP_USAGE = _IMP_display.IMP_USAGE
252 _IMP_display.IMP_INTERNAL_swigconstant(_IMP_display)
253 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
255 _IMP_display.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_display)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_display)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_display.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_display)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_display.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_display.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_display)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_display.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_display.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_display)
271 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
273 _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_display)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_display)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_display)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_display.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_display)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
286 class _DirectorObjects(object):
287 """@internal Simple class to keep references to director objects
288 to prevent premature deletion."""
291 def register(self, obj):
292 """Take a reference to a director object; will only work for
293 refcounted C++ classes"""
294 if hasattr(obj,
'get_ref_count'):
295 self._objects.append(obj)
297 """Only drop our reference and allow cleanup by Python if no other
298 Python references exist (we hold 3 references: one in self._objects,
299 one in x, and one in the argument list for getrefcount) *and* no
300 other C++ references exist (the Python object always holds one)"""
301 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
302 or x.get_ref_count() > 1]
306 def get_object_count(self):
307 """Get number of director objects (useful for testing only)"""
308 return len(self._objects)
309 _director_objects = _DirectorObjects()
311 class _ostream(object):
312 """Proxy of C++ std::ostream class"""
313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
315 def __init__(self, *args, **kwargs):
316 raise AttributeError(
"No constructor defined")
317 __repr__ = _swig_repr
319 def write(self, osa_buf):
320 """write(_ostream self, char const * osa_buf)"""
321 return _IMP_display._ostream_write(self, osa_buf)
323 _ostream_swigregister = _IMP_display._ostream_swigregister
324 _ostream_swigregister(_ostream)
327 _IMP_display.IMP_HAS_NOEXCEPT_swigconstant(_IMP_display)
328 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
330 _IMP_display.IMP_C_OPEN_BINARY_swigconstant(_IMP_display)
331 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
334 _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
346 _IMP_display.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_display)
347 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
349 _IMP_display.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_display)
350 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
353 _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_display)
354 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
356 _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
357 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
359 _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
360 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
362 _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
363 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
365 _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
366 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
368 _IMP_display.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_display)
369 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
371 _IMP_display.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_display)
372 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
374 _IMP_display.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_display)
375 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
377 _IMP_display.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_display)
378 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
381 _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_display)
382 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
384 _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
385 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
387 _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
388 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
390 _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
391 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
393 _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
394 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
396 _IMP_display.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_display)
397 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
399 _IMP_display.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_display)
400 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
402 _IMP_display.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_display)
403 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
405 _object_types.append(
"Writer")
408 def _object_cast_to_Writer(o):
409 """_object_cast_to_Writer(Object o) -> Writer"""
410 return _IMP_display._object_cast_to_Writer(o)
412 _object_types.append(
"TextWriter")
415 def _object_cast_to_TextWriter(o):
416 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
417 return _IMP_display._object_cast_to_TextWriter(o)
419 _object_types.append(
"Geometry")
422 def _object_cast_to_Geometry(o):
423 """_object_cast_to_Geometry(Object o) -> Geometry"""
424 return _IMP_display._object_cast_to_Geometry(o)
426 _object_types.append(
"SingletonGeometry")
429 def _object_cast_to_SingletonGeometry(o):
430 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
431 return _IMP_display._object_cast_to_SingletonGeometry(o)
433 _object_types.append(
"PairGeometry")
436 def _object_cast_to_PairGeometry(o):
437 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
438 return _IMP_display._object_cast_to_PairGeometry(o)
440 _object_types.append(
"SingletonsGeometry")
443 def _object_cast_to_SingletonsGeometry(o):
444 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
445 return _IMP_display._object_cast_to_SingletonsGeometry(o)
447 _object_types.append(
"PairsGeometry")
450 def _object_cast_to_PairsGeometry(o):
451 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
452 return _IMP_display._object_cast_to_PairsGeometry(o)
454 _object_types.append(
"PymolWriter")
457 def _object_cast_to_PymolWriter(o):
458 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
459 return _IMP_display._object_cast_to_PymolWriter(o)
461 _object_types.append(
"SphereGeometry")
464 def _object_cast_to_SphereGeometry(o):
465 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
466 return _IMP_display._object_cast_to_SphereGeometry(o)
468 _object_types.append(
"CylinderGeometry")
471 def _object_cast_to_CylinderGeometry(o):
472 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
473 return _IMP_display._object_cast_to_CylinderGeometry(o)
475 _object_types.append(
"EllipsoidGeometry")
478 def _object_cast_to_EllipsoidGeometry(o):
479 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
480 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
482 _object_types.append(
"PointGeometry")
485 def _object_cast_to_PointGeometry(o):
486 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
487 return _IMP_display._object_cast_to_PointGeometry(o)
489 _object_types.append(
"SegmentGeometry")
492 def _object_cast_to_SegmentGeometry(o):
493 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
494 return _IMP_display._object_cast_to_SegmentGeometry(o)
496 _object_types.append(
"PolygonGeometry")
499 def _object_cast_to_PolygonGeometry(o):
500 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
501 return _IMP_display._object_cast_to_PolygonGeometry(o)
503 _object_types.append(
"ReferenceFrameGeometry")
506 def _object_cast_to_ReferenceFrameGeometry(o):
507 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
508 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
510 _object_types.append(
"BoundingBoxGeometry")
513 def _object_cast_to_BoundingBoxGeometry(o):
514 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
515 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
517 _object_types.append(
"LabelGeometry")
520 def _object_cast_to_LabelGeometry(o):
521 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
522 return _IMP_display._object_cast_to_LabelGeometry(o)
524 _object_types.append(
"RestraintGeometry")
527 def _object_cast_to_RestraintGeometry(o):
528 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
529 return _IMP_display._object_cast_to_RestraintGeometry(o)
531 _object_types.append(
"RestraintSetGeometry")
534 def _object_cast_to_RestraintSetGeometry(o):
535 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
536 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
538 _object_types.append(
"GeometrySet")
541 def _object_cast_to_GeometrySet(o):
542 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
543 return _IMP_display._object_cast_to_GeometrySet(o)
546 return [Colored(x)
for x
in l]
547 _plural_types.append(
"Coloreds")
550 _value_types.append(
"Colored")
554 _plural_types.append(
"Colors")
555 _value_types.append(
"Color")
559 _plural_types.append(
"WriterAdaptors")
560 _value_types.append(
"WriterAdaptor")
563 _object_types.append(
"FilterGeometry")
566 def _object_cast_to_FilterGeometry(o):
567 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
568 return _IMP_display._object_cast_to_FilterGeometry(o)
570 _object_types.append(
"WriteOptimizerState")
573 def _object_cast_to_WriteOptimizerState(o):
574 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
575 return _IMP_display._object_cast_to_WriteOptimizerState(o)
577 _object_types.append(
"TriangleGeometry")
580 def _object_cast_to_TriangleGeometry(o):
581 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
582 return _IMP_display._object_cast_to_TriangleGeometry(o)
584 _object_types.append(
"SurfaceMeshGeometry")
587 def _object_cast_to_SurfaceMeshGeometry(o):
588 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
589 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
591 _object_types.append(
"PlaneGeometry")
594 def _object_cast_to_PlaneGeometry(o):
595 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
596 return _IMP_display._object_cast_to_PlaneGeometry(o)
598 _object_types.append(
"IsosurfaceGeometry")
601 def _object_cast_to_IsosurfaceGeometry(o):
602 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
603 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
605 _object_types.append(
"SkinSurfaceGeometry")
608 def _object_cast_to_SkinSurfaceGeometry(o):
609 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
610 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
611 class Color(IMP._Value):
612 """Proxy of C++ IMP::display::Color class"""
613 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
615 def __init__(self, *args):
617 __init__(IMP::display::Color self) -> Color
618 __init__(IMP::display::Color self, double r, double g, double b) -> Color
620 this = _IMP_display.new_Color(*args)
622 self.this.append(this)
625 __swig_destroy__ = _IMP_display.delete_Color
626 __del__ =
lambda self:
None
629 """get_red(Color self) -> double"""
630 return _IMP_display.Color_get_red(self)
634 """get_green(Color self) -> double"""
635 return _IMP_display.Color_get_green(self)
639 """get_blue(Color self) -> double"""
640 return _IMP_display.Color_get_blue(self)
643 def show(self, *args):
645 show(Color self, _ostream out, std::string delim)
646 show(Color self, _ostream out)
649 return _IMP_display.Color_show(self, *args)
652 def __cmp__(self, o):
653 """__cmp__(Color self, Color o) -> int"""
654 return _IMP_display.Color___cmp__(self, o)
658 """__eq__(Color self, Color o) -> bool"""
659 return _IMP_display.Color___eq__(self, o)
663 """__ne__(Color self, Color o) -> bool"""
664 return _IMP_display.Color___ne__(self, o)
668 """__lt__(Color self, Color o) -> bool"""
669 return _IMP_display.Color___lt__(self, o)
673 """__gt__(Color self, Color o) -> bool"""
674 return _IMP_display.Color___gt__(self, o)
678 """__ge__(Color self, Color o) -> bool"""
679 return _IMP_display.Color___ge__(self, o)
683 """__le__(Color self, Color o) -> bool"""
684 return _IMP_display.Color___le__(self, o)
688 """__str__(Color self) -> std::string"""
689 return _IMP_display.Color___str__(self)
693 """__repr__(Color self) -> std::string"""
694 return _IMP_display.Color___repr__(self)
696 Color_swigregister = _IMP_display.Color_swigregister
697 Color_swigregister(Color)
701 """get_display_color(unsigned int i) -> Color"""
702 return _IMP_display.get_display_color(i)
705 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
706 return _IMP_display.get_interpolated_rgb(a, b, f)
709 """get_linear_color_map_value(double min, double max, double value) -> double"""
710 return _IMP_display.get_linear_color_map_value(min, max, value)
713 """get_jet_color(double f) -> Color"""
714 return _IMP_display.get_jet_color(f)
717 """get_hot_color(double f) -> Color"""
718 return _IMP_display.get_hot_color(f)
721 """get_rgb_color(double f) -> Color"""
722 return _IMP_display.get_rgb_color(f)
725 """get_gray_color(double f) -> Color"""
726 return _IMP_display.get_gray_color(f)
729 """get_gnuplot_color(double f) -> Color"""
730 return _IMP_display.get_gnuplot_color(f)
732 """Proxy of C++ IMP::display::Geometry class"""
733 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
735 def __init__(self, *args):
737 __init__(IMP::display::Geometry self, std::string name) -> Geometry
738 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
740 if self.__class__ == Geometry:
744 this = _IMP_display.new_Geometry(_self, *args)
746 self.this.append(this)
750 if self.__class__ != Geometry:
751 _director_objects.register(self)
757 """get_color(Geometry self) -> Color"""
758 return _IMP_display.Geometry_get_color(self)
761 def get_has_color(self):
762 """get_has_color(Geometry self) -> bool"""
763 return _IMP_display.Geometry_get_has_color(self)
766 def set_has_color(self, tf):
767 """set_has_color(Geometry self, bool tf)"""
768 return _IMP_display.Geometry_set_has_color(self, tf)
771 def set_color(self, c):
772 """set_color(Geometry self, Color c)"""
773 return _IMP_display.Geometry_set_color(self, c)
776 def get_components(self):
777 """get_components(Geometry self) -> IMP::display::Geometries"""
778 return _IMP_display.Geometry_get_components(self)
780 __swig_destroy__ = _IMP_display.delete_Geometry
781 __del__ =
lambda self:
None
784 """__str__(Geometry self) -> std::string"""
785 return _IMP_display.Geometry___str__(self)
789 """__repr__(Geometry self) -> std::string"""
790 return _IMP_display.Geometry___repr__(self)
795 return _object_cast_to_Geometry(o)
798 def get_type_name(self):
799 return self.__class__.__name__
800 def do_show(self, out):
802 def get_version_info(self):
803 if"IMP::display" ==
"IMP":
804 return VersionInfo(self.__module__,
811 return _object_cast_to_Geometry(o)
813 def __disown__(self):
815 _IMP_display.disown_Geometry(self)
816 return weakref_proxy(self)
818 def do_destroy(self):
819 """do_destroy(Geometry self)"""
820 return _IMP_display.Geometry_do_destroy(self)
822 Geometry_swigregister = _IMP_display.Geometry_swigregister
823 Geometry_swigregister(Geometry)
825 class GeometrySet(Geometry):
826 """Proxy of C++ IMP::display::GeometrySet class"""
827 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
829 def __init__(self, *args):
831 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
832 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
833 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
834 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
836 this = _IMP_display.new_GeometrySet(*args)
838 self.this.append(this)
842 def get_geometry(self):
843 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
844 return _IMP_display.GeometrySet_get_geometry(self)
847 def get_version_info(self):
848 """get_version_info(GeometrySet self) -> VersionInfo"""
849 return _IMP_display.GeometrySet_get_version_info(self)
853 """__str__(GeometrySet self) -> std::string"""
854 return _IMP_display.GeometrySet___str__(self)
858 """__repr__(GeometrySet self) -> std::string"""
859 return _IMP_display.GeometrySet___repr__(self)
864 return _object_cast_to_GeometrySet(o)
866 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
867 GeometrySet_swigregister(GeometrySet)
869 class SphereGeometry(Geometry):
870 """Proxy of C++ IMP::display::SphereGeometry class"""
871 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
873 def __init__(self, *args):
875 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
876 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
877 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
878 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
880 this = _IMP_display.new_SphereGeometry(*args)
882 self.this.append(this)
886 def get_geometry(self):
887 """get_geometry(SphereGeometry self) -> Sphere3D"""
888 return _IMP_display.SphereGeometry_get_geometry(self)
891 def set_geometry(self, v):
892 """set_geometry(SphereGeometry self, Sphere3D v)"""
893 return _IMP_display.SphereGeometry_set_geometry(self, v)
896 def get_version_info(self):
897 """get_version_info(SphereGeometry self) -> VersionInfo"""
898 return _IMP_display.SphereGeometry_get_version_info(self)
902 """__str__(SphereGeometry self) -> std::string"""
903 return _IMP_display.SphereGeometry___str__(self)
907 """__repr__(SphereGeometry self) -> std::string"""
908 return _IMP_display.SphereGeometry___repr__(self)
913 return _object_cast_to_SphereGeometry(o)
915 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
916 SphereGeometry_swigregister(SphereGeometry)
918 class CylinderGeometry(Geometry):
919 """Proxy of C++ IMP::display::CylinderGeometry class"""
920 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
922 def __init__(self, *args):
924 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
925 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
926 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
927 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
929 this = _IMP_display.new_CylinderGeometry(*args)
931 self.this.append(this)
935 def get_geometry(self):
936 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
937 return _IMP_display.CylinderGeometry_get_geometry(self)
940 def set_geometry(self, v):
941 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
942 return _IMP_display.CylinderGeometry_set_geometry(self, v)
945 def get_version_info(self):
946 """get_version_info(CylinderGeometry self) -> VersionInfo"""
947 return _IMP_display.CylinderGeometry_get_version_info(self)
951 """__str__(CylinderGeometry self) -> std::string"""
952 return _IMP_display.CylinderGeometry___str__(self)
956 """__repr__(CylinderGeometry self) -> std::string"""
957 return _IMP_display.CylinderGeometry___repr__(self)
962 return _object_cast_to_CylinderGeometry(o)
964 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
965 CylinderGeometry_swigregister(CylinderGeometry)
967 class EllipsoidGeometry(Geometry):
968 """Proxy of C++ IMP::display::EllipsoidGeometry class"""
969 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
971 def __init__(self, *args):
973 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
974 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
975 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
976 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
978 this = _IMP_display.new_EllipsoidGeometry(*args)
980 self.this.append(this)
984 def get_geometry(self):
985 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
986 return _IMP_display.EllipsoidGeometry_get_geometry(self)
989 def set_geometry(self, v):
990 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
991 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
994 def get_version_info(self):
995 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
996 return _IMP_display.EllipsoidGeometry_get_version_info(self)
1000 """__str__(EllipsoidGeometry self) -> std::string"""
1001 return _IMP_display.EllipsoidGeometry___str__(self)
1005 """__repr__(EllipsoidGeometry self) -> std::string"""
1006 return _IMP_display.EllipsoidGeometry___repr__(self)
1011 return _object_cast_to_EllipsoidGeometry(o)
1013 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
1014 EllipsoidGeometry_swigregister(EllipsoidGeometry)
1016 class PointGeometry(Geometry):
1017 """Proxy of C++ IMP::display::PointGeometry class"""
1018 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1020 def __init__(self, *args):
1022 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
1023 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
1024 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
1025 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
1027 this = _IMP_display.new_PointGeometry(*args)
1029 self.this.append(this)
1033 def get_geometry(self):
1034 """get_geometry(PointGeometry self) -> Vector3D"""
1035 return _IMP_display.PointGeometry_get_geometry(self)
1038 def set_geometry(self, v):
1039 """set_geometry(PointGeometry self, Vector3D v)"""
1040 return _IMP_display.PointGeometry_set_geometry(self, v)
1043 def get_version_info(self):
1044 """get_version_info(PointGeometry self) -> VersionInfo"""
1045 return _IMP_display.PointGeometry_get_version_info(self)
1049 """__str__(PointGeometry self) -> std::string"""
1050 return _IMP_display.PointGeometry___str__(self)
1054 """__repr__(PointGeometry self) -> std::string"""
1055 return _IMP_display.PointGeometry___repr__(self)
1060 return _object_cast_to_PointGeometry(o)
1062 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
1063 PointGeometry_swigregister(PointGeometry)
1065 class SegmentGeometry(Geometry):
1066 """Proxy of C++ IMP::display::SegmentGeometry class"""
1067 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1069 def __init__(self, *args):
1071 __init__(IMP::display::SegmentGeometry self, Segment3D v) -> SegmentGeometry
1072 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
1073 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
1074 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
1076 this = _IMP_display.new_SegmentGeometry(*args)
1078 self.this.append(this)
1082 def get_geometry(self):
1083 """get_geometry(SegmentGeometry self) -> Segment3D"""
1084 return _IMP_display.SegmentGeometry_get_geometry(self)
1087 def set_geometry(self, v):
1088 """set_geometry(SegmentGeometry self, Segment3D v)"""
1089 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1092 def get_version_info(self):
1093 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1094 return _IMP_display.SegmentGeometry_get_version_info(self)
1098 """__str__(SegmentGeometry self) -> std::string"""
1099 return _IMP_display.SegmentGeometry___str__(self)
1103 """__repr__(SegmentGeometry self) -> std::string"""
1104 return _IMP_display.SegmentGeometry___repr__(self)
1109 return _object_cast_to_SegmentGeometry(o)
1111 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1112 SegmentGeometry_swigregister(SegmentGeometry)
1114 class PolygonGeometry(Geometry):
1115 """Proxy of C++ IMP::display::PolygonGeometry class"""
1116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1118 def __init__(self, *args):
1120 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
1121 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
1122 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
1123 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
1125 this = _IMP_display.new_PolygonGeometry(*args)
1127 self.this.append(this)
1131 def get_geometry(self):
1132 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
1133 return _IMP_display.PolygonGeometry_get_geometry(self)
1136 def set_geometry(self, v):
1137 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
1138 return _IMP_display.PolygonGeometry_set_geometry(self, v)
1141 def get_version_info(self):
1142 """get_version_info(PolygonGeometry self) -> VersionInfo"""
1143 return _IMP_display.PolygonGeometry_get_version_info(self)
1147 """__str__(PolygonGeometry self) -> std::string"""
1148 return _IMP_display.PolygonGeometry___str__(self)
1152 """__repr__(PolygonGeometry self) -> std::string"""
1153 return _IMP_display.PolygonGeometry___repr__(self)
1158 return _object_cast_to_PolygonGeometry(o)
1160 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
1161 PolygonGeometry_swigregister(PolygonGeometry)
1163 class TriangleGeometry(Geometry):
1164 """Proxy of C++ IMP::display::TriangleGeometry class"""
1165 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1167 def __init__(self, *args):
1169 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1170 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1171 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1172 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1174 this = _IMP_display.new_TriangleGeometry(*args)
1176 self.this.append(this)
1180 def get_geometry(self):
1181 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1182 return _IMP_display.TriangleGeometry_get_geometry(self)
1185 def set_geometry(self, v):
1186 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1187 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1190 def get_version_info(self):
1191 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1192 return _IMP_display.TriangleGeometry_get_version_info(self)
1196 """__str__(TriangleGeometry self) -> std::string"""
1197 return _IMP_display.TriangleGeometry___str__(self)
1201 """__repr__(TriangleGeometry self) -> std::string"""
1202 return _IMP_display.TriangleGeometry___repr__(self)
1207 return _object_cast_to_TriangleGeometry(o)
1209 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1210 TriangleGeometry_swigregister(TriangleGeometry)
1212 class BoundingBoxGeometry(Geometry):
1213 """Proxy of C++ IMP::display::BoundingBoxGeometry class"""
1214 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1216 def __init__(self, *args):
1218 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1219 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1220 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1221 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1223 this = _IMP_display.new_BoundingBoxGeometry(*args)
1225 self.this.append(this)
1229 def get_geometry(self):
1230 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1231 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1234 def set_geometry(self, v):
1235 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1236 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1239 def get_version_info(self):
1240 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1241 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1245 """__str__(BoundingBoxGeometry self) -> std::string"""
1246 return _IMP_display.BoundingBoxGeometry___str__(self)
1250 """__repr__(BoundingBoxGeometry self) -> std::string"""
1251 return _IMP_display.BoundingBoxGeometry___repr__(self)
1256 return _object_cast_to_BoundingBoxGeometry(o)
1258 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1259 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1261 class ReferenceFrameGeometry(Geometry):
1262 """Proxy of C++ IMP::display::ReferenceFrameGeometry class"""
1263 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1265 def __init__(self, *args):
1267 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1268 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1269 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1270 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1272 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1274 self.this.append(this)
1278 def get_geometry(self):
1279 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1280 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1283 def set_geometry(self, v):
1284 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1285 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1288 def get_version_info(self):
1289 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1290 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1294 """__str__(ReferenceFrameGeometry self) -> std::string"""
1295 return _IMP_display.ReferenceFrameGeometry___str__(self)
1299 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1300 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1305 return _object_cast_to_ReferenceFrameGeometry(o)
1307 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1308 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1313 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1314 create_geometry(Sphere3D t) -> SphereGeometry
1315 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1316 create_geometry(Cylinder3D t) -> CylinderGeometry
1317 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1318 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1319 create_geometry(Vector3D t, std::string name) -> PointGeometry
1320 create_geometry(Vector3D t) -> PointGeometry
1321 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1322 create_geometry(Segment3D t) -> SegmentGeometry
1323 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1324 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1325 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1326 create_geometry(Triangle3D t) -> TriangleGeometry
1327 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1328 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1329 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1330 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1332 return _IMP_display.create_geometry(*args)
1333 class LabelGeometry(Geometry):
1334 """Proxy of C++ IMP::display::LabelGeometry class"""
1335 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1337 def __init__(self, *args):
1339 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1340 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1342 this = _IMP_display.new_LabelGeometry(*args)
1344 self.this.append(this)
1349 """get_text(LabelGeometry self) -> std::string"""
1350 return _IMP_display.LabelGeometry_get_text(self)
1353 def get_location(self):
1354 """get_location(LabelGeometry self) -> Sphere3D"""
1355 return _IMP_display.LabelGeometry_get_location(self)
1358 def get_version_info(self):
1359 """get_version_info(LabelGeometry self) -> VersionInfo"""
1360 return _IMP_display.LabelGeometry_get_version_info(self)
1364 """__str__(LabelGeometry self) -> std::string"""
1365 return _IMP_display.LabelGeometry___str__(self)
1369 """__repr__(LabelGeometry self) -> std::string"""
1370 return _IMP_display.LabelGeometry___repr__(self)
1375 return _object_cast_to_LabelGeometry(o)
1377 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1378 LabelGeometry_swigregister(LabelGeometry)
1380 class SurfaceMeshGeometry(Geometry):
1381 """Proxy of C++ IMP::display::SurfaceMeshGeometry class"""
1382 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1384 def __init__(self, vertices, faces):
1385 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1386 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1388 self.this.append(this)
1392 def get_vertexes(self):
1393 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1394 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1397 def get_faces(self):
1398 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1399 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1402 def get_version_info(self):
1403 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1404 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1408 """__str__(SurfaceMeshGeometry self) -> std::string"""
1409 return _IMP_display.SurfaceMeshGeometry___str__(self)
1413 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1414 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1419 return _object_cast_to_SurfaceMeshGeometry(o)
1421 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1422 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1424 class PlaneGeometry(Geometry):
1425 """Proxy of C++ IMP::display::PlaneGeometry class"""
1426 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1428 def __init__(self, loc, box):
1429 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1430 this = _IMP_display.new_PlaneGeometry(loc, box)
1432 self.this.append(this)
1436 def get_version_info(self):
1437 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1438 return _IMP_display.PlaneGeometry_get_version_info(self)
1442 """__str__(PlaneGeometry self) -> std::string"""
1443 return _IMP_display.PlaneGeometry___str__(self)
1447 """__repr__(PlaneGeometry self) -> std::string"""
1448 return _IMP_display.PlaneGeometry___repr__(self)
1453 return _object_cast_to_PlaneGeometry(o)
1455 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1456 PlaneGeometry_swigregister(PlaneGeometry)
1458 class IsosurfaceGeometry(SurfaceMeshGeometry):
1459 """Proxy of C++ IMP::display::IsosurfaceGeometry class"""
1460 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1462 def __init__(self, *args):
1464 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1465 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1467 this = _IMP_display.new_IsosurfaceGeometry(*args)
1469 self.this.append(this)
1474 """__str__(IsosurfaceGeometry self) -> std::string"""
1475 return _IMP_display.IsosurfaceGeometry___str__(self)
1479 """__repr__(IsosurfaceGeometry self) -> std::string"""
1480 return _IMP_display.IsosurfaceGeometry___repr__(self)
1485 return _object_cast_to_IsosurfaceGeometry(o)
1487 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1488 __del__ =
lambda self:
None
1489 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1490 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1492 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1493 """Proxy of C++ IMP::display::SkinSurfaceGeometry class"""
1494 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1496 def __init__(self, balls):
1497 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1498 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1500 self.this.append(this)
1505 """__str__(SkinSurfaceGeometry self) -> std::string"""
1506 return _IMP_display.SkinSurfaceGeometry___str__(self)
1510 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1511 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1516 return _object_cast_to_SkinSurfaceGeometry(o)
1518 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1519 __del__ =
lambda self:
None
1520 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1521 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1523 class GeometryProcessor(object):
1524 """Proxy of C++ IMP::display::GeometryProcessor class"""
1525 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1526 __repr__ = _swig_repr
1529 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1530 this = _IMP_display.new_GeometryProcessor()
1532 self.this.append(this)
1535 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1536 GeometryProcessor_swigregister(GeometryProcessor)
1539 """Proxy of C++ IMP::display::Writer class"""
1540 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1542 def __init__(self, name):
1543 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1544 if self.__class__ == Writer:
1548 this = _IMP_display.new_Writer(_self, name)
1550 self.this.append(this)
1554 if self.__class__ != Writer:
1555 _director_objects.register(self)
1559 __swig_destroy__ = _IMP_display.delete_Writer
1560 __del__ =
lambda self:
None
1562 def set_frame(self, i):
1563 """set_frame(Writer self, unsigned int i)"""
1564 return _IMP_display.Writer_set_frame(self, i)
1567 def get_frame(self):
1568 """get_frame(Writer self) -> int"""
1569 return _IMP_display.Writer_get_frame(self)
1574 add_geometry(Writer self, Geometry g)
1575 add_geometry(Writer self, IMP::display::Geometries const & g)
1577 return _IMP_display.Writer_add_geometry(self, *args)
1581 """do_close(Writer self)"""
1582 return _IMP_display.Writer_do_close(self)
1586 """do_open(Writer self)"""
1587 return _IMP_display.Writer_do_open(self)
1590 def do_set_frame(self):
1591 """do_set_frame(Writer self)"""
1592 return _IMP_display.Writer_do_set_frame(self)
1596 """__str__(Writer self) -> std::string"""
1597 return _IMP_display.Writer___str__(self)
1601 """__repr__(Writer self) -> std::string"""
1602 return _IMP_display.Writer___repr__(self)
1607 return _object_cast_to_Writer(o)
1610 def get_type_name(self):
1611 return self.__class__.__name__
1612 def do_show(self, out):
1614 def get_version_info(self):
1615 if"IMP::display" ==
"IMP":
1616 return VersionInfo(self.__module__,
1623 return _object_cast_to_Writer(o)
1625 def __disown__(self):
1627 _IMP_display.disown_Writer(self)
1628 return weakref_proxy(self)
1630 def handle_sphere(self, arg0, arg1, arg2):
1631 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1632 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1635 def handle_cylinder(self, arg0, arg1, arg2):
1636 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1637 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1640 def handle_point(self, arg0, arg1, arg2):
1641 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1642 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1645 def handle_segment(self, arg0, arg1, arg2):
1646 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1647 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1650 def handle_polygon(self, arg0, arg1, arg2):
1651 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1652 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1655 def handle_triangle(self, arg0, arg1, arg2):
1656 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1657 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1660 def handle_surface_mesh(self, arg0, arg1, arg2):
1661 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1662 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1665 def handle_label(self, arg0, arg1, arg2):
1666 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1667 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1670 def handle_ellipsoid(self, arg0, arg1, arg2):
1671 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1672 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1675 def handle_bounding_box(self, arg0, arg1, arg2):
1676 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1677 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1680 def handle_anything(self, arg0, arg1, arg2):
1681 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1682 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1685 def do_destroy(self):
1686 """do_destroy(Writer self)"""
1687 return _IMP_display.Writer_do_destroy(self)
1689 Writer_swigregister = _IMP_display.Writer_swigregister
1690 Writer_swigregister(Writer)
1692 class TextWriter(Writer):
1693 """Proxy of C++ IMP::display::TextWriter class"""
1694 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1697 """open(TextWriter self)"""
1698 return _IMP_display.TextWriter_open(self)
1701 def get_stream(self):
1702 """get_stream(TextWriter self) -> _ostream"""
1703 return _IMP_display.TextWriter_get_stream(self)
1706 def do_set_frame(self):
1707 """do_set_frame(TextWriter self)"""
1708 return _IMP_display.TextWriter_do_set_frame(self)
1711 def __init__(self, *args):
1713 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1714 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1716 if self.__class__ == TextWriter:
1720 this = _IMP_display.new_TextWriter(_self, *args)
1722 self.this.append(this)
1726 if self.__class__ != TextWriter:
1727 _director_objects.register(self)
1732 def get_current_file_name(self):
1733 """get_current_file_name(TextWriter self) -> std::string"""
1734 return _IMP_display.TextWriter_get_current_file_name(self)
1736 __swig_destroy__ = _IMP_display.delete_TextWriter
1737 __del__ =
lambda self:
None
1740 """__str__(TextWriter self) -> std::string"""
1741 return _IMP_display.TextWriter___str__(self)
1745 """__repr__(TextWriter self) -> std::string"""
1746 return _IMP_display.TextWriter___repr__(self)
1751 return _object_cast_to_TextWriter(o)
1754 def get_type_name(self):
1755 return self.__class__.__name__
1756 def do_show(self, out):
1758 def get_version_info(self):
1759 if"IMP::display" ==
"IMP":
1760 return VersionInfo(self.__module__,
1767 return _object_cast_to_TextWriter(o)
1769 def __disown__(self):
1771 _IMP_display.disown_TextWriter(self)
1772 return weakref_proxy(self)
1774 def handle_sphere(self, arg0, arg1, arg2):
1775 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1776 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1779 def handle_cylinder(self, arg0, arg1, arg2):
1780 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1781 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1784 def handle_point(self, arg0, arg1, arg2):
1785 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1786 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1789 def handle_segment(self, arg0, arg1, arg2):
1790 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1791 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1794 def handle_polygon(self, arg0, arg1, arg2):
1795 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1796 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1799 def handle_triangle(self, arg0, arg1, arg2):
1800 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1801 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1804 def handle_surface_mesh(self, arg0, arg1, arg2):
1805 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1806 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1809 def handle_label(self, arg0, arg1, arg2):
1810 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1811 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1814 def handle_ellipsoid(self, arg0, arg1, arg2):
1815 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1816 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1819 def handle_bounding_box(self, arg0, arg1, arg2):
1820 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1821 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1824 def handle_anything(self, arg0, arg1, arg2):
1825 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1826 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1829 def do_destroy(self):
1830 """do_destroy(TextWriter self)"""
1831 return _IMP_display.TextWriter_do_destroy(self)
1835 """do_close(TextWriter self)"""
1836 return _IMP_display.TextWriter_do_close(self)
1840 """do_open(TextWriter self)"""
1841 return _IMP_display.TextWriter_do_open(self)
1843 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1844 TextWriter_swigregister(TextWriter)
1848 """create_writer(std::string filename) -> Writer"""
1849 return _IMP_display.create_writer(filename)
1850 class WriterAdaptor(IMP._InputAdaptor):
1851 """Proxy of C++ IMP::display::WriterAdaptor class"""
1852 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1854 def __init__(self, *args):
1856 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1857 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1859 this = _IMP_display.new_WriterAdaptor(*args)
1861 self.this.append(this)
1865 def get_writer(self):
1866 """get_writer(WriterAdaptor self) -> Writer"""
1867 return _IMP_display.WriterAdaptor_get_writer(self)
1870 def show(self, *args):
1872 show(WriterAdaptor self, _ostream out)
1873 show(WriterAdaptor self)
1875 return _IMP_display.WriterAdaptor_show(self, *args)
1877 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1878 __del__ =
lambda self:
None
1881 """__str__(WriterAdaptor self) -> std::string"""
1882 return _IMP_display.WriterAdaptor___str__(self)
1886 """__repr__(WriterAdaptor self) -> std::string"""
1887 return _IMP_display.WriterAdaptor___repr__(self)
1889 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1890 WriterAdaptor_swigregister(WriterAdaptor)
1893 """Proxy of C++ IMP::display::Colored class"""
1894 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1896 def set_color(self, c):
1897 """set_color(Colored self, Color c)"""
1898 return _IMP_display.Colored_set_color(self, c)
1901 def get_color(self):
1902 """get_color(Colored self) -> Color"""
1903 return _IMP_display.Colored_get_color(self)
1906 def get_color_keys():
1907 """get_color_keys() -> IMP::FloatKeys const &"""
1908 return _IMP_display.Colored_get_color_keys()
1910 get_color_keys = staticmethod(get_color_keys)
1912 def __init__(self, *args):
1914 __init__(IMP::display::Colored self) -> Colored
1915 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1916 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1918 this = _IMP_display.new_Colored(*args)
1920 self.this.append(this)
1924 def get_is_setup(*args):
1926 get_is_setup(Model m, ParticleIndex pi) -> bool
1927 get_is_setup(_ParticleAdaptor p) -> bool
1929 return _IMP_display.Colored_get_is_setup(*args)
1931 get_is_setup = staticmethod(get_is_setup)
1933 def show(self, *args):
1935 show(Colored self, _ostream out)
1938 return _IMP_display.Colored_show(self, *args)
1941 def setup_particle(*args):
1943 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1944 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1946 return _IMP_display.Colored_setup_particle(*args)
1948 setup_particle = staticmethod(setup_particle)
1950 def add_attribute(self, *args):
1952 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1953 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1954 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1955 add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1956 add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1957 add_attribute(Colored self, StringKey a0, IMP::String a1)
1958 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1959 add_attribute(Colored self, ObjectKey a0, Object a1)
1961 return _IMP_display.Colored_add_attribute(self, *args)
1964 def get_value(self, *args):
1966 get_value(Colored self, FloatKey a0) -> IMP::Float
1967 get_value(Colored self, IntKey a0) -> IMP::Int
1968 get_value(Colored self, FloatsKey a0) -> IMP::Floats
1969 get_value(Colored self, IntsKey a0) -> IMP::Ints
1970 get_value(Colored self, StringKey a0) -> IMP::String
1971 get_value(Colored self, ParticleIndexKey a0) -> Particle
1972 get_value(Colored self, ObjectKey a0) -> Object
1974 return _IMP_display.Colored_get_value(self, *args)
1977 def set_value(self, *args):
1979 set_value(Colored self, FloatKey a0, IMP::Float a1)
1980 set_value(Colored self, IntKey a0, IMP::Int a1)
1981 set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1982 set_value(Colored self, IntsKey a0, IMP::Ints a1)
1983 set_value(Colored self, StringKey a0, IMP::String a1)
1984 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1985 set_value(Colored self, ObjectKey a0, Object a1)
1987 return _IMP_display.Colored_set_value(self, *args)
1990 def remove_attribute(self, *args):
1992 remove_attribute(Colored self, FloatKey a0)
1993 remove_attribute(Colored self, IntKey a0)
1994 remove_attribute(Colored self, FloatsKey a0)
1995 remove_attribute(Colored self, IntsKey a0)
1996 remove_attribute(Colored self, StringKey a0)
1997 remove_attribute(Colored self, ParticleIndexKey a0)
1998 remove_attribute(Colored self, ObjectKey a0)
2000 return _IMP_display.Colored_remove_attribute(self, *args)
2003 def has_attribute(self, *args):
2005 has_attribute(Colored self, FloatKey a0) -> bool
2006 has_attribute(Colored self, IntKey a0) -> bool
2007 has_attribute(Colored self, FloatsKey a0) -> bool
2008 has_attribute(Colored self, IntsKey a0) -> bool
2009 has_attribute(Colored self, StringKey a0) -> bool
2010 has_attribute(Colored self, ParticleIndexKey a0) -> bool
2011 has_attribute(Colored self, ObjectKey a0) -> bool
2013 return _IMP_display.Colored_has_attribute(self, *args)
2016 def get_derivative(self, a0):
2017 """get_derivative(Colored self, FloatKey a0) -> double"""
2018 return _IMP_display.Colored_get_derivative(self, a0)
2022 """get_name(Colored self) -> std::string"""
2023 return _IMP_display.Colored_get_name(self)
2026 def clear_caches(self):
2027 """clear_caches(Colored self)"""
2028 return _IMP_display.Colored_clear_caches(self)
2031 def set_name(self, a0):
2032 """set_name(Colored self, std::string a0)"""
2033 return _IMP_display.Colored_set_name(self, a0)
2037 """set_check_level(Colored self, IMP::CheckLevel a0)"""
2038 return _IMP_display.Colored_set_check_level(self, a0)
2041 def add_to_derivative(self, a0, a1, a2):
2042 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2043 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
2046 def set_is_optimized(self, a0, a1):
2047 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
2048 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
2051 def get_is_optimized(self, a0):
2052 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
2053 return _IMP_display.Colored_get_is_optimized(self, a0)
2057 """get_check_level(Colored self) -> IMP::CheckLevel"""
2058 return _IMP_display.Colored_get_check_level(self)
2061 def __eq__(self, *args):
2063 __eq__(Colored self, Colored o) -> bool
2064 __eq__(Colored self, Particle d) -> bool
2066 return _IMP_display.Colored___eq__(self, *args)
2069 def __ne__(self, *args):
2071 __ne__(Colored self, Colored o) -> bool
2072 __ne__(Colored self, Particle d) -> bool
2074 return _IMP_display.Colored___ne__(self, *args)
2077 def __le__(self, *args):
2079 __le__(Colored self, Colored o) -> bool
2080 __le__(Colored self, Particle d) -> bool
2082 return _IMP_display.Colored___le__(self, *args)
2085 def __lt__(self, *args):
2087 __lt__(Colored self, Colored o) -> bool
2088 __lt__(Colored self, Particle d) -> bool
2090 return _IMP_display.Colored___lt__(self, *args)
2093 def __ge__(self, *args):
2095 __ge__(Colored self, Colored o) -> bool
2096 __ge__(Colored self, Particle d) -> bool
2098 return _IMP_display.Colored___ge__(self, *args)
2101 def __gt__(self, *args):
2103 __gt__(Colored self, Colored o) -> bool
2104 __gt__(Colored self, Particle d) -> bool
2106 return _IMP_display.Colored___gt__(self, *args)
2110 """__hash__(Colored self) -> std::size_t"""
2111 return _IMP_display.Colored___hash__(self)
2115 """__str__(Colored self) -> std::string"""
2116 return _IMP_display.Colored___str__(self)
2120 """__repr__(Colored self) -> std::string"""
2121 return _IMP_display.Colored___repr__(self)
2123 __swig_destroy__ = _IMP_display.delete_Colored
2124 __del__ =
lambda self:
None
2125 Colored_swigregister = _IMP_display.Colored_swigregister
2126 Colored_swigregister(Colored)
2128 def Colored_get_color_keys():
2129 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2130 return _IMP_display.Colored_get_color_keys()
2132 def Colored_get_is_setup(*args):
2134 get_is_setup(Model m, ParticleIndex pi) -> bool
2135 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2137 return _IMP_display.Colored_get_is_setup(*args)
2139 def Colored_setup_particle(*args):
2141 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2142 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2144 return _IMP_display.Colored_setup_particle(*args)
2147 def __lshift__(out, n):
2148 """__lshift__(_ostream out, Colored n) -> _ostream"""
2149 return _IMP_display.__lshift__(out, n)
2150 class FilterGeometry(GeometryProcessor, Geometry):
2151 """Proxy of C++ IMP::display::FilterGeometry class"""
2152 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2154 def __init__(self, p):
2155 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2156 this = _IMP_display.new_FilterGeometry(p)
2158 self.this.append(this)
2164 add_geometry(FilterGeometry self, Geometry g)
2165 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2167 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2170 def get_version_info(self):
2171 """get_version_info(FilterGeometry self) -> VersionInfo"""
2172 return _IMP_display.FilterGeometry_get_version_info(self)
2176 """__str__(FilterGeometry self) -> std::string"""
2177 return _IMP_display.FilterGeometry___str__(self)
2181 """__repr__(FilterGeometry self) -> std::string"""
2182 return _IMP_display.FilterGeometry___repr__(self)
2187 return _object_cast_to_FilterGeometry(o)
2189 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2190 FilterGeometry_swigregister(FilterGeometry)
2193 """Proxy of C++ IMP::display::WriteOptimizerState class"""
2194 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2196 def __init__(self, m, w):
2197 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2198 this = _IMP_display.new_WriteOptimizerState(m, w)
2200 self.this.append(this)
2205 """write(WriteOptimizerState self, WriterAdaptor w)"""
2206 return _IMP_display.WriteOptimizerState_write(self, w)
2209 def remove_geometry(self, d):
2210 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2211 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2214 def remove_geometries(self, d):
2215 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2216 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2219 def set_geometries(self, ps):
2220 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2221 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2224 def set_geometries_order(self, objs):
2225 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2226 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2230 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2231 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2235 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2236 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2239 def clear_geometries(self):
2240 """clear_geometries(WriteOptimizerState self)"""
2241 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2244 def get_number_of_geometries(self):
2245 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2246 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2249 def get_has_geometries(self):
2250 """get_has_geometries(WriteOptimizerState self) -> bool"""
2251 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2254 def get_geometry(self, i):
2255 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2256 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2259 def get_geometries(self):
2260 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2261 return _IMP_display.WriteOptimizerState_get_geometries(self)
2264 def reserve_geometries(self, sz):
2265 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2266 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2269 def get_version_info(self):
2270 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2271 return _IMP_display.WriteOptimizerState_get_version_info(self)
2275 """__str__(WriteOptimizerState self) -> std::string"""
2276 return _IMP_display.WriteOptimizerState___str__(self)
2280 """__repr__(WriteOptimizerState self) -> std::string"""
2281 return _IMP_display.WriteOptimizerState___repr__(self)
2286 return _object_cast_to_WriteOptimizerState(o)
2288 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2289 WriteOptimizerState_swigregister(WriteOptimizerState)
2291 class SingletonGeometry(Geometry):
2292 """Proxy of C++ IMP::display::SingletonGeometry class"""
2293 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2295 def __init__(self, p):
2296 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2297 this = _IMP_display.new_SingletonGeometry(p)
2299 self.this.append(this)
2303 def get_particle(self):
2304 """get_particle(SingletonGeometry self) -> Particle"""
2305 return _IMP_display.SingletonGeometry_get_particle(self)
2307 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2308 __del__ =
lambda self:
None
2311 """__str__(SingletonGeometry self) -> std::string"""
2312 return _IMP_display.SingletonGeometry___str__(self)
2316 """__repr__(SingletonGeometry self) -> std::string"""
2317 return _IMP_display.SingletonGeometry___repr__(self)
2322 return _object_cast_to_SingletonGeometry(o)
2324 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2325 SingletonGeometry_swigregister(SingletonGeometry)
2327 class SingletonsGeometry(Geometry):
2328 """Proxy of C++ IMP::display::SingletonsGeometry class"""
2329 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2331 def __init__(self, *args):
2333 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2334 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2336 this = _IMP_display.new_SingletonsGeometry(*args)
2338 self.this.append(this)
2342 def get_container(self):
2343 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2344 return _IMP_display.SingletonsGeometry_get_container(self)
2346 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2347 __del__ =
lambda self:
None
2350 """__str__(SingletonsGeometry self) -> std::string"""
2351 return _IMP_display.SingletonsGeometry___str__(self)
2355 """__repr__(SingletonsGeometry self) -> std::string"""
2356 return _IMP_display.SingletonsGeometry___repr__(self)
2361 return _object_cast_to_SingletonsGeometry(o)
2363 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2364 SingletonsGeometry_swigregister(SingletonsGeometry)
2366 class PairGeometry(Geometry):
2367 """Proxy of C++ IMP::display::PairGeometry class"""
2368 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2370 def __init__(self, pp):
2371 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2372 this = _IMP_display.new_PairGeometry(pp)
2374 self.this.append(this)
2378 def get_particle_pair(self):
2379 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2380 return _IMP_display.PairGeometry_get_particle_pair(self)
2382 __swig_destroy__ = _IMP_display.delete_PairGeometry
2383 __del__ =
lambda self:
None
2386 """__str__(PairGeometry self) -> std::string"""
2387 return _IMP_display.PairGeometry___str__(self)
2391 """__repr__(PairGeometry self) -> std::string"""
2392 return _IMP_display.PairGeometry___repr__(self)
2397 return _object_cast_to_PairGeometry(o)
2399 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2400 PairGeometry_swigregister(PairGeometry)
2402 class PairsGeometry(Geometry):
2403 """Proxy of C++ IMP::display::PairsGeometry class"""
2404 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2406 def __init__(self, *args):
2408 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2409 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2411 this = _IMP_display.new_PairsGeometry(*args)
2413 self.this.append(this)
2417 def get_container(self):
2418 """get_container(PairsGeometry self) -> PairContainer"""
2419 return _IMP_display.PairsGeometry_get_container(self)
2421 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2422 __del__ =
lambda self:
None
2425 """__str__(PairsGeometry self) -> std::string"""
2426 return _IMP_display.PairsGeometry___str__(self)
2430 """__repr__(PairsGeometry self) -> std::string"""
2431 return _IMP_display.PairsGeometry___repr__(self)
2436 return _object_cast_to_PairsGeometry(o)
2438 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2439 PairsGeometry_swigregister(PairsGeometry)
2441 class PymolWriter(TextWriter):
2442 """Proxy of C++ IMP::display::PymolWriter class"""
2443 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2445 def __init__(self, *args):
2447 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2448 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2449 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2451 this = _IMP_display.new_PymolWriter(*args)
2453 self.this.append(this)
2457 def get_version_info(self):
2458 """get_version_info(PymolWriter self) -> VersionInfo"""
2459 return _IMP_display.PymolWriter_get_version_info(self)
2463 """__str__(PymolWriter self) -> std::string"""
2464 return _IMP_display.PymolWriter___str__(self)
2468 """__repr__(PymolWriter self) -> std::string"""
2469 return _IMP_display.PymolWriter___repr__(self)
2474 return _object_cast_to_PymolWriter(o)
2476 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2477 PymolWriter_swigregister(PymolWriter)
2479 class RestraintGeometry(Geometry):
2480 """Proxy of C++ IMP::display::RestraintGeometry class"""
2481 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2483 def __init__(self, p):
2484 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2485 this = _IMP_display.new_RestraintGeometry(p)
2487 self.this.append(this)
2491 def get_restraint(self):
2492 """get_restraint(RestraintGeometry self) -> Restraint"""
2493 return _IMP_display.RestraintGeometry_get_restraint(self)
2496 def get_version_info(self):
2497 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2498 return _IMP_display.RestraintGeometry_get_version_info(self)
2502 """__str__(RestraintGeometry self) -> std::string"""
2503 return _IMP_display.RestraintGeometry___str__(self)
2507 """__repr__(RestraintGeometry self) -> std::string"""
2508 return _IMP_display.RestraintGeometry___repr__(self)
2513 return _object_cast_to_RestraintGeometry(o)
2515 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2516 RestraintGeometry_swigregister(RestraintGeometry)
2518 class RestraintSetGeometry(Geometry):
2519 """Proxy of C++ IMP::display::RestraintSetGeometry class"""
2520 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2522 def __init__(self, p):
2523 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2524 this = _IMP_display.new_RestraintSetGeometry(p)
2526 self.this.append(this)
2530 def get_restraint_set(self):
2531 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2532 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2535 def get_version_info(self):
2536 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2537 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2541 """__str__(RestraintSetGeometry self) -> std::string"""
2542 return _IMP_display.RestraintSetGeometry___str__(self)
2546 """__repr__(RestraintSetGeometry self) -> std::string"""
2547 return _IMP_display.RestraintSetGeometry___repr__(self)
2552 return _object_cast_to_RestraintSetGeometry(o)
2554 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2555 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2559 PivyWriter= _pivy.get_writer(Writer)
2560 _object_types.append(
'PivyWriter')
2564 """get_module_version() -> std::string const"""
2565 return _IMP_display.get_module_version()
2568 """get_example_path(std::string fname) -> std::string"""
2569 return _IMP_display.get_example_path(fname)
2572 """get_data_path(std::string fname) -> std::string"""
2573 return _IMP_display.get_data_path(fname)
2575 from .
import _version_check
CheckLevel get_check_level()
Get the current audit mode.
Color get_rgb_color(double f)
Return the color for f from the RGB color map.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
double get_linear_color_map_value(double min, double max, double value)
Color get_interpolated_rgb(const Color &a, const Color &b, double f)
Return a color interpolated between a and b in RGB space.
Color get_hot_color(double f)
Return the color for f from the hot color map.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Common base class for heavy weight IMP objects.
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
Color get_display_color(unsigned int i)
Version and module information for Objects.
Writer * create_writer(std::string filename)
Color get_gnuplot_color(double f)
Return colors using the gnuplot default color map.
Interface to specialized Particle types (e.g. atoms)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Shared optimizer state that is invoked upon commitment of new coordinates.
Color get_gray_color(double f)
Return the a grayscale value for f.
Color get_jet_color(double f)
Return the color for f from the jet color map.
std::string get_module_version()
Return the version of this module, as a string.
void add_geometry(RMF::FileHandle file, display::Geometry *r)
Add a single geometry to the file.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.