10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17 def swig_import_helper():
19 pkg = __name__.rpartition(
'.')[0]
20 mname =
'.'.join((pkg,
'_IMP_display')).lstrip(
'.')
22 return importlib.import_module(mname)
24 return importlib.import_module(
'_IMP_display')
25 _IMP_display = swig_import_helper()
26 del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28 def swig_import_helper():
29 from os.path
import dirname
33 fp, pathname, description = imp.find_module(
'_IMP_display', [dirname(__file__)])
39 _mod = imp.load_module(
'_IMP_display', fp, pathname, description)
43 _IMP_display = swig_import_helper()
44 del swig_import_helper
47 del _swig_python_version_info
49 _swig_property = property
54 import builtins
as __builtin__
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59 if (name ==
"thisown"):
60 return self.this.own(value)
62 if type(value).__name__ ==
'SwigPyObject':
63 self.__dict__[name] = value
65 method = class_type.__swig_setmethods__.get(name,
None)
67 return method(self, value)
69 object.__setattr__(self, name, value)
71 raise AttributeError(
"You cannot add attributes to %s" % self)
74 def _swig_setattr(self, class_type, name, value):
75 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
78 def _swig_getattr(self, class_type, name):
79 if (name ==
"thisown"):
80 return self.this.own()
81 method = class_type.__swig_getmethods__.get(name,
None)
84 raise AttributeError(
"'%s' object has no attribute '%s'" % (class_type.__name__, name))
89 strthis =
"proxy of " + self.this.__repr__()
90 except __builtin__.Exception:
92 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
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
109 except __builtin__.Exception:
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)
223 IMP_DEBUG = _IMP_display.IMP_DEBUG
224 IMP_RELEASE = _IMP_display.IMP_RELEASE
225 IMP_SILENT = _IMP_display.IMP_SILENT
226 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
227 IMP_TERSE = _IMP_display.IMP_TERSE
228 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
229 IMP_MEMORY = _IMP_display.IMP_MEMORY
230 IMP_NONE = _IMP_display.IMP_NONE
231 IMP_USAGE = _IMP_display.IMP_USAGE
232 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_display.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_display.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
239 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
240 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
241 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
242 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
245 class _DirectorObjects(object):
246 """@internal Simple class to keep references to director objects
247 to prevent premature deletion."""
250 def register(self, obj):
251 """Take a reference to a director object; will only work for
252 refcounted C++ classes"""
253 if hasattr(obj,
'get_ref_count'):
254 self._objects.append(obj)
256 """Only drop our reference and allow cleanup by Python if no other
257 Python references exist (we hold 3 references: one in self._objects,
258 one in x, and one in the argument list for getrefcount) *and* no
259 other C++ references exist (the Python object always holds one)"""
260 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
261 or x.get_ref_count() > 1]
265 def get_object_count(self):
266 """Get number of director objects (useful for testing only)"""
267 return len(self._objects)
268 _director_objects = _DirectorObjects()
270 class _ostream(object):
271 """Proxy of C++ std::ostream class."""
273 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
275 def __init__(self, *args, **kwargs):
276 raise AttributeError(
"No constructor defined")
277 __repr__ = _swig_repr
279 def write(self, osa_buf):
280 """write(_ostream self, char const * osa_buf)"""
281 return _IMP_display._ostream_write(self, osa_buf)
283 _ostream_swigregister = _IMP_display._ostream_swigregister
284 _ostream_swigregister(_ostream)
286 IMP_COMPILER_HAS_OVERRIDE = _IMP_display.IMP_COMPILER_HAS_OVERRIDE
287 IMP_COMPILER_HAS_FINAL = _IMP_display.IMP_COMPILER_HAS_FINAL
288 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
289 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
291 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
292 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
293 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
294 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
295 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
296 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
298 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
299 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
300 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
301 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
302 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
303 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
304 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
305 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
306 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
308 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
309 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
310 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
311 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
312 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
313 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
314 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
315 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
317 _object_types.append(
"Writer")
320 def _object_cast_to_Writer(o):
321 """_object_cast_to_Writer(Object o) -> Writer"""
322 return _IMP_display._object_cast_to_Writer(o)
324 _object_types.append(
"TextWriter")
327 def _object_cast_to_TextWriter(o):
328 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
329 return _IMP_display._object_cast_to_TextWriter(o)
331 _object_types.append(
"Geometry")
334 def _object_cast_to_Geometry(o):
335 """_object_cast_to_Geometry(Object o) -> Geometry"""
336 return _IMP_display._object_cast_to_Geometry(o)
338 _object_types.append(
"SingletonGeometry")
341 def _object_cast_to_SingletonGeometry(o):
342 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
343 return _IMP_display._object_cast_to_SingletonGeometry(o)
345 _object_types.append(
"PairGeometry")
348 def _object_cast_to_PairGeometry(o):
349 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
350 return _IMP_display._object_cast_to_PairGeometry(o)
352 _object_types.append(
"SingletonsGeometry")
355 def _object_cast_to_SingletonsGeometry(o):
356 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
357 return _IMP_display._object_cast_to_SingletonsGeometry(o)
359 _object_types.append(
"PairsGeometry")
362 def _object_cast_to_PairsGeometry(o):
363 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
364 return _IMP_display._object_cast_to_PairsGeometry(o)
366 _object_types.append(
"PymolWriter")
369 def _object_cast_to_PymolWriter(o):
370 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
371 return _IMP_display._object_cast_to_PymolWriter(o)
373 _object_types.append(
"SphereGeometry")
376 def _object_cast_to_SphereGeometry(o):
377 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
378 return _IMP_display._object_cast_to_SphereGeometry(o)
380 _object_types.append(
"CylinderGeometry")
383 def _object_cast_to_CylinderGeometry(o):
384 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
385 return _IMP_display._object_cast_to_CylinderGeometry(o)
387 _object_types.append(
"EllipsoidGeometry")
390 def _object_cast_to_EllipsoidGeometry(o):
391 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
392 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
394 _object_types.append(
"PointGeometry")
397 def _object_cast_to_PointGeometry(o):
398 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
399 return _IMP_display._object_cast_to_PointGeometry(o)
401 _object_types.append(
"SegmentGeometry")
404 def _object_cast_to_SegmentGeometry(o):
405 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
406 return _IMP_display._object_cast_to_SegmentGeometry(o)
408 _object_types.append(
"PolygonGeometry")
411 def _object_cast_to_PolygonGeometry(o):
412 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
413 return _IMP_display._object_cast_to_PolygonGeometry(o)
415 _object_types.append(
"ReferenceFrameGeometry")
418 def _object_cast_to_ReferenceFrameGeometry(o):
419 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
420 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
422 _object_types.append(
"BoundingBoxGeometry")
425 def _object_cast_to_BoundingBoxGeometry(o):
426 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
427 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
429 _object_types.append(
"LabelGeometry")
432 def _object_cast_to_LabelGeometry(o):
433 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
434 return _IMP_display._object_cast_to_LabelGeometry(o)
436 _object_types.append(
"RestraintGeometry")
439 def _object_cast_to_RestraintGeometry(o):
440 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
441 return _IMP_display._object_cast_to_RestraintGeometry(o)
443 _object_types.append(
"RestraintSetGeometry")
446 def _object_cast_to_RestraintSetGeometry(o):
447 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
448 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
450 _object_types.append(
"GeometrySet")
453 def _object_cast_to_GeometrySet(o):
454 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
455 return _IMP_display._object_cast_to_GeometrySet(o)
458 return [Colored(x)
for x
in l]
459 _plural_types.append(
"Coloreds")
462 _value_types.append(
"Colored")
466 _plural_types.append(
"Colors")
467 _value_types.append(
"Color")
471 _plural_types.append(
"WriterAdaptors")
472 _value_types.append(
"WriterAdaptor")
475 _object_types.append(
"FilterGeometry")
478 def _object_cast_to_FilterGeometry(o):
479 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
480 return _IMP_display._object_cast_to_FilterGeometry(o)
482 _object_types.append(
"WriteOptimizerState")
485 def _object_cast_to_WriteOptimizerState(o):
486 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
487 return _IMP_display._object_cast_to_WriteOptimizerState(o)
489 _object_types.append(
"TriangleGeometry")
492 def _object_cast_to_TriangleGeometry(o):
493 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
494 return _IMP_display._object_cast_to_TriangleGeometry(o)
496 _object_types.append(
"SurfaceMeshGeometry")
499 def _object_cast_to_SurfaceMeshGeometry(o):
500 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
501 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
503 _object_types.append(
"PlaneGeometry")
506 def _object_cast_to_PlaneGeometry(o):
507 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
508 return _IMP_display._object_cast_to_PlaneGeometry(o)
510 _object_types.append(
"IsosurfaceGeometry")
513 def _object_cast_to_IsosurfaceGeometry(o):
514 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
515 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
517 _object_types.append(
"SkinSurfaceGeometry")
520 def _object_cast_to_SkinSurfaceGeometry(o):
521 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
522 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
523 class Color(IMP._Value):
524 """Proxy of C++ IMP::display::Color class."""
526 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
528 def __init__(self, *args):
530 __init__(IMP::display::Color self) -> Color
531 __init__(IMP::display::Color self, double r, double g, double b) -> Color
533 this = _IMP_display.new_Color(*args)
535 self.this.append(this)
536 except __builtin__.Exception:
538 __swig_destroy__ = _IMP_display.delete_Color
539 __del__ =
lambda self:
None
542 """get_red(Color self) -> double"""
543 return _IMP_display.Color_get_red(self)
547 """get_green(Color self) -> double"""
548 return _IMP_display.Color_get_green(self)
552 """get_blue(Color self) -> double"""
553 return _IMP_display.Color_get_blue(self)
556 def show(self, *args):
558 show(Color self, _ostream out, std::string delim)
559 show(Color self, _ostream out)
562 return _IMP_display.Color_show(self, *args)
565 def __cmp__(self, o):
566 """__cmp__(Color self, Color o) -> int"""
567 return _IMP_display.Color___cmp__(self, o)
571 """__eq__(Color self, Color o) -> bool"""
572 return _IMP_display.Color___eq__(self, o)
576 """__ne__(Color self, Color o) -> bool"""
577 return _IMP_display.Color___ne__(self, o)
581 """__lt__(Color self, Color o) -> bool"""
582 return _IMP_display.Color___lt__(self, o)
586 """__gt__(Color self, Color o) -> bool"""
587 return _IMP_display.Color___gt__(self, o)
591 """__ge__(Color self, Color o) -> bool"""
592 return _IMP_display.Color___ge__(self, o)
596 """__le__(Color self, Color o) -> bool"""
597 return _IMP_display.Color___le__(self, o)
601 """__str__(Color self) -> std::string"""
602 return _IMP_display.Color___str__(self)
606 """__repr__(Color self) -> std::string"""
607 return _IMP_display.Color___repr__(self)
609 Color_swigregister = _IMP_display.Color_swigregister
610 Color_swigregister(Color)
614 """get_display_color(unsigned int i) -> Color"""
615 return _IMP_display.get_display_color(i)
618 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
619 return _IMP_display.get_interpolated_rgb(a, b, f)
622 """get_linear_color_map_value(double min, double max, double value) -> double"""
623 return _IMP_display.get_linear_color_map_value(min, max, value)
626 """get_jet_color(double f) -> Color"""
627 return _IMP_display.get_jet_color(f)
630 """get_hot_color(double f) -> Color"""
631 return _IMP_display.get_hot_color(f)
634 """get_rgb_color(double f) -> Color"""
635 return _IMP_display.get_rgb_color(f)
638 """get_gray_color(double f) -> Color"""
639 return _IMP_display.get_gray_color(f)
642 """get_gnuplot_color(double f) -> Color"""
643 return _IMP_display.get_gnuplot_color(f)
645 """Proxy of C++ IMP::display::Geometry class."""
647 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
649 def __init__(self, *args):
651 __init__(IMP::display::Geometry self, std::string name) -> Geometry
652 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
654 if self.__class__ == Geometry:
658 this = _IMP_display.new_Geometry(_self, *args)
660 self.this.append(this)
661 except __builtin__.Exception:
664 if self.__class__ != Geometry:
665 _director_objects.register(self)
671 """get_color(Geometry self) -> Color"""
672 return _IMP_display.Geometry_get_color(self)
675 def get_has_color(self):
676 """get_has_color(Geometry self) -> bool"""
677 return _IMP_display.Geometry_get_has_color(self)
680 def set_has_color(self, tf):
681 """set_has_color(Geometry self, bool tf)"""
682 return _IMP_display.Geometry_set_has_color(self, tf)
685 def set_color(self, c):
686 """set_color(Geometry self, Color c)"""
687 return _IMP_display.Geometry_set_color(self, c)
690 def get_components(self):
691 """get_components(Geometry self) -> IMP::display::Geometries"""
692 return _IMP_display.Geometry_get_components(self)
694 __swig_destroy__ = _IMP_display.delete_Geometry
695 __del__ =
lambda self:
None
698 """__str__(Geometry self) -> std::string"""
699 return _IMP_display.Geometry___str__(self)
703 """__repr__(Geometry self) -> std::string"""
704 return _IMP_display.Geometry___repr__(self)
709 return _object_cast_to_Geometry(o)
712 def get_type_name(self):
713 return self.__class__.__name__
714 def do_show(self, out):
716 def get_version_info(self):
717 if"IMP::display" ==
"IMP":
718 return VersionInfo(self.__module__,
725 return _object_cast_to_Geometry(o)
727 def __disown__(self):
729 _IMP_display.disown_Geometry(self)
730 return weakref_proxy(self)
732 def do_destroy(self):
733 """do_destroy(Geometry self)"""
734 return _IMP_display.Geometry_do_destroy(self)
736 Geometry_swigregister = _IMP_display.Geometry_swigregister
737 Geometry_swigregister(Geometry)
739 class GeometrySet(Geometry):
740 """Proxy of C++ IMP::display::GeometrySet class."""
742 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
744 def __init__(self, *args):
746 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
747 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
748 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
749 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
751 this = _IMP_display.new_GeometrySet(*args)
753 self.this.append(this)
754 except __builtin__.Exception:
757 def get_geometry(self):
758 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
759 return _IMP_display.GeometrySet_get_geometry(self)
762 def get_version_info(self):
763 """get_version_info(GeometrySet self) -> VersionInfo"""
764 return _IMP_display.GeometrySet_get_version_info(self)
768 """__str__(GeometrySet self) -> std::string"""
769 return _IMP_display.GeometrySet___str__(self)
773 """__repr__(GeometrySet self) -> std::string"""
774 return _IMP_display.GeometrySet___repr__(self)
779 return _object_cast_to_GeometrySet(o)
781 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
782 GeometrySet_swigregister(GeometrySet)
784 class SphereGeometry(Geometry):
785 """Proxy of C++ IMP::display::SphereGeometry class."""
787 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
789 def __init__(self, *args):
791 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
792 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
793 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
794 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
796 this = _IMP_display.new_SphereGeometry(*args)
798 self.this.append(this)
799 except __builtin__.Exception:
802 def get_geometry(self):
803 """get_geometry(SphereGeometry self) -> Sphere3D"""
804 return _IMP_display.SphereGeometry_get_geometry(self)
807 def set_geometry(self, v):
808 """set_geometry(SphereGeometry self, Sphere3D v)"""
809 return _IMP_display.SphereGeometry_set_geometry(self, v)
812 def get_version_info(self):
813 """get_version_info(SphereGeometry self) -> VersionInfo"""
814 return _IMP_display.SphereGeometry_get_version_info(self)
818 """__str__(SphereGeometry self) -> std::string"""
819 return _IMP_display.SphereGeometry___str__(self)
823 """__repr__(SphereGeometry self) -> std::string"""
824 return _IMP_display.SphereGeometry___repr__(self)
829 return _object_cast_to_SphereGeometry(o)
831 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
832 SphereGeometry_swigregister(SphereGeometry)
834 class CylinderGeometry(Geometry):
835 """Proxy of C++ IMP::display::CylinderGeometry class."""
837 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
839 def __init__(self, *args):
841 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
842 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
843 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
844 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
846 this = _IMP_display.new_CylinderGeometry(*args)
848 self.this.append(this)
849 except __builtin__.Exception:
852 def get_geometry(self):
853 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
854 return _IMP_display.CylinderGeometry_get_geometry(self)
857 def set_geometry(self, v):
858 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
859 return _IMP_display.CylinderGeometry_set_geometry(self, v)
862 def get_version_info(self):
863 """get_version_info(CylinderGeometry self) -> VersionInfo"""
864 return _IMP_display.CylinderGeometry_get_version_info(self)
868 """__str__(CylinderGeometry self) -> std::string"""
869 return _IMP_display.CylinderGeometry___str__(self)
873 """__repr__(CylinderGeometry self) -> std::string"""
874 return _IMP_display.CylinderGeometry___repr__(self)
879 return _object_cast_to_CylinderGeometry(o)
881 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
882 CylinderGeometry_swigregister(CylinderGeometry)
884 class EllipsoidGeometry(Geometry):
885 """Proxy of C++ IMP::display::EllipsoidGeometry class."""
887 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
889 def __init__(self, *args):
891 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
892 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
893 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
894 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
896 this = _IMP_display.new_EllipsoidGeometry(*args)
898 self.this.append(this)
899 except __builtin__.Exception:
902 def get_geometry(self):
903 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
904 return _IMP_display.EllipsoidGeometry_get_geometry(self)
907 def set_geometry(self, v):
908 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
909 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
912 def get_version_info(self):
913 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
914 return _IMP_display.EllipsoidGeometry_get_version_info(self)
918 """__str__(EllipsoidGeometry self) -> std::string"""
919 return _IMP_display.EllipsoidGeometry___str__(self)
923 """__repr__(EllipsoidGeometry self) -> std::string"""
924 return _IMP_display.EllipsoidGeometry___repr__(self)
929 return _object_cast_to_EllipsoidGeometry(o)
931 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
932 EllipsoidGeometry_swigregister(EllipsoidGeometry)
934 class PointGeometry(Geometry):
935 """Proxy of C++ IMP::display::PointGeometry class."""
937 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
939 def __init__(self, *args):
941 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
942 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
943 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
944 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
946 this = _IMP_display.new_PointGeometry(*args)
948 self.this.append(this)
949 except __builtin__.Exception:
952 def get_geometry(self):
953 """get_geometry(PointGeometry self) -> Vector3D"""
954 return _IMP_display.PointGeometry_get_geometry(self)
957 def set_geometry(self, v):
958 """set_geometry(PointGeometry self, Vector3D v)"""
959 return _IMP_display.PointGeometry_set_geometry(self, v)
962 def get_version_info(self):
963 """get_version_info(PointGeometry self) -> VersionInfo"""
964 return _IMP_display.PointGeometry_get_version_info(self)
968 """__str__(PointGeometry self) -> std::string"""
969 return _IMP_display.PointGeometry___str__(self)
973 """__repr__(PointGeometry self) -> std::string"""
974 return _IMP_display.PointGeometry___repr__(self)
979 return _object_cast_to_PointGeometry(o)
981 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
982 PointGeometry_swigregister(PointGeometry)
984 class SegmentGeometry(Geometry):
985 """Proxy of C++ IMP::display::SegmentGeometry class."""
987 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
989 def __init__(self, *args):
991 __init__(IMP::display::SegmentGeometry self, Segment3D v) -> SegmentGeometry
992 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
993 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
994 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
996 this = _IMP_display.new_SegmentGeometry(*args)
998 self.this.append(this)
999 except __builtin__.Exception:
1002 def get_geometry(self):
1003 """get_geometry(SegmentGeometry self) -> Segment3D"""
1004 return _IMP_display.SegmentGeometry_get_geometry(self)
1007 def set_geometry(self, v):
1008 """set_geometry(SegmentGeometry self, Segment3D v)"""
1009 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1012 def get_version_info(self):
1013 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1014 return _IMP_display.SegmentGeometry_get_version_info(self)
1018 """__str__(SegmentGeometry self) -> std::string"""
1019 return _IMP_display.SegmentGeometry___str__(self)
1023 """__repr__(SegmentGeometry self) -> std::string"""
1024 return _IMP_display.SegmentGeometry___repr__(self)
1029 return _object_cast_to_SegmentGeometry(o)
1031 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1032 SegmentGeometry_swigregister(SegmentGeometry)
1034 class PolygonGeometry(Geometry):
1035 """Proxy of C++ IMP::display::PolygonGeometry class."""
1037 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1039 def __init__(self, *args):
1041 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
1042 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
1043 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
1044 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
1046 this = _IMP_display.new_PolygonGeometry(*args)
1048 self.this.append(this)
1049 except __builtin__.Exception:
1052 def get_geometry(self):
1053 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
1054 return _IMP_display.PolygonGeometry_get_geometry(self)
1057 def set_geometry(self, v):
1058 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
1059 return _IMP_display.PolygonGeometry_set_geometry(self, v)
1062 def get_version_info(self):
1063 """get_version_info(PolygonGeometry self) -> VersionInfo"""
1064 return _IMP_display.PolygonGeometry_get_version_info(self)
1068 """__str__(PolygonGeometry self) -> std::string"""
1069 return _IMP_display.PolygonGeometry___str__(self)
1073 """__repr__(PolygonGeometry self) -> std::string"""
1074 return _IMP_display.PolygonGeometry___repr__(self)
1079 return _object_cast_to_PolygonGeometry(o)
1081 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
1082 PolygonGeometry_swigregister(PolygonGeometry)
1084 class TriangleGeometry(Geometry):
1085 """Proxy of C++ IMP::display::TriangleGeometry class."""
1087 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1089 def __init__(self, *args):
1091 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1092 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1093 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1094 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1096 this = _IMP_display.new_TriangleGeometry(*args)
1098 self.this.append(this)
1099 except __builtin__.Exception:
1102 def get_geometry(self):
1103 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1104 return _IMP_display.TriangleGeometry_get_geometry(self)
1107 def set_geometry(self, v):
1108 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1109 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1112 def get_version_info(self):
1113 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1114 return _IMP_display.TriangleGeometry_get_version_info(self)
1118 """__str__(TriangleGeometry self) -> std::string"""
1119 return _IMP_display.TriangleGeometry___str__(self)
1123 """__repr__(TriangleGeometry self) -> std::string"""
1124 return _IMP_display.TriangleGeometry___repr__(self)
1129 return _object_cast_to_TriangleGeometry(o)
1131 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1132 TriangleGeometry_swigregister(TriangleGeometry)
1134 class BoundingBoxGeometry(Geometry):
1135 """Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1137 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1139 def __init__(self, *args):
1141 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1142 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1143 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1144 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1146 this = _IMP_display.new_BoundingBoxGeometry(*args)
1148 self.this.append(this)
1149 except __builtin__.Exception:
1152 def get_geometry(self):
1153 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1154 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1157 def set_geometry(self, v):
1158 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1159 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1162 def get_version_info(self):
1163 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1164 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1168 """__str__(BoundingBoxGeometry self) -> std::string"""
1169 return _IMP_display.BoundingBoxGeometry___str__(self)
1173 """__repr__(BoundingBoxGeometry self) -> std::string"""
1174 return _IMP_display.BoundingBoxGeometry___repr__(self)
1179 return _object_cast_to_BoundingBoxGeometry(o)
1181 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1182 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1184 class ReferenceFrameGeometry(Geometry):
1185 """Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1187 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1189 def __init__(self, *args):
1191 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1192 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1193 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1194 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1196 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1198 self.this.append(this)
1199 except __builtin__.Exception:
1202 def get_geometry(self):
1203 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1204 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1207 def set_geometry(self, v):
1208 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1209 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1212 def get_version_info(self):
1213 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1214 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1218 """__str__(ReferenceFrameGeometry self) -> std::string"""
1219 return _IMP_display.ReferenceFrameGeometry___str__(self)
1223 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1224 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1229 return _object_cast_to_ReferenceFrameGeometry(o)
1231 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1232 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1237 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1238 create_geometry(Sphere3D t) -> SphereGeometry
1239 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1240 create_geometry(Cylinder3D t) -> CylinderGeometry
1241 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1242 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1243 create_geometry(Vector3D t, std::string name) -> PointGeometry
1244 create_geometry(Vector3D t) -> PointGeometry
1245 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1246 create_geometry(Segment3D t) -> SegmentGeometry
1247 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1248 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1249 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1250 create_geometry(Triangle3D t) -> TriangleGeometry
1251 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1252 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1253 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1254 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1256 return _IMP_display.create_geometry(*args)
1257 class LabelGeometry(Geometry):
1258 """Proxy of C++ IMP::display::LabelGeometry class."""
1260 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1262 def __init__(self, *args):
1264 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1265 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1267 this = _IMP_display.new_LabelGeometry(*args)
1269 self.this.append(this)
1270 except __builtin__.Exception:
1274 """get_text(LabelGeometry self) -> std::string"""
1275 return _IMP_display.LabelGeometry_get_text(self)
1278 def get_location(self):
1279 """get_location(LabelGeometry self) -> Sphere3D"""
1280 return _IMP_display.LabelGeometry_get_location(self)
1283 def get_version_info(self):
1284 """get_version_info(LabelGeometry self) -> VersionInfo"""
1285 return _IMP_display.LabelGeometry_get_version_info(self)
1289 """__str__(LabelGeometry self) -> std::string"""
1290 return _IMP_display.LabelGeometry___str__(self)
1294 """__repr__(LabelGeometry self) -> std::string"""
1295 return _IMP_display.LabelGeometry___repr__(self)
1300 return _object_cast_to_LabelGeometry(o)
1302 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1303 LabelGeometry_swigregister(LabelGeometry)
1305 class SurfaceMeshGeometry(Geometry):
1306 """Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1308 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1310 def __init__(self, vertices, faces):
1311 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1312 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1314 self.this.append(this)
1315 except __builtin__.Exception:
1318 def get_vertexes(self):
1319 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1320 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1323 def get_faces(self):
1324 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1325 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1328 def get_version_info(self):
1329 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1330 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1334 """__str__(SurfaceMeshGeometry self) -> std::string"""
1335 return _IMP_display.SurfaceMeshGeometry___str__(self)
1339 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1340 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1345 return _object_cast_to_SurfaceMeshGeometry(o)
1347 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1348 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1350 class PlaneGeometry(Geometry):
1351 """Proxy of C++ IMP::display::PlaneGeometry class."""
1353 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1355 def __init__(self, loc, box):
1356 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1357 this = _IMP_display.new_PlaneGeometry(loc, box)
1359 self.this.append(this)
1360 except __builtin__.Exception:
1363 def get_version_info(self):
1364 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1365 return _IMP_display.PlaneGeometry_get_version_info(self)
1369 """__str__(PlaneGeometry self) -> std::string"""
1370 return _IMP_display.PlaneGeometry___str__(self)
1374 """__repr__(PlaneGeometry self) -> std::string"""
1375 return _IMP_display.PlaneGeometry___repr__(self)
1380 return _object_cast_to_PlaneGeometry(o)
1382 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1383 PlaneGeometry_swigregister(PlaneGeometry)
1385 class IsosurfaceGeometry(SurfaceMeshGeometry):
1386 """Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1388 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1390 def __init__(self, *args):
1392 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1393 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1395 this = _IMP_display.new_IsosurfaceGeometry(*args)
1397 self.this.append(this)
1398 except __builtin__.Exception:
1402 """__str__(IsosurfaceGeometry self) -> std::string"""
1403 return _IMP_display.IsosurfaceGeometry___str__(self)
1407 """__repr__(IsosurfaceGeometry self) -> std::string"""
1408 return _IMP_display.IsosurfaceGeometry___repr__(self)
1413 return _object_cast_to_IsosurfaceGeometry(o)
1415 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1416 __del__ =
lambda self:
None
1417 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1418 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1420 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1421 """Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1423 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1425 def __init__(self, balls):
1426 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1427 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1429 self.this.append(this)
1430 except __builtin__.Exception:
1434 """__str__(SkinSurfaceGeometry self) -> std::string"""
1435 return _IMP_display.SkinSurfaceGeometry___str__(self)
1439 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1440 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1445 return _object_cast_to_SkinSurfaceGeometry(o)
1447 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1448 __del__ =
lambda self:
None
1449 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1450 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1452 class GeometryProcessor(object):
1453 """Proxy of C++ IMP::display::GeometryProcessor class."""
1455 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1456 __repr__ = _swig_repr
1459 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1460 this = _IMP_display.new_GeometryProcessor()
1462 self.this.append(this)
1463 except __builtin__.Exception:
1465 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1466 GeometryProcessor_swigregister(GeometryProcessor)
1469 """Proxy of C++ IMP::display::Writer class."""
1471 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1473 def __init__(self, name):
1474 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1475 if self.__class__ == Writer:
1479 this = _IMP_display.new_Writer(_self, name)
1481 self.this.append(this)
1482 except __builtin__.Exception:
1485 if self.__class__ != Writer:
1486 _director_objects.register(self)
1490 __swig_destroy__ = _IMP_display.delete_Writer
1491 __del__ =
lambda self:
None
1493 def set_frame(self, i):
1494 """set_frame(Writer self, unsigned int i)"""
1495 return _IMP_display.Writer_set_frame(self, i)
1498 def get_frame(self):
1499 """get_frame(Writer self) -> int"""
1500 return _IMP_display.Writer_get_frame(self)
1505 add_geometry(Writer self, Geometry g)
1506 add_geometry(Writer self, IMP::display::Geometries const & g)
1508 return _IMP_display.Writer_add_geometry(self, *args)
1512 """do_close(Writer self)"""
1513 return _IMP_display.Writer_do_close(self)
1517 """do_open(Writer self)"""
1518 return _IMP_display.Writer_do_open(self)
1521 def do_set_frame(self):
1522 """do_set_frame(Writer self)"""
1523 return _IMP_display.Writer_do_set_frame(self)
1527 """__str__(Writer self) -> std::string"""
1528 return _IMP_display.Writer___str__(self)
1532 """__repr__(Writer self) -> std::string"""
1533 return _IMP_display.Writer___repr__(self)
1538 return _object_cast_to_Writer(o)
1541 def get_type_name(self):
1542 return self.__class__.__name__
1543 def do_show(self, out):
1545 def get_version_info(self):
1546 if"IMP::display" ==
"IMP":
1547 return VersionInfo(self.__module__,
1554 return _object_cast_to_Writer(o)
1556 def __disown__(self):
1558 _IMP_display.disown_Writer(self)
1559 return weakref_proxy(self)
1561 def handle_sphere(self, arg0, arg1, arg2):
1562 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1563 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1566 def handle_cylinder(self, arg0, arg1, arg2):
1567 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1568 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1571 def handle_point(self, arg0, arg1, arg2):
1572 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1573 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1576 def handle_segment(self, arg0, arg1, arg2):
1577 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1578 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1581 def handle_polygon(self, arg0, arg1, arg2):
1582 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1583 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1586 def handle_triangle(self, arg0, arg1, arg2):
1587 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1588 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1591 def handle_surface_mesh(self, arg0, arg1, arg2):
1592 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1593 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1596 def handle_label(self, arg0, arg1, arg2):
1597 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1598 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1601 def handle_ellipsoid(self, arg0, arg1, arg2):
1602 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1603 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1606 def handle_bounding_box(self, arg0, arg1, arg2):
1607 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1608 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1611 def handle_anything(self, arg0, arg1, arg2):
1612 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1613 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1616 def do_destroy(self):
1617 """do_destroy(Writer self)"""
1618 return _IMP_display.Writer_do_destroy(self)
1620 Writer_swigregister = _IMP_display.Writer_swigregister
1621 Writer_swigregister(Writer)
1623 class TextWriter(Writer):
1624 """Proxy of C++ IMP::display::TextWriter class."""
1626 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1629 """open(TextWriter self)"""
1630 return _IMP_display.TextWriter_open(self)
1633 def get_stream(self):
1634 """get_stream(TextWriter self) -> _ostream"""
1635 return _IMP_display.TextWriter_get_stream(self)
1638 def do_set_frame(self):
1639 """do_set_frame(TextWriter self)"""
1640 return _IMP_display.TextWriter_do_set_frame(self)
1643 def __init__(self, *args):
1645 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1646 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1648 if self.__class__ == TextWriter:
1652 this = _IMP_display.new_TextWriter(_self, *args)
1654 self.this.append(this)
1655 except __builtin__.Exception:
1658 if self.__class__ != TextWriter:
1659 _director_objects.register(self)
1664 def get_current_file_name(self):
1665 """get_current_file_name(TextWriter self) -> std::string"""
1666 return _IMP_display.TextWriter_get_current_file_name(self)
1668 __swig_destroy__ = _IMP_display.delete_TextWriter
1669 __del__ =
lambda self:
None
1672 """__str__(TextWriter self) -> std::string"""
1673 return _IMP_display.TextWriter___str__(self)
1677 """__repr__(TextWriter self) -> std::string"""
1678 return _IMP_display.TextWriter___repr__(self)
1683 return _object_cast_to_TextWriter(o)
1686 def get_type_name(self):
1687 return self.__class__.__name__
1688 def do_show(self, out):
1690 def get_version_info(self):
1691 if"IMP::display" ==
"IMP":
1692 return VersionInfo(self.__module__,
1699 return _object_cast_to_TextWriter(o)
1701 def __disown__(self):
1703 _IMP_display.disown_TextWriter(self)
1704 return weakref_proxy(self)
1706 def handle_sphere(self, arg0, arg1, arg2):
1707 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1708 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1711 def handle_cylinder(self, arg0, arg1, arg2):
1712 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1713 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1716 def handle_point(self, arg0, arg1, arg2):
1717 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1718 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1721 def handle_segment(self, arg0, arg1, arg2):
1722 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1723 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1726 def handle_polygon(self, arg0, arg1, arg2):
1727 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1728 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1731 def handle_triangle(self, arg0, arg1, arg2):
1732 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1733 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1736 def handle_surface_mesh(self, arg0, arg1, arg2):
1737 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1738 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1741 def handle_label(self, arg0, arg1, arg2):
1742 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1743 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1746 def handle_ellipsoid(self, arg0, arg1, arg2):
1747 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1748 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1751 def handle_bounding_box(self, arg0, arg1, arg2):
1752 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1753 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1756 def handle_anything(self, arg0, arg1, arg2):
1757 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1758 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1761 def do_destroy(self):
1762 """do_destroy(TextWriter self)"""
1763 return _IMP_display.TextWriter_do_destroy(self)
1767 """do_close(TextWriter self)"""
1768 return _IMP_display.TextWriter_do_close(self)
1772 """do_open(TextWriter self)"""
1773 return _IMP_display.TextWriter_do_open(self)
1775 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1776 TextWriter_swigregister(TextWriter)
1780 """create_writer(std::string filename) -> Writer"""
1781 return _IMP_display.create_writer(filename)
1782 class WriterAdaptor(IMP._InputAdaptor):
1783 """Proxy of C++ IMP::display::WriterAdaptor class."""
1785 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1787 def __init__(self, *args):
1789 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1790 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1792 this = _IMP_display.new_WriterAdaptor(*args)
1794 self.this.append(this)
1795 except __builtin__.Exception:
1798 def get_writer(self):
1799 """get_writer(WriterAdaptor self) -> Writer"""
1800 return _IMP_display.WriterAdaptor_get_writer(self)
1803 def show(self, *args):
1805 show(WriterAdaptor self, _ostream out)
1806 show(WriterAdaptor self)
1808 return _IMP_display.WriterAdaptor_show(self, *args)
1810 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1811 __del__ =
lambda self:
None
1814 """__str__(WriterAdaptor self) -> std::string"""
1815 return _IMP_display.WriterAdaptor___str__(self)
1819 """__repr__(WriterAdaptor self) -> std::string"""
1820 return _IMP_display.WriterAdaptor___repr__(self)
1822 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1823 WriterAdaptor_swigregister(WriterAdaptor)
1826 """Proxy of C++ IMP::display::Colored class."""
1828 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1830 def set_color(self, c):
1831 """set_color(Colored self, Color c)"""
1832 return _IMP_display.Colored_set_color(self, c)
1835 def get_color(self):
1836 """get_color(Colored self) -> Color"""
1837 return _IMP_display.Colored_get_color(self)
1840 def get_color_keys():
1841 """get_color_keys() -> IMP::FloatKeys const &"""
1842 return _IMP_display.Colored_get_color_keys()
1844 get_color_keys = staticmethod(get_color_keys)
1846 def __init__(self, *args):
1848 __init__(IMP::display::Colored self) -> Colored
1849 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1850 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1852 this = _IMP_display.new_Colored(*args)
1854 self.this.append(this)
1855 except __builtin__.Exception:
1858 def get_is_setup(*args):
1860 get_is_setup(Model m, ParticleIndex pi) -> bool
1861 get_is_setup(_ParticleAdaptor p) -> bool
1863 return _IMP_display.Colored_get_is_setup(*args)
1865 get_is_setup = staticmethod(get_is_setup)
1867 def show(self, *args):
1869 show(Colored self, _ostream out)
1872 return _IMP_display.Colored_show(self, *args)
1875 def setup_particle(*args):
1877 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1878 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1880 return _IMP_display.Colored_setup_particle(*args)
1882 setup_particle = staticmethod(setup_particle)
1884 def add_attribute(self, *args):
1886 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1887 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1888 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1889 add_attribute(Colored self, StringKey a0, IMP::String a1)
1890 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1891 add_attribute(Colored self, ObjectKey a0, Object a1)
1893 return _IMP_display.Colored_add_attribute(self, *args)
1896 def get_value(self, *args):
1898 get_value(Colored self, FloatKey a0) -> IMP::Float
1899 get_value(Colored self, IntKey a0) -> IMP::Int
1900 get_value(Colored self, StringKey a0) -> IMP::String
1901 get_value(Colored self, ParticleIndexKey a0) -> Particle
1902 get_value(Colored self, ObjectKey a0) -> Object
1904 return _IMP_display.Colored_get_value(self, *args)
1907 def set_value(self, *args):
1909 set_value(Colored self, FloatKey a0, IMP::Float a1)
1910 set_value(Colored self, IntKey a0, IMP::Int a1)
1911 set_value(Colored self, StringKey a0, IMP::String a1)
1912 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1913 set_value(Colored self, ObjectKey a0, Object a1)
1915 return _IMP_display.Colored_set_value(self, *args)
1918 def remove_attribute(self, *args):
1920 remove_attribute(Colored self, FloatKey a0)
1921 remove_attribute(Colored self, IntKey a0)
1922 remove_attribute(Colored self, StringKey a0)
1923 remove_attribute(Colored self, ParticleIndexKey a0)
1924 remove_attribute(Colored self, ObjectKey a0)
1926 return _IMP_display.Colored_remove_attribute(self, *args)
1929 def has_attribute(self, *args):
1931 has_attribute(Colored self, FloatKey a0) -> bool
1932 has_attribute(Colored self, IntKey a0) -> bool
1933 has_attribute(Colored self, StringKey a0) -> bool
1934 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1935 has_attribute(Colored self, ObjectKey a0) -> bool
1937 return _IMP_display.Colored_has_attribute(self, *args)
1940 def get_derivative(self, a0):
1941 """get_derivative(Colored self, FloatKey a0) -> double"""
1942 return _IMP_display.Colored_get_derivative(self, a0)
1946 """get_name(Colored self) -> std::string"""
1947 return _IMP_display.Colored_get_name(self)
1950 def clear_caches(self):
1951 """clear_caches(Colored self)"""
1952 return _IMP_display.Colored_clear_caches(self)
1955 def set_name(self, a0):
1956 """set_name(Colored self, std::string a0)"""
1957 return _IMP_display.Colored_set_name(self, a0)
1961 """set_check_level(Colored self, IMP::CheckLevel a0)"""
1962 return _IMP_display.Colored_set_check_level(self, a0)
1965 def add_to_derivative(self, a0, a1, a2):
1966 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1967 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1970 def set_is_optimized(self, a0, a1):
1971 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1972 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1975 def get_is_optimized(self, a0):
1976 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
1977 return _IMP_display.Colored_get_is_optimized(self, a0)
1981 """get_check_level(Colored self) -> IMP::CheckLevel"""
1982 return _IMP_display.Colored_get_check_level(self)
1985 def __eq__(self, *args):
1987 __eq__(Colored self, Colored o) -> bool
1988 __eq__(Colored self, Particle d) -> bool
1990 return _IMP_display.Colored___eq__(self, *args)
1993 def __ne__(self, *args):
1995 __ne__(Colored self, Colored o) -> bool
1996 __ne__(Colored self, Particle d) -> bool
1998 return _IMP_display.Colored___ne__(self, *args)
2001 def __le__(self, *args):
2003 __le__(Colored self, Colored o) -> bool
2004 __le__(Colored self, Particle d) -> bool
2006 return _IMP_display.Colored___le__(self, *args)
2009 def __lt__(self, *args):
2011 __lt__(Colored self, Colored o) -> bool
2012 __lt__(Colored self, Particle d) -> bool
2014 return _IMP_display.Colored___lt__(self, *args)
2017 def __ge__(self, *args):
2019 __ge__(Colored self, Colored o) -> bool
2020 __ge__(Colored self, Particle d) -> bool
2022 return _IMP_display.Colored___ge__(self, *args)
2025 def __gt__(self, *args):
2027 __gt__(Colored self, Colored o) -> bool
2028 __gt__(Colored self, Particle d) -> bool
2030 return _IMP_display.Colored___gt__(self, *args)
2034 """__hash__(Colored self) -> std::size_t"""
2035 return _IMP_display.Colored___hash__(self)
2039 """__str__(Colored self) -> std::string"""
2040 return _IMP_display.Colored___str__(self)
2044 """__repr__(Colored self) -> std::string"""
2045 return _IMP_display.Colored___repr__(self)
2047 __swig_destroy__ = _IMP_display.delete_Colored
2048 __del__ =
lambda self:
None
2049 Colored_swigregister = _IMP_display.Colored_swigregister
2050 Colored_swigregister(Colored)
2052 def Colored_get_color_keys():
2053 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2054 return _IMP_display.Colored_get_color_keys()
2056 def Colored_get_is_setup(*args):
2058 get_is_setup(Model m, ParticleIndex pi) -> bool
2059 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2061 return _IMP_display.Colored_get_is_setup(*args)
2063 def Colored_setup_particle(*args):
2065 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2066 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2068 return _IMP_display.Colored_setup_particle(*args)
2071 def __lshift__(out, n):
2072 """__lshift__(_ostream out, Colored n) -> _ostream"""
2073 return _IMP_display.__lshift__(out, n)
2074 class FilterGeometry(GeometryProcessor, Geometry):
2075 """Proxy of C++ IMP::display::FilterGeometry class."""
2077 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2079 def __init__(self, p):
2080 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2081 this = _IMP_display.new_FilterGeometry(p)
2083 self.this.append(this)
2084 except __builtin__.Exception:
2089 add_geometry(FilterGeometry self, Geometry g)
2090 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2092 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2095 def get_version_info(self):
2096 """get_version_info(FilterGeometry self) -> VersionInfo"""
2097 return _IMP_display.FilterGeometry_get_version_info(self)
2101 """__str__(FilterGeometry self) -> std::string"""
2102 return _IMP_display.FilterGeometry___str__(self)
2106 """__repr__(FilterGeometry self) -> std::string"""
2107 return _IMP_display.FilterGeometry___repr__(self)
2112 return _object_cast_to_FilterGeometry(o)
2114 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2115 FilterGeometry_swigregister(FilterGeometry)
2118 """Proxy of C++ IMP::display::WriteOptimizerState class."""
2120 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2122 def __init__(self, m, w):
2123 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2124 this = _IMP_display.new_WriteOptimizerState(m, w)
2126 self.this.append(this)
2127 except __builtin__.Exception:
2131 """write(WriteOptimizerState self, WriterAdaptor w)"""
2132 return _IMP_display.WriteOptimizerState_write(self, w)
2135 def remove_geometry(self, d):
2136 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2137 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2140 def remove_geometries(self, d):
2141 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2142 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2145 def set_geometries(self, ps):
2146 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2147 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2150 def set_geometries_order(self, objs):
2151 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2152 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2156 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2157 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2161 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2162 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2165 def clear_geometries(self):
2166 """clear_geometries(WriteOptimizerState self)"""
2167 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2170 def get_number_of_geometries(self):
2171 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2172 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2175 def get_has_geometries(self):
2176 """get_has_geometries(WriteOptimizerState self) -> bool"""
2177 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2180 def get_geometry(self, i):
2181 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2182 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2185 def get_geometries(self):
2186 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2187 return _IMP_display.WriteOptimizerState_get_geometries(self)
2190 def reserve_geometries(self, sz):
2191 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2192 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2195 def get_version_info(self):
2196 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2197 return _IMP_display.WriteOptimizerState_get_version_info(self)
2201 """__str__(WriteOptimizerState self) -> std::string"""
2202 return _IMP_display.WriteOptimizerState___str__(self)
2206 """__repr__(WriteOptimizerState self) -> std::string"""
2207 return _IMP_display.WriteOptimizerState___repr__(self)
2212 return _object_cast_to_WriteOptimizerState(o)
2214 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2215 WriteOptimizerState_swigregister(WriteOptimizerState)
2217 class SingletonGeometry(Geometry):
2218 """Proxy of C++ IMP::display::SingletonGeometry class."""
2220 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2222 def __init__(self, p):
2223 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2224 this = _IMP_display.new_SingletonGeometry(p)
2226 self.this.append(this)
2227 except __builtin__.Exception:
2230 def get_particle(self):
2231 """get_particle(SingletonGeometry self) -> Particle"""
2232 return _IMP_display.SingletonGeometry_get_particle(self)
2234 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2235 __del__ =
lambda self:
None
2238 """__str__(SingletonGeometry self) -> std::string"""
2239 return _IMP_display.SingletonGeometry___str__(self)
2243 """__repr__(SingletonGeometry self) -> std::string"""
2244 return _IMP_display.SingletonGeometry___repr__(self)
2249 return _object_cast_to_SingletonGeometry(o)
2251 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2252 SingletonGeometry_swigregister(SingletonGeometry)
2254 class SingletonsGeometry(Geometry):
2255 """Proxy of C++ IMP::display::SingletonsGeometry class."""
2257 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2259 def __init__(self, *args):
2261 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2262 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2264 this = _IMP_display.new_SingletonsGeometry(*args)
2266 self.this.append(this)
2267 except __builtin__.Exception:
2270 def get_container(self):
2271 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2272 return _IMP_display.SingletonsGeometry_get_container(self)
2274 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2275 __del__ =
lambda self:
None
2278 """__str__(SingletonsGeometry self) -> std::string"""
2279 return _IMP_display.SingletonsGeometry___str__(self)
2283 """__repr__(SingletonsGeometry self) -> std::string"""
2284 return _IMP_display.SingletonsGeometry___repr__(self)
2289 return _object_cast_to_SingletonsGeometry(o)
2291 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2292 SingletonsGeometry_swigregister(SingletonsGeometry)
2294 class PairGeometry(Geometry):
2295 """Proxy of C++ IMP::display::PairGeometry class."""
2297 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2299 def __init__(self, pp):
2300 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2301 this = _IMP_display.new_PairGeometry(pp)
2303 self.this.append(this)
2304 except __builtin__.Exception:
2307 def get_particle_pair(self):
2308 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2309 return _IMP_display.PairGeometry_get_particle_pair(self)
2311 __swig_destroy__ = _IMP_display.delete_PairGeometry
2312 __del__ =
lambda self:
None
2315 """__str__(PairGeometry self) -> std::string"""
2316 return _IMP_display.PairGeometry___str__(self)
2320 """__repr__(PairGeometry self) -> std::string"""
2321 return _IMP_display.PairGeometry___repr__(self)
2326 return _object_cast_to_PairGeometry(o)
2328 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2329 PairGeometry_swigregister(PairGeometry)
2331 class PairsGeometry(Geometry):
2332 """Proxy of C++ IMP::display::PairsGeometry class."""
2334 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2336 def __init__(self, *args):
2338 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2339 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2341 this = _IMP_display.new_PairsGeometry(*args)
2343 self.this.append(this)
2344 except __builtin__.Exception:
2347 def get_container(self):
2348 """get_container(PairsGeometry self) -> PairContainer"""
2349 return _IMP_display.PairsGeometry_get_container(self)
2351 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2352 __del__ =
lambda self:
None
2355 """__str__(PairsGeometry self) -> std::string"""
2356 return _IMP_display.PairsGeometry___str__(self)
2360 """__repr__(PairsGeometry self) -> std::string"""
2361 return _IMP_display.PairsGeometry___repr__(self)
2366 return _object_cast_to_PairsGeometry(o)
2368 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2369 PairsGeometry_swigregister(PairsGeometry)
2371 class PymolWriter(TextWriter):
2372 """Proxy of C++ IMP::display::PymolWriter class."""
2374 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2376 def __init__(self, *args):
2378 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2379 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2380 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2382 this = _IMP_display.new_PymolWriter(*args)
2384 self.this.append(this)
2385 except __builtin__.Exception:
2388 def get_version_info(self):
2389 """get_version_info(PymolWriter self) -> VersionInfo"""
2390 return _IMP_display.PymolWriter_get_version_info(self)
2394 """__str__(PymolWriter self) -> std::string"""
2395 return _IMP_display.PymolWriter___str__(self)
2399 """__repr__(PymolWriter self) -> std::string"""
2400 return _IMP_display.PymolWriter___repr__(self)
2405 return _object_cast_to_PymolWriter(o)
2407 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2408 PymolWriter_swigregister(PymolWriter)
2410 class RestraintGeometry(Geometry):
2411 """Proxy of C++ IMP::display::RestraintGeometry 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, p):
2416 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2417 this = _IMP_display.new_RestraintGeometry(p)
2419 self.this.append(this)
2420 except __builtin__.Exception:
2423 def get_restraint(self):
2424 """get_restraint(RestraintGeometry self) -> Restraint"""
2425 return _IMP_display.RestraintGeometry_get_restraint(self)
2428 def get_version_info(self):
2429 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2430 return _IMP_display.RestraintGeometry_get_version_info(self)
2434 """__str__(RestraintGeometry self) -> std::string"""
2435 return _IMP_display.RestraintGeometry___str__(self)
2439 """__repr__(RestraintGeometry self) -> std::string"""
2440 return _IMP_display.RestraintGeometry___repr__(self)
2445 return _object_cast_to_RestraintGeometry(o)
2447 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2448 RestraintGeometry_swigregister(RestraintGeometry)
2450 class RestraintSetGeometry(Geometry):
2451 """Proxy of C++ IMP::display::RestraintSetGeometry 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, p):
2456 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2457 this = _IMP_display.new_RestraintSetGeometry(p)
2459 self.this.append(this)
2460 except __builtin__.Exception:
2463 def get_restraint_set(self):
2464 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2465 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2468 def get_version_info(self):
2469 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2470 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2474 """__str__(RestraintSetGeometry self) -> std::string"""
2475 return _IMP_display.RestraintSetGeometry___str__(self)
2479 """__repr__(RestraintSetGeometry self) -> std::string"""
2480 return _IMP_display.RestraintSetGeometry___repr__(self)
2485 return _object_cast_to_RestraintSetGeometry(o)
2487 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2488 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2492 PivyWriter= _pivy.get_writer(Writer)
2493 _object_types.append(
'PivyWriter')
2497 """get_module_version() -> std::string const"""
2498 return _IMP_display.get_module_version()
2501 """get_example_path(std::string fname) -> std::string"""
2502 return _IMP_display.get_example_path(fname)
2505 """get_data_path(std::string fname) -> std::string"""
2506 return _IMP_display.get_data_path(fname)
2508 from .
import _version_check
CheckLevel get_check_level()
Get the current audit mode.
Color get_rgb_color(double f)
Return the color for f from the RGB color map.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
double get_linear_color_map_value(double min, double max, double value)
Color get_interpolated_rgb(const Color &a, const Color &b, double f)
Return a color interpolated between a and b in RGB space.
Color get_hot_color(double f)
Return the color for f from the hot color map.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Common base class for heavy weight IMP objects.
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
Color get_display_color(unsigned int i)
Version and module information for Objects.
Writer * create_writer(std::string filename)
Color get_gnuplot_color(double f)
Return colors using the gnuplot default color map.
Interface to specialized Particle types (e.g. atoms)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Shared optimizer state that is invoked upon commitment of new coordinates.
Color get_gray_color(double f)
Return the a grayscale value for f.
Color get_jet_color(double f)
Return the color for f from the jet color map.
std::string get_module_version()
Return the version of this module, as a string.
void add_geometry(RMF::FileHandle file, display::Geometry *r)
Add a single geometry to the file.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.