14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_DISPLAY_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
77 r"""value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
78 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
81 r"""incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
82 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
86 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
94 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
98 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
101 r"""next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
102 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
105 r"""__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
106 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
109 r"""previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
110 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
114 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
118 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
122 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
126 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
130 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
134 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
139 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
146 _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
153 IMP_DEBUG = _IMP_display.IMP_DEBUG
155 IMP_RELEASE = _IMP_display.IMP_RELEASE
157 IMP_SILENT = _IMP_display.IMP_SILENT
159 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
161 IMP_TERSE = _IMP_display.IMP_TERSE
163 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
165 IMP_MEMORY = _IMP_display.IMP_MEMORY
167 IMP_NONE = _IMP_display.IMP_NONE
169 IMP_USAGE = _IMP_display.IMP_USAGE
171 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_display.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_display.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_display.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_display._ostream_write(self, osa_buf)
236 _IMP_display._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
289 _object_types.append(
"Writer")
292 def _object_cast_to_Writer(o):
293 r"""_object_cast_to_Writer(Object o) -> Writer"""
294 return _IMP_display._object_cast_to_Writer(o)
296 _object_types.append(
"TextWriter")
299 def _object_cast_to_TextWriter(o):
300 r"""_object_cast_to_TextWriter(Object o) -> TextWriter"""
301 return _IMP_display._object_cast_to_TextWriter(o)
303 _object_types.append(
"Geometry")
306 def _object_cast_to_Geometry(o):
307 r"""_object_cast_to_Geometry(Object o) -> Geometry"""
308 return _IMP_display._object_cast_to_Geometry(o)
310 _object_types.append(
"SingletonGeometry")
313 def _object_cast_to_SingletonGeometry(o):
314 r"""_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
315 return _IMP_display._object_cast_to_SingletonGeometry(o)
317 _object_types.append(
"PairGeometry")
320 def _object_cast_to_PairGeometry(o):
321 r"""_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
322 return _IMP_display._object_cast_to_PairGeometry(o)
324 _object_types.append(
"SingletonsGeometry")
327 def _object_cast_to_SingletonsGeometry(o):
328 r"""_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
329 return _IMP_display._object_cast_to_SingletonsGeometry(o)
331 _object_types.append(
"PairsGeometry")
334 def _object_cast_to_PairsGeometry(o):
335 r"""_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
336 return _IMP_display._object_cast_to_PairsGeometry(o)
338 _object_types.append(
"PymolWriter")
341 def _object_cast_to_PymolWriter(o):
342 r"""_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
343 return _IMP_display._object_cast_to_PymolWriter(o)
345 _object_types.append(
"SphereGeometry")
348 def _object_cast_to_SphereGeometry(o):
349 r"""_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
350 return _IMP_display._object_cast_to_SphereGeometry(o)
352 _object_types.append(
"CylinderGeometry")
355 def _object_cast_to_CylinderGeometry(o):
356 r"""_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
357 return _IMP_display._object_cast_to_CylinderGeometry(o)
359 _object_types.append(
"EllipsoidGeometry")
362 def _object_cast_to_EllipsoidGeometry(o):
363 r"""_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
364 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
366 _object_types.append(
"PointGeometry")
369 def _object_cast_to_PointGeometry(o):
370 r"""_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
371 return _IMP_display._object_cast_to_PointGeometry(o)
373 _object_types.append(
"SegmentGeometry")
376 def _object_cast_to_SegmentGeometry(o):
377 r"""_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
378 return _IMP_display._object_cast_to_SegmentGeometry(o)
380 _object_types.append(
"PolygonGeometry")
383 def _object_cast_to_PolygonGeometry(o):
384 r"""_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
385 return _IMP_display._object_cast_to_PolygonGeometry(o)
387 _object_types.append(
"ReferenceFrameGeometry")
390 def _object_cast_to_ReferenceFrameGeometry(o):
391 r"""_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
392 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
394 _object_types.append(
"BoundingBoxGeometry")
397 def _object_cast_to_BoundingBoxGeometry(o):
398 r"""_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
399 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
401 _object_types.append(
"LabelGeometry")
404 def _object_cast_to_LabelGeometry(o):
405 r"""_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
406 return _IMP_display._object_cast_to_LabelGeometry(o)
408 _object_types.append(
"RestraintGeometry")
411 def _object_cast_to_RestraintGeometry(o):
412 r"""_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
413 return _IMP_display._object_cast_to_RestraintGeometry(o)
415 _object_types.append(
"RestraintSetGeometry")
418 def _object_cast_to_RestraintSetGeometry(o):
419 r"""_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
420 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
422 _object_types.append(
"GeometrySet")
425 def _object_cast_to_GeometrySet(o):
426 r"""_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
427 return _IMP_display._object_cast_to_GeometrySet(o)
430 return [Colored(x)
for x
in l]
431 _plural_types.append(
"Coloreds")
434 _value_types.append(
"Colored")
438 _plural_types.append(
"Colors")
439 _value_types.append(
"Color")
443 _plural_types.append(
"WriterAdaptors")
444 _value_types.append(
"WriterAdaptor")
447 _object_types.append(
"FilterGeometry")
450 def _object_cast_to_FilterGeometry(o):
451 r"""_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
452 return _IMP_display._object_cast_to_FilterGeometry(o)
454 _object_types.append(
"WriteOptimizerState")
457 def _object_cast_to_WriteOptimizerState(o):
458 r"""_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
459 return _IMP_display._object_cast_to_WriteOptimizerState(o)
461 _object_types.append(
"TriangleGeometry")
464 def _object_cast_to_TriangleGeometry(o):
465 r"""_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
466 return _IMP_display._object_cast_to_TriangleGeometry(o)
468 _object_types.append(
"SurfaceMeshGeometry")
471 def _object_cast_to_SurfaceMeshGeometry(o):
472 r"""_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
473 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
475 _object_types.append(
"PlaneGeometry")
478 def _object_cast_to_PlaneGeometry(o):
479 r"""_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
480 return _IMP_display._object_cast_to_PlaneGeometry(o)
482 _object_types.append(
"IsosurfaceGeometry")
485 def _object_cast_to_IsosurfaceGeometry(o):
486 r"""_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
487 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
489 _object_types.append(
"SkinSurfaceGeometry")
492 def _object_cast_to_SkinSurfaceGeometry(o):
493 r"""_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
494 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
495 class Color(IMP._Value):
496 r"""Proxy of C++ IMP::display::Color class."""
498 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
500 def __init__(self, *args):
502 __init__(Color self, Color arg2) -> Color
503 __init__(Color self) -> Color
504 __init__(Color self, double r, double g, double b) -> Color
506 _IMP_display.Color_swiginit(self, _IMP_display.new_Color(*args))
507 __swig_destroy__ = _IMP_display.delete_Color
510 r"""get_red(Color self) -> double"""
511 return _IMP_display.Color_get_red(self)
514 r"""get_green(Color self) -> double"""
515 return _IMP_display.Color_get_green(self)
518 r"""get_blue(Color self) -> double"""
519 return _IMP_display.Color_get_blue(self)
521 def show(self, *args):
523 show(Color self, _ostream out, std::string delim)
524 show(Color self, _ostream out=std::cout)
526 return _IMP_display.Color_show(self, *args)
528 def __cmp__(self, o):
529 r"""__cmp__(Color self, Color o) -> int"""
530 return _IMP_display.Color___cmp__(self, o)
533 r"""__eq__(Color self, Color o) -> bool"""
534 return _IMP_display.Color___eq__(self, o)
537 r"""__ne__(Color self, Color o) -> bool"""
538 return _IMP_display.Color___ne__(self, o)
541 r"""__lt__(Color self, Color o) -> bool"""
542 return _IMP_display.Color___lt__(self, o)
545 r"""__gt__(Color self, Color o) -> bool"""
546 return _IMP_display.Color___gt__(self, o)
549 r"""__ge__(Color self, Color o) -> bool"""
550 return _IMP_display.Color___ge__(self, o)
553 r"""__le__(Color self, Color o) -> bool"""
554 return _IMP_display.Color___le__(self, o)
557 r"""__str__(Color self) -> std::string"""
558 return _IMP_display.Color___str__(self)
561 r"""__repr__(Color self) -> std::string"""
562 return _IMP_display.Color___repr__(self)
564 def _get_as_binary(self):
565 r"""_get_as_binary(Color self) -> PyObject *"""
566 return _IMP_display.Color__get_as_binary(self)
568 def _set_from_binary(self, p):
569 r"""_set_from_binary(Color self, PyObject * p)"""
570 return _IMP_display.Color__set_from_binary(self, p)
572 def __getstate__(self):
573 p = self._get_as_binary()
574 if len(self.__dict__) > 1:
575 d = self.__dict__.copy()
580 def __setstate__(self, p):
581 if not hasattr(self,
'this'):
583 if isinstance(p, tuple):
585 self.__dict__.update(d)
586 return self._set_from_binary(p)
590 _IMP_display.Color_swigregister(Color)
593 r"""get_display_color(unsigned int i) -> Color"""
594 return _IMP_display.get_display_color(i)
597 r"""get_interpolated_rgb(Color a, Color b, double f) -> Color"""
598 return _IMP_display.get_interpolated_rgb(a, b, f)
601 r"""get_linear_color_map_value(double min, double max, double value) -> double"""
602 return _IMP_display.get_linear_color_map_value(min, max, value)
605 r"""get_jet_color(double f) -> Color"""
606 return _IMP_display.get_jet_color(f)
609 r"""get_hot_color(double f) -> Color"""
610 return _IMP_display.get_hot_color(f)
613 r"""get_rgb_color(double f) -> Color"""
614 return _IMP_display.get_rgb_color(f)
617 r"""get_gray_color(double f) -> Color"""
618 return _IMP_display.get_gray_color(f)
621 r"""get_gnuplot_color(double f) -> Color"""
622 return _IMP_display.get_gnuplot_color(f)
624 r"""Proxy of C++ IMP::display::Geometry class."""
626 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
628 def __init__(self, *args):
630 __init__(Geometry self, std::string name) -> Geometry
631 __init__(Geometry self, Color c, std::string name) -> Geometry
633 if self.__class__ == Geometry:
637 _IMP_display.Geometry_swiginit(self, _IMP_display.new_Geometry(_self, *args))
639 if self.__class__ != Geometry:
640 _director_objects.register(self)
646 r"""get_color(Geometry self) -> Color"""
647 return _IMP_display.Geometry_get_color(self)
649 def get_has_color(self):
650 r"""get_has_color(Geometry self) -> bool"""
651 return _IMP_display.Geometry_get_has_color(self)
653 def set_has_color(self, tf):
654 r"""set_has_color(Geometry self, bool tf)"""
655 return _IMP_display.Geometry_set_has_color(self, tf)
657 def set_color(self, c):
658 r"""set_color(Geometry self, Color c)"""
659 return _IMP_display.Geometry_set_color(self, c)
661 def get_components(self):
662 r"""get_components(Geometry self) -> IMP::display::Geometries"""
663 return _IMP_display.Geometry_get_components(self)
664 __swig_destroy__ = _IMP_display.delete_Geometry
667 r"""__str__(Geometry self) -> std::string"""
668 return _IMP_display.Geometry___str__(self)
671 r"""__repr__(Geometry self) -> std::string"""
672 return _IMP_display.Geometry___repr__(self)
676 return _object_cast_to_Geometry(o)
679 def get_type_name(self):
680 return self.__class__.__name__
681 def do_show(self, out):
683 def get_version_info(self):
684 if"IMP::display" ==
"IMP":
685 return VersionInfo(self.__module__,
692 return _object_cast_to_Geometry(o)
694 def __disown__(self):
696 _IMP_display.disown_Geometry(self)
697 return weakref.proxy(self)
699 def do_destroy(self):
700 r"""do_destroy(Geometry self)"""
701 return _IMP_display.Geometry_do_destroy(self)
704 _IMP_display.Geometry_swigregister(Geometry)
705 class GeometrySet(Geometry):
706 r"""Proxy of C++ IMP::display::GeometrySet class."""
708 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
710 def __init__(self, *args):
712 __init__(GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
713 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
714 __init__(GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
715 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
717 _IMP_display.GeometrySet_swiginit(self, _IMP_display.new_GeometrySet(*args))
719 def get_geometry(self):
720 r"""get_geometry(GeometrySet self) -> IMP::display::Geometries"""
721 return _IMP_display.GeometrySet_get_geometry(self)
723 def get_version_info(self):
724 r"""get_version_info(GeometrySet self) -> VersionInfo"""
725 return _IMP_display.GeometrySet_get_version_info(self)
726 __swig_destroy__ = _IMP_display.delete_GeometrySet
729 r"""__str__(GeometrySet self) -> std::string"""
730 return _IMP_display.GeometrySet___str__(self)
733 r"""__repr__(GeometrySet self) -> std::string"""
734 return _IMP_display.GeometrySet___repr__(self)
738 return _object_cast_to_GeometrySet(o)
742 _IMP_display.GeometrySet_swigregister(GeometrySet)
743 class SphereGeometry(Geometry):
744 r"""Proxy of C++ IMP::display::SphereGeometry class."""
746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
748 def __init__(self, *args):
750 __init__(SphereGeometry self, Sphere3D v) -> SphereGeometry
751 __init__(SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
752 __init__(SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
753 __init__(SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
755 _IMP_display.SphereGeometry_swiginit(self, _IMP_display.new_SphereGeometry(*args))
757 def get_geometry(self):
758 r"""get_geometry(SphereGeometry self) -> Sphere3D"""
759 return _IMP_display.SphereGeometry_get_geometry(self)
761 def set_geometry(self, v):
762 r"""set_geometry(SphereGeometry self, Sphere3D v)"""
763 return _IMP_display.SphereGeometry_set_geometry(self, v)
765 def get_version_info(self):
766 r"""get_version_info(SphereGeometry self) -> VersionInfo"""
767 return _IMP_display.SphereGeometry_get_version_info(self)
768 __swig_destroy__ = _IMP_display.delete_SphereGeometry
771 r"""__str__(SphereGeometry self) -> std::string"""
772 return _IMP_display.SphereGeometry___str__(self)
775 r"""__repr__(SphereGeometry self) -> std::string"""
776 return _IMP_display.SphereGeometry___repr__(self)
780 return _object_cast_to_SphereGeometry(o)
784 _IMP_display.SphereGeometry_swigregister(SphereGeometry)
785 class CylinderGeometry(Geometry):
786 r"""Proxy of C++ IMP::display::CylinderGeometry class."""
788 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
790 def __init__(self, *args):
792 __init__(CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
793 __init__(CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
794 __init__(CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
795 __init__(CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
797 _IMP_display.CylinderGeometry_swiginit(self, _IMP_display.new_CylinderGeometry(*args))
799 def get_geometry(self):
800 r"""get_geometry(CylinderGeometry self) -> Cylinder3D"""
801 return _IMP_display.CylinderGeometry_get_geometry(self)
803 def set_geometry(self, v):
804 r"""set_geometry(CylinderGeometry self, Cylinder3D v)"""
805 return _IMP_display.CylinderGeometry_set_geometry(self, v)
807 def get_version_info(self):
808 r"""get_version_info(CylinderGeometry self) -> VersionInfo"""
809 return _IMP_display.CylinderGeometry_get_version_info(self)
810 __swig_destroy__ = _IMP_display.delete_CylinderGeometry
813 r"""__str__(CylinderGeometry self) -> std::string"""
814 return _IMP_display.CylinderGeometry___str__(self)
817 r"""__repr__(CylinderGeometry self) -> std::string"""
818 return _IMP_display.CylinderGeometry___repr__(self)
822 return _object_cast_to_CylinderGeometry(o)
826 _IMP_display.CylinderGeometry_swigregister(CylinderGeometry)
827 class EllipsoidGeometry(Geometry):
828 r"""Proxy of C++ IMP::display::EllipsoidGeometry class."""
830 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
832 def __init__(self, *args):
834 __init__(EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
835 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
836 __init__(EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
837 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
839 _IMP_display.EllipsoidGeometry_swiginit(self, _IMP_display.new_EllipsoidGeometry(*args))
841 def get_geometry(self):
842 r"""get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
843 return _IMP_display.EllipsoidGeometry_get_geometry(self)
845 def set_geometry(self, v):
846 r"""set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
847 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
849 def get_version_info(self):
850 r"""get_version_info(EllipsoidGeometry self) -> VersionInfo"""
851 return _IMP_display.EllipsoidGeometry_get_version_info(self)
852 __swig_destroy__ = _IMP_display.delete_EllipsoidGeometry
855 r"""__str__(EllipsoidGeometry self) -> std::string"""
856 return _IMP_display.EllipsoidGeometry___str__(self)
859 r"""__repr__(EllipsoidGeometry self) -> std::string"""
860 return _IMP_display.EllipsoidGeometry___repr__(self)
864 return _object_cast_to_EllipsoidGeometry(o)
868 _IMP_display.EllipsoidGeometry_swigregister(EllipsoidGeometry)
869 class PointGeometry(Geometry):
870 r"""Proxy of C++ IMP::display::PointGeometry class."""
872 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
874 def __init__(self, *args):
876 __init__(PointGeometry self, Vector3D v) -> PointGeometry
877 __init__(PointGeometry self, Vector3D v, Color c) -> PointGeometry
878 __init__(PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
879 __init__(PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
881 _IMP_display.PointGeometry_swiginit(self, _IMP_display.new_PointGeometry(*args))
883 def get_geometry(self):
884 r"""get_geometry(PointGeometry self) -> Vector3D"""
885 return _IMP_display.PointGeometry_get_geometry(self)
887 def set_geometry(self, v):
888 r"""set_geometry(PointGeometry self, Vector3D v)"""
889 return _IMP_display.PointGeometry_set_geometry(self, v)
891 def get_version_info(self):
892 r"""get_version_info(PointGeometry self) -> VersionInfo"""
893 return _IMP_display.PointGeometry_get_version_info(self)
894 __swig_destroy__ = _IMP_display.delete_PointGeometry
897 r"""__str__(PointGeometry self) -> std::string"""
898 return _IMP_display.PointGeometry___str__(self)
901 r"""__repr__(PointGeometry self) -> std::string"""
902 return _IMP_display.PointGeometry___repr__(self)
906 return _object_cast_to_PointGeometry(o)
910 _IMP_display.PointGeometry_swigregister(PointGeometry)
911 class SegmentGeometry(Geometry):
912 r"""Proxy of C++ IMP::display::SegmentGeometry class."""
914 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
916 def __init__(self, *args):
918 __init__(SegmentGeometry self, Segment3D v) -> SegmentGeometry
919 __init__(SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
920 __init__(SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
921 __init__(SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
923 _IMP_display.SegmentGeometry_swiginit(self, _IMP_display.new_SegmentGeometry(*args))
925 def get_geometry(self):
926 r"""get_geometry(SegmentGeometry self) -> Segment3D"""
927 return _IMP_display.SegmentGeometry_get_geometry(self)
929 def set_geometry(self, v):
930 r"""set_geometry(SegmentGeometry self, Segment3D v)"""
931 return _IMP_display.SegmentGeometry_set_geometry(self, v)
933 def get_version_info(self):
934 r"""get_version_info(SegmentGeometry self) -> VersionInfo"""
935 return _IMP_display.SegmentGeometry_get_version_info(self)
936 __swig_destroy__ = _IMP_display.delete_SegmentGeometry
939 r"""__str__(SegmentGeometry self) -> std::string"""
940 return _IMP_display.SegmentGeometry___str__(self)
943 r"""__repr__(SegmentGeometry self) -> std::string"""
944 return _IMP_display.SegmentGeometry___repr__(self)
948 return _object_cast_to_SegmentGeometry(o)
952 _IMP_display.SegmentGeometry_swigregister(SegmentGeometry)
953 class PolygonGeometry(Geometry):
954 r"""Proxy of C++ IMP::display::PolygonGeometry class."""
956 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
958 def __init__(self, *args):
960 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
961 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
962 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
963 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
965 _IMP_display.PolygonGeometry_swiginit(self, _IMP_display.new_PolygonGeometry(*args))
967 def get_geometry(self):
968 r"""get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
969 return _IMP_display.PolygonGeometry_get_geometry(self)
971 def set_geometry(self, v):
972 r"""set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
973 return _IMP_display.PolygonGeometry_set_geometry(self, v)
975 def get_version_info(self):
976 r"""get_version_info(PolygonGeometry self) -> VersionInfo"""
977 return _IMP_display.PolygonGeometry_get_version_info(self)
978 __swig_destroy__ = _IMP_display.delete_PolygonGeometry
981 r"""__str__(PolygonGeometry self) -> std::string"""
982 return _IMP_display.PolygonGeometry___str__(self)
985 r"""__repr__(PolygonGeometry self) -> std::string"""
986 return _IMP_display.PolygonGeometry___repr__(self)
990 return _object_cast_to_PolygonGeometry(o)
994 _IMP_display.PolygonGeometry_swigregister(PolygonGeometry)
995 class TriangleGeometry(Geometry):
996 r"""Proxy of C++ IMP::display::TriangleGeometry class."""
998 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1000 def __init__(self, *args):
1002 __init__(TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1003 __init__(TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1004 __init__(TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1005 __init__(TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1007 _IMP_display.TriangleGeometry_swiginit(self, _IMP_display.new_TriangleGeometry(*args))
1009 def get_geometry(self):
1010 r"""get_geometry(TriangleGeometry self) -> Triangle3D"""
1011 return _IMP_display.TriangleGeometry_get_geometry(self)
1013 def set_geometry(self, v):
1014 r"""set_geometry(TriangleGeometry self, Triangle3D v)"""
1015 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1017 def get_version_info(self):
1018 r"""get_version_info(TriangleGeometry self) -> VersionInfo"""
1019 return _IMP_display.TriangleGeometry_get_version_info(self)
1020 __swig_destroy__ = _IMP_display.delete_TriangleGeometry
1023 r"""__str__(TriangleGeometry self) -> std::string"""
1024 return _IMP_display.TriangleGeometry___str__(self)
1027 r"""__repr__(TriangleGeometry self) -> std::string"""
1028 return _IMP_display.TriangleGeometry___repr__(self)
1032 return _object_cast_to_TriangleGeometry(o)
1036 _IMP_display.TriangleGeometry_swigregister(TriangleGeometry)
1037 class BoundingBoxGeometry(Geometry):
1038 r"""Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1040 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1042 def __init__(self, *args):
1044 __init__(BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1045 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1046 __init__(BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1047 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1049 _IMP_display.BoundingBoxGeometry_swiginit(self, _IMP_display.new_BoundingBoxGeometry(*args))
1051 def get_geometry(self):
1052 r"""get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1053 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1055 def set_geometry(self, v):
1056 r"""set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1057 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1059 def get_version_info(self):
1060 r"""get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1061 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1062 __swig_destroy__ = _IMP_display.delete_BoundingBoxGeometry
1065 r"""__str__(BoundingBoxGeometry self) -> std::string"""
1066 return _IMP_display.BoundingBoxGeometry___str__(self)
1069 r"""__repr__(BoundingBoxGeometry self) -> std::string"""
1070 return _IMP_display.BoundingBoxGeometry___repr__(self)
1074 return _object_cast_to_BoundingBoxGeometry(o)
1078 _IMP_display.BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1079 class ReferenceFrameGeometry(Geometry):
1080 r"""Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1082 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1084 def __init__(self, *args):
1086 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1087 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1088 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1089 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1091 _IMP_display.ReferenceFrameGeometry_swiginit(self, _IMP_display.new_ReferenceFrameGeometry(*args))
1093 def get_geometry(self):
1094 r"""get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1095 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1097 def set_geometry(self, v):
1098 r"""set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1099 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1101 def get_version_info(self):
1102 r"""get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1103 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1104 __swig_destroy__ = _IMP_display.delete_ReferenceFrameGeometry
1107 r"""__str__(ReferenceFrameGeometry self) -> std::string"""
1108 return _IMP_display.ReferenceFrameGeometry___str__(self)
1111 r"""__repr__(ReferenceFrameGeometry self) -> std::string"""
1112 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1116 return _object_cast_to_ReferenceFrameGeometry(o)
1120 _IMP_display.ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1124 create_geometry(Sphere3D t, std::string name="algebra::Sphere3D"+"%1%") -> SphereGeometry
1125 create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D"+"%1%") -> CylinderGeometry
1126 create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D"+"%1%") -> EllipsoidGeometry
1127 create_geometry(Vector3D t, std::string name="algebra::Vector3D"+"%1%") -> PointGeometry
1128 create_geometry(Segment3D t, std::string name="algebra::Segment3D"+"%1%") -> SegmentGeometry
1129 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds"+"%1%") -> PolygonGeometry
1130 create_geometry(Triangle3D t, std::string name="algebra::Triangle3D"+"%1%") -> TriangleGeometry
1131 create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>"+"%1%") -> BoundingBoxGeometry
1132 create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D"+"%1%") -> ReferenceFrameGeometry
1134 return _IMP_display.create_geometry(*args)
1135 class LabelGeometry(Geometry):
1136 r"""Proxy of C++ IMP::display::LabelGeometry class."""
1138 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1140 def __init__(self, *args):
1142 __init__(LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1143 __init__(LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1145 _IMP_display.LabelGeometry_swiginit(self, _IMP_display.new_LabelGeometry(*args))
1148 r"""get_text(LabelGeometry self) -> std::string"""
1149 return _IMP_display.LabelGeometry_get_text(self)
1151 def get_location(self):
1152 r"""get_location(LabelGeometry self) -> Sphere3D"""
1153 return _IMP_display.LabelGeometry_get_location(self)
1155 def get_version_info(self):
1156 r"""get_version_info(LabelGeometry self) -> VersionInfo"""
1157 return _IMP_display.LabelGeometry_get_version_info(self)
1158 __swig_destroy__ = _IMP_display.delete_LabelGeometry
1161 r"""__str__(LabelGeometry self) -> std::string"""
1162 return _IMP_display.LabelGeometry___str__(self)
1165 r"""__repr__(LabelGeometry self) -> std::string"""
1166 return _IMP_display.LabelGeometry___repr__(self)
1170 return _object_cast_to_LabelGeometry(o)
1174 _IMP_display.LabelGeometry_swigregister(LabelGeometry)
1175 class SurfaceMeshGeometry(Geometry):
1176 r"""Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1178 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1180 def __init__(self, vertices, faces):
1181 r"""__init__(SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1182 _IMP_display.SurfaceMeshGeometry_swiginit(self, _IMP_display.new_SurfaceMeshGeometry(vertices, faces))
1184 def get_vertexes(self):
1185 r"""get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1186 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1188 def get_faces(self):
1189 r"""get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1190 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1192 def get_version_info(self):
1193 r"""get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1194 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1195 __swig_destroy__ = _IMP_display.delete_SurfaceMeshGeometry
1198 r"""__str__(SurfaceMeshGeometry self) -> std::string"""
1199 return _IMP_display.SurfaceMeshGeometry___str__(self)
1202 r"""__repr__(SurfaceMeshGeometry self) -> std::string"""
1203 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1207 return _object_cast_to_SurfaceMeshGeometry(o)
1211 _IMP_display.SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1212 class PlaneGeometry(Geometry):
1213 r"""Proxy of C++ IMP::display::PlaneGeometry class."""
1215 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1217 def __init__(self, loc, box):
1218 r"""__init__(PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1219 _IMP_display.PlaneGeometry_swiginit(self, _IMP_display.new_PlaneGeometry(loc, box))
1221 def get_version_info(self):
1222 r"""get_version_info(PlaneGeometry self) -> VersionInfo"""
1223 return _IMP_display.PlaneGeometry_get_version_info(self)
1224 __swig_destroy__ = _IMP_display.delete_PlaneGeometry
1227 r"""__str__(PlaneGeometry self) -> std::string"""
1228 return _IMP_display.PlaneGeometry___str__(self)
1231 r"""__repr__(PlaneGeometry self) -> std::string"""
1232 return _IMP_display.PlaneGeometry___repr__(self)
1236 return _object_cast_to_PlaneGeometry(o)
1240 _IMP_display.PlaneGeometry_swigregister(PlaneGeometry)
1241 class IsosurfaceGeometry(SurfaceMeshGeometry):
1242 r"""Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1244 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1246 def __init__(self, *args):
1248 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1249 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1251 _IMP_display.IsosurfaceGeometry_swiginit(self, _IMP_display.new_IsosurfaceGeometry(*args))
1254 r"""__str__(IsosurfaceGeometry self) -> std::string"""
1255 return _IMP_display.IsosurfaceGeometry___str__(self)
1258 r"""__repr__(IsosurfaceGeometry self) -> std::string"""
1259 return _IMP_display.IsosurfaceGeometry___repr__(self)
1263 return _object_cast_to_IsosurfaceGeometry(o)
1265 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1268 _IMP_display.IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1269 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1270 r"""Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1272 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1274 def __init__(self, balls):
1275 r"""__init__(SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1276 _IMP_display.SkinSurfaceGeometry_swiginit(self, _IMP_display.new_SkinSurfaceGeometry(balls))
1279 r"""__str__(SkinSurfaceGeometry self) -> std::string"""
1280 return _IMP_display.SkinSurfaceGeometry___str__(self)
1283 r"""__repr__(SkinSurfaceGeometry self) -> std::string"""
1284 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1288 return _object_cast_to_SkinSurfaceGeometry(o)
1290 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1293 _IMP_display.SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1294 class GeometryProcessor(object):
1295 r"""Proxy of C++ IMP::display::GeometryProcessor class."""
1297 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1298 __repr__ = _swig_repr
1301 r"""__init__(GeometryProcessor self) -> GeometryProcessor"""
1302 _IMP_display.GeometryProcessor_swiginit(self, _IMP_display.new_GeometryProcessor())
1305 _IMP_display.GeometryProcessor_swigregister(GeometryProcessor)
1307 r"""Proxy of C++ IMP::display::Writer class."""
1309 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1311 def __init__(self, name):
1312 r"""__init__(Writer self, std::string name) -> Writer"""
1313 if self.__class__ == Writer:
1317 _IMP_display.Writer_swiginit(self, _IMP_display.new_Writer(_self, name))
1319 if self.__class__ != Writer:
1320 _director_objects.register(self)
1324 __swig_destroy__ = _IMP_display.delete_Writer
1326 def set_frame(self, i):
1327 r"""set_frame(Writer self, unsigned int i)"""
1328 return _IMP_display.Writer_set_frame(self, i)
1330 def get_frame(self):
1331 r"""get_frame(Writer self) -> int"""
1332 return _IMP_display.Writer_get_frame(self)
1336 add_geometry(Writer self, Geometry g)
1337 add_geometry(Writer self, IMP::display::Geometries const & g)
1339 return _IMP_display.Writer_add_geometry(self, *args)
1342 r"""do_close(Writer self)"""
1343 return _IMP_display.Writer_do_close(self)
1346 r"""do_open(Writer self)"""
1347 return _IMP_display.Writer_do_open(self)
1349 def do_set_frame(self):
1350 r"""do_set_frame(Writer self)"""
1351 return _IMP_display.Writer_do_set_frame(self)
1354 r"""__str__(Writer self) -> std::string"""
1355 return _IMP_display.Writer___str__(self)
1358 r"""__repr__(Writer self) -> std::string"""
1359 return _IMP_display.Writer___repr__(self)
1363 return _object_cast_to_Writer(o)
1366 def get_type_name(self):
1367 return self.__class__.__name__
1368 def do_show(self, out):
1370 def get_version_info(self):
1371 if"IMP::display" ==
"IMP":
1372 return VersionInfo(self.__module__,
1379 return _object_cast_to_Writer(o)
1381 def __disown__(self):
1383 _IMP_display.disown_Writer(self)
1384 return weakref.proxy(self)
1386 def handle_sphere(self, arg0, arg1, arg2):
1387 r"""handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1388 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1390 def handle_cylinder(self, arg0, arg1, arg2):
1391 r"""handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1392 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1394 def handle_point(self, arg0, arg1, arg2):
1395 r"""handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1396 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1398 def handle_segment(self, arg0, arg1, arg2):
1399 r"""handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1400 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1402 def handle_polygon(self, arg0, arg1, arg2):
1403 r"""handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1404 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1406 def handle_triangle(self, arg0, arg1, arg2):
1407 r"""handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1408 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1410 def handle_surface_mesh(self, arg0, arg1, arg2):
1411 r"""handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1412 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1414 def handle_label(self, arg0, arg1, arg2):
1415 r"""handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1416 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1418 def handle_ellipsoid(self, arg0, arg1, arg2):
1419 r"""handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1420 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1422 def handle_bounding_box(self, arg0, arg1, arg2):
1423 r"""handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1424 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1426 def handle_anything(self, arg0, arg1, arg2):
1427 r"""handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1428 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1430 def do_destroy(self):
1431 r"""do_destroy(Writer self)"""
1432 return _IMP_display.Writer_do_destroy(self)
1435 _IMP_display.Writer_swigregister(Writer)
1436 class TextWriter(Writer):
1437 r"""Proxy of C++ IMP::display::TextWriter class."""
1439 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1442 r"""open(TextWriter self)"""
1443 return _IMP_display.TextWriter_open(self)
1445 def get_stream(self):
1446 r"""get_stream(TextWriter self) -> _ostream"""
1447 return _IMP_display.TextWriter_get_stream(self)
1449 def do_set_frame(self):
1450 r"""do_set_frame(TextWriter self)"""
1451 return _IMP_display.TextWriter_do_set_frame(self)
1453 def __init__(self, *args):
1455 __init__(TextWriter self, TextOutput fn) -> TextWriter
1456 __init__(TextWriter self, std::string name) -> TextWriter
1458 if self.__class__ == TextWriter:
1462 _IMP_display.TextWriter_swiginit(self, _IMP_display.new_TextWriter(_self, *args))
1464 if self.__class__ != TextWriter:
1465 _director_objects.register(self)
1470 def get_current_file_name(self):
1471 r"""get_current_file_name(TextWriter self) -> std::string"""
1472 return _IMP_display.TextWriter_get_current_file_name(self)
1473 __swig_destroy__ = _IMP_display.delete_TextWriter
1476 r"""__str__(TextWriter self) -> std::string"""
1477 return _IMP_display.TextWriter___str__(self)
1480 r"""__repr__(TextWriter self) -> std::string"""
1481 return _IMP_display.TextWriter___repr__(self)
1485 return _object_cast_to_TextWriter(o)
1488 def get_type_name(self):
1489 return self.__class__.__name__
1490 def do_show(self, out):
1492 def get_version_info(self):
1493 if"IMP::display" ==
"IMP":
1494 return VersionInfo(self.__module__,
1501 return _object_cast_to_TextWriter(o)
1503 def __disown__(self):
1505 _IMP_display.disown_TextWriter(self)
1506 return weakref.proxy(self)
1508 def handle_sphere(self, arg0, arg1, arg2):
1509 r"""handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1510 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1512 def handle_cylinder(self, arg0, arg1, arg2):
1513 r"""handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1514 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1516 def handle_point(self, arg0, arg1, arg2):
1517 r"""handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1518 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1520 def handle_segment(self, arg0, arg1, arg2):
1521 r"""handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1522 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1524 def handle_polygon(self, arg0, arg1, arg2):
1525 r"""handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1526 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1528 def handle_triangle(self, arg0, arg1, arg2):
1529 r"""handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1530 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1532 def handle_surface_mesh(self, arg0, arg1, arg2):
1533 r"""handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1534 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1536 def handle_label(self, arg0, arg1, arg2):
1537 r"""handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1538 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1540 def handle_ellipsoid(self, arg0, arg1, arg2):
1541 r"""handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1542 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1544 def handle_bounding_box(self, arg0, arg1, arg2):
1545 r"""handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1546 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1548 def handle_anything(self, arg0, arg1, arg2):
1549 r"""handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1550 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1552 def do_destroy(self):
1553 r"""do_destroy(TextWriter self)"""
1554 return _IMP_display.TextWriter_do_destroy(self)
1557 r"""do_close(TextWriter self)"""
1558 return _IMP_display.TextWriter_do_close(self)
1561 r"""do_open(TextWriter self)"""
1562 return _IMP_display.TextWriter_do_open(self)
1565 _IMP_display.TextWriter_swigregister(TextWriter)
1568 r"""create_writer(std::string filename) -> Writer"""
1569 return _IMP_display.create_writer(filename)
1570 class WriterAdaptor(IMP._InputAdaptor):
1571 r"""Proxy of C++ IMP::display::WriterAdaptor class."""
1573 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1575 def __init__(self, *args):
1577 __init__(WriterAdaptor self, std::string name) -> WriterAdaptor
1578 __init__(WriterAdaptor self, Writer w) -> WriterAdaptor
1580 _IMP_display.WriterAdaptor_swiginit(self, _IMP_display.new_WriterAdaptor(*args))
1582 def get_writer(self):
1583 r"""get_writer(WriterAdaptor self) -> Writer"""
1584 return _IMP_display.WriterAdaptor_get_writer(self)
1586 def show(self, *args):
1587 r"""show(WriterAdaptor self, _ostream out=std::cout)"""
1588 return _IMP_display.WriterAdaptor_show(self, *args)
1589 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1592 r"""__str__(WriterAdaptor self) -> std::string"""
1593 return _IMP_display.WriterAdaptor___str__(self)
1596 r"""__repr__(WriterAdaptor self) -> std::string"""
1597 return _IMP_display.WriterAdaptor___repr__(self)
1600 _IMP_display.WriterAdaptor_swigregister(WriterAdaptor)
1602 r"""Proxy of C++ IMP::display::Colored class."""
1604 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1606 def set_color(self, c):
1607 r"""set_color(Colored self, Color c)"""
1608 return _IMP_display.Colored_set_color(self, c)
1610 def get_color(self):
1611 r"""get_color(Colored self) -> Color"""
1612 return _IMP_display.Colored_get_color(self)
1615 def get_color_keys():
1616 r"""get_color_keys() -> IMP::FloatKeys const &"""
1617 return _IMP_display.Colored_get_color_keys()
1619 def __init__(self, *args):
1621 __init__(Colored self) -> Colored
1622 __init__(Colored self, Model m, ParticleIndex id) -> Colored
1623 __init__(Colored self, _ParticleAdaptor d) -> Colored
1625 _IMP_display.Colored_swiginit(self, _IMP_display.new_Colored(*args))
1628 def get_is_setup(*args):
1630 get_is_setup(Model m, ParticleIndex pi) -> bool
1631 get_is_setup(_ParticleAdaptor p) -> bool
1633 return _IMP_display.Colored_get_is_setup(*args)
1635 def show(self, *args):
1636 r"""show(Colored self, _ostream out=std::cout)"""
1637 return _IMP_display.Colored_show(self, *args)
1640 def setup_particle(*args):
1642 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1643 setup_particle(_ParticleAdaptor pa, Color color) -> Colored
1645 return _IMP_display.Colored_setup_particle(*args)
1647 def add_attribute(self, *args):
1649 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1650 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1651 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1652 add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1653 add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1654 add_attribute(Colored self, StringKey a0, IMP::String a1)
1655 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1656 add_attribute(Colored self, ObjectKey a0, Object a1)
1657 add_attribute(Colored self, SparseFloatKey a0, IMP::Float a1)
1658 add_attribute(Colored self, SparseIntKey a0, IMP::Int a1)
1659 add_attribute(Colored self, SparseStringKey a0, IMP::String a1)
1660 add_attribute(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1662 return _IMP_display.Colored_add_attribute(self, *args)
1664 def get_value(self, *args):
1666 get_value(Colored self, FloatKey a0) -> IMP::Float
1667 get_value(Colored self, IntKey a0) -> IMP::Int
1668 get_value(Colored self, FloatsKey a0) -> IMP::Floats
1669 get_value(Colored self, IntsKey a0) -> IMP::Ints
1670 get_value(Colored self, StringKey a0) -> IMP::String
1671 get_value(Colored self, ParticleIndexKey a0) -> Particle
1672 get_value(Colored self, ObjectKey a0) -> Object
1673 get_value(Colored self, SparseFloatKey a0) -> IMP::Float
1674 get_value(Colored self, SparseIntKey a0) -> IMP::Int
1675 get_value(Colored self, SparseStringKey a0) -> IMP::String
1676 get_value(Colored self, SparseParticleIndexKey a0) -> ParticleIndex
1678 return _IMP_display.Colored_get_value(self, *args)
1680 def set_value(self, *args):
1682 set_value(Colored self, FloatKey a0, IMP::Float a1)
1683 set_value(Colored self, IntKey a0, IMP::Int a1)
1684 set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1685 set_value(Colored self, IntsKey a0, IMP::Ints a1)
1686 set_value(Colored self, StringKey a0, IMP::String a1)
1687 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1688 set_value(Colored self, ObjectKey a0, Object a1)
1689 set_value(Colored self, SparseFloatKey a0, IMP::Float a1)
1690 set_value(Colored self, SparseIntKey a0, IMP::Int a1)
1691 set_value(Colored self, SparseStringKey a0, IMP::String a1)
1692 set_value(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1694 return _IMP_display.Colored_set_value(self, *args)
1696 def remove_attribute(self, *args):
1698 remove_attribute(Colored self, FloatKey a0)
1699 remove_attribute(Colored self, IntKey a0)
1700 remove_attribute(Colored self, FloatsKey a0)
1701 remove_attribute(Colored self, IntsKey a0)
1702 remove_attribute(Colored self, StringKey a0)
1703 remove_attribute(Colored self, ParticleIndexKey a0)
1704 remove_attribute(Colored self, ObjectKey a0)
1705 remove_attribute(Colored self, SparseFloatKey a0)
1706 remove_attribute(Colored self, SparseIntKey a0)
1707 remove_attribute(Colored self, SparseStringKey a0)
1708 remove_attribute(Colored self, SparseParticleIndexKey a0)
1710 return _IMP_display.Colored_remove_attribute(self, *args)
1712 def has_attribute(self, *args):
1714 has_attribute(Colored self, FloatKey a0) -> bool
1715 has_attribute(Colored self, IntKey a0) -> bool
1716 has_attribute(Colored self, FloatsKey a0) -> bool
1717 has_attribute(Colored self, IntsKey a0) -> bool
1718 has_attribute(Colored self, StringKey a0) -> bool
1719 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1720 has_attribute(Colored self, ObjectKey a0) -> bool
1721 has_attribute(Colored self, SparseFloatKey a0) -> bool
1722 has_attribute(Colored self, SparseIntKey a0) -> bool
1723 has_attribute(Colored self, SparseStringKey a0) -> bool
1724 has_attribute(Colored self, SparseParticleIndexKey a0) -> bool
1726 return _IMP_display.Colored_has_attribute(self, *args)
1728 def get_derivative(self, a0):
1729 r"""get_derivative(Colored self, FloatKey a0) -> double"""
1730 return _IMP_display.Colored_get_derivative(self, a0)
1733 r"""get_name(Colored self) -> std::string"""
1734 return _IMP_display.Colored_get_name(self)
1736 def clear_caches(self):
1737 r"""clear_caches(Colored self)"""
1738 return _IMP_display.Colored_clear_caches(self)
1740 def set_name(self, a0):
1741 r"""set_name(Colored self, std::string a0)"""
1742 return _IMP_display.Colored_set_name(self, a0)
1745 r"""set_check_level(Colored self, IMP::CheckLevel a0)"""
1746 return _IMP_display.Colored_set_check_level(self, a0)
1748 def add_to_derivative(self, a0, a1, a2):
1749 r"""add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1750 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1752 def set_is_optimized(self, a0, a1):
1753 r"""set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1754 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1756 def get_is_optimized(self, a0):
1757 r"""get_is_optimized(Colored self, FloatKey a0) -> bool"""
1758 return _IMP_display.Colored_get_is_optimized(self, a0)
1761 r"""get_check_level(Colored self) -> IMP::CheckLevel"""
1762 return _IMP_display.Colored_get_check_level(self)
1764 def __eq__(self, *args):
1766 __eq__(Colored self, Colored o) -> bool
1767 __eq__(Colored self, Particle d) -> bool
1769 return _IMP_display.Colored___eq__(self, *args)
1771 def __ne__(self, *args):
1773 __ne__(Colored self, Colored o) -> bool
1774 __ne__(Colored self, Particle d) -> bool
1776 return _IMP_display.Colored___ne__(self, *args)
1778 def __le__(self, *args):
1780 __le__(Colored self, Colored o) -> bool
1781 __le__(Colored self, Particle d) -> bool
1783 return _IMP_display.Colored___le__(self, *args)
1785 def __lt__(self, *args):
1787 __lt__(Colored self, Colored o) -> bool
1788 __lt__(Colored self, Particle d) -> bool
1790 return _IMP_display.Colored___lt__(self, *args)
1792 def __ge__(self, *args):
1794 __ge__(Colored self, Colored o) -> bool
1795 __ge__(Colored self, Particle d) -> bool
1797 return _IMP_display.Colored___ge__(self, *args)
1799 def __gt__(self, *args):
1801 __gt__(Colored self, Colored o) -> bool
1802 __gt__(Colored self, Particle d) -> bool
1804 return _IMP_display.Colored___gt__(self, *args)
1807 r"""__hash__(Colored self) -> std::size_t"""
1808 return _IMP_display.Colored___hash__(self)
1811 r"""__str__(Colored self) -> std::string"""
1812 return _IMP_display.Colored___str__(self)
1815 r"""__repr__(Colored self) -> std::string"""
1816 return _IMP_display.Colored___repr__(self)
1818 def _get_as_binary(self):
1819 r"""_get_as_binary(Colored self) -> PyObject *"""
1820 return _IMP_display.Colored__get_as_binary(self)
1822 def _set_from_binary(self, p):
1823 r"""_set_from_binary(Colored self, PyObject * p)"""
1824 return _IMP_display.Colored__set_from_binary(self, p)
1826 def __getstate__(self):
1827 p = self._get_as_binary()
1828 if len(self.__dict__) > 1:
1829 d = self.__dict__.copy()
1834 def __setstate__(self, p):
1835 if not hasattr(self,
'this'):
1837 if isinstance(p, tuple):
1839 self.__dict__.update(d)
1840 return self._set_from_binary(p)
1842 __swig_destroy__ = _IMP_display.delete_Colored
1845 _IMP_display.Colored_swigregister(Colored)
1847 def __lshift__(out, n):
1848 r"""__lshift__(_ostream out, Colored n) -> _ostream"""
1849 return _IMP_display.__lshift__(out, n)
1850 class FilterGeometry(GeometryProcessor, Geometry):
1851 r"""Proxy of C++ IMP::display::FilterGeometry class."""
1853 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1855 def __init__(self, p):
1856 r"""__init__(FilterGeometry self, Plane3D p) -> FilterGeometry"""
1857 _IMP_display.FilterGeometry_swiginit(self, _IMP_display.new_FilterGeometry(p))
1861 add_geometry(FilterGeometry self, Geometry g)
1862 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1864 return _IMP_display.FilterGeometry_add_geometry(self, *args)
1866 def get_version_info(self):
1867 r"""get_version_info(FilterGeometry self) -> VersionInfo"""
1868 return _IMP_display.FilterGeometry_get_version_info(self)
1869 __swig_destroy__ = _IMP_display.delete_FilterGeometry
1872 r"""__str__(FilterGeometry self) -> std::string"""
1873 return _IMP_display.FilterGeometry___str__(self)
1876 r"""__repr__(FilterGeometry self) -> std::string"""
1877 return _IMP_display.FilterGeometry___repr__(self)
1881 return _object_cast_to_FilterGeometry(o)
1885 _IMP_display.FilterGeometry_swigregister(FilterGeometry)
1887 r"""Proxy of C++ IMP::display::WriteOptimizerState class."""
1889 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1891 def __init__(self, m, w):
1892 r"""__init__(WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1893 _IMP_display.WriteOptimizerState_swiginit(self, _IMP_display.new_WriteOptimizerState(m, w))
1896 r"""write(WriteOptimizerState self, WriterAdaptor w)"""
1897 return _IMP_display.WriteOptimizerState_write(self, w)
1898 def __get_geometries(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_geometries, getfunc=self.get_geometry, erasefunc=self.erase_geometry, appendfunc=self.add_geometry, extendfunc=self.add_geometries, clearfunc=self.clear_geometries, indexfunc=self._python_index_geometry)
1899 def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
1900 def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
1901 geometries = property(__get_geometries, __set_geometries, __del_geometries, doc=
"List of ##ucnames")
1903 def remove_geometry(self, d):
1904 r"""remove_geometry(WriteOptimizerState self, Geometry d)"""
1905 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
1907 def _python_index_geometry(self, d, start, stop):
1908 r"""_python_index_geometry(WriteOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1909 return _IMP_display.WriteOptimizerState__python_index_geometry(self, d, start, stop)
1911 def remove_geometries(self, d):
1912 r"""remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1913 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
1915 def set_geometries(self, ps):
1916 r"""set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1917 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
1919 def set_geometries_order(self, objs):
1920 r"""set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1921 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
1924 r"""add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1925 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
1928 r"""add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1929 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
1931 def clear_geometries(self):
1932 r"""clear_geometries(WriteOptimizerState self)"""
1933 return _IMP_display.WriteOptimizerState_clear_geometries(self)
1935 def get_number_of_geometries(self):
1936 r"""get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1937 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1939 def get_has_geometries(self):
1940 r"""get_has_geometries(WriteOptimizerState self) -> bool"""
1941 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1943 def get_geometry(self, i):
1944 r"""get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1945 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
1947 def get_geometries(self):
1948 r"""get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1949 return _IMP_display.WriteOptimizerState_get_geometries(self)
1951 def erase_geometry(self, i):
1952 r"""erase_geometry(WriteOptimizerState self, unsigned int i)"""
1953 return _IMP_display.WriteOptimizerState_erase_geometry(self, i)
1955 def reserve_geometries(self, sz):
1956 r"""reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1957 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
1959 def get_version_info(self):
1960 r"""get_version_info(WriteOptimizerState self) -> VersionInfo"""
1961 return _IMP_display.WriteOptimizerState_get_version_info(self)
1962 __swig_destroy__ = _IMP_display.delete_WriteOptimizerState
1965 r"""__str__(WriteOptimizerState self) -> std::string"""
1966 return _IMP_display.WriteOptimizerState___str__(self)
1969 r"""__repr__(WriteOptimizerState self) -> std::string"""
1970 return _IMP_display.WriteOptimizerState___repr__(self)
1974 return _object_cast_to_WriteOptimizerState(o)
1978 _IMP_display.WriteOptimizerState_swigregister(WriteOptimizerState)
1979 class SingletonGeometry(Geometry):
1980 r"""Proxy of C++ IMP::display::SingletonGeometry class."""
1982 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1984 def __init__(self, p):
1985 r"""__init__(SingletonGeometry self, Particle p) -> SingletonGeometry"""
1986 _IMP_display.SingletonGeometry_swiginit(self, _IMP_display.new_SingletonGeometry(p))
1988 def get_particle(self):
1989 r"""get_particle(SingletonGeometry self) -> Particle"""
1990 return _IMP_display.SingletonGeometry_get_particle(self)
1991 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1994 r"""__str__(SingletonGeometry self) -> std::string"""
1995 return _IMP_display.SingletonGeometry___str__(self)
1998 r"""__repr__(SingletonGeometry self) -> std::string"""
1999 return _IMP_display.SingletonGeometry___repr__(self)
2003 return _object_cast_to_SingletonGeometry(o)
2007 _IMP_display.SingletonGeometry_swigregister(SingletonGeometry)
2008 class SingletonsGeometry(Geometry):
2009 r"""Proxy of C++ IMP::display::SingletonsGeometry class."""
2011 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2013 def __init__(self, *args):
2015 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2016 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2018 _IMP_display.SingletonsGeometry_swiginit(self, _IMP_display.new_SingletonsGeometry(*args))
2020 def get_container(self):
2021 r"""get_container(SingletonsGeometry self) -> SingletonContainer"""
2022 return _IMP_display.SingletonsGeometry_get_container(self)
2023 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2026 r"""__str__(SingletonsGeometry self) -> std::string"""
2027 return _IMP_display.SingletonsGeometry___str__(self)
2030 r"""__repr__(SingletonsGeometry self) -> std::string"""
2031 return _IMP_display.SingletonsGeometry___repr__(self)
2035 return _object_cast_to_SingletonsGeometry(o)
2039 _IMP_display.SingletonsGeometry_swigregister(SingletonsGeometry)
2040 class PairGeometry(Geometry):
2041 r"""Proxy of C++ IMP::display::PairGeometry class."""
2043 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2045 def __init__(self, pp):
2046 r"""__init__(PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2047 _IMP_display.PairGeometry_swiginit(self, _IMP_display.new_PairGeometry(pp))
2049 def get_particle_pair(self):
2050 r"""get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2051 return _IMP_display.PairGeometry_get_particle_pair(self)
2052 __swig_destroy__ = _IMP_display.delete_PairGeometry
2055 r"""__str__(PairGeometry self) -> std::string"""
2056 return _IMP_display.PairGeometry___str__(self)
2059 r"""__repr__(PairGeometry self) -> std::string"""
2060 return _IMP_display.PairGeometry___repr__(self)
2064 return _object_cast_to_PairGeometry(o)
2068 _IMP_display.PairGeometry_swigregister(PairGeometry)
2069 class PairsGeometry(Geometry):
2070 r"""Proxy of C++ IMP::display::PairsGeometry class."""
2072 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2074 def __init__(self, *args):
2076 __init__(PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2077 __init__(PairsGeometry self, PairContainer pc) -> PairsGeometry
2079 _IMP_display.PairsGeometry_swiginit(self, _IMP_display.new_PairsGeometry(*args))
2081 def get_container(self):
2082 r"""get_container(PairsGeometry self) -> PairContainer"""
2083 return _IMP_display.PairsGeometry_get_container(self)
2084 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2087 r"""__str__(PairsGeometry self) -> std::string"""
2088 return _IMP_display.PairsGeometry___str__(self)
2091 r"""__repr__(PairsGeometry self) -> std::string"""
2092 return _IMP_display.PairsGeometry___repr__(self)
2096 return _object_cast_to_PairsGeometry(o)
2100 _IMP_display.PairsGeometry_swigregister(PairsGeometry)
2101 class PymolWriter(TextWriter):
2102 r"""Proxy of C++ IMP::display::PymolWriter class."""
2104 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2106 def __init__(self, *args):
2108 __init__(PymolWriter self, TextOutput of) -> PymolWriter
2109 __init__(PymolWriter self, std::string name) -> PymolWriter
2110 __init__(PymolWriter self, char const * name) -> PymolWriter
2112 _IMP_display.PymolWriter_swiginit(self, _IMP_display.new_PymolWriter(*args))
2114 def get_version_info(self):
2115 r"""get_version_info(PymolWriter self) -> VersionInfo"""
2116 return _IMP_display.PymolWriter_get_version_info(self)
2117 __swig_destroy__ = _IMP_display.delete_PymolWriter
2120 r"""__str__(PymolWriter self) -> std::string"""
2121 return _IMP_display.PymolWriter___str__(self)
2124 r"""__repr__(PymolWriter self) -> std::string"""
2125 return _IMP_display.PymolWriter___repr__(self)
2129 return _object_cast_to_PymolWriter(o)
2133 _IMP_display.PymolWriter_swigregister(PymolWriter)
2134 class RestraintGeometry(Geometry):
2135 r"""Proxy of C++ IMP::display::RestraintGeometry class."""
2137 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2139 def __init__(self, p):
2140 r"""__init__(RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2141 _IMP_display.RestraintGeometry_swiginit(self, _IMP_display.new_RestraintGeometry(p))
2143 def get_restraint(self):
2144 r"""get_restraint(RestraintGeometry self) -> Restraint"""
2145 return _IMP_display.RestraintGeometry_get_restraint(self)
2147 def get_version_info(self):
2148 r"""get_version_info(RestraintGeometry self) -> VersionInfo"""
2149 return _IMP_display.RestraintGeometry_get_version_info(self)
2150 __swig_destroy__ = _IMP_display.delete_RestraintGeometry
2153 r"""__str__(RestraintGeometry self) -> std::string"""
2154 return _IMP_display.RestraintGeometry___str__(self)
2157 r"""__repr__(RestraintGeometry self) -> std::string"""
2158 return _IMP_display.RestraintGeometry___repr__(self)
2162 return _object_cast_to_RestraintGeometry(o)
2166 _IMP_display.RestraintGeometry_swigregister(RestraintGeometry)
2167 class RestraintSetGeometry(Geometry):
2168 r"""Proxy of C++ IMP::display::RestraintSetGeometry class."""
2170 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2172 def __init__(self, p):
2173 r"""__init__(RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2174 _IMP_display.RestraintSetGeometry_swiginit(self, _IMP_display.new_RestraintSetGeometry(p))
2176 def get_restraint_set(self):
2177 r"""get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2178 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2180 def get_version_info(self):
2181 r"""get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2182 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2183 __swig_destroy__ = _IMP_display.delete_RestraintSetGeometry
2186 r"""__str__(RestraintSetGeometry self) -> std::string"""
2187 return _IMP_display.RestraintSetGeometry___str__(self)
2190 r"""__repr__(RestraintSetGeometry self) -> std::string"""
2191 return _IMP_display.RestraintSetGeometry___repr__(self)
2195 return _object_cast_to_RestraintSetGeometry(o)
2199 _IMP_display.RestraintSetGeometry_swigregister(RestraintSetGeometry)
2202 PivyWriter= _pivy.get_writer(Writer)
2203 _object_types.append(
'PivyWriter')
2207 r"""get_module_version() -> std::string const"""
2208 return _IMP_display.get_module_version()
2211 r"""get_example_path(std::string fname) -> std::string"""
2212 return _IMP_display.get_example_path(fname)
2215 r"""get_data_path(std::string fname) -> std::string"""
2216 return _IMP_display.get_data_path(fname)
2218 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.