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)
511 r"""__eq__(Color self, Color o) -> bool"""
512 return _IMP_display.Color___eq__(self, o)
515 r"""__ne__(Color self, Color o) -> bool"""
516 return _IMP_display.Color___ne__(self, o)
519 r"""__lt__(Color self, Color o) -> bool"""
520 return _IMP_display.Color___lt__(self, o)
523 r"""__gt__(Color self, Color o) -> bool"""
524 return _IMP_display.Color___gt__(self, o)
527 r"""__ge__(Color self, Color o) -> bool"""
528 return _IMP_display.Color___ge__(self, o)
531 r"""__le__(Color self, Color o) -> bool"""
532 return _IMP_display.Color___le__(self, o)
535 r"""__str__(Color self) -> std::string"""
536 return _IMP_display.Color___str__(self)
539 r"""__repr__(Color self) -> std::string"""
540 return _IMP_display.Color___repr__(self)
542 def _get_as_binary(self):
543 r"""_get_as_binary(Color self) -> PyObject *"""
544 return _IMP_display.Color__get_as_binary(self)
546 def _set_from_binary(self, p):
547 r"""_set_from_binary(Color self, PyObject * p)"""
548 return _IMP_display.Color__set_from_binary(self, p)
550 def __getstate__(self):
551 p = self._get_as_binary()
552 if len(self.__dict__) > 1:
553 d = self.__dict__.copy()
558 def __setstate__(self, p):
559 if not hasattr(self,
'this'):
561 if isinstance(p, tuple):
563 self.__dict__.update(d)
564 return self._set_from_binary(p)
568 _IMP_display.Color_swigregister(Color)
571 r"""get_display_color(unsigned int i) -> Color"""
572 return _IMP_display.get_display_color(i)
575 r"""get_interpolated_rgb(Color a, Color b, double f) -> Color"""
576 return _IMP_display.get_interpolated_rgb(a, b, f)
579 r"""get_linear_color_map_value(double min, double max, double value) -> double"""
580 return _IMP_display.get_linear_color_map_value(min, max, value)
583 r"""get_jet_color(double f) -> Color"""
584 return _IMP_display.get_jet_color(f)
587 r"""get_hot_color(double f) -> Color"""
588 return _IMP_display.get_hot_color(f)
591 r"""get_rgb_color(double f) -> Color"""
592 return _IMP_display.get_rgb_color(f)
595 r"""get_gray_color(double f) -> Color"""
596 return _IMP_display.get_gray_color(f)
599 r"""get_gnuplot_color(double f) -> Color"""
600 return _IMP_display.get_gnuplot_color(f)
602 r"""Proxy of C++ IMP::display::Geometry class."""
604 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
606 def __init__(self, *args):
608 __init__(Geometry self, std::string name) -> Geometry
609 __init__(Geometry self, Color c, std::string name) -> Geometry
611 if self.__class__ == Geometry:
615 _IMP_display.Geometry_swiginit(self, _IMP_display.new_Geometry(_self, *args))
617 if self.__class__ != Geometry:
618 _director_objects.register(self)
624 r"""get_color(Geometry self) -> Color"""
625 return _IMP_display.Geometry_get_color(self)
627 def get_has_color(self):
628 r"""get_has_color(Geometry self) -> bool"""
629 return _IMP_display.Geometry_get_has_color(self)
631 def set_has_color(self, tf):
632 r"""set_has_color(Geometry self, bool tf)"""
633 return _IMP_display.Geometry_set_has_color(self, tf)
635 def set_color(self, c):
636 r"""set_color(Geometry self, Color c)"""
637 return _IMP_display.Geometry_set_color(self, c)
639 def get_components(self):
640 r"""get_components(Geometry self) -> IMP::display::Geometries"""
641 return _IMP_display.Geometry_get_components(self)
642 __swig_destroy__ = _IMP_display.delete_Geometry
645 r"""__str__(Geometry self) -> std::string"""
646 return _IMP_display.Geometry___str__(self)
649 r"""__repr__(Geometry self) -> std::string"""
650 return _IMP_display.Geometry___repr__(self)
654 return _object_cast_to_Geometry(o)
657 def do_show(self, out):
662 return _object_cast_to_Geometry(o)
664 def __disown__(self):
666 _IMP_display.disown_Geometry(self)
667 return weakref.proxy(self)
669 def do_destroy(self):
670 r"""do_destroy(Geometry self)"""
671 return _IMP_display.Geometry_do_destroy(self)
674 _IMP_display.Geometry_swigregister(Geometry)
675 class GeometrySet(Geometry):
676 r"""Proxy of C++ IMP::display::GeometrySet class."""
678 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
680 def __init__(self, *args):
682 __init__(GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
683 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
684 __init__(GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
685 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
687 _IMP_display.GeometrySet_swiginit(self, _IMP_display.new_GeometrySet(*args))
689 def get_geometry(self):
690 r"""get_geometry(GeometrySet self) -> IMP::display::Geometries"""
691 return _IMP_display.GeometrySet_get_geometry(self)
693 def get_version_info(self):
694 r"""get_version_info(GeometrySet self) -> VersionInfo"""
695 return _IMP_display.GeometrySet_get_version_info(self)
696 __swig_destroy__ = _IMP_display.delete_GeometrySet
699 r"""__str__(GeometrySet self) -> std::string"""
700 return _IMP_display.GeometrySet___str__(self)
703 r"""__repr__(GeometrySet self) -> std::string"""
704 return _IMP_display.GeometrySet___repr__(self)
708 return _object_cast_to_GeometrySet(o)
712 _IMP_display.GeometrySet_swigregister(GeometrySet)
713 class SphereGeometry(Geometry):
714 r"""Proxy of C++ IMP::display::SphereGeometry class."""
716 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
718 def __init__(self, *args):
720 __init__(SphereGeometry self, Sphere3D v) -> SphereGeometry
721 __init__(SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
722 __init__(SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
723 __init__(SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
725 _IMP_display.SphereGeometry_swiginit(self, _IMP_display.new_SphereGeometry(*args))
727 def get_geometry(self):
728 r"""get_geometry(SphereGeometry self) -> Sphere3D"""
729 return _IMP_display.SphereGeometry_get_geometry(self)
731 def set_geometry(self, v):
732 r"""set_geometry(SphereGeometry self, Sphere3D v)"""
733 return _IMP_display.SphereGeometry_set_geometry(self, v)
735 def get_version_info(self):
736 r"""get_version_info(SphereGeometry self) -> VersionInfo"""
737 return _IMP_display.SphereGeometry_get_version_info(self)
738 __swig_destroy__ = _IMP_display.delete_SphereGeometry
741 r"""__str__(SphereGeometry self) -> std::string"""
742 return _IMP_display.SphereGeometry___str__(self)
745 r"""__repr__(SphereGeometry self) -> std::string"""
746 return _IMP_display.SphereGeometry___repr__(self)
750 return _object_cast_to_SphereGeometry(o)
754 _IMP_display.SphereGeometry_swigregister(SphereGeometry)
755 class CylinderGeometry(Geometry):
756 r"""Proxy of C++ IMP::display::CylinderGeometry class."""
758 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
760 def __init__(self, *args):
762 __init__(CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
763 __init__(CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
764 __init__(CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
765 __init__(CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
767 _IMP_display.CylinderGeometry_swiginit(self, _IMP_display.new_CylinderGeometry(*args))
769 def get_geometry(self):
770 r"""get_geometry(CylinderGeometry self) -> Cylinder3D"""
771 return _IMP_display.CylinderGeometry_get_geometry(self)
773 def set_geometry(self, v):
774 r"""set_geometry(CylinderGeometry self, Cylinder3D v)"""
775 return _IMP_display.CylinderGeometry_set_geometry(self, v)
777 def get_version_info(self):
778 r"""get_version_info(CylinderGeometry self) -> VersionInfo"""
779 return _IMP_display.CylinderGeometry_get_version_info(self)
780 __swig_destroy__ = _IMP_display.delete_CylinderGeometry
783 r"""__str__(CylinderGeometry self) -> std::string"""
784 return _IMP_display.CylinderGeometry___str__(self)
787 r"""__repr__(CylinderGeometry self) -> std::string"""
788 return _IMP_display.CylinderGeometry___repr__(self)
792 return _object_cast_to_CylinderGeometry(o)
796 _IMP_display.CylinderGeometry_swigregister(CylinderGeometry)
797 class EllipsoidGeometry(Geometry):
798 r"""Proxy of C++ IMP::display::EllipsoidGeometry class."""
800 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
802 def __init__(self, *args):
804 __init__(EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
805 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
806 __init__(EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
807 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
809 _IMP_display.EllipsoidGeometry_swiginit(self, _IMP_display.new_EllipsoidGeometry(*args))
811 def get_geometry(self):
812 r"""get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
813 return _IMP_display.EllipsoidGeometry_get_geometry(self)
815 def set_geometry(self, v):
816 r"""set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
817 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
819 def get_version_info(self):
820 r"""get_version_info(EllipsoidGeometry self) -> VersionInfo"""
821 return _IMP_display.EllipsoidGeometry_get_version_info(self)
822 __swig_destroy__ = _IMP_display.delete_EllipsoidGeometry
825 r"""__str__(EllipsoidGeometry self) -> std::string"""
826 return _IMP_display.EllipsoidGeometry___str__(self)
829 r"""__repr__(EllipsoidGeometry self) -> std::string"""
830 return _IMP_display.EllipsoidGeometry___repr__(self)
834 return _object_cast_to_EllipsoidGeometry(o)
838 _IMP_display.EllipsoidGeometry_swigregister(EllipsoidGeometry)
839 class PointGeometry(Geometry):
840 r"""Proxy of C++ IMP::display::PointGeometry class."""
842 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
844 def __init__(self, *args):
846 __init__(PointGeometry self, Vector3D v) -> PointGeometry
847 __init__(PointGeometry self, Vector3D v, Color c) -> PointGeometry
848 __init__(PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
849 __init__(PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
851 _IMP_display.PointGeometry_swiginit(self, _IMP_display.new_PointGeometry(*args))
853 def get_geometry(self):
854 r"""get_geometry(PointGeometry self) -> Vector3D"""
855 return _IMP_display.PointGeometry_get_geometry(self)
857 def set_geometry(self, v):
858 r"""set_geometry(PointGeometry self, Vector3D v)"""
859 return _IMP_display.PointGeometry_set_geometry(self, v)
861 def get_version_info(self):
862 r"""get_version_info(PointGeometry self) -> VersionInfo"""
863 return _IMP_display.PointGeometry_get_version_info(self)
864 __swig_destroy__ = _IMP_display.delete_PointGeometry
867 r"""__str__(PointGeometry self) -> std::string"""
868 return _IMP_display.PointGeometry___str__(self)
871 r"""__repr__(PointGeometry self) -> std::string"""
872 return _IMP_display.PointGeometry___repr__(self)
876 return _object_cast_to_PointGeometry(o)
880 _IMP_display.PointGeometry_swigregister(PointGeometry)
881 class SegmentGeometry(Geometry):
882 r"""Proxy of C++ IMP::display::SegmentGeometry class."""
884 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
886 def __init__(self, *args):
888 __init__(SegmentGeometry self, Segment3D v) -> SegmentGeometry
889 __init__(SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
890 __init__(SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
891 __init__(SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
893 _IMP_display.SegmentGeometry_swiginit(self, _IMP_display.new_SegmentGeometry(*args))
895 def get_geometry(self):
896 r"""get_geometry(SegmentGeometry self) -> Segment3D"""
897 return _IMP_display.SegmentGeometry_get_geometry(self)
899 def set_geometry(self, v):
900 r"""set_geometry(SegmentGeometry self, Segment3D v)"""
901 return _IMP_display.SegmentGeometry_set_geometry(self, v)
903 def get_version_info(self):
904 r"""get_version_info(SegmentGeometry self) -> VersionInfo"""
905 return _IMP_display.SegmentGeometry_get_version_info(self)
906 __swig_destroy__ = _IMP_display.delete_SegmentGeometry
909 r"""__str__(SegmentGeometry self) -> std::string"""
910 return _IMP_display.SegmentGeometry___str__(self)
913 r"""__repr__(SegmentGeometry self) -> std::string"""
914 return _IMP_display.SegmentGeometry___repr__(self)
918 return _object_cast_to_SegmentGeometry(o)
922 _IMP_display.SegmentGeometry_swigregister(SegmentGeometry)
923 class PolygonGeometry(Geometry):
924 r"""Proxy of C++ IMP::display::PolygonGeometry class."""
926 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
928 def __init__(self, *args):
930 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
931 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
932 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
933 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
935 _IMP_display.PolygonGeometry_swiginit(self, _IMP_display.new_PolygonGeometry(*args))
937 def get_geometry(self):
938 r"""get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
939 return _IMP_display.PolygonGeometry_get_geometry(self)
941 def set_geometry(self, v):
942 r"""set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
943 return _IMP_display.PolygonGeometry_set_geometry(self, v)
945 def get_version_info(self):
946 r"""get_version_info(PolygonGeometry self) -> VersionInfo"""
947 return _IMP_display.PolygonGeometry_get_version_info(self)
948 __swig_destroy__ = _IMP_display.delete_PolygonGeometry
951 r"""__str__(PolygonGeometry self) -> std::string"""
952 return _IMP_display.PolygonGeometry___str__(self)
955 r"""__repr__(PolygonGeometry self) -> std::string"""
956 return _IMP_display.PolygonGeometry___repr__(self)
960 return _object_cast_to_PolygonGeometry(o)
964 _IMP_display.PolygonGeometry_swigregister(PolygonGeometry)
965 class TriangleGeometry(Geometry):
966 r"""Proxy of C++ IMP::display::TriangleGeometry class."""
968 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
970 def __init__(self, *args):
972 __init__(TriangleGeometry self, Triangle3D v) -> TriangleGeometry
973 __init__(TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
974 __init__(TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
975 __init__(TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
977 _IMP_display.TriangleGeometry_swiginit(self, _IMP_display.new_TriangleGeometry(*args))
979 def get_geometry(self):
980 r"""get_geometry(TriangleGeometry self) -> Triangle3D"""
981 return _IMP_display.TriangleGeometry_get_geometry(self)
983 def set_geometry(self, v):
984 r"""set_geometry(TriangleGeometry self, Triangle3D v)"""
985 return _IMP_display.TriangleGeometry_set_geometry(self, v)
987 def get_version_info(self):
988 r"""get_version_info(TriangleGeometry self) -> VersionInfo"""
989 return _IMP_display.TriangleGeometry_get_version_info(self)
990 __swig_destroy__ = _IMP_display.delete_TriangleGeometry
993 r"""__str__(TriangleGeometry self) -> std::string"""
994 return _IMP_display.TriangleGeometry___str__(self)
997 r"""__repr__(TriangleGeometry self) -> std::string"""
998 return _IMP_display.TriangleGeometry___repr__(self)
1002 return _object_cast_to_TriangleGeometry(o)
1006 _IMP_display.TriangleGeometry_swigregister(TriangleGeometry)
1007 class BoundingBoxGeometry(Geometry):
1008 r"""Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1010 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1012 def __init__(self, *args):
1014 __init__(BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1015 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1016 __init__(BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1017 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1019 _IMP_display.BoundingBoxGeometry_swiginit(self, _IMP_display.new_BoundingBoxGeometry(*args))
1021 def get_geometry(self):
1022 r"""get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1023 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1025 def set_geometry(self, v):
1026 r"""set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1027 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1029 def get_version_info(self):
1030 r"""get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1031 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1032 __swig_destroy__ = _IMP_display.delete_BoundingBoxGeometry
1035 r"""__str__(BoundingBoxGeometry self) -> std::string"""
1036 return _IMP_display.BoundingBoxGeometry___str__(self)
1039 r"""__repr__(BoundingBoxGeometry self) -> std::string"""
1040 return _IMP_display.BoundingBoxGeometry___repr__(self)
1044 return _object_cast_to_BoundingBoxGeometry(o)
1048 _IMP_display.BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1049 class ReferenceFrameGeometry(Geometry):
1050 r"""Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1052 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1054 def __init__(self, *args):
1056 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1057 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1058 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1059 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1061 _IMP_display.ReferenceFrameGeometry_swiginit(self, _IMP_display.new_ReferenceFrameGeometry(*args))
1063 def get_geometry(self):
1064 r"""get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1065 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1067 def set_geometry(self, v):
1068 r"""set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1069 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1071 def get_version_info(self):
1072 r"""get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1073 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1074 __swig_destroy__ = _IMP_display.delete_ReferenceFrameGeometry
1077 r"""__str__(ReferenceFrameGeometry self) -> std::string"""
1078 return _IMP_display.ReferenceFrameGeometry___str__(self)
1081 r"""__repr__(ReferenceFrameGeometry self) -> std::string"""
1082 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1086 return _object_cast_to_ReferenceFrameGeometry(o)
1090 _IMP_display.ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1094 create_geometry(Sphere3D t, std::string name="algebra::Sphere3D"+"%1%") -> SphereGeometry
1095 create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D"+"%1%") -> CylinderGeometry
1096 create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D"+"%1%") -> EllipsoidGeometry
1097 create_geometry(Vector3D t, std::string name="algebra::Vector3D"+"%1%") -> PointGeometry
1098 create_geometry(Segment3D t, std::string name="algebra::Segment3D"+"%1%") -> SegmentGeometry
1099 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds"+"%1%") -> PolygonGeometry
1100 create_geometry(Triangle3D t, std::string name="algebra::Triangle3D"+"%1%") -> TriangleGeometry
1101 create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>"+"%1%") -> BoundingBoxGeometry
1102 create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D"+"%1%") -> ReferenceFrameGeometry
1104 return _IMP_display.create_geometry(*args)
1105 class LabelGeometry(Geometry):
1106 r"""Proxy of C++ IMP::display::LabelGeometry class."""
1108 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1110 def __init__(self, *args):
1112 __init__(LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1113 __init__(LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1115 _IMP_display.LabelGeometry_swiginit(self, _IMP_display.new_LabelGeometry(*args))
1118 r"""get_text(LabelGeometry self) -> std::string"""
1119 return _IMP_display.LabelGeometry_get_text(self)
1121 def get_location(self):
1122 r"""get_location(LabelGeometry self) -> Sphere3D"""
1123 return _IMP_display.LabelGeometry_get_location(self)
1125 def get_version_info(self):
1126 r"""get_version_info(LabelGeometry self) -> VersionInfo"""
1127 return _IMP_display.LabelGeometry_get_version_info(self)
1128 __swig_destroy__ = _IMP_display.delete_LabelGeometry
1131 r"""__str__(LabelGeometry self) -> std::string"""
1132 return _IMP_display.LabelGeometry___str__(self)
1135 r"""__repr__(LabelGeometry self) -> std::string"""
1136 return _IMP_display.LabelGeometry___repr__(self)
1140 return _object_cast_to_LabelGeometry(o)
1144 _IMP_display.LabelGeometry_swigregister(LabelGeometry)
1145 class SurfaceMeshGeometry(Geometry):
1146 r"""Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1148 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1150 def __init__(self, vertices, faces):
1151 r"""__init__(SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1152 _IMP_display.SurfaceMeshGeometry_swiginit(self, _IMP_display.new_SurfaceMeshGeometry(vertices, faces))
1154 def get_vertexes(self):
1155 r"""get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1156 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1158 def get_faces(self):
1159 r"""get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1160 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1162 def get_version_info(self):
1163 r"""get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1164 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1165 __swig_destroy__ = _IMP_display.delete_SurfaceMeshGeometry
1168 r"""__str__(SurfaceMeshGeometry self) -> std::string"""
1169 return _IMP_display.SurfaceMeshGeometry___str__(self)
1172 r"""__repr__(SurfaceMeshGeometry self) -> std::string"""
1173 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1177 return _object_cast_to_SurfaceMeshGeometry(o)
1181 _IMP_display.SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1182 class PlaneGeometry(Geometry):
1183 r"""Proxy of C++ IMP::display::PlaneGeometry class."""
1185 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1187 def __init__(self, loc, box):
1188 r"""__init__(PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1189 _IMP_display.PlaneGeometry_swiginit(self, _IMP_display.new_PlaneGeometry(loc, box))
1191 def get_version_info(self):
1192 r"""get_version_info(PlaneGeometry self) -> VersionInfo"""
1193 return _IMP_display.PlaneGeometry_get_version_info(self)
1194 __swig_destroy__ = _IMP_display.delete_PlaneGeometry
1197 r"""__str__(PlaneGeometry self) -> std::string"""
1198 return _IMP_display.PlaneGeometry___str__(self)
1201 r"""__repr__(PlaneGeometry self) -> std::string"""
1202 return _IMP_display.PlaneGeometry___repr__(self)
1206 return _object_cast_to_PlaneGeometry(o)
1210 _IMP_display.PlaneGeometry_swigregister(PlaneGeometry)
1211 class IsosurfaceGeometry(SurfaceMeshGeometry):
1212 r"""Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1214 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1216 def __init__(self, *args):
1218 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1219 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1221 _IMP_display.IsosurfaceGeometry_swiginit(self, _IMP_display.new_IsosurfaceGeometry(*args))
1224 r"""__str__(IsosurfaceGeometry self) -> std::string"""
1225 return _IMP_display.IsosurfaceGeometry___str__(self)
1228 r"""__repr__(IsosurfaceGeometry self) -> std::string"""
1229 return _IMP_display.IsosurfaceGeometry___repr__(self)
1233 return _object_cast_to_IsosurfaceGeometry(o)
1235 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1238 _IMP_display.IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1239 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1240 r"""Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1242 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1244 def __init__(self, balls):
1245 r"""__init__(SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1246 _IMP_display.SkinSurfaceGeometry_swiginit(self, _IMP_display.new_SkinSurfaceGeometry(balls))
1249 r"""__str__(SkinSurfaceGeometry self) -> std::string"""
1250 return _IMP_display.SkinSurfaceGeometry___str__(self)
1253 r"""__repr__(SkinSurfaceGeometry self) -> std::string"""
1254 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1258 return _object_cast_to_SkinSurfaceGeometry(o)
1260 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1263 _IMP_display.SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1264 class GeometryProcessor(object):
1265 r"""Proxy of C++ IMP::display::GeometryProcessor class."""
1267 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1268 __repr__ = _swig_repr
1271 r"""__init__(GeometryProcessor self) -> GeometryProcessor"""
1272 _IMP_display.GeometryProcessor_swiginit(self, _IMP_display.new_GeometryProcessor())
1275 _IMP_display.GeometryProcessor_swigregister(GeometryProcessor)
1277 r"""Proxy of C++ IMP::display::Writer class."""
1279 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1281 def __init__(self, name):
1282 r"""__init__(Writer self, std::string name) -> Writer"""
1283 if self.__class__ == Writer:
1287 _IMP_display.Writer_swiginit(self, _IMP_display.new_Writer(_self, name))
1289 if self.__class__ != Writer:
1290 _director_objects.register(self)
1294 __swig_destroy__ = _IMP_display.delete_Writer
1296 def set_frame(self, i):
1297 r"""set_frame(Writer self, unsigned int i)"""
1298 return _IMP_display.Writer_set_frame(self, i)
1300 def get_frame(self):
1301 r"""get_frame(Writer self) -> int"""
1302 return _IMP_display.Writer_get_frame(self)
1306 add_geometry(Writer self, Geometry g)
1307 add_geometry(Writer self, IMP::display::Geometries const & g)
1309 return _IMP_display.Writer_add_geometry(self, *args)
1312 r"""do_close(Writer self)"""
1313 return _IMP_display.Writer_do_close(self)
1316 r"""do_open(Writer self)"""
1317 return _IMP_display.Writer_do_open(self)
1319 def do_set_frame(self):
1320 r"""do_set_frame(Writer self)"""
1321 return _IMP_display.Writer_do_set_frame(self)
1324 r"""__str__(Writer self) -> std::string"""
1325 return _IMP_display.Writer___str__(self)
1328 r"""__repr__(Writer self) -> std::string"""
1329 return _IMP_display.Writer___repr__(self)
1333 return _object_cast_to_Writer(o)
1336 def do_show(self, out):
1341 return _object_cast_to_Writer(o)
1343 def __disown__(self):
1345 _IMP_display.disown_Writer(self)
1346 return weakref.proxy(self)
1348 def handle_sphere(self, arg0, arg1, arg2):
1349 r"""handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1350 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1352 def handle_cylinder(self, arg0, arg1, arg2):
1353 r"""handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1354 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1356 def handle_point(self, arg0, arg1, arg2):
1357 r"""handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1358 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1360 def handle_segment(self, arg0, arg1, arg2):
1361 r"""handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1362 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1364 def handle_polygon(self, arg0, arg1, arg2):
1365 r"""handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1366 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1368 def handle_triangle(self, arg0, arg1, arg2):
1369 r"""handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1370 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1372 def handle_surface_mesh(self, arg0, arg1, arg2):
1373 r"""handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1374 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1376 def handle_label(self, arg0, arg1, arg2):
1377 r"""handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1378 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1380 def handle_ellipsoid(self, arg0, arg1, arg2):
1381 r"""handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1382 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1384 def handle_bounding_box(self, arg0, arg1, arg2):
1385 r"""handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1386 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1388 def handle_anything(self, arg0, arg1, arg2):
1389 r"""handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1390 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1392 def do_destroy(self):
1393 r"""do_destroy(Writer self)"""
1394 return _IMP_display.Writer_do_destroy(self)
1397 _IMP_display.Writer_swigregister(Writer)
1398 class TextWriter(Writer):
1399 r"""Proxy of C++ IMP::display::TextWriter class."""
1401 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1404 r"""open(TextWriter self)"""
1405 return _IMP_display.TextWriter_open(self)
1407 def get_stream(self):
1408 r"""get_stream(TextWriter self) -> _ostream"""
1409 return _IMP_display.TextWriter_get_stream(self)
1411 def do_set_frame(self):
1412 r"""do_set_frame(TextWriter self)"""
1413 return _IMP_display.TextWriter_do_set_frame(self)
1415 def __init__(self, *args):
1417 __init__(TextWriter self, TextOutput fn) -> TextWriter
1418 __init__(TextWriter self, std::string name) -> TextWriter
1420 if self.__class__ == TextWriter:
1424 _IMP_display.TextWriter_swiginit(self, _IMP_display.new_TextWriter(_self, *args))
1426 if self.__class__ != TextWriter:
1427 _director_objects.register(self)
1432 def get_current_file_name(self):
1433 r"""get_current_file_name(TextWriter self) -> std::string"""
1434 return _IMP_display.TextWriter_get_current_file_name(self)
1435 __swig_destroy__ = _IMP_display.delete_TextWriter
1438 r"""__str__(TextWriter self) -> std::string"""
1439 return _IMP_display.TextWriter___str__(self)
1442 r"""__repr__(TextWriter self) -> std::string"""
1443 return _IMP_display.TextWriter___repr__(self)
1447 return _object_cast_to_TextWriter(o)
1450 def do_show(self, out):
1455 return _object_cast_to_TextWriter(o)
1457 def __disown__(self):
1459 _IMP_display.disown_TextWriter(self)
1460 return weakref.proxy(self)
1462 def handle_sphere(self, arg0, arg1, arg2):
1463 r"""handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1464 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1466 def handle_cylinder(self, arg0, arg1, arg2):
1467 r"""handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1468 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1470 def handle_point(self, arg0, arg1, arg2):
1471 r"""handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1472 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1474 def handle_segment(self, arg0, arg1, arg2):
1475 r"""handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1476 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1478 def handle_polygon(self, arg0, arg1, arg2):
1479 r"""handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1480 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1482 def handle_triangle(self, arg0, arg1, arg2):
1483 r"""handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1484 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1486 def handle_surface_mesh(self, arg0, arg1, arg2):
1487 r"""handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1488 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1490 def handle_label(self, arg0, arg1, arg2):
1491 r"""handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1492 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1494 def handle_ellipsoid(self, arg0, arg1, arg2):
1495 r"""handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1496 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1498 def handle_bounding_box(self, arg0, arg1, arg2):
1499 r"""handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1500 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1502 def handle_anything(self, arg0, arg1, arg2):
1503 r"""handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1504 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1506 def do_destroy(self):
1507 r"""do_destroy(TextWriter self)"""
1508 return _IMP_display.TextWriter_do_destroy(self)
1511 r"""do_close(TextWriter self)"""
1512 return _IMP_display.TextWriter_do_close(self)
1515 r"""do_open(TextWriter self)"""
1516 return _IMP_display.TextWriter_do_open(self)
1519 _IMP_display.TextWriter_swigregister(TextWriter)
1522 r"""create_writer(std::string filename) -> Writer"""
1523 return _IMP_display.create_writer(filename)
1524 class WriterAdaptor(IMP._InputAdaptor):
1525 r"""Proxy of C++ IMP::display::WriterAdaptor class."""
1527 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1529 def __init__(self, *args):
1531 __init__(WriterAdaptor self, std::string name) -> WriterAdaptor
1532 __init__(WriterAdaptor self, Writer w) -> WriterAdaptor
1534 _IMP_display.WriterAdaptor_swiginit(self, _IMP_display.new_WriterAdaptor(*args))
1536 def get_writer(self):
1537 r"""get_writer(WriterAdaptor self) -> Writer"""
1538 return _IMP_display.WriterAdaptor_get_writer(self)
1540 def show(self, *args):
1541 r"""show(WriterAdaptor self, _ostream out=std::cout)"""
1542 return _IMP_display.WriterAdaptor_show(self, *args)
1543 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1546 r"""__str__(WriterAdaptor self) -> std::string"""
1547 return _IMP_display.WriterAdaptor___str__(self)
1550 r"""__repr__(WriterAdaptor self) -> std::string"""
1551 return _IMP_display.WriterAdaptor___repr__(self)
1554 _IMP_display.WriterAdaptor_swigregister(WriterAdaptor)
1556 r"""Proxy of C++ IMP::display::Colored class."""
1558 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1560 def set_color(self, c):
1561 r"""set_color(Colored self, Color c)"""
1562 return _IMP_display.Colored_set_color(self, c)
1564 def get_color(self):
1565 r"""get_color(Colored self) -> Color"""
1566 return _IMP_display.Colored_get_color(self)
1569 def get_color_keys():
1570 r"""get_color_keys() -> IMP::FloatKeys const &"""
1571 return _IMP_display.Colored_get_color_keys()
1573 def __init__(self, *args):
1575 __init__(Colored self) -> Colored
1576 __init__(Colored self, Model m, ParticleIndex id) -> Colored
1577 __init__(Colored self, _ParticleAdaptor d) -> Colored
1579 _IMP_display.Colored_swiginit(self, _IMP_display.new_Colored(*args))
1582 def get_is_setup(*args):
1584 get_is_setup(Model m, ParticleIndex pi) -> bool
1585 get_is_setup(_ParticleAdaptor p) -> bool
1587 return _IMP_display.Colored_get_is_setup(*args)
1589 def show(self, *args):
1590 r"""show(Colored self, _ostream out=std::cout)"""
1591 return _IMP_display.Colored_show(self, *args)
1594 def setup_particle(*args):
1596 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1597 setup_particle(_ParticleAdaptor pa, Color color) -> Colored
1599 return _IMP_display.Colored_setup_particle(*args)
1601 def add_attribute(self, *args):
1603 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1604 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1605 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1606 add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1607 add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1608 add_attribute(Colored self, StringKey a0, IMP::String a1)
1609 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1610 add_attribute(Colored self, ObjectKey a0, Object a1)
1611 add_attribute(Colored self, SparseFloatKey a0, IMP::Float a1)
1612 add_attribute(Colored self, SparseIntKey a0, IMP::Int a1)
1613 add_attribute(Colored self, SparseStringKey a0, IMP::String a1)
1614 add_attribute(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1616 return _IMP_display.Colored_add_attribute(self, *args)
1618 def get_value(self, *args):
1620 get_value(Colored self, FloatKey a0) -> IMP::Float
1621 get_value(Colored self, IntKey a0) -> IMP::Int
1622 get_value(Colored self, FloatsKey a0) -> IMP::Floats
1623 get_value(Colored self, IntsKey a0) -> IMP::Ints
1624 get_value(Colored self, StringKey a0) -> IMP::String
1625 get_value(Colored self, ParticleIndexKey a0) -> Particle
1626 get_value(Colored self, ObjectKey a0) -> Object
1627 get_value(Colored self, SparseFloatKey a0) -> IMP::Float
1628 get_value(Colored self, SparseIntKey a0) -> IMP::Int
1629 get_value(Colored self, SparseStringKey a0) -> IMP::String
1630 get_value(Colored self, SparseParticleIndexKey a0) -> ParticleIndex
1632 return _IMP_display.Colored_get_value(self, *args)
1634 def set_value(self, *args):
1636 set_value(Colored self, FloatKey a0, IMP::Float a1)
1637 set_value(Colored self, IntKey a0, IMP::Int a1)
1638 set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1639 set_value(Colored self, IntsKey a0, IMP::Ints a1)
1640 set_value(Colored self, StringKey a0, IMP::String a1)
1641 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1642 set_value(Colored self, ObjectKey a0, Object a1)
1643 set_value(Colored self, SparseFloatKey a0, IMP::Float a1)
1644 set_value(Colored self, SparseIntKey a0, IMP::Int a1)
1645 set_value(Colored self, SparseStringKey a0, IMP::String a1)
1646 set_value(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1648 return _IMP_display.Colored_set_value(self, *args)
1650 def remove_attribute(self, *args):
1652 remove_attribute(Colored self, FloatKey a0)
1653 remove_attribute(Colored self, IntKey a0)
1654 remove_attribute(Colored self, FloatsKey a0)
1655 remove_attribute(Colored self, IntsKey a0)
1656 remove_attribute(Colored self, StringKey a0)
1657 remove_attribute(Colored self, ParticleIndexKey a0)
1658 remove_attribute(Colored self, ObjectKey a0)
1659 remove_attribute(Colored self, SparseFloatKey a0)
1660 remove_attribute(Colored self, SparseIntKey a0)
1661 remove_attribute(Colored self, SparseStringKey a0)
1662 remove_attribute(Colored self, SparseParticleIndexKey a0)
1664 return _IMP_display.Colored_remove_attribute(self, *args)
1666 def has_attribute(self, *args):
1668 has_attribute(Colored self, FloatKey a0) -> bool
1669 has_attribute(Colored self, IntKey a0) -> bool
1670 has_attribute(Colored self, FloatsKey a0) -> bool
1671 has_attribute(Colored self, IntsKey a0) -> bool
1672 has_attribute(Colored self, StringKey a0) -> bool
1673 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1674 has_attribute(Colored self, ObjectKey a0) -> bool
1675 has_attribute(Colored self, SparseFloatKey a0) -> bool
1676 has_attribute(Colored self, SparseIntKey a0) -> bool
1677 has_attribute(Colored self, SparseStringKey a0) -> bool
1678 has_attribute(Colored self, SparseParticleIndexKey a0) -> bool
1680 return _IMP_display.Colored_has_attribute(self, *args)
1682 def get_derivative(self, a0):
1683 r"""get_derivative(Colored self, FloatKey a0) -> double"""
1684 return _IMP_display.Colored_get_derivative(self, a0)
1687 r"""get_name(Colored self) -> std::string"""
1688 return _IMP_display.Colored_get_name(self)
1690 def clear_caches(self):
1691 r"""clear_caches(Colored self)"""
1692 return _IMP_display.Colored_clear_caches(self)
1694 def set_name(self, a0):
1695 r"""set_name(Colored self, std::string a0)"""
1696 return _IMP_display.Colored_set_name(self, a0)
1699 r"""set_check_level(Colored self, IMP::CheckLevel a0)"""
1700 return _IMP_display.Colored_set_check_level(self, a0)
1702 def add_to_derivative(self, a0, a1, a2):
1703 r"""add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1704 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1706 def set_is_optimized(self, a0, a1):
1707 r"""set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1708 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1710 def get_is_optimized(self, a0):
1711 r"""get_is_optimized(Colored self, FloatKey a0) -> bool"""
1712 return _IMP_display.Colored_get_is_optimized(self, a0)
1715 r"""get_check_level(Colored self) -> IMP::CheckLevel"""
1716 return _IMP_display.Colored_get_check_level(self)
1718 def __eq__(self, *args):
1720 __eq__(Colored self, Colored o) -> bool
1721 __eq__(Colored self, Particle d) -> bool
1723 return _IMP_display.Colored___eq__(self, *args)
1725 def __ne__(self, *args):
1727 __ne__(Colored self, Colored o) -> bool
1728 __ne__(Colored self, Particle d) -> bool
1730 return _IMP_display.Colored___ne__(self, *args)
1732 def __le__(self, *args):
1734 __le__(Colored self, Colored o) -> bool
1735 __le__(Colored self, Particle d) -> bool
1737 return _IMP_display.Colored___le__(self, *args)
1739 def __lt__(self, *args):
1741 __lt__(Colored self, Colored o) -> bool
1742 __lt__(Colored self, Particle d) -> bool
1744 return _IMP_display.Colored___lt__(self, *args)
1746 def __ge__(self, *args):
1748 __ge__(Colored self, Colored o) -> bool
1749 __ge__(Colored self, Particle d) -> bool
1751 return _IMP_display.Colored___ge__(self, *args)
1753 def __gt__(self, *args):
1755 __gt__(Colored self, Colored o) -> bool
1756 __gt__(Colored self, Particle d) -> bool
1758 return _IMP_display.Colored___gt__(self, *args)
1761 r"""__hash__(Colored self) -> std::size_t"""
1762 return _IMP_display.Colored___hash__(self)
1765 r"""__str__(Colored self) -> std::string"""
1766 return _IMP_display.Colored___str__(self)
1769 r"""__repr__(Colored self) -> std::string"""
1770 return _IMP_display.Colored___repr__(self)
1772 def _get_as_binary(self):
1773 r"""_get_as_binary(Colored self) -> PyObject *"""
1774 return _IMP_display.Colored__get_as_binary(self)
1776 def _set_from_binary(self, p):
1777 r"""_set_from_binary(Colored self, PyObject * p)"""
1778 return _IMP_display.Colored__set_from_binary(self, p)
1780 def __getstate__(self):
1781 p = self._get_as_binary()
1782 if len(self.__dict__) > 1:
1783 d = self.__dict__.copy()
1788 def __setstate__(self, p):
1789 if not hasattr(self,
'this'):
1791 if isinstance(p, tuple):
1793 self.__dict__.update(d)
1794 return self._set_from_binary(p)
1796 __swig_destroy__ = _IMP_display.delete_Colored
1799 _IMP_display.Colored_swigregister(Colored)
1801 def __lshift__(out, n):
1802 r"""__lshift__(_ostream out, Colored n) -> _ostream"""
1803 return _IMP_display.__lshift__(out, n)
1804 class FilterGeometry(GeometryProcessor, Geometry):
1805 r"""Proxy of C++ IMP::display::FilterGeometry class."""
1807 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1809 def __init__(self, p):
1810 r"""__init__(FilterGeometry self, Plane3D p) -> FilterGeometry"""
1811 _IMP_display.FilterGeometry_swiginit(self, _IMP_display.new_FilterGeometry(p))
1815 add_geometry(FilterGeometry self, Geometry g)
1816 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1818 return _IMP_display.FilterGeometry_add_geometry(self, *args)
1820 def get_version_info(self):
1821 r"""get_version_info(FilterGeometry self) -> VersionInfo"""
1822 return _IMP_display.FilterGeometry_get_version_info(self)
1823 __swig_destroy__ = _IMP_display.delete_FilterGeometry
1826 r"""__str__(FilterGeometry self) -> std::string"""
1827 return _IMP_display.FilterGeometry___str__(self)
1830 r"""__repr__(FilterGeometry self) -> std::string"""
1831 return _IMP_display.FilterGeometry___repr__(self)
1835 return _object_cast_to_FilterGeometry(o)
1839 _IMP_display.FilterGeometry_swigregister(FilterGeometry)
1841 r"""Proxy of C++ IMP::display::WriteOptimizerState class."""
1843 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1845 def __init__(self, m, w):
1846 r"""__init__(WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1847 _IMP_display.WriteOptimizerState_swiginit(self, _IMP_display.new_WriteOptimizerState(m, w))
1850 r"""write(WriteOptimizerState self, WriterAdaptor w)"""
1851 return _IMP_display.WriteOptimizerState_write(self, w)
1852 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)
1853 def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
1854 def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
1855 geometries = property(__get_geometries, __set_geometries, __del_geometries, doc=
"List of ##ucnames")
1857 def remove_geometry(self, d):
1858 r"""remove_geometry(WriteOptimizerState self, Geometry d)"""
1859 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
1861 def _python_index_geometry(self, d, start, stop):
1862 r"""_python_index_geometry(WriteOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1863 return _IMP_display.WriteOptimizerState__python_index_geometry(self, d, start, stop)
1865 def remove_geometries(self, d):
1866 r"""remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1867 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
1869 def set_geometries(self, ps):
1870 r"""set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1871 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
1873 def set_geometries_order(self, objs):
1874 r"""set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1875 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
1878 r"""add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1879 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
1882 r"""add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1883 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
1885 def clear_geometries(self):
1886 r"""clear_geometries(WriteOptimizerState self)"""
1887 return _IMP_display.WriteOptimizerState_clear_geometries(self)
1889 def get_number_of_geometries(self):
1890 r"""get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1891 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1893 def get_has_geometries(self):
1894 r"""get_has_geometries(WriteOptimizerState self) -> bool"""
1895 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1897 def get_geometry(self, i):
1898 r"""get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1899 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
1901 def get_geometries(self):
1902 r"""get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1903 return _IMP_display.WriteOptimizerState_get_geometries(self)
1905 def erase_geometry(self, i):
1906 r"""erase_geometry(WriteOptimizerState self, unsigned int i)"""
1907 return _IMP_display.WriteOptimizerState_erase_geometry(self, i)
1909 def reserve_geometries(self, sz):
1910 r"""reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1911 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
1913 def get_version_info(self):
1914 r"""get_version_info(WriteOptimizerState self) -> VersionInfo"""
1915 return _IMP_display.WriteOptimizerState_get_version_info(self)
1916 __swig_destroy__ = _IMP_display.delete_WriteOptimizerState
1919 r"""__str__(WriteOptimizerState self) -> std::string"""
1920 return _IMP_display.WriteOptimizerState___str__(self)
1923 r"""__repr__(WriteOptimizerState self) -> std::string"""
1924 return _IMP_display.WriteOptimizerState___repr__(self)
1928 return _object_cast_to_WriteOptimizerState(o)
1931 def _get_jax(self, state_index):
1932 """No JAX implementation, but this OptimizerState should work
1933 correctly if JAX arrays are copied back to IMP.Model"""
1938 _IMP_display.WriteOptimizerState_swigregister(WriteOptimizerState)
1939 class SingletonGeometry(Geometry):
1940 r"""Proxy of C++ IMP::display::SingletonGeometry class."""
1942 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1944 def __init__(self, p):
1945 r"""__init__(SingletonGeometry self, Particle p) -> SingletonGeometry"""
1946 _IMP_display.SingletonGeometry_swiginit(self, _IMP_display.new_SingletonGeometry(p))
1948 def get_particle(self):
1949 r"""get_particle(SingletonGeometry self) -> Particle"""
1950 return _IMP_display.SingletonGeometry_get_particle(self)
1951 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1954 r"""__str__(SingletonGeometry self) -> std::string"""
1955 return _IMP_display.SingletonGeometry___str__(self)
1958 r"""__repr__(SingletonGeometry self) -> std::string"""
1959 return _IMP_display.SingletonGeometry___repr__(self)
1963 return _object_cast_to_SingletonGeometry(o)
1967 _IMP_display.SingletonGeometry_swigregister(SingletonGeometry)
1968 class SingletonsGeometry(Geometry):
1969 r"""Proxy of C++ IMP::display::SingletonsGeometry class."""
1971 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1973 def __init__(self, *args):
1975 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
1976 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
1978 _IMP_display.SingletonsGeometry_swiginit(self, _IMP_display.new_SingletonsGeometry(*args))
1980 def get_container(self):
1981 r"""get_container(SingletonsGeometry self) -> SingletonContainer"""
1982 return _IMP_display.SingletonsGeometry_get_container(self)
1983 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
1986 r"""__str__(SingletonsGeometry self) -> std::string"""
1987 return _IMP_display.SingletonsGeometry___str__(self)
1990 r"""__repr__(SingletonsGeometry self) -> std::string"""
1991 return _IMP_display.SingletonsGeometry___repr__(self)
1995 return _object_cast_to_SingletonsGeometry(o)
1999 _IMP_display.SingletonsGeometry_swigregister(SingletonsGeometry)
2000 class PairGeometry(Geometry):
2001 r"""Proxy of C++ IMP::display::PairGeometry class."""
2003 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2005 def __init__(self, pp):
2006 r"""__init__(PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2007 _IMP_display.PairGeometry_swiginit(self, _IMP_display.new_PairGeometry(pp))
2009 def get_particle_pair(self):
2010 r"""get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2011 return _IMP_display.PairGeometry_get_particle_pair(self)
2012 __swig_destroy__ = _IMP_display.delete_PairGeometry
2015 r"""__str__(PairGeometry self) -> std::string"""
2016 return _IMP_display.PairGeometry___str__(self)
2019 r"""__repr__(PairGeometry self) -> std::string"""
2020 return _IMP_display.PairGeometry___repr__(self)
2024 return _object_cast_to_PairGeometry(o)
2028 _IMP_display.PairGeometry_swigregister(PairGeometry)
2029 class PairsGeometry(Geometry):
2030 r"""Proxy of C++ IMP::display::PairsGeometry class."""
2032 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2034 def __init__(self, *args):
2036 __init__(PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2037 __init__(PairsGeometry self, PairContainer pc) -> PairsGeometry
2039 _IMP_display.PairsGeometry_swiginit(self, _IMP_display.new_PairsGeometry(*args))
2041 def get_container(self):
2042 r"""get_container(PairsGeometry self) -> PairContainer"""
2043 return _IMP_display.PairsGeometry_get_container(self)
2044 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2047 r"""__str__(PairsGeometry self) -> std::string"""
2048 return _IMP_display.PairsGeometry___str__(self)
2051 r"""__repr__(PairsGeometry self) -> std::string"""
2052 return _IMP_display.PairsGeometry___repr__(self)
2056 return _object_cast_to_PairsGeometry(o)
2060 _IMP_display.PairsGeometry_swigregister(PairsGeometry)
2061 class PymolWriter(TextWriter):
2062 r"""Proxy of C++ IMP::display::PymolWriter class."""
2064 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2066 def __init__(self, *args):
2068 __init__(PymolWriter self, TextOutput of) -> PymolWriter
2069 __init__(PymolWriter self, std::string name) -> PymolWriter
2070 __init__(PymolWriter self, char const * name) -> PymolWriter
2072 _IMP_display.PymolWriter_swiginit(self, _IMP_display.new_PymolWriter(*args))
2074 def get_version_info(self):
2075 r"""get_version_info(PymolWriter self) -> VersionInfo"""
2076 return _IMP_display.PymolWriter_get_version_info(self)
2077 __swig_destroy__ = _IMP_display.delete_PymolWriter
2080 r"""__str__(PymolWriter self) -> std::string"""
2081 return _IMP_display.PymolWriter___str__(self)
2084 r"""__repr__(PymolWriter self) -> std::string"""
2085 return _IMP_display.PymolWriter___repr__(self)
2089 return _object_cast_to_PymolWriter(o)
2093 _IMP_display.PymolWriter_swigregister(PymolWriter)
2094 class RestraintGeometry(Geometry):
2095 r"""Proxy of C++ IMP::display::RestraintGeometry class."""
2097 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2099 def __init__(self, p):
2100 r"""__init__(RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2101 _IMP_display.RestraintGeometry_swiginit(self, _IMP_display.new_RestraintGeometry(p))
2103 def get_restraint(self):
2104 r"""get_restraint(RestraintGeometry self) -> Restraint"""
2105 return _IMP_display.RestraintGeometry_get_restraint(self)
2107 def get_version_info(self):
2108 r"""get_version_info(RestraintGeometry self) -> VersionInfo"""
2109 return _IMP_display.RestraintGeometry_get_version_info(self)
2110 __swig_destroy__ = _IMP_display.delete_RestraintGeometry
2113 r"""__str__(RestraintGeometry self) -> std::string"""
2114 return _IMP_display.RestraintGeometry___str__(self)
2117 r"""__repr__(RestraintGeometry self) -> std::string"""
2118 return _IMP_display.RestraintGeometry___repr__(self)
2122 return _object_cast_to_RestraintGeometry(o)
2126 _IMP_display.RestraintGeometry_swigregister(RestraintGeometry)
2127 class RestraintSetGeometry(Geometry):
2128 r"""Proxy of C++ IMP::display::RestraintSetGeometry class."""
2130 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2132 def __init__(self, p):
2133 r"""__init__(RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2134 _IMP_display.RestraintSetGeometry_swiginit(self, _IMP_display.new_RestraintSetGeometry(p))
2136 def get_restraint_set(self):
2137 r"""get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2138 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2140 def get_version_info(self):
2141 r"""get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2142 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2143 __swig_destroy__ = _IMP_display.delete_RestraintSetGeometry
2146 r"""__str__(RestraintSetGeometry self) -> std::string"""
2147 return _IMP_display.RestraintSetGeometry___str__(self)
2150 r"""__repr__(RestraintSetGeometry self) -> std::string"""
2151 return _IMP_display.RestraintSetGeometry___repr__(self)
2155 return _object_cast_to_RestraintSetGeometry(o)
2159 _IMP_display.RestraintSetGeometry_swigregister(RestraintSetGeometry)
2162 PivyWriter= _pivy.get_writer(Writer)
2163 _object_types.append(
'PivyWriter')
2166 def get_module_name():
2167 r"""get_module_name() -> std::string const"""
2168 return _IMP_display.get_module_name()
2171 r"""get_module_version() -> std::string const"""
2172 return _IMP_display.get_module_version()
2175 r"""get_example_path(std::string fname) -> std::string"""
2176 return _IMP_display.get_example_path(fname)
2179 r"""get_data_path(std::string fname) -> std::string"""
2180 return _IMP_display.get_data_path(fname)
2182 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.