10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_display', [dirname(__file__)])
28 _mod = imp.load_module(
'_IMP_display', fp, pathname, description)
32 _IMP_display = swig_import_helper()
33 del swig_import_helper
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
110 weakref_proxy =
lambda x: x
113 class IMP_DISPLAY_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class"""
115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
117 def __init__(self, *args, **kwargs):
118 raise AttributeError(
"No constructor defined - class is abstract")
119 __repr__ = _swig_repr
120 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
121 __del__ =
lambda self:
None
124 """value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
125 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
130 incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
131 incr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
133 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
138 decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
139 decr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
141 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
144 def distance(self, x):
145 """distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
146 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
150 """equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
151 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
155 """copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
156 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
160 """next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
161 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
165 """__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
166 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
170 """previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
171 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
174 def advance(self, n):
175 """advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
176 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
180 """__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
181 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
185 """__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
186 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
189 def __iadd__(self, n):
190 """__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
191 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
194 def __isub__(self, n):
195 """__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
196 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
199 def __add__(self, n):
200 """__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
201 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
204 def __sub__(self, *args):
206 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
207 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
209 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
213 IMP_DISPLAY_SwigPyIterator_swigregister = _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister
214 IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
222 _IMP_display.IMP_DEBUG_swigconstant(_IMP_display)
223 IMP_DEBUG = _IMP_display.IMP_DEBUG
225 _IMP_display.IMP_RELEASE_swigconstant(_IMP_display)
226 IMP_RELEASE = _IMP_display.IMP_RELEASE
228 _IMP_display.IMP_SILENT_swigconstant(_IMP_display)
229 IMP_SILENT = _IMP_display.IMP_SILENT
231 _IMP_display.IMP_PROGRESS_swigconstant(_IMP_display)
232 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
234 _IMP_display.IMP_TERSE_swigconstant(_IMP_display)
235 IMP_TERSE = _IMP_display.IMP_TERSE
237 _IMP_display.IMP_VERBOSE_swigconstant(_IMP_display)
238 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
240 _IMP_display.IMP_MEMORY_swigconstant(_IMP_display)
241 IMP_MEMORY = _IMP_display.IMP_MEMORY
243 _IMP_display.IMP_NONE_swigconstant(_IMP_display)
244 IMP_NONE = _IMP_display.IMP_NONE
246 _IMP_display.IMP_USAGE_swigconstant(_IMP_display)
247 IMP_USAGE = _IMP_display.IMP_USAGE
249 _IMP_display.IMP_INTERNAL_swigconstant(_IMP_display)
250 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
252 _IMP_display.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_display)
253 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
255 _IMP_display.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_display)
256 IMP_COMPILER_HAS_AUTO = _IMP_display.IMP_COMPILER_HAS_AUTO
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_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
262 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
264 _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_display)
265 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
267 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_display)
268 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
270 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_display)
271 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
273 _IMP_display.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_display)
274 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
276 class _DirectorObjects(object):
277 """@internal Simple class to keep references to director objects
278 to prevent premature deletion."""
281 def register(self, obj):
282 """Take a reference to a director object; will only work for
283 refcounted C++ classes"""
284 if hasattr(obj,
'get_ref_count'):
285 self._objects.append(obj)
287 """Only drop our reference and allow cleanup by Python if no other
288 Python references exist (we hold 3 references: one in self._objects,
289 one in x, and one in the argument list for getrefcount) *and* no
290 other C++ references exist (the Python object always holds one)"""
291 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
292 or x.get_ref_count() > 1]
296 def get_object_count(self):
297 """Get number of director objects (useful for testing only)"""
298 return len(self._objects)
299 _director_objects = _DirectorObjects()
301 class _ostream(object):
302 """Proxy of C++ std::ostream class"""
303 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
305 def __init__(self, *args, **kwargs):
306 raise AttributeError(
"No constructor defined")
307 __repr__ = _swig_repr
309 def write(self, osa_buf):
310 """write(_ostream self, char const * osa_buf)"""
311 return _IMP_display._ostream_write(self, osa_buf)
313 _ostream_swigregister = _IMP_display._ostream_swigregister
314 _ostream_swigregister(_ostream)
317 _IMP_display.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_display)
318 IMP_COMPILER_HAS_OVERRIDE = _IMP_display.IMP_COMPILER_HAS_OVERRIDE
320 _IMP_display.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_display)
321 IMP_COMPILER_HAS_FINAL = _IMP_display.IMP_COMPILER_HAS_FINAL
323 _IMP_display.IMP_HAS_NOEXCEPT_swigconstant(_IMP_display)
324 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
327 _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
328 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
330 _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
331 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
333 _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
334 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
336 _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
337 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
339 _IMP_display.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_display)
340 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
343 _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_display)
344 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
346 _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
347 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
349 _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
350 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
352 _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
353 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
355 _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
356 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
358 _IMP_display.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_display)
359 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
361 _IMP_display.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_display)
362 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
364 _IMP_display.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_display)
365 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
368 _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_display)
369 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
371 _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
372 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
374 _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
375 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
377 _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
378 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
380 _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
381 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
383 _IMP_display.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_display)
384 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
386 _IMP_display.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_display)
387 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
388 _object_types.append(
"Writer")
391 def _object_cast_to_Writer(o):
392 """_object_cast_to_Writer(Object o) -> Writer"""
393 return _IMP_display._object_cast_to_Writer(o)
394 _object_types.append(
"TextWriter")
397 def _object_cast_to_TextWriter(o):
398 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
399 return _IMP_display._object_cast_to_TextWriter(o)
400 _object_types.append(
"Geometry")
403 def _object_cast_to_Geometry(o):
404 """_object_cast_to_Geometry(Object o) -> Geometry"""
405 return _IMP_display._object_cast_to_Geometry(o)
406 _object_types.append(
"SingletonGeometry")
409 def _object_cast_to_SingletonGeometry(o):
410 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
411 return _IMP_display._object_cast_to_SingletonGeometry(o)
412 _object_types.append(
"PairGeometry")
415 def _object_cast_to_PairGeometry(o):
416 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
417 return _IMP_display._object_cast_to_PairGeometry(o)
418 _object_types.append(
"SingletonsGeometry")
421 def _object_cast_to_SingletonsGeometry(o):
422 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
423 return _IMP_display._object_cast_to_SingletonsGeometry(o)
424 _object_types.append(
"PairsGeometry")
427 def _object_cast_to_PairsGeometry(o):
428 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
429 return _IMP_display._object_cast_to_PairsGeometry(o)
430 _object_types.append(
"ChimeraWriter")
433 def _object_cast_to_ChimeraWriter(o):
434 """_object_cast_to_ChimeraWriter(Object o) -> ChimeraWriter"""
435 return _IMP_display._object_cast_to_ChimeraWriter(o)
436 _object_types.append(
"PymolWriter")
439 def _object_cast_to_PymolWriter(o):
440 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
441 return _IMP_display._object_cast_to_PymolWriter(o)
442 _object_types.append(
"SphereGeometry")
445 def _object_cast_to_SphereGeometry(o):
446 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
447 return _IMP_display._object_cast_to_SphereGeometry(o)
448 _object_types.append(
"CylinderGeometry")
451 def _object_cast_to_CylinderGeometry(o):
452 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
453 return _IMP_display._object_cast_to_CylinderGeometry(o)
454 _object_types.append(
"EllipsoidGeometry")
457 def _object_cast_to_EllipsoidGeometry(o):
458 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
459 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
460 _object_types.append(
"PointGeometry")
463 def _object_cast_to_PointGeometry(o):
464 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
465 return _IMP_display._object_cast_to_PointGeometry(o)
466 _object_types.append(
"SegmentGeometry")
469 def _object_cast_to_SegmentGeometry(o):
470 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
471 return _IMP_display._object_cast_to_SegmentGeometry(o)
472 _object_types.append(
"PolygonGeometry")
475 def _object_cast_to_PolygonGeometry(o):
476 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
477 return _IMP_display._object_cast_to_PolygonGeometry(o)
478 _object_types.append(
"ReferenceFrameGeometry")
481 def _object_cast_to_ReferenceFrameGeometry(o):
482 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
483 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
484 _object_types.append(
"BoundingBoxGeometry")
487 def _object_cast_to_BoundingBoxGeometry(o):
488 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
489 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
490 _object_types.append(
"LabelGeometry")
493 def _object_cast_to_LabelGeometry(o):
494 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
495 return _IMP_display._object_cast_to_LabelGeometry(o)
496 _object_types.append(
"RestraintGeometry")
499 def _object_cast_to_RestraintGeometry(o):
500 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
501 return _IMP_display._object_cast_to_RestraintGeometry(o)
502 _object_types.append(
"RestraintSetGeometry")
505 def _object_cast_to_RestraintSetGeometry(o):
506 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
507 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
508 _object_types.append(
"GeometrySet")
511 def _object_cast_to_GeometrySet(o):
512 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
513 return _IMP_display._object_cast_to_GeometrySet(o)
515 return [Colored(x)
for x
in l]
516 _plural_types.append(
"Coloreds")
518 _value_types.append(
"Colored")
521 _plural_types.append(
"Colors")
522 _value_types.append(
"Color")
525 _plural_types.append(
"WriterAdaptors")
526 _value_types.append(
"WriterAdaptor")
528 _object_types.append(
"FilterGeometry")
531 def _object_cast_to_FilterGeometry(o):
532 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
533 return _IMP_display._object_cast_to_FilterGeometry(o)
534 _object_types.append(
"WriteOptimizerState")
537 def _object_cast_to_WriteOptimizerState(o):
538 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
539 return _IMP_display._object_cast_to_WriteOptimizerState(o)
540 _object_types.append(
"TriangleGeometry")
543 def _object_cast_to_TriangleGeometry(o):
544 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
545 return _IMP_display._object_cast_to_TriangleGeometry(o)
546 _object_types.append(
"SurfaceMeshGeometry")
549 def _object_cast_to_SurfaceMeshGeometry(o):
550 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
551 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
552 _object_types.append(
"PlaneGeometry")
555 def _object_cast_to_PlaneGeometry(o):
556 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
557 return _IMP_display._object_cast_to_PlaneGeometry(o)
558 _object_types.append(
"IsosurfaceGeometry")
561 def _object_cast_to_IsosurfaceGeometry(o):
562 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
563 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
564 _object_types.append(
"SkinSurfaceGeometry")
567 def _object_cast_to_SkinSurfaceGeometry(o):
568 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
569 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
570 class Color(IMP._Value):
571 """Proxy of C++ IMP::display::Color class"""
572 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
574 def __init__(self, *args):
576 __init__(IMP::display::Color self) -> Color
577 __init__(IMP::display::Color self, double r, double g, double b) -> Color
579 this = _IMP_display.new_Color(*args)
581 self.this.append(this)
584 __swig_destroy__ = _IMP_display.delete_Color
585 __del__ =
lambda self:
None
588 """get_red(Color self) -> double"""
589 return _IMP_display.Color_get_red(self)
593 """get_green(Color self) -> double"""
594 return _IMP_display.Color_get_green(self)
598 """get_blue(Color self) -> double"""
599 return _IMP_display.Color_get_blue(self)
602 def show(self, *args):
604 show(Color self, _ostream out, std::string delim)
605 show(Color self, _ostream out)
608 return _IMP_display.Color_show(self, *args)
611 def __cmp__(self, o):
612 """__cmp__(Color self, Color o) -> int"""
613 return _IMP_display.Color___cmp__(self, o)
617 """__eq__(Color self, Color o) -> bool"""
618 return _IMP_display.Color___eq__(self, o)
622 """__ne__(Color self, Color o) -> bool"""
623 return _IMP_display.Color___ne__(self, o)
627 """__lt__(Color self, Color o) -> bool"""
628 return _IMP_display.Color___lt__(self, o)
632 """__gt__(Color self, Color o) -> bool"""
633 return _IMP_display.Color___gt__(self, o)
637 """__ge__(Color self, Color o) -> bool"""
638 return _IMP_display.Color___ge__(self, o)
642 """__le__(Color self, Color o) -> bool"""
643 return _IMP_display.Color___le__(self, o)
647 """__str__(Color self) -> std::string"""
648 return _IMP_display.Color___str__(self)
652 """__repr__(Color self) -> std::string"""
653 return _IMP_display.Color___repr__(self)
655 Color_swigregister = _IMP_display.Color_swigregister
656 Color_swigregister(Color)
660 """get_display_color(unsigned int i) -> Color"""
661 return _IMP_display.get_display_color(i)
664 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
665 return _IMP_display.get_interpolated_rgb(a, b, f)
668 """get_linear_color_map_value(double min, double max, double value) -> double"""
669 return _IMP_display.get_linear_color_map_value(min, max, value)
672 """get_jet_color(double f) -> Color"""
673 return _IMP_display.get_jet_color(f)
676 """get_hot_color(double f) -> Color"""
677 return _IMP_display.get_hot_color(f)
680 """get_rgb_color(double f) -> Color"""
681 return _IMP_display.get_rgb_color(f)
684 """get_gray_color(double f) -> Color"""
685 return _IMP_display.get_gray_color(f)
688 """get_gnuplot_color(double f) -> Color"""
689 return _IMP_display.get_gnuplot_color(f)
691 """Proxy of C++ IMP::display::Geometry class"""
692 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
694 def __init__(self, *args):
696 __init__(IMP::display::Geometry self, std::string name) -> Geometry
697 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
699 if self.__class__ == Geometry:
703 this = _IMP_display.new_Geometry(_self, *args)
705 self.this.append(this)
708 if self.__class__ != Geometry:
709 _director_objects.register(self)
715 """get_color(Geometry self) -> Color"""
716 return _IMP_display.Geometry_get_color(self)
719 def get_has_color(self):
720 """get_has_color(Geometry self) -> bool"""
721 return _IMP_display.Geometry_get_has_color(self)
724 def set_has_color(self, tf):
725 """set_has_color(Geometry self, bool tf)"""
726 return _IMP_display.Geometry_set_has_color(self, tf)
729 def set_color(self, c):
730 """set_color(Geometry self, Color c)"""
731 return _IMP_display.Geometry_set_color(self, c)
734 def get_components(self):
735 """get_components(Geometry self) -> IMP::display::Geometries"""
736 return _IMP_display.Geometry_get_components(self)
738 __swig_destroy__ = _IMP_display.delete_Geometry
739 __del__ =
lambda self:
None
742 """__str__(Geometry self) -> std::string"""
743 return _IMP_display.Geometry___str__(self)
747 """__repr__(Geometry self) -> std::string"""
748 return _IMP_display.Geometry___repr__(self)
751 return _object_cast_to_Geometry(o)
752 get_from = staticmethod(get_from)
754 def get_type_name(self):
755 return self.__class__.__name__
756 def do_show(self, out):
758 def get_version_info(self):
759 if"IMP::display" ==
"IMP":
760 return VersionInfo(self.__module__,
761 __import__(self.__module__).get_module_version())
764 __import__(self.__module__).get_module_version())
766 return _object_cast_to_Geometry(o)
767 get_from = staticmethod(get_from)
769 def __disown__(self):
771 _IMP_display.disown_Geometry(self)
772 return weakref_proxy(self)
774 def do_destroy(self):
775 """do_destroy(Geometry self)"""
776 return _IMP_display.Geometry_do_destroy(self)
778 Geometry_swigregister = _IMP_display.Geometry_swigregister
779 Geometry_swigregister(Geometry)
781 class GeometrySet(Geometry):
782 """Proxy of C++ IMP::display::GeometrySet class"""
783 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
785 def __init__(self, *args):
787 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
788 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
789 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
790 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
792 this = _IMP_display.new_GeometrySet(*args)
794 self.this.append(this)
798 def get_geometry(self):
799 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
800 return _IMP_display.GeometrySet_get_geometry(self)
803 def get_version_info(self):
804 """get_version_info(GeometrySet self) -> VersionInfo"""
805 return _IMP_display.GeometrySet_get_version_info(self)
809 """__str__(GeometrySet self) -> std::string"""
810 return _IMP_display.GeometrySet___str__(self)
814 """__repr__(GeometrySet self) -> std::string"""
815 return _IMP_display.GeometrySet___repr__(self)
818 return _object_cast_to_GeometrySet(o)
819 get_from = staticmethod(get_from)
821 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
822 GeometrySet_swigregister(GeometrySet)
824 class SphereGeometry(Geometry):
825 """Proxy of C++ IMP::display::SphereGeometry class"""
826 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
828 def __init__(self, *args):
830 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
831 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
832 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
833 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
835 this = _IMP_display.new_SphereGeometry(*args)
837 self.this.append(this)
841 def get_geometry(self):
842 """get_geometry(SphereGeometry self) -> Sphere3D"""
843 return _IMP_display.SphereGeometry_get_geometry(self)
846 def set_geometry(self, v):
847 """set_geometry(SphereGeometry self, Sphere3D v)"""
848 return _IMP_display.SphereGeometry_set_geometry(self, v)
851 def get_version_info(self):
852 """get_version_info(SphereGeometry self) -> VersionInfo"""
853 return _IMP_display.SphereGeometry_get_version_info(self)
857 """__str__(SphereGeometry self) -> std::string"""
858 return _IMP_display.SphereGeometry___str__(self)
862 """__repr__(SphereGeometry self) -> std::string"""
863 return _IMP_display.SphereGeometry___repr__(self)
866 return _object_cast_to_SphereGeometry(o)
867 get_from = staticmethod(get_from)
869 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
870 SphereGeometry_swigregister(SphereGeometry)
872 class CylinderGeometry(Geometry):
873 """Proxy of C++ IMP::display::CylinderGeometry class"""
874 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
876 def __init__(self, *args):
878 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
879 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
880 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
881 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
883 this = _IMP_display.new_CylinderGeometry(*args)
885 self.this.append(this)
889 def get_geometry(self):
890 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
891 return _IMP_display.CylinderGeometry_get_geometry(self)
894 def set_geometry(self, v):
895 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
896 return _IMP_display.CylinderGeometry_set_geometry(self, v)
899 def get_version_info(self):
900 """get_version_info(CylinderGeometry self) -> VersionInfo"""
901 return _IMP_display.CylinderGeometry_get_version_info(self)
905 """__str__(CylinderGeometry self) -> std::string"""
906 return _IMP_display.CylinderGeometry___str__(self)
910 """__repr__(CylinderGeometry self) -> std::string"""
911 return _IMP_display.CylinderGeometry___repr__(self)
914 return _object_cast_to_CylinderGeometry(o)
915 get_from = staticmethod(get_from)
917 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
918 CylinderGeometry_swigregister(CylinderGeometry)
920 class EllipsoidGeometry(Geometry):
921 """Proxy of C++ IMP::display::EllipsoidGeometry class"""
922 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
924 def __init__(self, *args):
926 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
927 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
928 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
929 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
931 this = _IMP_display.new_EllipsoidGeometry(*args)
933 self.this.append(this)
937 def get_geometry(self):
938 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
939 return _IMP_display.EllipsoidGeometry_get_geometry(self)
942 def set_geometry(self, v):
943 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
944 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
947 def get_version_info(self):
948 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
949 return _IMP_display.EllipsoidGeometry_get_version_info(self)
953 """__str__(EllipsoidGeometry self) -> std::string"""
954 return _IMP_display.EllipsoidGeometry___str__(self)
958 """__repr__(EllipsoidGeometry self) -> std::string"""
959 return _IMP_display.EllipsoidGeometry___repr__(self)
962 return _object_cast_to_EllipsoidGeometry(o)
963 get_from = staticmethod(get_from)
965 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
966 EllipsoidGeometry_swigregister(EllipsoidGeometry)
968 class PointGeometry(Geometry):
969 """Proxy of C++ IMP::display::PointGeometry class"""
970 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
972 def __init__(self, *args):
974 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
975 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
976 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
977 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
979 this = _IMP_display.new_PointGeometry(*args)
981 self.this.append(this)
985 def get_geometry(self):
986 """get_geometry(PointGeometry self) -> Vector3D"""
987 return _IMP_display.PointGeometry_get_geometry(self)
990 def set_geometry(self, v):
991 """set_geometry(PointGeometry self, Vector3D v)"""
992 return _IMP_display.PointGeometry_set_geometry(self, v)
995 def get_version_info(self):
996 """get_version_info(PointGeometry self) -> VersionInfo"""
997 return _IMP_display.PointGeometry_get_version_info(self)
1001 """__str__(PointGeometry self) -> std::string"""
1002 return _IMP_display.PointGeometry___str__(self)
1006 """__repr__(PointGeometry self) -> std::string"""
1007 return _IMP_display.PointGeometry___repr__(self)
1010 return _object_cast_to_PointGeometry(o)
1011 get_from = staticmethod(get_from)
1013 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
1014 PointGeometry_swigregister(PointGeometry)
1016 class SegmentGeometry(Geometry):
1017 """Proxy of C++ IMP::display::SegmentGeometry 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::SegmentGeometry self, Segment3D v) -> SegmentGeometry
1023 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
1024 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
1025 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
1027 this = _IMP_display.new_SegmentGeometry(*args)
1029 self.this.append(this)
1033 def get_geometry(self):
1034 """get_geometry(SegmentGeometry self) -> Segment3D"""
1035 return _IMP_display.SegmentGeometry_get_geometry(self)
1038 def set_geometry(self, v):
1039 """set_geometry(SegmentGeometry self, Segment3D v)"""
1040 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1043 def get_version_info(self):
1044 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1045 return _IMP_display.SegmentGeometry_get_version_info(self)
1049 """__str__(SegmentGeometry self) -> std::string"""
1050 return _IMP_display.SegmentGeometry___str__(self)
1054 """__repr__(SegmentGeometry self) -> std::string"""
1055 return _IMP_display.SegmentGeometry___repr__(self)
1058 return _object_cast_to_SegmentGeometry(o)
1059 get_from = staticmethod(get_from)
1061 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1062 SegmentGeometry_swigregister(SegmentGeometry)
1064 class PolygonGeometry(Geometry):
1065 """Proxy of C++ IMP::display::PolygonGeometry class"""
1066 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1068 def __init__(self, *args):
1070 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
1071 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
1072 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
1073 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
1075 this = _IMP_display.new_PolygonGeometry(*args)
1077 self.this.append(this)
1081 def get_geometry(self):
1082 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
1083 return _IMP_display.PolygonGeometry_get_geometry(self)
1086 def set_geometry(self, v):
1087 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
1088 return _IMP_display.PolygonGeometry_set_geometry(self, v)
1091 def get_version_info(self):
1092 """get_version_info(PolygonGeometry self) -> VersionInfo"""
1093 return _IMP_display.PolygonGeometry_get_version_info(self)
1097 """__str__(PolygonGeometry self) -> std::string"""
1098 return _IMP_display.PolygonGeometry___str__(self)
1102 """__repr__(PolygonGeometry self) -> std::string"""
1103 return _IMP_display.PolygonGeometry___repr__(self)
1106 return _object_cast_to_PolygonGeometry(o)
1107 get_from = staticmethod(get_from)
1109 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
1110 PolygonGeometry_swigregister(PolygonGeometry)
1112 class TriangleGeometry(Geometry):
1113 """Proxy of C++ IMP::display::TriangleGeometry class"""
1114 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1116 def __init__(self, *args):
1118 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1119 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1120 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1121 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1123 this = _IMP_display.new_TriangleGeometry(*args)
1125 self.this.append(this)
1129 def get_geometry(self):
1130 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1131 return _IMP_display.TriangleGeometry_get_geometry(self)
1134 def set_geometry(self, v):
1135 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1136 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1139 def get_version_info(self):
1140 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1141 return _IMP_display.TriangleGeometry_get_version_info(self)
1145 """__str__(TriangleGeometry self) -> std::string"""
1146 return _IMP_display.TriangleGeometry___str__(self)
1150 """__repr__(TriangleGeometry self) -> std::string"""
1151 return _IMP_display.TriangleGeometry___repr__(self)
1154 return _object_cast_to_TriangleGeometry(o)
1155 get_from = staticmethod(get_from)
1157 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1158 TriangleGeometry_swigregister(TriangleGeometry)
1160 class BoundingBoxGeometry(Geometry):
1161 """Proxy of C++ IMP::display::BoundingBoxGeometry class"""
1162 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1164 def __init__(self, *args):
1166 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1167 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1168 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1169 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1171 this = _IMP_display.new_BoundingBoxGeometry(*args)
1173 self.this.append(this)
1177 def get_geometry(self):
1178 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1179 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1182 def set_geometry(self, v):
1183 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1184 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1187 def get_version_info(self):
1188 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1189 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1193 """__str__(BoundingBoxGeometry self) -> std::string"""
1194 return _IMP_display.BoundingBoxGeometry___str__(self)
1198 """__repr__(BoundingBoxGeometry self) -> std::string"""
1199 return _IMP_display.BoundingBoxGeometry___repr__(self)
1202 return _object_cast_to_BoundingBoxGeometry(o)
1203 get_from = staticmethod(get_from)
1205 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1206 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1208 class ReferenceFrameGeometry(Geometry):
1209 """Proxy of C++ IMP::display::ReferenceFrameGeometry class"""
1210 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1212 def __init__(self, *args):
1214 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1215 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1216 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1217 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1219 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1221 self.this.append(this)
1225 def get_geometry(self):
1226 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1227 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1230 def set_geometry(self, v):
1231 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1232 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1235 def get_version_info(self):
1236 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1237 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1241 """__str__(ReferenceFrameGeometry self) -> std::string"""
1242 return _IMP_display.ReferenceFrameGeometry___str__(self)
1246 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1247 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1250 return _object_cast_to_ReferenceFrameGeometry(o)
1251 get_from = staticmethod(get_from)
1253 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1254 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1259 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1260 create_geometry(Sphere3D t) -> SphereGeometry
1261 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1262 create_geometry(Cylinder3D t) -> CylinderGeometry
1263 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1264 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1265 create_geometry(Vector3D t, std::string name) -> PointGeometry
1266 create_geometry(Vector3D t) -> PointGeometry
1267 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1268 create_geometry(Segment3D t) -> SegmentGeometry
1269 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1270 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1271 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1272 create_geometry(Triangle3D t) -> TriangleGeometry
1273 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1274 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1275 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1276 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1278 return _IMP_display.create_geometry(*args)
1279 class LabelGeometry(Geometry):
1280 """Proxy of C++ IMP::display::LabelGeometry class"""
1281 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1283 def __init__(self, *args):
1285 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1286 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1288 this = _IMP_display.new_LabelGeometry(*args)
1290 self.this.append(this)
1295 """get_text(LabelGeometry self) -> std::string"""
1296 return _IMP_display.LabelGeometry_get_text(self)
1299 def get_location(self):
1300 """get_location(LabelGeometry self) -> Sphere3D"""
1301 return _IMP_display.LabelGeometry_get_location(self)
1304 def get_version_info(self):
1305 """get_version_info(LabelGeometry self) -> VersionInfo"""
1306 return _IMP_display.LabelGeometry_get_version_info(self)
1310 """__str__(LabelGeometry self) -> std::string"""
1311 return _IMP_display.LabelGeometry___str__(self)
1315 """__repr__(LabelGeometry self) -> std::string"""
1316 return _IMP_display.LabelGeometry___repr__(self)
1319 return _object_cast_to_LabelGeometry(o)
1320 get_from = staticmethod(get_from)
1322 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1323 LabelGeometry_swigregister(LabelGeometry)
1325 class SurfaceMeshGeometry(Geometry):
1326 """Proxy of C++ IMP::display::SurfaceMeshGeometry class"""
1327 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1329 def __init__(self, vertices, faces):
1330 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1331 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1333 self.this.append(this)
1337 def get_vertexes(self):
1338 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1339 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1342 def get_faces(self):
1343 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1344 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1347 def get_version_info(self):
1348 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1349 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1353 """__str__(SurfaceMeshGeometry self) -> std::string"""
1354 return _IMP_display.SurfaceMeshGeometry___str__(self)
1358 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1359 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1362 return _object_cast_to_SurfaceMeshGeometry(o)
1363 get_from = staticmethod(get_from)
1365 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1366 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1368 class PlaneGeometry(Geometry):
1369 """Proxy of C++ IMP::display::PlaneGeometry class"""
1370 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1372 def __init__(self, loc, box):
1373 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1374 this = _IMP_display.new_PlaneGeometry(loc, box)
1376 self.this.append(this)
1380 def get_version_info(self):
1381 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1382 return _IMP_display.PlaneGeometry_get_version_info(self)
1386 """__str__(PlaneGeometry self) -> std::string"""
1387 return _IMP_display.PlaneGeometry___str__(self)
1391 """__repr__(PlaneGeometry self) -> std::string"""
1392 return _IMP_display.PlaneGeometry___repr__(self)
1395 return _object_cast_to_PlaneGeometry(o)
1396 get_from = staticmethod(get_from)
1398 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1399 PlaneGeometry_swigregister(PlaneGeometry)
1401 class IsosurfaceGeometry(SurfaceMeshGeometry):
1402 """Proxy of C++ IMP::display::IsosurfaceGeometry class"""
1403 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1405 def __init__(self, *args):
1407 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1408 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1410 this = _IMP_display.new_IsosurfaceGeometry(*args)
1412 self.this.append(this)
1417 """__str__(IsosurfaceGeometry self) -> std::string"""
1418 return _IMP_display.IsosurfaceGeometry___str__(self)
1422 """__repr__(IsosurfaceGeometry self) -> std::string"""
1423 return _IMP_display.IsosurfaceGeometry___repr__(self)
1426 return _object_cast_to_IsosurfaceGeometry(o)
1427 get_from = staticmethod(get_from)
1429 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1430 __del__ =
lambda self:
None
1431 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1432 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1434 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1435 """Proxy of C++ IMP::display::SkinSurfaceGeometry class"""
1436 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1438 def __init__(self, balls):
1439 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1440 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1442 self.this.append(this)
1447 """__str__(SkinSurfaceGeometry self) -> std::string"""
1448 return _IMP_display.SkinSurfaceGeometry___str__(self)
1452 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1453 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1456 return _object_cast_to_SkinSurfaceGeometry(o)
1457 get_from = staticmethod(get_from)
1459 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1460 __del__ =
lambda self:
None
1461 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1462 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1464 class GeometryProcessor(object):
1465 """Proxy of C++ IMP::display::GeometryProcessor class"""
1466 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1467 __repr__ = _swig_repr
1470 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1471 this = _IMP_display.new_GeometryProcessor()
1473 self.this.append(this)
1476 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1477 GeometryProcessor_swigregister(GeometryProcessor)
1480 """Proxy of C++ IMP::display::Writer class"""
1481 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1483 def __init__(self, name):
1484 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1485 if self.__class__ == Writer:
1489 this = _IMP_display.new_Writer(_self, name)
1491 self.this.append(this)
1494 if self.__class__ != Writer:
1495 _director_objects.register(self)
1499 __swig_destroy__ = _IMP_display.delete_Writer
1500 __del__ =
lambda self:
None
1502 def set_frame(self, i):
1503 """set_frame(Writer self, unsigned int i)"""
1504 return _IMP_display.Writer_set_frame(self, i)
1507 def get_frame(self):
1508 """get_frame(Writer self) -> int"""
1509 return _IMP_display.Writer_get_frame(self)
1512 def add_geometry(self, *args):
1514 add_geometry(Writer self, Geometry g)
1515 add_geometry(Writer self, IMP::display::Geometries const & g)
1517 return _IMP_display.Writer_add_geometry(self, *args)
1521 """do_close(Writer self)"""
1522 return _IMP_display.Writer_do_close(self)
1526 """do_open(Writer self)"""
1527 return _IMP_display.Writer_do_open(self)
1530 def do_set_frame(self):
1531 """do_set_frame(Writer self)"""
1532 return _IMP_display.Writer_do_set_frame(self)
1536 """__str__(Writer self) -> std::string"""
1537 return _IMP_display.Writer___str__(self)
1541 """__repr__(Writer self) -> std::string"""
1542 return _IMP_display.Writer___repr__(self)
1545 return _object_cast_to_Writer(o)
1546 get_from = staticmethod(get_from)
1548 def get_type_name(self):
1549 return self.__class__.__name__
1550 def do_show(self, out):
1552 def get_version_info(self):
1553 if"IMP::display" ==
"IMP":
1554 return VersionInfo(self.__module__,
1555 __import__(self.__module__).get_module_version())
1558 __import__(self.__module__).get_module_version())
1560 return _object_cast_to_Writer(o)
1561 get_from = staticmethod(get_from)
1563 def __disown__(self):
1565 _IMP_display.disown_Writer(self)
1566 return weakref_proxy(self)
1568 def handle_sphere(self, arg0, arg1, arg2):
1569 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1570 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1573 def handle_cylinder(self, arg0, arg1, arg2):
1574 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1575 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1578 def handle_point(self, arg0, arg1, arg2):
1579 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1580 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1583 def handle_segment(self, arg0, arg1, arg2):
1584 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1585 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1588 def handle_polygon(self, arg0, arg1, arg2):
1589 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1590 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1593 def handle_triangle(self, arg0, arg1, arg2):
1594 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1595 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1598 def handle_surface_mesh(self, arg0, arg1, arg2):
1599 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1600 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1603 def handle_label(self, arg0, arg1, arg2):
1604 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1605 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1608 def handle_ellipsoid(self, arg0, arg1, arg2):
1609 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1610 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1613 def handle_bounding_box(self, arg0, arg1, arg2):
1614 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1615 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1618 def handle_anything(self, arg0, arg1, arg2):
1619 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1620 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1623 def do_destroy(self):
1624 """do_destroy(Writer self)"""
1625 return _IMP_display.Writer_do_destroy(self)
1627 Writer_swigregister = _IMP_display.Writer_swigregister
1628 Writer_swigregister(Writer)
1630 class TextWriter(Writer):
1631 """Proxy of C++ IMP::display::TextWriter class"""
1632 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1635 """open(TextWriter self)"""
1636 return _IMP_display.TextWriter_open(self)
1639 def get_stream(self):
1640 """get_stream(TextWriter self) -> _ostream"""
1641 return _IMP_display.TextWriter_get_stream(self)
1644 def do_set_frame(self):
1645 """do_set_frame(TextWriter self)"""
1646 return _IMP_display.TextWriter_do_set_frame(self)
1649 def __init__(self, *args):
1651 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1652 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1654 if self.__class__ == TextWriter:
1658 this = _IMP_display.new_TextWriter(_self, *args)
1660 self.this.append(this)
1663 if self.__class__ != TextWriter:
1664 _director_objects.register(self)
1669 def get_current_file_name(self):
1670 """get_current_file_name(TextWriter self) -> std::string"""
1671 return _IMP_display.TextWriter_get_current_file_name(self)
1673 __swig_destroy__ = _IMP_display.delete_TextWriter
1674 __del__ =
lambda self:
None
1677 """__str__(TextWriter self) -> std::string"""
1678 return _IMP_display.TextWriter___str__(self)
1682 """__repr__(TextWriter self) -> std::string"""
1683 return _IMP_display.TextWriter___repr__(self)
1686 return _object_cast_to_TextWriter(o)
1687 get_from = staticmethod(get_from)
1689 def get_type_name(self):
1690 return self.__class__.__name__
1691 def do_show(self, out):
1693 def get_version_info(self):
1694 if"IMP::display" ==
"IMP":
1695 return VersionInfo(self.__module__,
1696 __import__(self.__module__).get_module_version())
1699 __import__(self.__module__).get_module_version())
1701 return _object_cast_to_TextWriter(o)
1702 get_from = staticmethod(get_from)
1704 def __disown__(self):
1706 _IMP_display.disown_TextWriter(self)
1707 return weakref_proxy(self)
1709 def handle_sphere(self, arg0, arg1, arg2):
1710 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1711 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1714 def handle_cylinder(self, arg0, arg1, arg2):
1715 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1716 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1719 def handle_point(self, arg0, arg1, arg2):
1720 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1721 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1724 def handle_segment(self, arg0, arg1, arg2):
1725 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1726 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1729 def handle_polygon(self, arg0, arg1, arg2):
1730 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1731 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1734 def handle_triangle(self, arg0, arg1, arg2):
1735 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1736 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1739 def handle_surface_mesh(self, arg0, arg1, arg2):
1740 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1741 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1744 def handle_label(self, arg0, arg1, arg2):
1745 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1746 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1749 def handle_ellipsoid(self, arg0, arg1, arg2):
1750 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1751 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1754 def handle_bounding_box(self, arg0, arg1, arg2):
1755 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1756 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1759 def handle_anything(self, arg0, arg1, arg2):
1760 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1761 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1764 def do_destroy(self):
1765 """do_destroy(TextWriter self)"""
1766 return _IMP_display.TextWriter_do_destroy(self)
1770 """do_close(TextWriter self)"""
1771 return _IMP_display.TextWriter_do_close(self)
1775 """do_open(TextWriter self)"""
1776 return _IMP_display.TextWriter_do_open(self)
1778 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1779 TextWriter_swigregister(TextWriter)
1783 """create_writer(std::string filename) -> Writer"""
1784 return _IMP_display.create_writer(filename)
1785 class WriterAdaptor(IMP._InputAdaptor):
1786 """Proxy of C++ IMP::display::WriterAdaptor class"""
1787 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1789 def __init__(self, *args):
1791 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1792 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1794 this = _IMP_display.new_WriterAdaptor(*args)
1796 self.this.append(this)
1800 def get_writer(self):
1801 """get_writer(WriterAdaptor self) -> Writer"""
1802 return _IMP_display.WriterAdaptor_get_writer(self)
1805 def show(self, *args):
1807 show(WriterAdaptor self, _ostream out)
1808 show(WriterAdaptor self)
1810 return _IMP_display.WriterAdaptor_show(self, *args)
1812 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1813 __del__ =
lambda self:
None
1816 """__str__(WriterAdaptor self) -> std::string"""
1817 return _IMP_display.WriterAdaptor___str__(self)
1821 """__repr__(WriterAdaptor self) -> std::string"""
1822 return _IMP_display.WriterAdaptor___repr__(self)
1824 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1825 WriterAdaptor_swigregister(WriterAdaptor)
1827 class ChimeraWriter(TextWriter):
1828 """Proxy of C++ IMP::display::ChimeraWriter class"""
1829 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1831 def __init__(self, *args):
1833 __init__(IMP::display::ChimeraWriter self, TextOutput of) -> ChimeraWriter
1834 __init__(IMP::display::ChimeraWriter self, std::string name) -> ChimeraWriter
1835 __init__(IMP::display::ChimeraWriter self, char const * name) -> ChimeraWriter
1837 this = _IMP_display.new_ChimeraWriter(*args)
1839 self.this.append(this)
1843 def get_version_info(self):
1844 """get_version_info(ChimeraWriter self) -> VersionInfo"""
1845 return _IMP_display.ChimeraWriter_get_version_info(self)
1849 """__str__(ChimeraWriter self) -> std::string"""
1850 return _IMP_display.ChimeraWriter___str__(self)
1854 """__repr__(ChimeraWriter self) -> std::string"""
1855 return _IMP_display.ChimeraWriter___repr__(self)
1858 return _object_cast_to_ChimeraWriter(o)
1859 get_from = staticmethod(get_from)
1861 ChimeraWriter_swigregister = _IMP_display.ChimeraWriter_swigregister
1862 ChimeraWriter_swigregister(ChimeraWriter)
1865 """Proxy of C++ IMP::display::Colored class"""
1866 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1868 def set_color(self, c):
1869 """set_color(Colored self, Color c)"""
1870 return _IMP_display.Colored_set_color(self, c)
1873 def get_color(self):
1874 """get_color(Colored self) -> Color"""
1875 return _IMP_display.Colored_get_color(self)
1878 def get_color_keys():
1879 """get_color_keys() -> IMP::FloatKeys const &"""
1880 return _IMP_display.Colored_get_color_keys()
1882 get_color_keys = staticmethod(get_color_keys)
1884 def __init__(self, *args):
1886 __init__(IMP::display::Colored self) -> Colored
1887 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1888 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1890 this = _IMP_display.new_Colored(*args)
1892 self.this.append(this)
1896 def get_is_setup(*args):
1898 get_is_setup(Model m, ParticleIndex pi) -> bool
1899 get_is_setup(_ParticleAdaptor p) -> bool
1901 return _IMP_display.Colored_get_is_setup(*args)
1903 get_is_setup = staticmethod(get_is_setup)
1905 def show(self, *args):
1907 show(Colored self, _ostream out)
1910 return _IMP_display.Colored_show(self, *args)
1913 def setup_particle(*args):
1915 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1916 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1918 return _IMP_display.Colored_setup_particle(*args)
1920 setup_particle = staticmethod(setup_particle)
1922 def add_attribute(self, *args):
1924 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1925 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1926 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1927 add_attribute(Colored self, StringKey a0, IMP::String a1)
1928 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1929 add_attribute(Colored self, ObjectKey a0, Object a1)
1931 return _IMP_display.Colored_add_attribute(self, *args)
1934 def get_value(self, *args):
1936 get_value(Colored self, FloatKey a0) -> IMP::Float
1937 get_value(Colored self, IntKey a0) -> IMP::Int
1938 get_value(Colored self, StringKey a0) -> IMP::String
1939 get_value(Colored self, ParticleIndexKey a0) -> Particle
1940 get_value(Colored self, ObjectKey a0) -> Object
1942 return _IMP_display.Colored_get_value(self, *args)
1945 def set_value(self, *args):
1947 set_value(Colored self, FloatKey a0, IMP::Float a1)
1948 set_value(Colored self, IntKey a0, IMP::Int a1)
1949 set_value(Colored self, StringKey a0, IMP::String a1)
1950 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1951 set_value(Colored self, ObjectKey a0, Object a1)
1953 return _IMP_display.Colored_set_value(self, *args)
1956 def remove_attribute(self, *args):
1958 remove_attribute(Colored self, FloatKey a0)
1959 remove_attribute(Colored self, IntKey a0)
1960 remove_attribute(Colored self, StringKey a0)
1961 remove_attribute(Colored self, ParticleIndexKey a0)
1962 remove_attribute(Colored self, ObjectKey a0)
1964 return _IMP_display.Colored_remove_attribute(self, *args)
1967 def has_attribute(self, *args):
1969 has_attribute(Colored self, FloatKey a0) -> bool
1970 has_attribute(Colored self, IntKey a0) -> bool
1971 has_attribute(Colored self, StringKey a0) -> bool
1972 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1973 has_attribute(Colored self, ObjectKey a0) -> bool
1975 return _IMP_display.Colored_has_attribute(self, *args)
1978 def get_derivative(self, a0):
1979 """get_derivative(Colored self, FloatKey a0) -> double"""
1980 return _IMP_display.Colored_get_derivative(self, a0)
1984 """get_name(Colored self) -> std::string"""
1985 return _IMP_display.Colored_get_name(self)
1988 def clear_caches(self):
1989 """clear_caches(Colored self)"""
1990 return _IMP_display.Colored_clear_caches(self)
1993 def set_name(self, a0):
1994 """set_name(Colored self, std::string a0)"""
1995 return _IMP_display.Colored_set_name(self, a0)
1999 """set_check_level(Colored self, IMP::CheckLevel a0)"""
2000 return _IMP_display.Colored_set_check_level(self, a0)
2003 def add_to_derivative(self, a0, a1, a2):
2004 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2005 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
2008 def set_is_optimized(self, a0, a1):
2009 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
2010 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
2013 def get_is_optimized(self, a0):
2014 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
2015 return _IMP_display.Colored_get_is_optimized(self, a0)
2019 """get_check_level(Colored self) -> IMP::CheckLevel"""
2020 return _IMP_display.Colored_get_check_level(self)
2023 def __eq__(self, *args):
2025 __eq__(Colored self, Colored o) -> bool
2026 __eq__(Colored self, Particle d) -> bool
2028 return _IMP_display.Colored___eq__(self, *args)
2031 def __ne__(self, *args):
2033 __ne__(Colored self, Colored o) -> bool
2034 __ne__(Colored self, Particle d) -> bool
2036 return _IMP_display.Colored___ne__(self, *args)
2039 def __le__(self, *args):
2041 __le__(Colored self, Colored o) -> bool
2042 __le__(Colored self, Particle d) -> bool
2044 return _IMP_display.Colored___le__(self, *args)
2047 def __lt__(self, *args):
2049 __lt__(Colored self, Colored o) -> bool
2050 __lt__(Colored self, Particle d) -> bool
2052 return _IMP_display.Colored___lt__(self, *args)
2055 def __ge__(self, *args):
2057 __ge__(Colored self, Colored o) -> bool
2058 __ge__(Colored self, Particle d) -> bool
2060 return _IMP_display.Colored___ge__(self, *args)
2063 def __gt__(self, *args):
2065 __gt__(Colored self, Colored o) -> bool
2066 __gt__(Colored self, Particle d) -> bool
2068 return _IMP_display.Colored___gt__(self, *args)
2072 """__hash__(Colored self) -> std::size_t"""
2073 return _IMP_display.Colored___hash__(self)
2077 """__str__(Colored self) -> std::string"""
2078 return _IMP_display.Colored___str__(self)
2082 """__repr__(Colored self) -> std::string"""
2083 return _IMP_display.Colored___repr__(self)
2085 __swig_destroy__ = _IMP_display.delete_Colored
2086 __del__ =
lambda self:
None
2087 Colored_swigregister = _IMP_display.Colored_swigregister
2088 Colored_swigregister(Colored)
2090 def Colored_get_color_keys():
2091 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2092 return _IMP_display.Colored_get_color_keys()
2094 def Colored_get_is_setup(*args):
2096 get_is_setup(Model m, ParticleIndex pi) -> bool
2097 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2099 return _IMP_display.Colored_get_is_setup(*args)
2101 def Colored_setup_particle(*args):
2103 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2104 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2106 return _IMP_display.Colored_setup_particle(*args)
2109 def __lshift__(out, n):
2110 """__lshift__(_ostream out, Colored n) -> _ostream"""
2111 return _IMP_display.__lshift__(out, n)
2112 class FilterGeometry(GeometryProcessor, Geometry):
2113 """Proxy of C++ IMP::display::FilterGeometry class"""
2114 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2116 def __init__(self, p):
2117 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2118 this = _IMP_display.new_FilterGeometry(p)
2120 self.this.append(this)
2124 def add_geometry(self, *args):
2126 add_geometry(FilterGeometry self, Geometry g)
2127 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2129 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2132 def get_version_info(self):
2133 """get_version_info(FilterGeometry self) -> VersionInfo"""
2134 return _IMP_display.FilterGeometry_get_version_info(self)
2138 """__str__(FilterGeometry self) -> std::string"""
2139 return _IMP_display.FilterGeometry___str__(self)
2143 """__repr__(FilterGeometry self) -> std::string"""
2144 return _IMP_display.FilterGeometry___repr__(self)
2147 return _object_cast_to_FilterGeometry(o)
2148 get_from = staticmethod(get_from)
2150 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2151 FilterGeometry_swigregister(FilterGeometry)
2154 """Proxy of C++ IMP::display::WriteOptimizerState class"""
2155 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2157 def __init__(self, m, w):
2158 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2159 this = _IMP_display.new_WriteOptimizerState(m, w)
2161 self.this.append(this)
2166 """write(WriteOptimizerState self, WriterAdaptor w)"""
2167 return _IMP_display.WriteOptimizerState_write(self, w)
2170 def remove_geometry(self, d):
2171 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2172 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2175 def remove_geometries(self, d):
2176 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2177 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2180 def set_geometries(self, ps):
2181 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2182 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2185 def set_geometries_order(self, objs):
2186 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2187 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2190 def add_geometry(self, obj):
2191 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2192 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2196 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2197 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2200 def clear_geometries(self):
2201 """clear_geometries(WriteOptimizerState self)"""
2202 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2205 def get_number_of_geometries(self):
2206 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2207 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2210 def get_has_geometries(self):
2211 """get_has_geometries(WriteOptimizerState self) -> bool"""
2212 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2215 def get_geometry(self, i):
2216 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2217 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2220 def get_geometries(self):
2221 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2222 return _IMP_display.WriteOptimizerState_get_geometries(self)
2225 def reserve_geometries(self, sz):
2226 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2227 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2230 def get_version_info(self):
2231 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2232 return _IMP_display.WriteOptimizerState_get_version_info(self)
2236 """__str__(WriteOptimizerState self) -> std::string"""
2237 return _IMP_display.WriteOptimizerState___str__(self)
2241 """__repr__(WriteOptimizerState self) -> std::string"""
2242 return _IMP_display.WriteOptimizerState___repr__(self)
2245 return _object_cast_to_WriteOptimizerState(o)
2246 get_from = staticmethod(get_from)
2248 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2249 WriteOptimizerState_swigregister(WriteOptimizerState)
2251 class SingletonGeometry(Geometry):
2252 """Proxy of C++ IMP::display::SingletonGeometry class"""
2253 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2255 def __init__(self, p):
2256 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2257 this = _IMP_display.new_SingletonGeometry(p)
2259 self.this.append(this)
2263 def get_particle(self):
2264 """get_particle(SingletonGeometry self) -> Particle"""
2265 return _IMP_display.SingletonGeometry_get_particle(self)
2267 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2268 __del__ =
lambda self:
None
2271 """__str__(SingletonGeometry self) -> std::string"""
2272 return _IMP_display.SingletonGeometry___str__(self)
2276 """__repr__(SingletonGeometry self) -> std::string"""
2277 return _IMP_display.SingletonGeometry___repr__(self)
2280 return _object_cast_to_SingletonGeometry(o)
2281 get_from = staticmethod(get_from)
2283 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2284 SingletonGeometry_swigregister(SingletonGeometry)
2286 class SingletonsGeometry(Geometry):
2287 """Proxy of C++ IMP::display::SingletonsGeometry class"""
2288 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2290 def __init__(self, *args):
2292 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2293 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2295 this = _IMP_display.new_SingletonsGeometry(*args)
2297 self.this.append(this)
2301 def get_container(self):
2302 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2303 return _IMP_display.SingletonsGeometry_get_container(self)
2305 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2306 __del__ =
lambda self:
None
2309 """__str__(SingletonsGeometry self) -> std::string"""
2310 return _IMP_display.SingletonsGeometry___str__(self)
2314 """__repr__(SingletonsGeometry self) -> std::string"""
2315 return _IMP_display.SingletonsGeometry___repr__(self)
2318 return _object_cast_to_SingletonsGeometry(o)
2319 get_from = staticmethod(get_from)
2321 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2322 SingletonsGeometry_swigregister(SingletonsGeometry)
2324 class PairGeometry(Geometry):
2325 """Proxy of C++ IMP::display::PairGeometry class"""
2326 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2328 def __init__(self, pp):
2329 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2330 this = _IMP_display.new_PairGeometry(pp)
2332 self.this.append(this)
2336 def get_particle_pair(self):
2337 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2338 return _IMP_display.PairGeometry_get_particle_pair(self)
2340 __swig_destroy__ = _IMP_display.delete_PairGeometry
2341 __del__ =
lambda self:
None
2344 """__str__(PairGeometry self) -> std::string"""
2345 return _IMP_display.PairGeometry___str__(self)
2349 """__repr__(PairGeometry self) -> std::string"""
2350 return _IMP_display.PairGeometry___repr__(self)
2353 return _object_cast_to_PairGeometry(o)
2354 get_from = staticmethod(get_from)
2356 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2357 PairGeometry_swigregister(PairGeometry)
2359 class PairsGeometry(Geometry):
2360 """Proxy of C++ IMP::display::PairsGeometry class"""
2361 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2363 def __init__(self, *args):
2365 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2366 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2368 this = _IMP_display.new_PairsGeometry(*args)
2370 self.this.append(this)
2374 def get_container(self):
2375 """get_container(PairsGeometry self) -> PairContainer"""
2376 return _IMP_display.PairsGeometry_get_container(self)
2378 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2379 __del__ =
lambda self:
None
2382 """__str__(PairsGeometry self) -> std::string"""
2383 return _IMP_display.PairsGeometry___str__(self)
2387 """__repr__(PairsGeometry self) -> std::string"""
2388 return _IMP_display.PairsGeometry___repr__(self)
2391 return _object_cast_to_PairsGeometry(o)
2392 get_from = staticmethod(get_from)
2394 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2395 PairsGeometry_swigregister(PairsGeometry)
2397 class PymolWriter(TextWriter):
2398 """Proxy of C++ IMP::display::PymolWriter class"""
2399 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2401 def __init__(self, *args):
2403 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2404 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2405 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2407 this = _IMP_display.new_PymolWriter(*args)
2409 self.this.append(this)
2413 def get_version_info(self):
2414 """get_version_info(PymolWriter self) -> VersionInfo"""
2415 return _IMP_display.PymolWriter_get_version_info(self)
2419 """__str__(PymolWriter self) -> std::string"""
2420 return _IMP_display.PymolWriter___str__(self)
2424 """__repr__(PymolWriter self) -> std::string"""
2425 return _IMP_display.PymolWriter___repr__(self)
2428 return _object_cast_to_PymolWriter(o)
2429 get_from = staticmethod(get_from)
2431 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2432 PymolWriter_swigregister(PymolWriter)
2434 class RestraintGeometry(Geometry):
2435 """Proxy of C++ IMP::display::RestraintGeometry class"""
2436 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2438 def __init__(self, p):
2439 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2440 this = _IMP_display.new_RestraintGeometry(p)
2442 self.this.append(this)
2446 def get_restraint(self):
2447 """get_restraint(RestraintGeometry self) -> Restraint"""
2448 return _IMP_display.RestraintGeometry_get_restraint(self)
2451 def get_version_info(self):
2452 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2453 return _IMP_display.RestraintGeometry_get_version_info(self)
2457 """__str__(RestraintGeometry self) -> std::string"""
2458 return _IMP_display.RestraintGeometry___str__(self)
2462 """__repr__(RestraintGeometry self) -> std::string"""
2463 return _IMP_display.RestraintGeometry___repr__(self)
2466 return _object_cast_to_RestraintGeometry(o)
2467 get_from = staticmethod(get_from)
2469 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2470 RestraintGeometry_swigregister(RestraintGeometry)
2472 class RestraintSetGeometry(Geometry):
2473 """Proxy of C++ IMP::display::RestraintSetGeometry class"""
2474 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2476 def __init__(self, p):
2477 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2478 this = _IMP_display.new_RestraintSetGeometry(p)
2480 self.this.append(this)
2484 def get_restraint_set(self):
2485 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2486 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2489 def get_version_info(self):
2490 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2491 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2495 """__str__(RestraintSetGeometry self) -> std::string"""
2496 return _IMP_display.RestraintSetGeometry___str__(self)
2500 """__repr__(RestraintSetGeometry self) -> std::string"""
2501 return _IMP_display.RestraintSetGeometry___repr__(self)
2504 return _object_cast_to_RestraintSetGeometry(o)
2505 get_from = staticmethod(get_from)
2507 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2508 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2511 PivyWriter= _pivy.get_writer(Writer)
2512 _object_types.append(
'PivyWriter')
2515 def get_module_version():
2516 """get_module_version() -> std::string const"""
2517 return _IMP_display.get_module_version()
2520 """get_example_path(std::string fname) -> std::string"""
2521 return _IMP_display.get_example_path(fname)
2524 """get_data_path(std::string fname) -> std::string"""
2525 return _IMP_display.get_data_path(fname)
2526 from .
import _version_check
2527 _version_check.check_version(get_module_version())
2528 __version__ = get_module_version()
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.
double get_linear_color_map_value(double min, double max, double value)
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
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.
SphereGeometry * create_geometry(const algebra::Sphere3D &t, std::string name="algebra::Sphere3D"+"%1""%")
Common base class for heavy weight IMP objects.
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.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
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.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.