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."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
126 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
131 incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
132 incr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
134 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
139 decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
140 decr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
142 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
151 """equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
152 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
156 """copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
157 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
161 """next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
162 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
166 """__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
167 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
171 """previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
172 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
177 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
182 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
187 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
192 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
197 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
202 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
208 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
214 IMP_DISPLAY_SwigPyIterator_swigregister = _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister
215 IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
224 _IMP_display.IMP_DEBUG_swigconstant(_IMP_display)
225 IMP_DEBUG = _IMP_display.IMP_DEBUG
227 _IMP_display.IMP_RELEASE_swigconstant(_IMP_display)
228 IMP_RELEASE = _IMP_display.IMP_RELEASE
230 _IMP_display.IMP_SILENT_swigconstant(_IMP_display)
231 IMP_SILENT = _IMP_display.IMP_SILENT
233 _IMP_display.IMP_PROGRESS_swigconstant(_IMP_display)
234 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
236 _IMP_display.IMP_TERSE_swigconstant(_IMP_display)
237 IMP_TERSE = _IMP_display.IMP_TERSE
239 _IMP_display.IMP_VERBOSE_swigconstant(_IMP_display)
240 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
242 _IMP_display.IMP_MEMORY_swigconstant(_IMP_display)
243 IMP_MEMORY = _IMP_display.IMP_MEMORY
245 _IMP_display.IMP_NONE_swigconstant(_IMP_display)
246 IMP_NONE = _IMP_display.IMP_NONE
248 _IMP_display.IMP_USAGE_swigconstant(_IMP_display)
249 IMP_USAGE = _IMP_display.IMP_USAGE
251 _IMP_display.IMP_INTERNAL_swigconstant(_IMP_display)
252 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
254 _IMP_display.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_display)
255 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
257 _IMP_display.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_display)
258 IMP_COMPILER_HAS_AUTO = _IMP_display.IMP_COMPILER_HAS_AUTO
260 _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_display)
261 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
263 _IMP_display.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_display)
264 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_display.IMP_COMPILER_HAS_UNIQUE_PTR
266 _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
267 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
269 _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_display)
270 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
272 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_display)
273 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
275 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_display)
276 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
278 _IMP_display.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_display)
279 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
282 class _DirectorObjects(object):
283 """@internal Simple class to keep references to director objects
284 to prevent premature deletion."""
287 def register(self, obj):
288 """Take a reference to a director object; will only work for
289 refcounted C++ classes"""
290 if hasattr(obj,
'get_ref_count'):
291 self._objects.append(obj)
293 """Only drop our reference and allow cleanup by Python if no other
294 Python references exist (we hold 3 references: one in self._objects,
295 one in x, and one in the argument list for getrefcount) *and* no
296 other C++ references exist (the Python object always holds one)"""
297 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
298 or x.get_ref_count() > 1]
302 def get_object_count(self):
303 """Get number of director objects (useful for testing only)"""
304 return len(self._objects)
305 _director_objects = _DirectorObjects()
307 class _ostream(object):
308 """Proxy of C++ std::ostream class."""
310 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
312 def __init__(self, *args, **kwargs):
313 raise AttributeError(
"No constructor defined")
314 __repr__ = _swig_repr
316 def write(self, osa_buf):
317 """write(_ostream self, char const * osa_buf)"""
318 return _IMP_display._ostream_write(self, osa_buf)
320 _ostream_swigregister = _IMP_display._ostream_swigregister
321 _ostream_swigregister(_ostream)
324 _IMP_display.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_display)
325 IMP_COMPILER_HAS_OVERRIDE = _IMP_display.IMP_COMPILER_HAS_OVERRIDE
327 _IMP_display.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_display)
328 IMP_COMPILER_HAS_FINAL = _IMP_display.IMP_COMPILER_HAS_FINAL
330 _IMP_display.IMP_HAS_NOEXCEPT_swigconstant(_IMP_display)
331 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
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.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_display)
347 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
350 _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_display)
351 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
353 _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
354 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
356 _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
357 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
359 _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
360 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
362 _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
363 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
365 _IMP_display.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_display)
366 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
368 _IMP_display.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_display)
369 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
371 _IMP_display.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_display)
372 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
375 _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_display)
376 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
378 _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
379 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
381 _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
382 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
384 _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
385 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
387 _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
388 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
390 _IMP_display.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_display)
391 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
393 _IMP_display.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_display)
394 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
396 _object_types.append(
"Writer")
399 def _object_cast_to_Writer(o):
400 """_object_cast_to_Writer(Object o) -> Writer"""
401 return _IMP_display._object_cast_to_Writer(o)
403 _object_types.append(
"TextWriter")
406 def _object_cast_to_TextWriter(o):
407 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
408 return _IMP_display._object_cast_to_TextWriter(o)
410 _object_types.append(
"Geometry")
413 def _object_cast_to_Geometry(o):
414 """_object_cast_to_Geometry(Object o) -> Geometry"""
415 return _IMP_display._object_cast_to_Geometry(o)
417 _object_types.append(
"SingletonGeometry")
420 def _object_cast_to_SingletonGeometry(o):
421 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
422 return _IMP_display._object_cast_to_SingletonGeometry(o)
424 _object_types.append(
"PairGeometry")
427 def _object_cast_to_PairGeometry(o):
428 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
429 return _IMP_display._object_cast_to_PairGeometry(o)
431 _object_types.append(
"SingletonsGeometry")
434 def _object_cast_to_SingletonsGeometry(o):
435 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
436 return _IMP_display._object_cast_to_SingletonsGeometry(o)
438 _object_types.append(
"PairsGeometry")
441 def _object_cast_to_PairsGeometry(o):
442 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
443 return _IMP_display._object_cast_to_PairsGeometry(o)
445 _object_types.append(
"PymolWriter")
448 def _object_cast_to_PymolWriter(o):
449 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
450 return _IMP_display._object_cast_to_PymolWriter(o)
452 _object_types.append(
"SphereGeometry")
455 def _object_cast_to_SphereGeometry(o):
456 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
457 return _IMP_display._object_cast_to_SphereGeometry(o)
459 _object_types.append(
"CylinderGeometry")
462 def _object_cast_to_CylinderGeometry(o):
463 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
464 return _IMP_display._object_cast_to_CylinderGeometry(o)
466 _object_types.append(
"EllipsoidGeometry")
469 def _object_cast_to_EllipsoidGeometry(o):
470 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
471 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
473 _object_types.append(
"PointGeometry")
476 def _object_cast_to_PointGeometry(o):
477 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
478 return _IMP_display._object_cast_to_PointGeometry(o)
480 _object_types.append(
"SegmentGeometry")
483 def _object_cast_to_SegmentGeometry(o):
484 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
485 return _IMP_display._object_cast_to_SegmentGeometry(o)
487 _object_types.append(
"PolygonGeometry")
490 def _object_cast_to_PolygonGeometry(o):
491 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
492 return _IMP_display._object_cast_to_PolygonGeometry(o)
494 _object_types.append(
"ReferenceFrameGeometry")
497 def _object_cast_to_ReferenceFrameGeometry(o):
498 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
499 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
501 _object_types.append(
"BoundingBoxGeometry")
504 def _object_cast_to_BoundingBoxGeometry(o):
505 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
506 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
508 _object_types.append(
"LabelGeometry")
511 def _object_cast_to_LabelGeometry(o):
512 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
513 return _IMP_display._object_cast_to_LabelGeometry(o)
515 _object_types.append(
"RestraintGeometry")
518 def _object_cast_to_RestraintGeometry(o):
519 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
520 return _IMP_display._object_cast_to_RestraintGeometry(o)
522 _object_types.append(
"RestraintSetGeometry")
525 def _object_cast_to_RestraintSetGeometry(o):
526 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
527 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
529 _object_types.append(
"GeometrySet")
532 def _object_cast_to_GeometrySet(o):
533 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
534 return _IMP_display._object_cast_to_GeometrySet(o)
537 return [Colored(x)
for x
in l]
538 _plural_types.append(
"Coloreds")
541 _value_types.append(
"Colored")
545 _plural_types.append(
"Colors")
546 _value_types.append(
"Color")
550 _plural_types.append(
"WriterAdaptors")
551 _value_types.append(
"WriterAdaptor")
554 _object_types.append(
"FilterGeometry")
557 def _object_cast_to_FilterGeometry(o):
558 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
559 return _IMP_display._object_cast_to_FilterGeometry(o)
561 _object_types.append(
"WriteOptimizerState")
564 def _object_cast_to_WriteOptimizerState(o):
565 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
566 return _IMP_display._object_cast_to_WriteOptimizerState(o)
568 _object_types.append(
"TriangleGeometry")
571 def _object_cast_to_TriangleGeometry(o):
572 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
573 return _IMP_display._object_cast_to_TriangleGeometry(o)
575 _object_types.append(
"SurfaceMeshGeometry")
578 def _object_cast_to_SurfaceMeshGeometry(o):
579 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
580 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
582 _object_types.append(
"PlaneGeometry")
585 def _object_cast_to_PlaneGeometry(o):
586 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
587 return _IMP_display._object_cast_to_PlaneGeometry(o)
589 _object_types.append(
"IsosurfaceGeometry")
592 def _object_cast_to_IsosurfaceGeometry(o):
593 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
594 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
596 _object_types.append(
"SkinSurfaceGeometry")
599 def _object_cast_to_SkinSurfaceGeometry(o):
600 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
601 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
602 class Color(IMP._Value):
603 """Proxy of C++ IMP::display::Color class."""
605 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
607 def __init__(self, *args):
609 __init__(IMP::display::Color self) -> Color
610 __init__(IMP::display::Color self, double r, double g, double b) -> Color
612 this = _IMP_display.new_Color(*args)
614 self.this.append(this)
617 __swig_destroy__ = _IMP_display.delete_Color
618 __del__ =
lambda self:
None
621 """get_red(Color self) -> double"""
622 return _IMP_display.Color_get_red(self)
626 """get_green(Color self) -> double"""
627 return _IMP_display.Color_get_green(self)
631 """get_blue(Color self) -> double"""
632 return _IMP_display.Color_get_blue(self)
635 def show(self, *args):
637 show(Color self, _ostream out, std::string delim)
638 show(Color self, _ostream out)
641 return _IMP_display.Color_show(self, *args)
644 def __cmp__(self, o):
645 """__cmp__(Color self, Color o) -> int"""
646 return _IMP_display.Color___cmp__(self, o)
650 """__eq__(Color self, Color o) -> bool"""
651 return _IMP_display.Color___eq__(self, o)
655 """__ne__(Color self, Color o) -> bool"""
656 return _IMP_display.Color___ne__(self, o)
660 """__lt__(Color self, Color o) -> bool"""
661 return _IMP_display.Color___lt__(self, o)
665 """__gt__(Color self, Color o) -> bool"""
666 return _IMP_display.Color___gt__(self, o)
670 """__ge__(Color self, Color o) -> bool"""
671 return _IMP_display.Color___ge__(self, o)
675 """__le__(Color self, Color o) -> bool"""
676 return _IMP_display.Color___le__(self, o)
680 """__str__(Color self) -> std::string"""
681 return _IMP_display.Color___str__(self)
685 """__repr__(Color self) -> std::string"""
686 return _IMP_display.Color___repr__(self)
688 Color_swigregister = _IMP_display.Color_swigregister
689 Color_swigregister(Color)
693 """get_display_color(unsigned int i) -> Color"""
694 return _IMP_display.get_display_color(i)
697 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
698 return _IMP_display.get_interpolated_rgb(a, b, f)
701 """get_linear_color_map_value(double min, double max, double value) -> double"""
702 return _IMP_display.get_linear_color_map_value(min, max, value)
705 """get_jet_color(double f) -> Color"""
706 return _IMP_display.get_jet_color(f)
709 """get_hot_color(double f) -> Color"""
710 return _IMP_display.get_hot_color(f)
713 """get_rgb_color(double f) -> Color"""
714 return _IMP_display.get_rgb_color(f)
717 """get_gray_color(double f) -> Color"""
718 return _IMP_display.get_gray_color(f)
721 """get_gnuplot_color(double f) -> Color"""
722 return _IMP_display.get_gnuplot_color(f)
724 """Proxy of C++ IMP::display::Geometry class."""
726 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
728 def __init__(self, *args):
730 __init__(IMP::display::Geometry self, std::string name) -> Geometry
731 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
733 if self.__class__ == Geometry:
737 this = _IMP_display.new_Geometry(_self, *args)
739 self.this.append(this)
743 if self.__class__ != Geometry:
744 _director_objects.register(self)
750 """get_color(Geometry self) -> Color"""
751 return _IMP_display.Geometry_get_color(self)
754 def get_has_color(self):
755 """get_has_color(Geometry self) -> bool"""
756 return _IMP_display.Geometry_get_has_color(self)
759 def set_has_color(self, tf):
760 """set_has_color(Geometry self, bool tf)"""
761 return _IMP_display.Geometry_set_has_color(self, tf)
764 def set_color(self, c):
765 """set_color(Geometry self, Color c)"""
766 return _IMP_display.Geometry_set_color(self, c)
769 def get_components(self):
770 """get_components(Geometry self) -> IMP::display::Geometries"""
771 return _IMP_display.Geometry_get_components(self)
773 __swig_destroy__ = _IMP_display.delete_Geometry
774 __del__ =
lambda self:
None
777 """__str__(Geometry self) -> std::string"""
778 return _IMP_display.Geometry___str__(self)
782 """__repr__(Geometry self) -> std::string"""
783 return _IMP_display.Geometry___repr__(self)
788 return _object_cast_to_Geometry(o)
791 def get_type_name(self):
792 return self.__class__.__name__
793 def do_show(self, out):
795 def get_version_info(self):
796 if"IMP::display" ==
"IMP":
797 return VersionInfo(self.__module__,
798 __import__(self.__module__).get_module_version())
801 __import__(self.__module__).get_module_version())
804 return _object_cast_to_Geometry(o)
806 def __disown__(self):
808 _IMP_display.disown_Geometry(self)
809 return weakref_proxy(self)
811 def do_destroy(self):
812 """do_destroy(Geometry self)"""
813 return _IMP_display.Geometry_do_destroy(self)
815 Geometry_swigregister = _IMP_display.Geometry_swigregister
816 Geometry_swigregister(Geometry)
818 class GeometrySet(Geometry):
819 """Proxy of C++ IMP::display::GeometrySet class."""
821 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
823 def __init__(self, *args):
825 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
826 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
827 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
828 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
830 this = _IMP_display.new_GeometrySet(*args)
832 self.this.append(this)
836 def get_geometry(self):
837 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
838 return _IMP_display.GeometrySet_get_geometry(self)
841 def get_version_info(self):
842 """get_version_info(GeometrySet self) -> VersionInfo"""
843 return _IMP_display.GeometrySet_get_version_info(self)
847 """__str__(GeometrySet self) -> std::string"""
848 return _IMP_display.GeometrySet___str__(self)
852 """__repr__(GeometrySet self) -> std::string"""
853 return _IMP_display.GeometrySet___repr__(self)
858 return _object_cast_to_GeometrySet(o)
860 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
861 GeometrySet_swigregister(GeometrySet)
863 class SphereGeometry(Geometry):
864 """Proxy of C++ IMP::display::SphereGeometry class."""
866 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
868 def __init__(self, *args):
870 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
871 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
872 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
873 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
875 this = _IMP_display.new_SphereGeometry(*args)
877 self.this.append(this)
881 def get_geometry(self):
882 """get_geometry(SphereGeometry self) -> Sphere3D"""
883 return _IMP_display.SphereGeometry_get_geometry(self)
886 def set_geometry(self, v):
887 """set_geometry(SphereGeometry self, Sphere3D v)"""
888 return _IMP_display.SphereGeometry_set_geometry(self, v)
891 def get_version_info(self):
892 """get_version_info(SphereGeometry self) -> VersionInfo"""
893 return _IMP_display.SphereGeometry_get_version_info(self)
897 """__str__(SphereGeometry self) -> std::string"""
898 return _IMP_display.SphereGeometry___str__(self)
902 """__repr__(SphereGeometry self) -> std::string"""
903 return _IMP_display.SphereGeometry___repr__(self)
908 return _object_cast_to_SphereGeometry(o)
910 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
911 SphereGeometry_swigregister(SphereGeometry)
913 class CylinderGeometry(Geometry):
914 """Proxy of C++ IMP::display::CylinderGeometry class."""
916 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
918 def __init__(self, *args):
920 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
921 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
922 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
923 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
925 this = _IMP_display.new_CylinderGeometry(*args)
927 self.this.append(this)
931 def get_geometry(self):
932 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
933 return _IMP_display.CylinderGeometry_get_geometry(self)
936 def set_geometry(self, v):
937 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
938 return _IMP_display.CylinderGeometry_set_geometry(self, v)
941 def get_version_info(self):
942 """get_version_info(CylinderGeometry self) -> VersionInfo"""
943 return _IMP_display.CylinderGeometry_get_version_info(self)
947 """__str__(CylinderGeometry self) -> std::string"""
948 return _IMP_display.CylinderGeometry___str__(self)
952 """__repr__(CylinderGeometry self) -> std::string"""
953 return _IMP_display.CylinderGeometry___repr__(self)
958 return _object_cast_to_CylinderGeometry(o)
960 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
961 CylinderGeometry_swigregister(CylinderGeometry)
963 class EllipsoidGeometry(Geometry):
964 """Proxy of C++ IMP::display::EllipsoidGeometry class."""
966 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
968 def __init__(self, *args):
970 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
971 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
972 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
973 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
975 this = _IMP_display.new_EllipsoidGeometry(*args)
977 self.this.append(this)
981 def get_geometry(self):
982 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
983 return _IMP_display.EllipsoidGeometry_get_geometry(self)
986 def set_geometry(self, v):
987 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
988 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
991 def get_version_info(self):
992 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
993 return _IMP_display.EllipsoidGeometry_get_version_info(self)
997 """__str__(EllipsoidGeometry self) -> std::string"""
998 return _IMP_display.EllipsoidGeometry___str__(self)
1002 """__repr__(EllipsoidGeometry self) -> std::string"""
1003 return _IMP_display.EllipsoidGeometry___repr__(self)
1008 return _object_cast_to_EllipsoidGeometry(o)
1010 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
1011 EllipsoidGeometry_swigregister(EllipsoidGeometry)
1013 class PointGeometry(Geometry):
1014 """Proxy of C++ IMP::display::PointGeometry class."""
1016 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1018 def __init__(self, *args):
1020 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
1021 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
1022 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
1023 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
1025 this = _IMP_display.new_PointGeometry(*args)
1027 self.this.append(this)
1031 def get_geometry(self):
1032 """get_geometry(PointGeometry self) -> Vector3D"""
1033 return _IMP_display.PointGeometry_get_geometry(self)
1036 def set_geometry(self, v):
1037 """set_geometry(PointGeometry self, Vector3D v)"""
1038 return _IMP_display.PointGeometry_set_geometry(self, v)
1041 def get_version_info(self):
1042 """get_version_info(PointGeometry self) -> VersionInfo"""
1043 return _IMP_display.PointGeometry_get_version_info(self)
1047 """__str__(PointGeometry self) -> std::string"""
1048 return _IMP_display.PointGeometry___str__(self)
1052 """__repr__(PointGeometry self) -> std::string"""
1053 return _IMP_display.PointGeometry___repr__(self)
1058 return _object_cast_to_PointGeometry(o)
1060 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
1061 PointGeometry_swigregister(PointGeometry)
1063 class SegmentGeometry(Geometry):
1064 """Proxy of C++ IMP::display::SegmentGeometry 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::SegmentGeometry self, Segment3D v) -> SegmentGeometry
1071 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
1072 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
1073 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
1075 this = _IMP_display.new_SegmentGeometry(*args)
1077 self.this.append(this)
1081 def get_geometry(self):
1082 """get_geometry(SegmentGeometry self) -> Segment3D"""
1083 return _IMP_display.SegmentGeometry_get_geometry(self)
1086 def set_geometry(self, v):
1087 """set_geometry(SegmentGeometry self, Segment3D v)"""
1088 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1091 def get_version_info(self):
1092 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1093 return _IMP_display.SegmentGeometry_get_version_info(self)
1097 """__str__(SegmentGeometry self) -> std::string"""
1098 return _IMP_display.SegmentGeometry___str__(self)
1102 """__repr__(SegmentGeometry self) -> std::string"""
1103 return _IMP_display.SegmentGeometry___repr__(self)
1108 return _object_cast_to_SegmentGeometry(o)
1110 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1111 SegmentGeometry_swigregister(SegmentGeometry)
1113 class PolygonGeometry(Geometry):
1114 """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."""
1166 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1168 def __init__(self, *args):
1170 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1171 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1172 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1173 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1175 this = _IMP_display.new_TriangleGeometry(*args)
1177 self.this.append(this)
1181 def get_geometry(self):
1182 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1183 return _IMP_display.TriangleGeometry_get_geometry(self)
1186 def set_geometry(self, v):
1187 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1188 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1191 def get_version_info(self):
1192 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1193 return _IMP_display.TriangleGeometry_get_version_info(self)
1197 """__str__(TriangleGeometry self) -> std::string"""
1198 return _IMP_display.TriangleGeometry___str__(self)
1202 """__repr__(TriangleGeometry self) -> std::string"""
1203 return _IMP_display.TriangleGeometry___repr__(self)
1208 return _object_cast_to_TriangleGeometry(o)
1210 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1211 TriangleGeometry_swigregister(TriangleGeometry)
1213 class BoundingBoxGeometry(Geometry):
1214 """Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1216 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1218 def __init__(self, *args):
1220 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1221 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1222 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1223 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1225 this = _IMP_display.new_BoundingBoxGeometry(*args)
1227 self.this.append(this)
1231 def get_geometry(self):
1232 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1233 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1236 def set_geometry(self, v):
1237 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1238 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1241 def get_version_info(self):
1242 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1243 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1247 """__str__(BoundingBoxGeometry self) -> std::string"""
1248 return _IMP_display.BoundingBoxGeometry___str__(self)
1252 """__repr__(BoundingBoxGeometry self) -> std::string"""
1253 return _IMP_display.BoundingBoxGeometry___repr__(self)
1258 return _object_cast_to_BoundingBoxGeometry(o)
1260 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1261 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1263 class ReferenceFrameGeometry(Geometry):
1264 """Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1266 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1268 def __init__(self, *args):
1270 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1271 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1272 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1273 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1275 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1277 self.this.append(this)
1281 def get_geometry(self):
1282 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1283 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1286 def set_geometry(self, v):
1287 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1288 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1291 def get_version_info(self):
1292 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1293 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1297 """__str__(ReferenceFrameGeometry self) -> std::string"""
1298 return _IMP_display.ReferenceFrameGeometry___str__(self)
1302 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1303 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1308 return _object_cast_to_ReferenceFrameGeometry(o)
1310 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1311 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1316 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1317 create_geometry(Sphere3D t) -> SphereGeometry
1318 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1319 create_geometry(Cylinder3D t) -> CylinderGeometry
1320 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1321 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1322 create_geometry(Vector3D t, std::string name) -> PointGeometry
1323 create_geometry(Vector3D t) -> PointGeometry
1324 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1325 create_geometry(Segment3D t) -> SegmentGeometry
1326 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1327 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1328 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1329 create_geometry(Triangle3D t) -> TriangleGeometry
1330 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1331 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1332 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1333 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1335 return _IMP_display.create_geometry(*args)
1336 class LabelGeometry(Geometry):
1337 """Proxy of C++ IMP::display::LabelGeometry class."""
1339 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1341 def __init__(self, *args):
1343 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1344 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1346 this = _IMP_display.new_LabelGeometry(*args)
1348 self.this.append(this)
1353 """get_text(LabelGeometry self) -> std::string"""
1354 return _IMP_display.LabelGeometry_get_text(self)
1357 def get_location(self):
1358 """get_location(LabelGeometry self) -> Sphere3D"""
1359 return _IMP_display.LabelGeometry_get_location(self)
1362 def get_version_info(self):
1363 """get_version_info(LabelGeometry self) -> VersionInfo"""
1364 return _IMP_display.LabelGeometry_get_version_info(self)
1368 """__str__(LabelGeometry self) -> std::string"""
1369 return _IMP_display.LabelGeometry___str__(self)
1373 """__repr__(LabelGeometry self) -> std::string"""
1374 return _IMP_display.LabelGeometry___repr__(self)
1379 return _object_cast_to_LabelGeometry(o)
1381 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1382 LabelGeometry_swigregister(LabelGeometry)
1384 class SurfaceMeshGeometry(Geometry):
1385 """Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1387 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1389 def __init__(self, vertices, faces):
1390 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1391 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1393 self.this.append(this)
1397 def get_vertexes(self):
1398 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1399 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1402 def get_faces(self):
1403 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1404 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1407 def get_version_info(self):
1408 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1409 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1413 """__str__(SurfaceMeshGeometry self) -> std::string"""
1414 return _IMP_display.SurfaceMeshGeometry___str__(self)
1418 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1419 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1424 return _object_cast_to_SurfaceMeshGeometry(o)
1426 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1427 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1429 class PlaneGeometry(Geometry):
1430 """Proxy of C++ IMP::display::PlaneGeometry class."""
1432 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1434 def __init__(self, loc, box):
1435 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1436 this = _IMP_display.new_PlaneGeometry(loc, box)
1438 self.this.append(this)
1442 def get_version_info(self):
1443 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1444 return _IMP_display.PlaneGeometry_get_version_info(self)
1448 """__str__(PlaneGeometry self) -> std::string"""
1449 return _IMP_display.PlaneGeometry___str__(self)
1453 """__repr__(PlaneGeometry self) -> std::string"""
1454 return _IMP_display.PlaneGeometry___repr__(self)
1459 return _object_cast_to_PlaneGeometry(o)
1461 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1462 PlaneGeometry_swigregister(PlaneGeometry)
1464 class IsosurfaceGeometry(SurfaceMeshGeometry):
1465 """Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1467 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1469 def __init__(self, *args):
1471 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1472 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1474 this = _IMP_display.new_IsosurfaceGeometry(*args)
1476 self.this.append(this)
1481 """__str__(IsosurfaceGeometry self) -> std::string"""
1482 return _IMP_display.IsosurfaceGeometry___str__(self)
1486 """__repr__(IsosurfaceGeometry self) -> std::string"""
1487 return _IMP_display.IsosurfaceGeometry___repr__(self)
1492 return _object_cast_to_IsosurfaceGeometry(o)
1494 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1495 __del__ =
lambda self:
None
1496 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1497 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1499 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1500 """Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1502 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1504 def __init__(self, balls):
1505 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1506 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1508 self.this.append(this)
1513 """__str__(SkinSurfaceGeometry self) -> std::string"""
1514 return _IMP_display.SkinSurfaceGeometry___str__(self)
1518 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1519 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1524 return _object_cast_to_SkinSurfaceGeometry(o)
1526 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1527 __del__ =
lambda self:
None
1528 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1529 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1531 class GeometryProcessor(object):
1532 """Proxy of C++ IMP::display::GeometryProcessor class."""
1534 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1535 __repr__ = _swig_repr
1538 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1539 this = _IMP_display.new_GeometryProcessor()
1541 self.this.append(this)
1544 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1545 GeometryProcessor_swigregister(GeometryProcessor)
1548 """Proxy of C++ IMP::display::Writer class."""
1550 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1552 def __init__(self, name):
1553 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1554 if self.__class__ == Writer:
1558 this = _IMP_display.new_Writer(_self, name)
1560 self.this.append(this)
1564 if self.__class__ != Writer:
1565 _director_objects.register(self)
1569 __swig_destroy__ = _IMP_display.delete_Writer
1570 __del__ =
lambda self:
None
1572 def set_frame(self, i):
1573 """set_frame(Writer self, unsigned int i)"""
1574 return _IMP_display.Writer_set_frame(self, i)
1577 def get_frame(self):
1578 """get_frame(Writer self) -> int"""
1579 return _IMP_display.Writer_get_frame(self)
1584 add_geometry(Writer self, Geometry g)
1585 add_geometry(Writer self, IMP::display::Geometries const & g)
1587 return _IMP_display.Writer_add_geometry(self, *args)
1591 """do_close(Writer self)"""
1592 return _IMP_display.Writer_do_close(self)
1596 """do_open(Writer self)"""
1597 return _IMP_display.Writer_do_open(self)
1600 def do_set_frame(self):
1601 """do_set_frame(Writer self)"""
1602 return _IMP_display.Writer_do_set_frame(self)
1606 """__str__(Writer self) -> std::string"""
1607 return _IMP_display.Writer___str__(self)
1611 """__repr__(Writer self) -> std::string"""
1612 return _IMP_display.Writer___repr__(self)
1617 return _object_cast_to_Writer(o)
1620 def get_type_name(self):
1621 return self.__class__.__name__
1622 def do_show(self, out):
1624 def get_version_info(self):
1625 if"IMP::display" ==
"IMP":
1626 return VersionInfo(self.__module__,
1627 __import__(self.__module__).get_module_version())
1630 __import__(self.__module__).get_module_version())
1633 return _object_cast_to_Writer(o)
1635 def __disown__(self):
1637 _IMP_display.disown_Writer(self)
1638 return weakref_proxy(self)
1640 def handle_sphere(self, arg0, arg1, arg2):
1641 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1642 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1645 def handle_cylinder(self, arg0, arg1, arg2):
1646 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1647 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1650 def handle_point(self, arg0, arg1, arg2):
1651 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1652 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1655 def handle_segment(self, arg0, arg1, arg2):
1656 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1657 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1660 def handle_polygon(self, arg0, arg1, arg2):
1661 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1662 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1665 def handle_triangle(self, arg0, arg1, arg2):
1666 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1667 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1670 def handle_surface_mesh(self, arg0, arg1, arg2):
1671 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1672 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1675 def handle_label(self, arg0, arg1, arg2):
1676 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1677 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1680 def handle_ellipsoid(self, arg0, arg1, arg2):
1681 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1682 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1685 def handle_bounding_box(self, arg0, arg1, arg2):
1686 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1687 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1690 def handle_anything(self, arg0, arg1, arg2):
1691 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1692 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1695 def do_destroy(self):
1696 """do_destroy(Writer self)"""
1697 return _IMP_display.Writer_do_destroy(self)
1699 Writer_swigregister = _IMP_display.Writer_swigregister
1700 Writer_swigregister(Writer)
1702 class TextWriter(Writer):
1703 """Proxy of C++ IMP::display::TextWriter class."""
1705 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1708 """open(TextWriter self)"""
1709 return _IMP_display.TextWriter_open(self)
1712 def get_stream(self):
1713 """get_stream(TextWriter self) -> _ostream"""
1714 return _IMP_display.TextWriter_get_stream(self)
1717 def do_set_frame(self):
1718 """do_set_frame(TextWriter self)"""
1719 return _IMP_display.TextWriter_do_set_frame(self)
1722 def __init__(self, *args):
1724 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1725 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1727 if self.__class__ == TextWriter:
1731 this = _IMP_display.new_TextWriter(_self, *args)
1733 self.this.append(this)
1737 if self.__class__ != TextWriter:
1738 _director_objects.register(self)
1743 def get_current_file_name(self):
1744 """get_current_file_name(TextWriter self) -> std::string"""
1745 return _IMP_display.TextWriter_get_current_file_name(self)
1747 __swig_destroy__ = _IMP_display.delete_TextWriter
1748 __del__ =
lambda self:
None
1751 """__str__(TextWriter self) -> std::string"""
1752 return _IMP_display.TextWriter___str__(self)
1756 """__repr__(TextWriter self) -> std::string"""
1757 return _IMP_display.TextWriter___repr__(self)
1762 return _object_cast_to_TextWriter(o)
1765 def get_type_name(self):
1766 return self.__class__.__name__
1767 def do_show(self, out):
1769 def get_version_info(self):
1770 if"IMP::display" ==
"IMP":
1771 return VersionInfo(self.__module__,
1772 __import__(self.__module__).get_module_version())
1775 __import__(self.__module__).get_module_version())
1778 return _object_cast_to_TextWriter(o)
1780 def __disown__(self):
1782 _IMP_display.disown_TextWriter(self)
1783 return weakref_proxy(self)
1785 def handle_sphere(self, arg0, arg1, arg2):
1786 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1787 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1790 def handle_cylinder(self, arg0, arg1, arg2):
1791 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1792 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1795 def handle_point(self, arg0, arg1, arg2):
1796 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1797 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1800 def handle_segment(self, arg0, arg1, arg2):
1801 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1802 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1805 def handle_polygon(self, arg0, arg1, arg2):
1806 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1807 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1810 def handle_triangle(self, arg0, arg1, arg2):
1811 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1812 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1815 def handle_surface_mesh(self, arg0, arg1, arg2):
1816 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1817 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1820 def handle_label(self, arg0, arg1, arg2):
1821 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1822 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1825 def handle_ellipsoid(self, arg0, arg1, arg2):
1826 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1827 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1830 def handle_bounding_box(self, arg0, arg1, arg2):
1831 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1832 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1835 def handle_anything(self, arg0, arg1, arg2):
1836 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1837 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1840 def do_destroy(self):
1841 """do_destroy(TextWriter self)"""
1842 return _IMP_display.TextWriter_do_destroy(self)
1846 """do_close(TextWriter self)"""
1847 return _IMP_display.TextWriter_do_close(self)
1851 """do_open(TextWriter self)"""
1852 return _IMP_display.TextWriter_do_open(self)
1854 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1855 TextWriter_swigregister(TextWriter)
1859 """create_writer(std::string filename) -> Writer"""
1860 return _IMP_display.create_writer(filename)
1861 class WriterAdaptor(IMP._InputAdaptor):
1862 """Proxy of C++ IMP::display::WriterAdaptor class."""
1864 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1866 def __init__(self, *args):
1868 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1869 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1871 this = _IMP_display.new_WriterAdaptor(*args)
1873 self.this.append(this)
1877 def get_writer(self):
1878 """get_writer(WriterAdaptor self) -> Writer"""
1879 return _IMP_display.WriterAdaptor_get_writer(self)
1882 def show(self, *args):
1884 show(WriterAdaptor self, _ostream out)
1885 show(WriterAdaptor self)
1887 return _IMP_display.WriterAdaptor_show(self, *args)
1889 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1890 __del__ =
lambda self:
None
1893 """__str__(WriterAdaptor self) -> std::string"""
1894 return _IMP_display.WriterAdaptor___str__(self)
1898 """__repr__(WriterAdaptor self) -> std::string"""
1899 return _IMP_display.WriterAdaptor___repr__(self)
1901 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1902 WriterAdaptor_swigregister(WriterAdaptor)
1905 """Proxy of C++ IMP::display::Colored class."""
1907 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1909 def set_color(self, c):
1910 """set_color(Colored self, Color c)"""
1911 return _IMP_display.Colored_set_color(self, c)
1914 def get_color(self):
1915 """get_color(Colored self) -> Color"""
1916 return _IMP_display.Colored_get_color(self)
1919 def get_color_keys():
1920 """get_color_keys() -> IMP::FloatKeys const &"""
1921 return _IMP_display.Colored_get_color_keys()
1923 get_color_keys = staticmethod(get_color_keys)
1925 def __init__(self, *args):
1927 __init__(IMP::display::Colored self) -> Colored
1928 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1929 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1931 this = _IMP_display.new_Colored(*args)
1933 self.this.append(this)
1937 def get_is_setup(*args):
1939 get_is_setup(Model m, ParticleIndex pi) -> bool
1940 get_is_setup(_ParticleAdaptor p) -> bool
1942 return _IMP_display.Colored_get_is_setup(*args)
1944 get_is_setup = staticmethod(get_is_setup)
1946 def show(self, *args):
1948 show(Colored self, _ostream out)
1951 return _IMP_display.Colored_show(self, *args)
1954 def setup_particle(*args):
1956 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1957 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1959 return _IMP_display.Colored_setup_particle(*args)
1961 setup_particle = staticmethod(setup_particle)
1963 def add_attribute(self, *args):
1965 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1966 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1967 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1968 add_attribute(Colored self, StringKey a0, IMP::String a1)
1969 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1970 add_attribute(Colored self, ObjectKey a0, Object a1)
1972 return _IMP_display.Colored_add_attribute(self, *args)
1975 def get_value(self, *args):
1977 get_value(Colored self, FloatKey a0) -> IMP::Float
1978 get_value(Colored self, IntKey a0) -> IMP::Int
1979 get_value(Colored self, StringKey a0) -> IMP::String
1980 get_value(Colored self, ParticleIndexKey a0) -> Particle
1981 get_value(Colored self, ObjectKey a0) -> Object
1983 return _IMP_display.Colored_get_value(self, *args)
1986 def set_value(self, *args):
1988 set_value(Colored self, FloatKey a0, IMP::Float a1)
1989 set_value(Colored self, IntKey a0, IMP::Int a1)
1990 set_value(Colored self, StringKey a0, IMP::String a1)
1991 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1992 set_value(Colored self, ObjectKey a0, Object a1)
1994 return _IMP_display.Colored_set_value(self, *args)
1997 def remove_attribute(self, *args):
1999 remove_attribute(Colored self, FloatKey a0)
2000 remove_attribute(Colored self, IntKey a0)
2001 remove_attribute(Colored self, StringKey a0)
2002 remove_attribute(Colored self, ParticleIndexKey a0)
2003 remove_attribute(Colored self, ObjectKey a0)
2005 return _IMP_display.Colored_remove_attribute(self, *args)
2008 def has_attribute(self, *args):
2010 has_attribute(Colored self, FloatKey a0) -> bool
2011 has_attribute(Colored self, IntKey a0) -> bool
2012 has_attribute(Colored self, StringKey a0) -> bool
2013 has_attribute(Colored self, ParticleIndexKey a0) -> bool
2014 has_attribute(Colored self, ObjectKey a0) -> bool
2016 return _IMP_display.Colored_has_attribute(self, *args)
2019 def get_derivative(self, a0):
2020 """get_derivative(Colored self, FloatKey a0) -> double"""
2021 return _IMP_display.Colored_get_derivative(self, a0)
2025 """get_name(Colored self) -> std::string"""
2026 return _IMP_display.Colored_get_name(self)
2029 def clear_caches(self):
2030 """clear_caches(Colored self)"""
2031 return _IMP_display.Colored_clear_caches(self)
2034 def set_name(self, a0):
2035 """set_name(Colored self, std::string a0)"""
2036 return _IMP_display.Colored_set_name(self, a0)
2040 """set_check_level(Colored self, IMP::CheckLevel a0)"""
2041 return _IMP_display.Colored_set_check_level(self, a0)
2044 def add_to_derivative(self, a0, a1, a2):
2045 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2046 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
2049 def set_is_optimized(self, a0, a1):
2050 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
2051 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
2054 def get_is_optimized(self, a0):
2055 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
2056 return _IMP_display.Colored_get_is_optimized(self, a0)
2060 """get_check_level(Colored self) -> IMP::CheckLevel"""
2061 return _IMP_display.Colored_get_check_level(self)
2064 def __eq__(self, *args):
2066 __eq__(Colored self, Colored o) -> bool
2067 __eq__(Colored self, Particle d) -> bool
2069 return _IMP_display.Colored___eq__(self, *args)
2072 def __ne__(self, *args):
2074 __ne__(Colored self, Colored o) -> bool
2075 __ne__(Colored self, Particle d) -> bool
2077 return _IMP_display.Colored___ne__(self, *args)
2080 def __le__(self, *args):
2082 __le__(Colored self, Colored o) -> bool
2083 __le__(Colored self, Particle d) -> bool
2085 return _IMP_display.Colored___le__(self, *args)
2088 def __lt__(self, *args):
2090 __lt__(Colored self, Colored o) -> bool
2091 __lt__(Colored self, Particle d) -> bool
2093 return _IMP_display.Colored___lt__(self, *args)
2096 def __ge__(self, *args):
2098 __ge__(Colored self, Colored o) -> bool
2099 __ge__(Colored self, Particle d) -> bool
2101 return _IMP_display.Colored___ge__(self, *args)
2104 def __gt__(self, *args):
2106 __gt__(Colored self, Colored o) -> bool
2107 __gt__(Colored self, Particle d) -> bool
2109 return _IMP_display.Colored___gt__(self, *args)
2113 """__hash__(Colored self) -> std::size_t"""
2114 return _IMP_display.Colored___hash__(self)
2118 """__str__(Colored self) -> std::string"""
2119 return _IMP_display.Colored___str__(self)
2123 """__repr__(Colored self) -> std::string"""
2124 return _IMP_display.Colored___repr__(self)
2126 __swig_destroy__ = _IMP_display.delete_Colored
2127 __del__ =
lambda self:
None
2128 Colored_swigregister = _IMP_display.Colored_swigregister
2129 Colored_swigregister(Colored)
2131 def Colored_get_color_keys():
2132 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2133 return _IMP_display.Colored_get_color_keys()
2135 def Colored_get_is_setup(*args):
2137 get_is_setup(Model m, ParticleIndex pi) -> bool
2138 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2140 return _IMP_display.Colored_get_is_setup(*args)
2142 def Colored_setup_particle(*args):
2144 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2145 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2147 return _IMP_display.Colored_setup_particle(*args)
2150 def __lshift__(out, n):
2151 """__lshift__(_ostream out, Colored n) -> _ostream"""
2152 return _IMP_display.__lshift__(out, n)
2153 class FilterGeometry(GeometryProcessor, Geometry):
2154 """Proxy of C++ IMP::display::FilterGeometry class."""
2156 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2158 def __init__(self, p):
2159 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2160 this = _IMP_display.new_FilterGeometry(p)
2162 self.this.append(this)
2168 add_geometry(FilterGeometry self, Geometry g)
2169 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2171 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2174 def get_version_info(self):
2175 """get_version_info(FilterGeometry self) -> VersionInfo"""
2176 return _IMP_display.FilterGeometry_get_version_info(self)
2180 """__str__(FilterGeometry self) -> std::string"""
2181 return _IMP_display.FilterGeometry___str__(self)
2185 """__repr__(FilterGeometry self) -> std::string"""
2186 return _IMP_display.FilterGeometry___repr__(self)
2191 return _object_cast_to_FilterGeometry(o)
2193 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2194 FilterGeometry_swigregister(FilterGeometry)
2197 """Proxy of C++ IMP::display::WriteOptimizerState class."""
2199 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2201 def __init__(self, m, w):
2202 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2203 this = _IMP_display.new_WriteOptimizerState(m, w)
2205 self.this.append(this)
2210 """write(WriteOptimizerState self, WriterAdaptor w)"""
2211 return _IMP_display.WriteOptimizerState_write(self, w)
2214 def remove_geometry(self, d):
2215 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2216 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2219 def remove_geometries(self, d):
2220 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2221 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2224 def set_geometries(self, ps):
2225 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2226 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2229 def set_geometries_order(self, objs):
2230 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2231 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2235 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2236 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2240 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2241 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2244 def clear_geometries(self):
2245 """clear_geometries(WriteOptimizerState self)"""
2246 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2249 def get_number_of_geometries(self):
2250 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2251 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2254 def get_has_geometries(self):
2255 """get_has_geometries(WriteOptimizerState self) -> bool"""
2256 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2259 def get_geometry(self, i):
2260 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2261 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2264 def get_geometries(self):
2265 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2266 return _IMP_display.WriteOptimizerState_get_geometries(self)
2269 def reserve_geometries(self, sz):
2270 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2271 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2274 def get_version_info(self):
2275 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2276 return _IMP_display.WriteOptimizerState_get_version_info(self)
2280 """__str__(WriteOptimizerState self) -> std::string"""
2281 return _IMP_display.WriteOptimizerState___str__(self)
2285 """__repr__(WriteOptimizerState self) -> std::string"""
2286 return _IMP_display.WriteOptimizerState___repr__(self)
2291 return _object_cast_to_WriteOptimizerState(o)
2293 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2294 WriteOptimizerState_swigregister(WriteOptimizerState)
2296 class SingletonGeometry(Geometry):
2297 """Proxy of C++ IMP::display::SingletonGeometry class."""
2299 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2301 def __init__(self, p):
2302 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2303 this = _IMP_display.new_SingletonGeometry(p)
2305 self.this.append(this)
2309 def get_particle(self):
2310 """get_particle(SingletonGeometry self) -> Particle"""
2311 return _IMP_display.SingletonGeometry_get_particle(self)
2313 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2314 __del__ =
lambda self:
None
2317 """__str__(SingletonGeometry self) -> std::string"""
2318 return _IMP_display.SingletonGeometry___str__(self)
2322 """__repr__(SingletonGeometry self) -> std::string"""
2323 return _IMP_display.SingletonGeometry___repr__(self)
2328 return _object_cast_to_SingletonGeometry(o)
2330 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2331 SingletonGeometry_swigregister(SingletonGeometry)
2333 class SingletonsGeometry(Geometry):
2334 """Proxy of C++ IMP::display::SingletonsGeometry class."""
2336 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2338 def __init__(self, *args):
2340 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2341 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2343 this = _IMP_display.new_SingletonsGeometry(*args)
2345 self.this.append(this)
2349 def get_container(self):
2350 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2351 return _IMP_display.SingletonsGeometry_get_container(self)
2353 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2354 __del__ =
lambda self:
None
2357 """__str__(SingletonsGeometry self) -> std::string"""
2358 return _IMP_display.SingletonsGeometry___str__(self)
2362 """__repr__(SingletonsGeometry self) -> std::string"""
2363 return _IMP_display.SingletonsGeometry___repr__(self)
2368 return _object_cast_to_SingletonsGeometry(o)
2370 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2371 SingletonsGeometry_swigregister(SingletonsGeometry)
2373 class PairGeometry(Geometry):
2374 """Proxy of C++ IMP::display::PairGeometry class."""
2376 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2378 def __init__(self, pp):
2379 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2380 this = _IMP_display.new_PairGeometry(pp)
2382 self.this.append(this)
2386 def get_particle_pair(self):
2387 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2388 return _IMP_display.PairGeometry_get_particle_pair(self)
2390 __swig_destroy__ = _IMP_display.delete_PairGeometry
2391 __del__ =
lambda self:
None
2394 """__str__(PairGeometry self) -> std::string"""
2395 return _IMP_display.PairGeometry___str__(self)
2399 """__repr__(PairGeometry self) -> std::string"""
2400 return _IMP_display.PairGeometry___repr__(self)
2405 return _object_cast_to_PairGeometry(o)
2407 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2408 PairGeometry_swigregister(PairGeometry)
2410 class PairsGeometry(Geometry):
2411 """Proxy of C++ IMP::display::PairsGeometry class."""
2413 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2415 def __init__(self, *args):
2417 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2418 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2420 this = _IMP_display.new_PairsGeometry(*args)
2422 self.this.append(this)
2426 def get_container(self):
2427 """get_container(PairsGeometry self) -> PairContainer"""
2428 return _IMP_display.PairsGeometry_get_container(self)
2430 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2431 __del__ =
lambda self:
None
2434 """__str__(PairsGeometry self) -> std::string"""
2435 return _IMP_display.PairsGeometry___str__(self)
2439 """__repr__(PairsGeometry self) -> std::string"""
2440 return _IMP_display.PairsGeometry___repr__(self)
2445 return _object_cast_to_PairsGeometry(o)
2447 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2448 PairsGeometry_swigregister(PairsGeometry)
2450 class PymolWriter(TextWriter):
2451 """Proxy of C++ IMP::display::PymolWriter class."""
2453 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2455 def __init__(self, *args):
2457 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2458 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2459 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2461 this = _IMP_display.new_PymolWriter(*args)
2463 self.this.append(this)
2467 def get_version_info(self):
2468 """get_version_info(PymolWriter self) -> VersionInfo"""
2469 return _IMP_display.PymolWriter_get_version_info(self)
2473 """__str__(PymolWriter self) -> std::string"""
2474 return _IMP_display.PymolWriter___str__(self)
2478 """__repr__(PymolWriter self) -> std::string"""
2479 return _IMP_display.PymolWriter___repr__(self)
2484 return _object_cast_to_PymolWriter(o)
2486 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2487 PymolWriter_swigregister(PymolWriter)
2489 class RestraintGeometry(Geometry):
2490 """Proxy of C++ IMP::display::RestraintGeometry class."""
2492 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2494 def __init__(self, p):
2495 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2496 this = _IMP_display.new_RestraintGeometry(p)
2498 self.this.append(this)
2502 def get_restraint(self):
2503 """get_restraint(RestraintGeometry self) -> Restraint"""
2504 return _IMP_display.RestraintGeometry_get_restraint(self)
2507 def get_version_info(self):
2508 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2509 return _IMP_display.RestraintGeometry_get_version_info(self)
2513 """__str__(RestraintGeometry self) -> std::string"""
2514 return _IMP_display.RestraintGeometry___str__(self)
2518 """__repr__(RestraintGeometry self) -> std::string"""
2519 return _IMP_display.RestraintGeometry___repr__(self)
2524 return _object_cast_to_RestraintGeometry(o)
2526 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2527 RestraintGeometry_swigregister(RestraintGeometry)
2529 class RestraintSetGeometry(Geometry):
2530 """Proxy of C++ IMP::display::RestraintSetGeometry class."""
2532 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2534 def __init__(self, p):
2535 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2536 this = _IMP_display.new_RestraintSetGeometry(p)
2538 self.this.append(this)
2542 def get_restraint_set(self):
2543 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2544 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2547 def get_version_info(self):
2548 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2549 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2553 """__str__(RestraintSetGeometry self) -> std::string"""
2554 return _IMP_display.RestraintSetGeometry___str__(self)
2558 """__repr__(RestraintSetGeometry self) -> std::string"""
2559 return _IMP_display.RestraintSetGeometry___repr__(self)
2564 return _object_cast_to_RestraintSetGeometry(o)
2566 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2567 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2571 PivyWriter= _pivy.get_writer(Writer)
2572 _object_types.append(
'PivyWriter')
2575 def get_module_version():
2576 """get_module_version() -> std::string const"""
2577 return _IMP_display.get_module_version()
2580 """get_example_path(std::string fname) -> std::string"""
2581 return _IMP_display.get_example_path(fname)
2584 """get_data_path(std::string fname) -> std::string"""
2585 return _IMP_display.get_data_path(fname)
2587 from .
import _version_check
2588 _version_check.check_version(get_module_version())
2589 __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.
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...
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_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.