17 import builtins
as __builtin__
21 strthis =
"proxy of " + self.this.__repr__()
22 except __builtin__.Exception:
24 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
27 def _swig_setattr_nondynamic_instance_variable(set):
28 def set_instance_attr(self, name, value):
30 set(self, name, value)
31 elif name ==
"thisown":
33 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
34 set(self, name, value)
36 raise AttributeError(
"You cannot add instance attributes to %s" % self)
37 return set_instance_attr
40 def _swig_setattr_nondynamic_class_variable(set):
41 def set_class_attr(cls, name, value):
42 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
45 raise AttributeError(
"You cannot add class attributes to %s" % cls)
49 class _SwigNonDynamicMeta(type):
50 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
51 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
56 class IMP_DISPLAY_SwigPyIterator(object):
57 r"""Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class."""
59 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
61 def __init__(self, *args, **kwargs):
62 raise AttributeError(
"No constructor defined - class is abstract")
64 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
67 r"""value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
68 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
71 r"""incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
72 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
75 r"""decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
76 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
78 def distance(self, x):
79 r"""distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
80 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
83 r"""equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
84 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
87 r"""copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
88 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
91 r"""__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
92 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
95 r"""previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
96 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
99 r"""advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
100 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
103 r"""__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
104 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
107 r"""__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
108 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
110 def __iadd__(self, n):
111 r"""__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
112 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
114 def __isub__(self, n):
115 r"""__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
116 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
118 def __add__(self, n):
119 r"""__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
120 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
122 def __sub__(self, *args):
124 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
125 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
127 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
132 _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
139 IMP_DEBUG = _IMP_display.IMP_DEBUG
141 IMP_RELEASE = _IMP_display.IMP_RELEASE
143 IMP_SILENT = _IMP_display.IMP_SILENT
145 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
147 IMP_TERSE = _IMP_display.IMP_TERSE
149 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
151 IMP_MEMORY = _IMP_display.IMP_MEMORY
153 IMP_NONE = _IMP_display.IMP_NONE
155 IMP_USAGE = _IMP_display.IMP_USAGE
157 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
159 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
161 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_display.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
163 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
165 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_display.IMP_COMPILER_HAS_RANDOM_SHUFFLE
167 IMP_COMPILER_HAS_THREE_WAY = _IMP_display.IMP_COMPILER_HAS_THREE_WAY
169 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
171 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
173 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_display.IMP_KERNEL_HAS_BOOST_SYSTEM
175 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
177 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
179 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
181 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
185 class _DirectorObjects:
186 """@internal Simple class to keep references to director objects
187 to prevent premature deletion."""
190 def register(self, obj):
191 """Take a reference to a director object; will only work for
192 refcounted C++ classes"""
193 if hasattr(obj,
'get_ref_count'):
194 self._objects.append(obj)
196 """Only drop our reference and allow cleanup by Python if no other
197 Python references exist (we hold 3 references: one in self._objects,
198 one in x, and one in the argument list for getrefcount) *and* no
199 other C++ references exist (the Python object always holds one)"""
200 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
201 or x.get_ref_count() > 1]
205 def get_object_count(self):
206 """Get number of director objects (useful for testing only)"""
207 return len(self._objects)
208 _director_objects = _DirectorObjects()
210 class _ostream(object):
211 r"""Proxy of C++ std::ostream class."""
213 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
215 def __init__(self, *args, **kwargs):
216 raise AttributeError(
"No constructor defined")
217 __repr__ = _swig_repr
219 def write(self, osa_buf):
220 r"""write(_ostream self, char const * osa_buf)"""
221 return _IMP_display._ostream_write(self, osa_buf)
224 _IMP_display._ostream_swigregister(_ostream)
225 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
228 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
230 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
232 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
234 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
236 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
239 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
241 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
243 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
245 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
247 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
249 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
251 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
253 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
256 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
258 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
260 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
262 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
264 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
266 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
268 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
271 _object_types.append(
"Writer")
274 def _object_cast_to_Writer(o):
275 r"""_object_cast_to_Writer(Object o) -> Writer"""
276 return _IMP_display._object_cast_to_Writer(o)
278 _object_types.append(
"TextWriter")
281 def _object_cast_to_TextWriter(o):
282 r"""_object_cast_to_TextWriter(Object o) -> TextWriter"""
283 return _IMP_display._object_cast_to_TextWriter(o)
285 _object_types.append(
"Geometry")
288 def _object_cast_to_Geometry(o):
289 r"""_object_cast_to_Geometry(Object o) -> Geometry"""
290 return _IMP_display._object_cast_to_Geometry(o)
292 _object_types.append(
"SingletonGeometry")
295 def _object_cast_to_SingletonGeometry(o):
296 r"""_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
297 return _IMP_display._object_cast_to_SingletonGeometry(o)
299 _object_types.append(
"PairGeometry")
302 def _object_cast_to_PairGeometry(o):
303 r"""_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
304 return _IMP_display._object_cast_to_PairGeometry(o)
306 _object_types.append(
"SingletonsGeometry")
309 def _object_cast_to_SingletonsGeometry(o):
310 r"""_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
311 return _IMP_display._object_cast_to_SingletonsGeometry(o)
313 _object_types.append(
"PairsGeometry")
316 def _object_cast_to_PairsGeometry(o):
317 r"""_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
318 return _IMP_display._object_cast_to_PairsGeometry(o)
320 _object_types.append(
"PymolWriter")
323 def _object_cast_to_PymolWriter(o):
324 r"""_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
325 return _IMP_display._object_cast_to_PymolWriter(o)
327 _object_types.append(
"SphereGeometry")
330 def _object_cast_to_SphereGeometry(o):
331 r"""_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
332 return _IMP_display._object_cast_to_SphereGeometry(o)
334 _object_types.append(
"CylinderGeometry")
337 def _object_cast_to_CylinderGeometry(o):
338 r"""_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
339 return _IMP_display._object_cast_to_CylinderGeometry(o)
341 _object_types.append(
"EllipsoidGeometry")
344 def _object_cast_to_EllipsoidGeometry(o):
345 r"""_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
346 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
348 _object_types.append(
"PointGeometry")
351 def _object_cast_to_PointGeometry(o):
352 r"""_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
353 return _IMP_display._object_cast_to_PointGeometry(o)
355 _object_types.append(
"SegmentGeometry")
358 def _object_cast_to_SegmentGeometry(o):
359 r"""_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
360 return _IMP_display._object_cast_to_SegmentGeometry(o)
362 _object_types.append(
"PolygonGeometry")
365 def _object_cast_to_PolygonGeometry(o):
366 r"""_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
367 return _IMP_display._object_cast_to_PolygonGeometry(o)
369 _object_types.append(
"ReferenceFrameGeometry")
372 def _object_cast_to_ReferenceFrameGeometry(o):
373 r"""_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
374 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
376 _object_types.append(
"BoundingBoxGeometry")
379 def _object_cast_to_BoundingBoxGeometry(o):
380 r"""_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
381 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
383 _object_types.append(
"LabelGeometry")
386 def _object_cast_to_LabelGeometry(o):
387 r"""_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
388 return _IMP_display._object_cast_to_LabelGeometry(o)
390 _object_types.append(
"RestraintGeometry")
393 def _object_cast_to_RestraintGeometry(o):
394 r"""_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
395 return _IMP_display._object_cast_to_RestraintGeometry(o)
397 _object_types.append(
"RestraintSetGeometry")
400 def _object_cast_to_RestraintSetGeometry(o):
401 r"""_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
402 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
404 _object_types.append(
"GeometrySet")
407 def _object_cast_to_GeometrySet(o):
408 r"""_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
409 return _IMP_display._object_cast_to_GeometrySet(o)
412 return [Colored(x)
for x
in l]
413 _plural_types.append(
"Coloreds")
416 _value_types.append(
"Colored")
420 _plural_types.append(
"Colors")
421 _value_types.append(
"Color")
425 _plural_types.append(
"WriterAdaptors")
426 _value_types.append(
"WriterAdaptor")
429 _object_types.append(
"FilterGeometry")
432 def _object_cast_to_FilterGeometry(o):
433 r"""_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
434 return _IMP_display._object_cast_to_FilterGeometry(o)
436 _object_types.append(
"WriteOptimizerState")
439 def _object_cast_to_WriteOptimizerState(o):
440 r"""_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
441 return _IMP_display._object_cast_to_WriteOptimizerState(o)
443 _object_types.append(
"TriangleGeometry")
446 def _object_cast_to_TriangleGeometry(o):
447 r"""_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
448 return _IMP_display._object_cast_to_TriangleGeometry(o)
450 _object_types.append(
"SurfaceMeshGeometry")
453 def _object_cast_to_SurfaceMeshGeometry(o):
454 r"""_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
455 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
457 _object_types.append(
"PlaneGeometry")
460 def _object_cast_to_PlaneGeometry(o):
461 r"""_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
462 return _IMP_display._object_cast_to_PlaneGeometry(o)
464 _object_types.append(
"IsosurfaceGeometry")
467 def _object_cast_to_IsosurfaceGeometry(o):
468 r"""_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
469 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
471 _object_types.append(
"SkinSurfaceGeometry")
474 def _object_cast_to_SkinSurfaceGeometry(o):
475 r"""_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
476 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
477 class Color(IMP._Value):
478 r"""Proxy of C++ IMP::display::Color class."""
480 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
482 def __init__(self, *args):
484 __init__(Color self, Color arg2) -> Color
485 __init__(Color self) -> Color
486 __init__(Color self, double r, double g, double b) -> Color
488 _IMP_display.Color_swiginit(self, _IMP_display.new_Color(*args))
489 __swig_destroy__ = _IMP_display.delete_Color
492 r"""get_red(Color self) -> double"""
493 return _IMP_display.Color_get_red(self)
496 r"""get_green(Color self) -> double"""
497 return _IMP_display.Color_get_green(self)
500 r"""get_blue(Color self) -> double"""
501 return _IMP_display.Color_get_blue(self)
503 def show(self, *args):
505 show(Color self, _ostream out, std::string delim)
506 show(Color self, _ostream out=std::cout)
508 return _IMP_display.Color_show(self, *args)
510 def __cmp__(self, o):
511 r"""__cmp__(Color self, Color o) -> int"""
512 return _IMP_display.Color___cmp__(self, o)
515 r"""__eq__(Color self, Color o) -> bool"""
516 return _IMP_display.Color___eq__(self, o)
519 r"""__ne__(Color self, Color o) -> bool"""
520 return _IMP_display.Color___ne__(self, o)
523 r"""__lt__(Color self, Color o) -> bool"""
524 return _IMP_display.Color___lt__(self, o)
527 r"""__gt__(Color self, Color o) -> bool"""
528 return _IMP_display.Color___gt__(self, o)
531 r"""__ge__(Color self, Color o) -> bool"""
532 return _IMP_display.Color___ge__(self, o)
535 r"""__le__(Color self, Color o) -> bool"""
536 return _IMP_display.Color___le__(self, o)
539 r"""__str__(Color self) -> std::string"""
540 return _IMP_display.Color___str__(self)
543 r"""__repr__(Color self) -> std::string"""
544 return _IMP_display.Color___repr__(self)
546 def _get_as_binary(self):
547 r"""_get_as_binary(Color self) -> PyObject *"""
548 return _IMP_display.Color__get_as_binary(self)
550 def _set_from_binary(self, p):
551 r"""_set_from_binary(Color self, PyObject * p)"""
552 return _IMP_display.Color__set_from_binary(self, p)
554 def __getstate__(self):
555 p = self._get_as_binary()
556 if len(self.__dict__) > 1:
557 d = self.__dict__.copy()
562 def __setstate__(self, p):
563 if not hasattr(self,
'this'):
565 if isinstance(p, tuple):
567 self.__dict__.update(d)
568 return self._set_from_binary(p)
572 _IMP_display.Color_swigregister(Color)
575 r"""get_display_color(unsigned int i) -> Color"""
576 return _IMP_display.get_display_color(i)
579 r"""get_interpolated_rgb(Color a, Color b, double f) -> Color"""
580 return _IMP_display.get_interpolated_rgb(a, b, f)
583 r"""get_linear_color_map_value(double min, double max, double value) -> double"""
584 return _IMP_display.get_linear_color_map_value(min, max, value)
587 r"""get_jet_color(double f) -> Color"""
588 return _IMP_display.get_jet_color(f)
591 r"""get_hot_color(double f) -> Color"""
592 return _IMP_display.get_hot_color(f)
595 r"""get_rgb_color(double f) -> Color"""
596 return _IMP_display.get_rgb_color(f)
599 r"""get_gray_color(double f) -> Color"""
600 return _IMP_display.get_gray_color(f)
603 r"""get_gnuplot_color(double f) -> Color"""
604 return _IMP_display.get_gnuplot_color(f)
606 r"""Proxy of C++ IMP::display::Geometry class."""
608 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
610 def __init__(self, *args):
612 __init__(Geometry self, std::string name) -> Geometry
613 __init__(Geometry self, Color c, std::string name) -> Geometry
615 if self.__class__ == Geometry:
619 _IMP_display.Geometry_swiginit(self, _IMP_display.new_Geometry(_self, *args))
621 if self.__class__ != Geometry:
622 _director_objects.register(self)
628 r"""get_color(Geometry self) -> Color"""
629 return _IMP_display.Geometry_get_color(self)
631 def get_has_color(self):
632 r"""get_has_color(Geometry self) -> bool"""
633 return _IMP_display.Geometry_get_has_color(self)
635 def set_has_color(self, tf):
636 r"""set_has_color(Geometry self, bool tf)"""
637 return _IMP_display.Geometry_set_has_color(self, tf)
639 def set_color(self, c):
640 r"""set_color(Geometry self, Color c)"""
641 return _IMP_display.Geometry_set_color(self, c)
643 def get_components(self):
644 r"""get_components(Geometry self) -> IMP::display::Geometries"""
645 return _IMP_display.Geometry_get_components(self)
646 __swig_destroy__ = _IMP_display.delete_Geometry
649 r"""__str__(Geometry self) -> std::string"""
650 return _IMP_display.Geometry___str__(self)
653 r"""__repr__(Geometry self) -> std::string"""
654 return _IMP_display.Geometry___repr__(self)
658 return _object_cast_to_Geometry(o)
661 def do_show(self, out):
666 return _object_cast_to_Geometry(o)
668 def __disown__(self):
670 _IMP_display.disown_Geometry(self)
671 return weakref.proxy(self)
673 def do_destroy(self):
674 r"""do_destroy(Geometry self)"""
675 return _IMP_display.Geometry_do_destroy(self)
678 _IMP_display.Geometry_swigregister(Geometry)
679 class GeometrySet(Geometry):
680 r"""Proxy of C++ IMP::display::GeometrySet class."""
682 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
684 def __init__(self, *args):
686 __init__(GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
687 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
688 __init__(GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
689 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
691 _IMP_display.GeometrySet_swiginit(self, _IMP_display.new_GeometrySet(*args))
693 def get_geometry(self):
694 r"""get_geometry(GeometrySet self) -> IMP::display::Geometries"""
695 return _IMP_display.GeometrySet_get_geometry(self)
697 def get_version_info(self):
698 r"""get_version_info(GeometrySet self) -> VersionInfo"""
699 return _IMP_display.GeometrySet_get_version_info(self)
700 __swig_destroy__ = _IMP_display.delete_GeometrySet
703 r"""__str__(GeometrySet self) -> std::string"""
704 return _IMP_display.GeometrySet___str__(self)
707 r"""__repr__(GeometrySet self) -> std::string"""
708 return _IMP_display.GeometrySet___repr__(self)
712 return _object_cast_to_GeometrySet(o)
716 _IMP_display.GeometrySet_swigregister(GeometrySet)
717 class SphereGeometry(Geometry):
718 r"""Proxy of C++ IMP::display::SphereGeometry class."""
720 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
722 def __init__(self, *args):
724 __init__(SphereGeometry self, Sphere3D v) -> SphereGeometry
725 __init__(SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
726 __init__(SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
727 __init__(SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
729 _IMP_display.SphereGeometry_swiginit(self, _IMP_display.new_SphereGeometry(*args))
731 def get_geometry(self):
732 r"""get_geometry(SphereGeometry self) -> Sphere3D"""
733 return _IMP_display.SphereGeometry_get_geometry(self)
735 def set_geometry(self, v):
736 r"""set_geometry(SphereGeometry self, Sphere3D v)"""
737 return _IMP_display.SphereGeometry_set_geometry(self, v)
739 def get_version_info(self):
740 r"""get_version_info(SphereGeometry self) -> VersionInfo"""
741 return _IMP_display.SphereGeometry_get_version_info(self)
742 __swig_destroy__ = _IMP_display.delete_SphereGeometry
745 r"""__str__(SphereGeometry self) -> std::string"""
746 return _IMP_display.SphereGeometry___str__(self)
749 r"""__repr__(SphereGeometry self) -> std::string"""
750 return _IMP_display.SphereGeometry___repr__(self)
754 return _object_cast_to_SphereGeometry(o)
758 _IMP_display.SphereGeometry_swigregister(SphereGeometry)
759 class CylinderGeometry(Geometry):
760 r"""Proxy of C++ IMP::display::CylinderGeometry class."""
762 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
764 def __init__(self, *args):
766 __init__(CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
767 __init__(CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
768 __init__(CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
769 __init__(CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
771 _IMP_display.CylinderGeometry_swiginit(self, _IMP_display.new_CylinderGeometry(*args))
773 def get_geometry(self):
774 r"""get_geometry(CylinderGeometry self) -> Cylinder3D"""
775 return _IMP_display.CylinderGeometry_get_geometry(self)
777 def set_geometry(self, v):
778 r"""set_geometry(CylinderGeometry self, Cylinder3D v)"""
779 return _IMP_display.CylinderGeometry_set_geometry(self, v)
781 def get_version_info(self):
782 r"""get_version_info(CylinderGeometry self) -> VersionInfo"""
783 return _IMP_display.CylinderGeometry_get_version_info(self)
784 __swig_destroy__ = _IMP_display.delete_CylinderGeometry
787 r"""__str__(CylinderGeometry self) -> std::string"""
788 return _IMP_display.CylinderGeometry___str__(self)
791 r"""__repr__(CylinderGeometry self) -> std::string"""
792 return _IMP_display.CylinderGeometry___repr__(self)
796 return _object_cast_to_CylinderGeometry(o)
800 _IMP_display.CylinderGeometry_swigregister(CylinderGeometry)
801 class EllipsoidGeometry(Geometry):
802 r"""Proxy of C++ IMP::display::EllipsoidGeometry class."""
804 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
806 def __init__(self, *args):
808 __init__(EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
809 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
810 __init__(EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
811 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
813 _IMP_display.EllipsoidGeometry_swiginit(self, _IMP_display.new_EllipsoidGeometry(*args))
815 def get_geometry(self):
816 r"""get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
817 return _IMP_display.EllipsoidGeometry_get_geometry(self)
819 def set_geometry(self, v):
820 r"""set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
821 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
823 def get_version_info(self):
824 r"""get_version_info(EllipsoidGeometry self) -> VersionInfo"""
825 return _IMP_display.EllipsoidGeometry_get_version_info(self)
826 __swig_destroy__ = _IMP_display.delete_EllipsoidGeometry
829 r"""__str__(EllipsoidGeometry self) -> std::string"""
830 return _IMP_display.EllipsoidGeometry___str__(self)
833 r"""__repr__(EllipsoidGeometry self) -> std::string"""
834 return _IMP_display.EllipsoidGeometry___repr__(self)
838 return _object_cast_to_EllipsoidGeometry(o)
842 _IMP_display.EllipsoidGeometry_swigregister(EllipsoidGeometry)
843 class PointGeometry(Geometry):
844 r"""Proxy of C++ IMP::display::PointGeometry class."""
846 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
848 def __init__(self, *args):
850 __init__(PointGeometry self, Vector3D v) -> PointGeometry
851 __init__(PointGeometry self, Vector3D v, Color c) -> PointGeometry
852 __init__(PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
853 __init__(PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
855 _IMP_display.PointGeometry_swiginit(self, _IMP_display.new_PointGeometry(*args))
857 def get_geometry(self):
858 r"""get_geometry(PointGeometry self) -> Vector3D"""
859 return _IMP_display.PointGeometry_get_geometry(self)
861 def set_geometry(self, v):
862 r"""set_geometry(PointGeometry self, Vector3D v)"""
863 return _IMP_display.PointGeometry_set_geometry(self, v)
865 def get_version_info(self):
866 r"""get_version_info(PointGeometry self) -> VersionInfo"""
867 return _IMP_display.PointGeometry_get_version_info(self)
868 __swig_destroy__ = _IMP_display.delete_PointGeometry
871 r"""__str__(PointGeometry self) -> std::string"""
872 return _IMP_display.PointGeometry___str__(self)
875 r"""__repr__(PointGeometry self) -> std::string"""
876 return _IMP_display.PointGeometry___repr__(self)
880 return _object_cast_to_PointGeometry(o)
884 _IMP_display.PointGeometry_swigregister(PointGeometry)
885 class SegmentGeometry(Geometry):
886 r"""Proxy of C++ IMP::display::SegmentGeometry class."""
888 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
890 def __init__(self, *args):
892 __init__(SegmentGeometry self, Segment3D v) -> SegmentGeometry
893 __init__(SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
894 __init__(SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
895 __init__(SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
897 _IMP_display.SegmentGeometry_swiginit(self, _IMP_display.new_SegmentGeometry(*args))
899 def get_geometry(self):
900 r"""get_geometry(SegmentGeometry self) -> Segment3D"""
901 return _IMP_display.SegmentGeometry_get_geometry(self)
903 def set_geometry(self, v):
904 r"""set_geometry(SegmentGeometry self, Segment3D v)"""
905 return _IMP_display.SegmentGeometry_set_geometry(self, v)
907 def get_version_info(self):
908 r"""get_version_info(SegmentGeometry self) -> VersionInfo"""
909 return _IMP_display.SegmentGeometry_get_version_info(self)
910 __swig_destroy__ = _IMP_display.delete_SegmentGeometry
913 r"""__str__(SegmentGeometry self) -> std::string"""
914 return _IMP_display.SegmentGeometry___str__(self)
917 r"""__repr__(SegmentGeometry self) -> std::string"""
918 return _IMP_display.SegmentGeometry___repr__(self)
922 return _object_cast_to_SegmentGeometry(o)
926 _IMP_display.SegmentGeometry_swigregister(SegmentGeometry)
927 class PolygonGeometry(Geometry):
928 r"""Proxy of C++ IMP::display::PolygonGeometry class."""
930 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
932 def __init__(self, *args):
934 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
935 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
936 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
937 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
939 _IMP_display.PolygonGeometry_swiginit(self, _IMP_display.new_PolygonGeometry(*args))
941 def get_geometry(self):
942 r"""get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
943 return _IMP_display.PolygonGeometry_get_geometry(self)
945 def set_geometry(self, v):
946 r"""set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
947 return _IMP_display.PolygonGeometry_set_geometry(self, v)
949 def get_version_info(self):
950 r"""get_version_info(PolygonGeometry self) -> VersionInfo"""
951 return _IMP_display.PolygonGeometry_get_version_info(self)
952 __swig_destroy__ = _IMP_display.delete_PolygonGeometry
955 r"""__str__(PolygonGeometry self) -> std::string"""
956 return _IMP_display.PolygonGeometry___str__(self)
959 r"""__repr__(PolygonGeometry self) -> std::string"""
960 return _IMP_display.PolygonGeometry___repr__(self)
964 return _object_cast_to_PolygonGeometry(o)
968 _IMP_display.PolygonGeometry_swigregister(PolygonGeometry)
969 class TriangleGeometry(Geometry):
970 r"""Proxy of C++ IMP::display::TriangleGeometry class."""
972 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
974 def __init__(self, *args):
976 __init__(TriangleGeometry self, Triangle3D v) -> TriangleGeometry
977 __init__(TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
978 __init__(TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
979 __init__(TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
981 _IMP_display.TriangleGeometry_swiginit(self, _IMP_display.new_TriangleGeometry(*args))
983 def get_geometry(self):
984 r"""get_geometry(TriangleGeometry self) -> Triangle3D"""
985 return _IMP_display.TriangleGeometry_get_geometry(self)
987 def set_geometry(self, v):
988 r"""set_geometry(TriangleGeometry self, Triangle3D v)"""
989 return _IMP_display.TriangleGeometry_set_geometry(self, v)
991 def get_version_info(self):
992 r"""get_version_info(TriangleGeometry self) -> VersionInfo"""
993 return _IMP_display.TriangleGeometry_get_version_info(self)
994 __swig_destroy__ = _IMP_display.delete_TriangleGeometry
997 r"""__str__(TriangleGeometry self) -> std::string"""
998 return _IMP_display.TriangleGeometry___str__(self)
1001 r"""__repr__(TriangleGeometry self) -> std::string"""
1002 return _IMP_display.TriangleGeometry___repr__(self)
1006 return _object_cast_to_TriangleGeometry(o)
1010 _IMP_display.TriangleGeometry_swigregister(TriangleGeometry)
1011 class BoundingBoxGeometry(Geometry):
1012 r"""Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1014 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1016 def __init__(self, *args):
1018 __init__(BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1019 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1020 __init__(BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1021 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1023 _IMP_display.BoundingBoxGeometry_swiginit(self, _IMP_display.new_BoundingBoxGeometry(*args))
1025 def get_geometry(self):
1026 r"""get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1027 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1029 def set_geometry(self, v):
1030 r"""set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1031 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1033 def get_version_info(self):
1034 r"""get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1035 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1036 __swig_destroy__ = _IMP_display.delete_BoundingBoxGeometry
1039 r"""__str__(BoundingBoxGeometry self) -> std::string"""
1040 return _IMP_display.BoundingBoxGeometry___str__(self)
1043 r"""__repr__(BoundingBoxGeometry self) -> std::string"""
1044 return _IMP_display.BoundingBoxGeometry___repr__(self)
1048 return _object_cast_to_BoundingBoxGeometry(o)
1052 _IMP_display.BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1053 class ReferenceFrameGeometry(Geometry):
1054 r"""Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1056 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1058 def __init__(self, *args):
1060 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1061 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1062 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1063 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1065 _IMP_display.ReferenceFrameGeometry_swiginit(self, _IMP_display.new_ReferenceFrameGeometry(*args))
1067 def get_geometry(self):
1068 r"""get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1069 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1071 def set_geometry(self, v):
1072 r"""set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1073 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1075 def get_version_info(self):
1076 r"""get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1077 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1078 __swig_destroy__ = _IMP_display.delete_ReferenceFrameGeometry
1081 r"""__str__(ReferenceFrameGeometry self) -> std::string"""
1082 return _IMP_display.ReferenceFrameGeometry___str__(self)
1085 r"""__repr__(ReferenceFrameGeometry self) -> std::string"""
1086 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1090 return _object_cast_to_ReferenceFrameGeometry(o)
1094 _IMP_display.ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1098 create_geometry(Sphere3D t, std::string name="algebra::Sphere3D"+"%1%") -> SphereGeometry
1099 create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D"+"%1%") -> CylinderGeometry
1100 create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D"+"%1%") -> EllipsoidGeometry
1101 create_geometry(Vector3D t, std::string name="algebra::Vector3D"+"%1%") -> PointGeometry
1102 create_geometry(Segment3D t, std::string name="algebra::Segment3D"+"%1%") -> SegmentGeometry
1103 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds"+"%1%") -> PolygonGeometry
1104 create_geometry(Triangle3D t, std::string name="algebra::Triangle3D"+"%1%") -> TriangleGeometry
1105 create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>"+"%1%") -> BoundingBoxGeometry
1106 create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D"+"%1%") -> ReferenceFrameGeometry
1108 return _IMP_display.create_geometry(*args)
1109 class LabelGeometry(Geometry):
1110 r"""Proxy of C++ IMP::display::LabelGeometry class."""
1112 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1114 def __init__(self, *args):
1116 __init__(LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1117 __init__(LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1119 _IMP_display.LabelGeometry_swiginit(self, _IMP_display.new_LabelGeometry(*args))
1122 r"""get_text(LabelGeometry self) -> std::string"""
1123 return _IMP_display.LabelGeometry_get_text(self)
1125 def get_location(self):
1126 r"""get_location(LabelGeometry self) -> Sphere3D"""
1127 return _IMP_display.LabelGeometry_get_location(self)
1129 def get_version_info(self):
1130 r"""get_version_info(LabelGeometry self) -> VersionInfo"""
1131 return _IMP_display.LabelGeometry_get_version_info(self)
1132 __swig_destroy__ = _IMP_display.delete_LabelGeometry
1135 r"""__str__(LabelGeometry self) -> std::string"""
1136 return _IMP_display.LabelGeometry___str__(self)
1139 r"""__repr__(LabelGeometry self) -> std::string"""
1140 return _IMP_display.LabelGeometry___repr__(self)
1144 return _object_cast_to_LabelGeometry(o)
1148 _IMP_display.LabelGeometry_swigregister(LabelGeometry)
1149 class SurfaceMeshGeometry(Geometry):
1150 r"""Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1152 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1154 def __init__(self, vertices, faces):
1155 r"""__init__(SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1156 _IMP_display.SurfaceMeshGeometry_swiginit(self, _IMP_display.new_SurfaceMeshGeometry(vertices, faces))
1158 def get_vertexes(self):
1159 r"""get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1160 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1162 def get_faces(self):
1163 r"""get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1164 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1166 def get_version_info(self):
1167 r"""get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1168 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1169 __swig_destroy__ = _IMP_display.delete_SurfaceMeshGeometry
1172 r"""__str__(SurfaceMeshGeometry self) -> std::string"""
1173 return _IMP_display.SurfaceMeshGeometry___str__(self)
1176 r"""__repr__(SurfaceMeshGeometry self) -> std::string"""
1177 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1181 return _object_cast_to_SurfaceMeshGeometry(o)
1185 _IMP_display.SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1186 class PlaneGeometry(Geometry):
1187 r"""Proxy of C++ IMP::display::PlaneGeometry class."""
1189 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1191 def __init__(self, loc, box):
1192 r"""__init__(PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1193 _IMP_display.PlaneGeometry_swiginit(self, _IMP_display.new_PlaneGeometry(loc, box))
1195 def get_version_info(self):
1196 r"""get_version_info(PlaneGeometry self) -> VersionInfo"""
1197 return _IMP_display.PlaneGeometry_get_version_info(self)
1198 __swig_destroy__ = _IMP_display.delete_PlaneGeometry
1201 r"""__str__(PlaneGeometry self) -> std::string"""
1202 return _IMP_display.PlaneGeometry___str__(self)
1205 r"""__repr__(PlaneGeometry self) -> std::string"""
1206 return _IMP_display.PlaneGeometry___repr__(self)
1210 return _object_cast_to_PlaneGeometry(o)
1214 _IMP_display.PlaneGeometry_swigregister(PlaneGeometry)
1215 class IsosurfaceGeometry(SurfaceMeshGeometry):
1216 r"""Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1218 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1220 def __init__(self, *args):
1222 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1223 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1225 _IMP_display.IsosurfaceGeometry_swiginit(self, _IMP_display.new_IsosurfaceGeometry(*args))
1228 r"""__str__(IsosurfaceGeometry self) -> std::string"""
1229 return _IMP_display.IsosurfaceGeometry___str__(self)
1232 r"""__repr__(IsosurfaceGeometry self) -> std::string"""
1233 return _IMP_display.IsosurfaceGeometry___repr__(self)
1237 return _object_cast_to_IsosurfaceGeometry(o)
1239 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1242 _IMP_display.IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1243 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1244 r"""Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1246 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1248 def __init__(self, balls):
1249 r"""__init__(SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1250 _IMP_display.SkinSurfaceGeometry_swiginit(self, _IMP_display.new_SkinSurfaceGeometry(balls))
1253 r"""__str__(SkinSurfaceGeometry self) -> std::string"""
1254 return _IMP_display.SkinSurfaceGeometry___str__(self)
1257 r"""__repr__(SkinSurfaceGeometry self) -> std::string"""
1258 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1262 return _object_cast_to_SkinSurfaceGeometry(o)
1264 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1267 _IMP_display.SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1268 class GeometryProcessor(object):
1269 r"""Proxy of C++ IMP::display::GeometryProcessor class."""
1271 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1272 __repr__ = _swig_repr
1275 r"""__init__(GeometryProcessor self) -> GeometryProcessor"""
1276 _IMP_display.GeometryProcessor_swiginit(self, _IMP_display.new_GeometryProcessor())
1279 _IMP_display.GeometryProcessor_swigregister(GeometryProcessor)
1281 r"""Proxy of C++ IMP::display::Writer class."""
1283 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1285 def __init__(self, name):
1286 r"""__init__(Writer self, std::string name) -> Writer"""
1287 if self.__class__ == Writer:
1291 _IMP_display.Writer_swiginit(self, _IMP_display.new_Writer(_self, name))
1293 if self.__class__ != Writer:
1294 _director_objects.register(self)
1298 __swig_destroy__ = _IMP_display.delete_Writer
1300 def set_frame(self, i):
1301 r"""set_frame(Writer self, unsigned int i)"""
1302 return _IMP_display.Writer_set_frame(self, i)
1304 def get_frame(self):
1305 r"""get_frame(Writer self) -> int"""
1306 return _IMP_display.Writer_get_frame(self)
1310 add_geometry(Writer self, Geometry g)
1311 add_geometry(Writer self, IMP::display::Geometries const & g)
1313 return _IMP_display.Writer_add_geometry(self, *args)
1316 r"""do_close(Writer self)"""
1317 return _IMP_display.Writer_do_close(self)
1320 r"""do_open(Writer self)"""
1321 return _IMP_display.Writer_do_open(self)
1323 def do_set_frame(self):
1324 r"""do_set_frame(Writer self)"""
1325 return _IMP_display.Writer_do_set_frame(self)
1328 r"""__str__(Writer self) -> std::string"""
1329 return _IMP_display.Writer___str__(self)
1332 r"""__repr__(Writer self) -> std::string"""
1333 return _IMP_display.Writer___repr__(self)
1337 return _object_cast_to_Writer(o)
1340 def do_show(self, out):
1345 return _object_cast_to_Writer(o)
1347 def __disown__(self):
1349 _IMP_display.disown_Writer(self)
1350 return weakref.proxy(self)
1352 def handle_sphere(self, arg0, arg1, arg2):
1353 r"""handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1354 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1356 def handle_cylinder(self, arg0, arg1, arg2):
1357 r"""handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1358 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1360 def handle_point(self, arg0, arg1, arg2):
1361 r"""handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1362 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1364 def handle_segment(self, arg0, arg1, arg2):
1365 r"""handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1366 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1368 def handle_polygon(self, arg0, arg1, arg2):
1369 r"""handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1370 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1372 def handle_triangle(self, arg0, arg1, arg2):
1373 r"""handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1374 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1376 def handle_surface_mesh(self, arg0, arg1, arg2):
1377 r"""handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1378 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1380 def handle_label(self, arg0, arg1, arg2):
1381 r"""handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1382 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1384 def handle_ellipsoid(self, arg0, arg1, arg2):
1385 r"""handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1386 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1388 def handle_bounding_box(self, arg0, arg1, arg2):
1389 r"""handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1390 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1392 def handle_anything(self, arg0, arg1, arg2):
1393 r"""handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1394 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1396 def do_destroy(self):
1397 r"""do_destroy(Writer self)"""
1398 return _IMP_display.Writer_do_destroy(self)
1401 _IMP_display.Writer_swigregister(Writer)
1402 class TextWriter(Writer):
1403 r"""Proxy of C++ IMP::display::TextWriter class."""
1405 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1408 r"""open(TextWriter self)"""
1409 return _IMP_display.TextWriter_open(self)
1411 def get_stream(self):
1412 r"""get_stream(TextWriter self) -> _ostream"""
1413 return _IMP_display.TextWriter_get_stream(self)
1415 def do_set_frame(self):
1416 r"""do_set_frame(TextWriter self)"""
1417 return _IMP_display.TextWriter_do_set_frame(self)
1419 def __init__(self, *args):
1421 __init__(TextWriter self, TextOutput fn) -> TextWriter
1422 __init__(TextWriter self, std::string name) -> TextWriter
1424 if self.__class__ == TextWriter:
1428 _IMP_display.TextWriter_swiginit(self, _IMP_display.new_TextWriter(_self, *args))
1430 if self.__class__ != TextWriter:
1431 _director_objects.register(self)
1436 def get_current_file_name(self):
1437 r"""get_current_file_name(TextWriter self) -> std::string"""
1438 return _IMP_display.TextWriter_get_current_file_name(self)
1439 __swig_destroy__ = _IMP_display.delete_TextWriter
1442 r"""__str__(TextWriter self) -> std::string"""
1443 return _IMP_display.TextWriter___str__(self)
1446 r"""__repr__(TextWriter self) -> std::string"""
1447 return _IMP_display.TextWriter___repr__(self)
1451 return _object_cast_to_TextWriter(o)
1454 def do_show(self, out):
1459 return _object_cast_to_TextWriter(o)
1461 def __disown__(self):
1463 _IMP_display.disown_TextWriter(self)
1464 return weakref.proxy(self)
1466 def handle_sphere(self, arg0, arg1, arg2):
1467 r"""handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1468 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1470 def handle_cylinder(self, arg0, arg1, arg2):
1471 r"""handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1472 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1474 def handle_point(self, arg0, arg1, arg2):
1475 r"""handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1476 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1478 def handle_segment(self, arg0, arg1, arg2):
1479 r"""handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1480 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1482 def handle_polygon(self, arg0, arg1, arg2):
1483 r"""handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1484 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1486 def handle_triangle(self, arg0, arg1, arg2):
1487 r"""handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1488 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1490 def handle_surface_mesh(self, arg0, arg1, arg2):
1491 r"""handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1492 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1494 def handle_label(self, arg0, arg1, arg2):
1495 r"""handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1496 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1498 def handle_ellipsoid(self, arg0, arg1, arg2):
1499 r"""handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1500 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1502 def handle_bounding_box(self, arg0, arg1, arg2):
1503 r"""handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1504 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1506 def handle_anything(self, arg0, arg1, arg2):
1507 r"""handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1508 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1510 def do_destroy(self):
1511 r"""do_destroy(TextWriter self)"""
1512 return _IMP_display.TextWriter_do_destroy(self)
1515 r"""do_close(TextWriter self)"""
1516 return _IMP_display.TextWriter_do_close(self)
1519 r"""do_open(TextWriter self)"""
1520 return _IMP_display.TextWriter_do_open(self)
1523 _IMP_display.TextWriter_swigregister(TextWriter)
1526 r"""create_writer(std::string filename) -> Writer"""
1527 return _IMP_display.create_writer(filename)
1528 class WriterAdaptor(IMP._InputAdaptor):
1529 r"""Proxy of C++ IMP::display::WriterAdaptor class."""
1531 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1533 def __init__(self, *args):
1535 __init__(WriterAdaptor self, std::string name) -> WriterAdaptor
1536 __init__(WriterAdaptor self, Writer w) -> WriterAdaptor
1538 _IMP_display.WriterAdaptor_swiginit(self, _IMP_display.new_WriterAdaptor(*args))
1540 def get_writer(self):
1541 r"""get_writer(WriterAdaptor self) -> Writer"""
1542 return _IMP_display.WriterAdaptor_get_writer(self)
1544 def show(self, *args):
1545 r"""show(WriterAdaptor self, _ostream out=std::cout)"""
1546 return _IMP_display.WriterAdaptor_show(self, *args)
1547 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1550 r"""__str__(WriterAdaptor self) -> std::string"""
1551 return _IMP_display.WriterAdaptor___str__(self)
1554 r"""__repr__(WriterAdaptor self) -> std::string"""
1555 return _IMP_display.WriterAdaptor___repr__(self)
1558 _IMP_display.WriterAdaptor_swigregister(WriterAdaptor)
1560 r"""Proxy of C++ IMP::display::Colored class."""
1562 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1564 def set_color(self, c):
1565 r"""set_color(Colored self, Color c)"""
1566 return _IMP_display.Colored_set_color(self, c)
1568 def get_color(self):
1569 r"""get_color(Colored self) -> Color"""
1570 return _IMP_display.Colored_get_color(self)
1573 def get_color_keys():
1574 r"""get_color_keys() -> IMP::FloatKeys const &"""
1575 return _IMP_display.Colored_get_color_keys()
1577 def __init__(self, *args):
1579 __init__(Colored self) -> Colored
1580 __init__(Colored self, Model m, ParticleIndex id) -> Colored
1581 __init__(Colored self, _ParticleAdaptor d) -> Colored
1583 _IMP_display.Colored_swiginit(self, _IMP_display.new_Colored(*args))
1586 def get_is_setup(*args):
1588 get_is_setup(Model m, ParticleIndex pi) -> bool
1589 get_is_setup(_ParticleAdaptor p) -> bool
1591 return _IMP_display.Colored_get_is_setup(*args)
1593 def show(self, *args):
1594 r"""show(Colored self, _ostream out=std::cout)"""
1595 return _IMP_display.Colored_show(self, *args)
1598 def setup_particle(*args):
1600 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1601 setup_particle(_ParticleAdaptor pa, Color color) -> Colored
1603 return _IMP_display.Colored_setup_particle(*args)
1605 def add_attribute(self, *args):
1607 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1608 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1609 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1610 add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1611 add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1612 add_attribute(Colored self, StringKey a0, IMP::String a1)
1613 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1614 add_attribute(Colored self, ObjectKey a0, Object a1)
1615 add_attribute(Colored self, SparseFloatKey a0, IMP::Float a1)
1616 add_attribute(Colored self, SparseIntKey a0, IMP::Int a1)
1617 add_attribute(Colored self, SparseStringKey a0, IMP::String a1)
1618 add_attribute(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1620 return _IMP_display.Colored_add_attribute(self, *args)
1622 def get_value(self, *args):
1624 get_value(Colored self, FloatKey a0) -> IMP::Float
1625 get_value(Colored self, IntKey a0) -> IMP::Int
1626 get_value(Colored self, FloatsKey a0) -> IMP::Floats
1627 get_value(Colored self, IntsKey a0) -> IMP::Ints
1628 get_value(Colored self, StringKey a0) -> IMP::String
1629 get_value(Colored self, ParticleIndexKey a0) -> Particle
1630 get_value(Colored self, ObjectKey a0) -> Object
1631 get_value(Colored self, SparseFloatKey a0) -> IMP::Float
1632 get_value(Colored self, SparseIntKey a0) -> IMP::Int
1633 get_value(Colored self, SparseStringKey a0) -> IMP::String
1634 get_value(Colored self, SparseParticleIndexKey a0) -> ParticleIndex
1636 return _IMP_display.Colored_get_value(self, *args)
1638 def set_value(self, *args):
1640 set_value(Colored self, FloatKey a0, IMP::Float a1)
1641 set_value(Colored self, IntKey a0, IMP::Int a1)
1642 set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1643 set_value(Colored self, IntsKey a0, IMP::Ints a1)
1644 set_value(Colored self, StringKey a0, IMP::String a1)
1645 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1646 set_value(Colored self, ObjectKey a0, Object a1)
1647 set_value(Colored self, SparseFloatKey a0, IMP::Float a1)
1648 set_value(Colored self, SparseIntKey a0, IMP::Int a1)
1649 set_value(Colored self, SparseStringKey a0, IMP::String a1)
1650 set_value(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1652 return _IMP_display.Colored_set_value(self, *args)
1654 def remove_attribute(self, *args):
1656 remove_attribute(Colored self, FloatKey a0)
1657 remove_attribute(Colored self, IntKey a0)
1658 remove_attribute(Colored self, FloatsKey a0)
1659 remove_attribute(Colored self, IntsKey a0)
1660 remove_attribute(Colored self, StringKey a0)
1661 remove_attribute(Colored self, ParticleIndexKey a0)
1662 remove_attribute(Colored self, ObjectKey a0)
1663 remove_attribute(Colored self, SparseFloatKey a0)
1664 remove_attribute(Colored self, SparseIntKey a0)
1665 remove_attribute(Colored self, SparseStringKey a0)
1666 remove_attribute(Colored self, SparseParticleIndexKey a0)
1668 return _IMP_display.Colored_remove_attribute(self, *args)
1670 def has_attribute(self, *args):
1672 has_attribute(Colored self, FloatKey a0) -> bool
1673 has_attribute(Colored self, IntKey a0) -> bool
1674 has_attribute(Colored self, FloatsKey a0) -> bool
1675 has_attribute(Colored self, IntsKey a0) -> bool
1676 has_attribute(Colored self, StringKey a0) -> bool
1677 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1678 has_attribute(Colored self, ObjectKey a0) -> bool
1679 has_attribute(Colored self, SparseFloatKey a0) -> bool
1680 has_attribute(Colored self, SparseIntKey a0) -> bool
1681 has_attribute(Colored self, SparseStringKey a0) -> bool
1682 has_attribute(Colored self, SparseParticleIndexKey a0) -> bool
1684 return _IMP_display.Colored_has_attribute(self, *args)
1686 def get_derivative(self, a0):
1687 r"""get_derivative(Colored self, FloatKey a0) -> double"""
1688 return _IMP_display.Colored_get_derivative(self, a0)
1691 r"""get_name(Colored self) -> std::string"""
1692 return _IMP_display.Colored_get_name(self)
1694 def clear_caches(self):
1695 r"""clear_caches(Colored self)"""
1696 return _IMP_display.Colored_clear_caches(self)
1698 def set_name(self, a0):
1699 r"""set_name(Colored self, std::string a0)"""
1700 return _IMP_display.Colored_set_name(self, a0)
1703 r"""set_check_level(Colored self, IMP::CheckLevel a0)"""
1704 return _IMP_display.Colored_set_check_level(self, a0)
1706 def add_to_derivative(self, a0, a1, a2):
1707 r"""add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1708 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1710 def set_is_optimized(self, a0, a1):
1711 r"""set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1712 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1714 def get_is_optimized(self, a0):
1715 r"""get_is_optimized(Colored self, FloatKey a0) -> bool"""
1716 return _IMP_display.Colored_get_is_optimized(self, a0)
1719 r"""get_check_level(Colored self) -> IMP::CheckLevel"""
1720 return _IMP_display.Colored_get_check_level(self)
1722 def __eq__(self, *args):
1724 __eq__(Colored self, Colored o) -> bool
1725 __eq__(Colored self, Particle d) -> bool
1727 return _IMP_display.Colored___eq__(self, *args)
1729 def __ne__(self, *args):
1731 __ne__(Colored self, Colored o) -> bool
1732 __ne__(Colored self, Particle d) -> bool
1734 return _IMP_display.Colored___ne__(self, *args)
1736 def __le__(self, *args):
1738 __le__(Colored self, Colored o) -> bool
1739 __le__(Colored self, Particle d) -> bool
1741 return _IMP_display.Colored___le__(self, *args)
1743 def __lt__(self, *args):
1745 __lt__(Colored self, Colored o) -> bool
1746 __lt__(Colored self, Particle d) -> bool
1748 return _IMP_display.Colored___lt__(self, *args)
1750 def __ge__(self, *args):
1752 __ge__(Colored self, Colored o) -> bool
1753 __ge__(Colored self, Particle d) -> bool
1755 return _IMP_display.Colored___ge__(self, *args)
1757 def __gt__(self, *args):
1759 __gt__(Colored self, Colored o) -> bool
1760 __gt__(Colored self, Particle d) -> bool
1762 return _IMP_display.Colored___gt__(self, *args)
1765 r"""__hash__(Colored self) -> std::size_t"""
1766 return _IMP_display.Colored___hash__(self)
1769 r"""__str__(Colored self) -> std::string"""
1770 return _IMP_display.Colored___str__(self)
1773 r"""__repr__(Colored self) -> std::string"""
1774 return _IMP_display.Colored___repr__(self)
1776 def _get_as_binary(self):
1777 r"""_get_as_binary(Colored self) -> PyObject *"""
1778 return _IMP_display.Colored__get_as_binary(self)
1780 def _set_from_binary(self, p):
1781 r"""_set_from_binary(Colored self, PyObject * p)"""
1782 return _IMP_display.Colored__set_from_binary(self, p)
1784 def __getstate__(self):
1785 p = self._get_as_binary()
1786 if len(self.__dict__) > 1:
1787 d = self.__dict__.copy()
1792 def __setstate__(self, p):
1793 if not hasattr(self,
'this'):
1795 if isinstance(p, tuple):
1797 self.__dict__.update(d)
1798 return self._set_from_binary(p)
1800 __swig_destroy__ = _IMP_display.delete_Colored
1803 _IMP_display.Colored_swigregister(Colored)
1805 def __lshift__(out, n):
1806 r"""__lshift__(_ostream out, Colored n) -> _ostream"""
1807 return _IMP_display.__lshift__(out, n)
1808 class FilterGeometry(GeometryProcessor, Geometry):
1809 r"""Proxy of C++ IMP::display::FilterGeometry class."""
1811 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1813 def __init__(self, p):
1814 r"""__init__(FilterGeometry self, Plane3D p) -> FilterGeometry"""
1815 _IMP_display.FilterGeometry_swiginit(self, _IMP_display.new_FilterGeometry(p))
1819 add_geometry(FilterGeometry self, Geometry g)
1820 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1822 return _IMP_display.FilterGeometry_add_geometry(self, *args)
1824 def get_version_info(self):
1825 r"""get_version_info(FilterGeometry self) -> VersionInfo"""
1826 return _IMP_display.FilterGeometry_get_version_info(self)
1827 __swig_destroy__ = _IMP_display.delete_FilterGeometry
1830 r"""__str__(FilterGeometry self) -> std::string"""
1831 return _IMP_display.FilterGeometry___str__(self)
1834 r"""__repr__(FilterGeometry self) -> std::string"""
1835 return _IMP_display.FilterGeometry___repr__(self)
1839 return _object_cast_to_FilterGeometry(o)
1843 _IMP_display.FilterGeometry_swigregister(FilterGeometry)
1845 r"""Proxy of C++ IMP::display::WriteOptimizerState class."""
1847 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1849 def __init__(self, m, w):
1850 r"""__init__(WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1851 _IMP_display.WriteOptimizerState_swiginit(self, _IMP_display.new_WriteOptimizerState(m, w))
1854 r"""write(WriteOptimizerState self, WriterAdaptor w)"""
1855 return _IMP_display.WriteOptimizerState_write(self, w)
1856 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)
1857 def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
1858 def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
1859 geometries = property(__get_geometries, __set_geometries, __del_geometries, doc=
"List of ##ucnames")
1861 def remove_geometry(self, d):
1862 r"""remove_geometry(WriteOptimizerState self, Geometry d)"""
1863 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
1865 def _python_index_geometry(self, d, start, stop):
1866 r"""_python_index_geometry(WriteOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1867 return _IMP_display.WriteOptimizerState__python_index_geometry(self, d, start, stop)
1869 def remove_geometries(self, d):
1870 r"""remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1871 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
1873 def set_geometries(self, ps):
1874 r"""set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1875 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
1877 def set_geometries_order(self, objs):
1878 r"""set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1879 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
1882 r"""add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1883 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
1886 r"""add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1887 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
1889 def clear_geometries(self):
1890 r"""clear_geometries(WriteOptimizerState self)"""
1891 return _IMP_display.WriteOptimizerState_clear_geometries(self)
1893 def get_number_of_geometries(self):
1894 r"""get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1895 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1897 def get_has_geometries(self):
1898 r"""get_has_geometries(WriteOptimizerState self) -> bool"""
1899 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1901 def get_geometry(self, i):
1902 r"""get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1903 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
1905 def get_geometries(self):
1906 r"""get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1907 return _IMP_display.WriteOptimizerState_get_geometries(self)
1909 def erase_geometry(self, i):
1910 r"""erase_geometry(WriteOptimizerState self, unsigned int i)"""
1911 return _IMP_display.WriteOptimizerState_erase_geometry(self, i)
1913 def reserve_geometries(self, sz):
1914 r"""reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1915 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
1917 def get_version_info(self):
1918 r"""get_version_info(WriteOptimizerState self) -> VersionInfo"""
1919 return _IMP_display.WriteOptimizerState_get_version_info(self)
1920 __swig_destroy__ = _IMP_display.delete_WriteOptimizerState
1923 r"""__str__(WriteOptimizerState self) -> std::string"""
1924 return _IMP_display.WriteOptimizerState___str__(self)
1927 r"""__repr__(WriteOptimizerState self) -> std::string"""
1928 return _IMP_display.WriteOptimizerState___repr__(self)
1932 return _object_cast_to_WriteOptimizerState(o)
1935 def _get_jax(self, state_index):
1936 """No JAX implementation, but this OptimizerState should work
1937 correctly if JAX arrays are copied back to IMP.Model"""
1942 _IMP_display.WriteOptimizerState_swigregister(WriteOptimizerState)
1943 class SingletonGeometry(Geometry):
1944 r"""Proxy of C++ IMP::display::SingletonGeometry class."""
1946 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1948 def __init__(self, p):
1949 r"""__init__(SingletonGeometry self, Particle p) -> SingletonGeometry"""
1950 _IMP_display.SingletonGeometry_swiginit(self, _IMP_display.new_SingletonGeometry(p))
1952 def get_particle(self):
1953 r"""get_particle(SingletonGeometry self) -> Particle"""
1954 return _IMP_display.SingletonGeometry_get_particle(self)
1955 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1958 r"""__str__(SingletonGeometry self) -> std::string"""
1959 return _IMP_display.SingletonGeometry___str__(self)
1962 r"""__repr__(SingletonGeometry self) -> std::string"""
1963 return _IMP_display.SingletonGeometry___repr__(self)
1967 return _object_cast_to_SingletonGeometry(o)
1971 _IMP_display.SingletonGeometry_swigregister(SingletonGeometry)
1972 class SingletonsGeometry(Geometry):
1973 r"""Proxy of C++ IMP::display::SingletonsGeometry class."""
1975 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1977 def __init__(self, *args):
1979 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
1980 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
1982 _IMP_display.SingletonsGeometry_swiginit(self, _IMP_display.new_SingletonsGeometry(*args))
1984 def get_container(self):
1985 r"""get_container(SingletonsGeometry self) -> SingletonContainer"""
1986 return _IMP_display.SingletonsGeometry_get_container(self)
1987 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
1990 r"""__str__(SingletonsGeometry self) -> std::string"""
1991 return _IMP_display.SingletonsGeometry___str__(self)
1994 r"""__repr__(SingletonsGeometry self) -> std::string"""
1995 return _IMP_display.SingletonsGeometry___repr__(self)
1999 return _object_cast_to_SingletonsGeometry(o)
2003 _IMP_display.SingletonsGeometry_swigregister(SingletonsGeometry)
2004 class PairGeometry(Geometry):
2005 r"""Proxy of C++ IMP::display::PairGeometry class."""
2007 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2009 def __init__(self, pp):
2010 r"""__init__(PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2011 _IMP_display.PairGeometry_swiginit(self, _IMP_display.new_PairGeometry(pp))
2013 def get_particle_pair(self):
2014 r"""get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2015 return _IMP_display.PairGeometry_get_particle_pair(self)
2016 __swig_destroy__ = _IMP_display.delete_PairGeometry
2019 r"""__str__(PairGeometry self) -> std::string"""
2020 return _IMP_display.PairGeometry___str__(self)
2023 r"""__repr__(PairGeometry self) -> std::string"""
2024 return _IMP_display.PairGeometry___repr__(self)
2028 return _object_cast_to_PairGeometry(o)
2032 _IMP_display.PairGeometry_swigregister(PairGeometry)
2033 class PairsGeometry(Geometry):
2034 r"""Proxy of C++ IMP::display::PairsGeometry class."""
2036 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2038 def __init__(self, *args):
2040 __init__(PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2041 __init__(PairsGeometry self, PairContainer pc) -> PairsGeometry
2043 _IMP_display.PairsGeometry_swiginit(self, _IMP_display.new_PairsGeometry(*args))
2045 def get_container(self):
2046 r"""get_container(PairsGeometry self) -> PairContainer"""
2047 return _IMP_display.PairsGeometry_get_container(self)
2048 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2051 r"""__str__(PairsGeometry self) -> std::string"""
2052 return _IMP_display.PairsGeometry___str__(self)
2055 r"""__repr__(PairsGeometry self) -> std::string"""
2056 return _IMP_display.PairsGeometry___repr__(self)
2060 return _object_cast_to_PairsGeometry(o)
2064 _IMP_display.PairsGeometry_swigregister(PairsGeometry)
2065 class PymolWriter(TextWriter):
2066 r"""Proxy of C++ IMP::display::PymolWriter class."""
2068 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2070 def __init__(self, *args):
2072 __init__(PymolWriter self, TextOutput of) -> PymolWriter
2073 __init__(PymolWriter self, std::string name) -> PymolWriter
2074 __init__(PymolWriter self, char const * name) -> PymolWriter
2076 _IMP_display.PymolWriter_swiginit(self, _IMP_display.new_PymolWriter(*args))
2078 def get_version_info(self):
2079 r"""get_version_info(PymolWriter self) -> VersionInfo"""
2080 return _IMP_display.PymolWriter_get_version_info(self)
2081 __swig_destroy__ = _IMP_display.delete_PymolWriter
2084 r"""__str__(PymolWriter self) -> std::string"""
2085 return _IMP_display.PymolWriter___str__(self)
2088 r"""__repr__(PymolWriter self) -> std::string"""
2089 return _IMP_display.PymolWriter___repr__(self)
2093 return _object_cast_to_PymolWriter(o)
2097 _IMP_display.PymolWriter_swigregister(PymolWriter)
2098 class RestraintGeometry(Geometry):
2099 r"""Proxy of C++ IMP::display::RestraintGeometry class."""
2101 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2103 def __init__(self, p):
2104 r"""__init__(RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2105 _IMP_display.RestraintGeometry_swiginit(self, _IMP_display.new_RestraintGeometry(p))
2107 def get_restraint(self):
2108 r"""get_restraint(RestraintGeometry self) -> Restraint"""
2109 return _IMP_display.RestraintGeometry_get_restraint(self)
2111 def get_version_info(self):
2112 r"""get_version_info(RestraintGeometry self) -> VersionInfo"""
2113 return _IMP_display.RestraintGeometry_get_version_info(self)
2114 __swig_destroy__ = _IMP_display.delete_RestraintGeometry
2117 r"""__str__(RestraintGeometry self) -> std::string"""
2118 return _IMP_display.RestraintGeometry___str__(self)
2121 r"""__repr__(RestraintGeometry self) -> std::string"""
2122 return _IMP_display.RestraintGeometry___repr__(self)
2126 return _object_cast_to_RestraintGeometry(o)
2130 _IMP_display.RestraintGeometry_swigregister(RestraintGeometry)
2131 class RestraintSetGeometry(Geometry):
2132 r"""Proxy of C++ IMP::display::RestraintSetGeometry class."""
2134 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2136 def __init__(self, p):
2137 r"""__init__(RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2138 _IMP_display.RestraintSetGeometry_swiginit(self, _IMP_display.new_RestraintSetGeometry(p))
2140 def get_restraint_set(self):
2141 r"""get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2142 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2144 def get_version_info(self):
2145 r"""get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2146 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2147 __swig_destroy__ = _IMP_display.delete_RestraintSetGeometry
2150 r"""__str__(RestraintSetGeometry self) -> std::string"""
2151 return _IMP_display.RestraintSetGeometry___str__(self)
2154 r"""__repr__(RestraintSetGeometry self) -> std::string"""
2155 return _IMP_display.RestraintSetGeometry___repr__(self)
2159 return _object_cast_to_RestraintSetGeometry(o)
2163 _IMP_display.RestraintSetGeometry_swigregister(RestraintSetGeometry)
2166 PivyWriter= _pivy.get_writer(Writer)
2167 _object_types.append(
'PivyWriter')
2170 def get_module_name():
2171 r"""get_module_name() -> std::string const"""
2172 return _IMP_display.get_module_name()
2175 r"""get_module_version() -> std::string const"""
2176 return _IMP_display.get_module_version()
2179 r"""get_example_path(std::string fname) -> std::string"""
2180 return _IMP_display.get_example_path(fname)
2183 r"""get_data_path(std::string fname) -> std::string"""
2184 return _IMP_display.get_data_path(fname)
2186 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)
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.