14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_DISPLAY_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
77 r"""value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
78 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
81 r"""incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
82 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
86 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
94 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
98 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
101 r"""next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
102 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
105 r"""__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
106 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
109 r"""previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
110 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
114 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
118 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
122 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
126 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
130 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
134 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
139 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
146 _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
153 IMP_DEBUG = _IMP_display.IMP_DEBUG
155 IMP_RELEASE = _IMP_display.IMP_RELEASE
157 IMP_SILENT = _IMP_display.IMP_SILENT
159 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
161 IMP_TERSE = _IMP_display.IMP_TERSE
163 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
165 IMP_MEMORY = _IMP_display.IMP_MEMORY
167 IMP_NONE = _IMP_display.IMP_NONE
169 IMP_USAGE = _IMP_display.IMP_USAGE
171 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_display.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_display.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_display.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_display.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_display._ostream_write(self, osa_buf)
238 _IMP_display._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
248 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
278 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
280 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
285 _object_types.append(
"Writer")
288 def _object_cast_to_Writer(o):
289 r"""_object_cast_to_Writer(Object o) -> Writer"""
290 return _IMP_display._object_cast_to_Writer(o)
292 _object_types.append(
"TextWriter")
295 def _object_cast_to_TextWriter(o):
296 r"""_object_cast_to_TextWriter(Object o) -> TextWriter"""
297 return _IMP_display._object_cast_to_TextWriter(o)
299 _object_types.append(
"Geometry")
302 def _object_cast_to_Geometry(o):
303 r"""_object_cast_to_Geometry(Object o) -> Geometry"""
304 return _IMP_display._object_cast_to_Geometry(o)
306 _object_types.append(
"SingletonGeometry")
309 def _object_cast_to_SingletonGeometry(o):
310 r"""_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
311 return _IMP_display._object_cast_to_SingletonGeometry(o)
313 _object_types.append(
"PairGeometry")
316 def _object_cast_to_PairGeometry(o):
317 r"""_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
318 return _IMP_display._object_cast_to_PairGeometry(o)
320 _object_types.append(
"SingletonsGeometry")
323 def _object_cast_to_SingletonsGeometry(o):
324 r"""_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
325 return _IMP_display._object_cast_to_SingletonsGeometry(o)
327 _object_types.append(
"PairsGeometry")
330 def _object_cast_to_PairsGeometry(o):
331 r"""_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
332 return _IMP_display._object_cast_to_PairsGeometry(o)
334 _object_types.append(
"PymolWriter")
337 def _object_cast_to_PymolWriter(o):
338 r"""_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
339 return _IMP_display._object_cast_to_PymolWriter(o)
341 _object_types.append(
"SphereGeometry")
344 def _object_cast_to_SphereGeometry(o):
345 r"""_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
346 return _IMP_display._object_cast_to_SphereGeometry(o)
348 _object_types.append(
"CylinderGeometry")
351 def _object_cast_to_CylinderGeometry(o):
352 r"""_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
353 return _IMP_display._object_cast_to_CylinderGeometry(o)
355 _object_types.append(
"EllipsoidGeometry")
358 def _object_cast_to_EllipsoidGeometry(o):
359 r"""_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
360 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
362 _object_types.append(
"PointGeometry")
365 def _object_cast_to_PointGeometry(o):
366 r"""_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
367 return _IMP_display._object_cast_to_PointGeometry(o)
369 _object_types.append(
"SegmentGeometry")
372 def _object_cast_to_SegmentGeometry(o):
373 r"""_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
374 return _IMP_display._object_cast_to_SegmentGeometry(o)
376 _object_types.append(
"PolygonGeometry")
379 def _object_cast_to_PolygonGeometry(o):
380 r"""_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
381 return _IMP_display._object_cast_to_PolygonGeometry(o)
383 _object_types.append(
"ReferenceFrameGeometry")
386 def _object_cast_to_ReferenceFrameGeometry(o):
387 r"""_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
388 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
390 _object_types.append(
"BoundingBoxGeometry")
393 def _object_cast_to_BoundingBoxGeometry(o):
394 r"""_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
395 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
397 _object_types.append(
"LabelGeometry")
400 def _object_cast_to_LabelGeometry(o):
401 r"""_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
402 return _IMP_display._object_cast_to_LabelGeometry(o)
404 _object_types.append(
"RestraintGeometry")
407 def _object_cast_to_RestraintGeometry(o):
408 r"""_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
409 return _IMP_display._object_cast_to_RestraintGeometry(o)
411 _object_types.append(
"RestraintSetGeometry")
414 def _object_cast_to_RestraintSetGeometry(o):
415 r"""_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
416 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
418 _object_types.append(
"GeometrySet")
421 def _object_cast_to_GeometrySet(o):
422 r"""_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
423 return _IMP_display._object_cast_to_GeometrySet(o)
426 return [Colored(x)
for x
in l]
427 _plural_types.append(
"Coloreds")
430 _value_types.append(
"Colored")
434 _plural_types.append(
"Colors")
435 _value_types.append(
"Color")
439 _plural_types.append(
"WriterAdaptors")
440 _value_types.append(
"WriterAdaptor")
443 _object_types.append(
"FilterGeometry")
446 def _object_cast_to_FilterGeometry(o):
447 r"""_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
448 return _IMP_display._object_cast_to_FilterGeometry(o)
450 _object_types.append(
"WriteOptimizerState")
453 def _object_cast_to_WriteOptimizerState(o):
454 r"""_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
455 return _IMP_display._object_cast_to_WriteOptimizerState(o)
457 _object_types.append(
"TriangleGeometry")
460 def _object_cast_to_TriangleGeometry(o):
461 r"""_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
462 return _IMP_display._object_cast_to_TriangleGeometry(o)
464 _object_types.append(
"SurfaceMeshGeometry")
467 def _object_cast_to_SurfaceMeshGeometry(o):
468 r"""_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
469 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
471 _object_types.append(
"PlaneGeometry")
474 def _object_cast_to_PlaneGeometry(o):
475 r"""_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
476 return _IMP_display._object_cast_to_PlaneGeometry(o)
478 _object_types.append(
"IsosurfaceGeometry")
481 def _object_cast_to_IsosurfaceGeometry(o):
482 r"""_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
483 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
485 _object_types.append(
"SkinSurfaceGeometry")
488 def _object_cast_to_SkinSurfaceGeometry(o):
489 r"""_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
490 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
491 class Color(IMP._Value):
492 r"""Proxy of C++ IMP::display::Color class."""
494 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
496 def __init__(self, *args):
498 __init__(Color self, Color arg2) -> Color
499 __init__(Color self) -> Color
500 __init__(Color self, double r, double g, double b) -> Color
502 _IMP_display.Color_swiginit(self, _IMP_display.new_Color(*args))
503 __swig_destroy__ = _IMP_display.delete_Color
506 r"""get_red(Color self) -> double"""
507 return _IMP_display.Color_get_red(self)
510 r"""get_green(Color self) -> double"""
511 return _IMP_display.Color_get_green(self)
514 r"""get_blue(Color self) -> double"""
515 return _IMP_display.Color_get_blue(self)
517 def show(self, *args):
519 show(Color self, _ostream out, std::string delim)
520 show(Color self, _ostream out=std::cout)
522 return _IMP_display.Color_show(self, *args)
524 def __cmp__(self, o):
525 r"""__cmp__(Color self, Color o) -> int"""
526 return _IMP_display.Color___cmp__(self, o)
529 r"""__eq__(Color self, Color o) -> bool"""
530 return _IMP_display.Color___eq__(self, o)
533 r"""__ne__(Color self, Color o) -> bool"""
534 return _IMP_display.Color___ne__(self, o)
537 r"""__lt__(Color self, Color o) -> bool"""
538 return _IMP_display.Color___lt__(self, o)
541 r"""__gt__(Color self, Color o) -> bool"""
542 return _IMP_display.Color___gt__(self, o)
545 r"""__ge__(Color self, Color o) -> bool"""
546 return _IMP_display.Color___ge__(self, o)
549 r"""__le__(Color self, Color o) -> bool"""
550 return _IMP_display.Color___le__(self, o)
553 r"""__str__(Color self) -> std::string"""
554 return _IMP_display.Color___str__(self)
557 r"""__repr__(Color self) -> std::string"""
558 return _IMP_display.Color___repr__(self)
560 def _get_as_binary(self):
561 r"""_get_as_binary(Color self) -> PyObject *"""
562 return _IMP_display.Color__get_as_binary(self)
564 def _set_from_binary(self, p):
565 r"""_set_from_binary(Color self, PyObject * p)"""
566 return _IMP_display.Color__set_from_binary(self, p)
568 def __getstate__(self):
569 p = self._get_as_binary()
570 if len(self.__dict__) > 1:
571 d = self.__dict__.copy()
576 def __setstate__(self, p):
577 if not hasattr(self,
'this'):
579 if isinstance(p, tuple):
581 self.__dict__.update(d)
582 return self._set_from_binary(p)
586 _IMP_display.Color_swigregister(Color)
589 r"""get_display_color(unsigned int i) -> Color"""
590 return _IMP_display.get_display_color(i)
593 r"""get_interpolated_rgb(Color a, Color b, double f) -> Color"""
594 return _IMP_display.get_interpolated_rgb(a, b, f)
597 r"""get_linear_color_map_value(double min, double max, double value) -> double"""
598 return _IMP_display.get_linear_color_map_value(min, max, value)
601 r"""get_jet_color(double f) -> Color"""
602 return _IMP_display.get_jet_color(f)
605 r"""get_hot_color(double f) -> Color"""
606 return _IMP_display.get_hot_color(f)
609 r"""get_rgb_color(double f) -> Color"""
610 return _IMP_display.get_rgb_color(f)
613 r"""get_gray_color(double f) -> Color"""
614 return _IMP_display.get_gray_color(f)
617 r"""get_gnuplot_color(double f) -> Color"""
618 return _IMP_display.get_gnuplot_color(f)
620 r"""Proxy of C++ IMP::display::Geometry class."""
622 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
624 def __init__(self, *args):
626 __init__(Geometry self, std::string name) -> Geometry
627 __init__(Geometry self, Color c, std::string name) -> Geometry
629 if self.__class__ == Geometry:
633 _IMP_display.Geometry_swiginit(self, _IMP_display.new_Geometry(_self, *args))
635 if self.__class__ != Geometry:
636 _director_objects.register(self)
642 r"""get_color(Geometry self) -> Color"""
643 return _IMP_display.Geometry_get_color(self)
645 def get_has_color(self):
646 r"""get_has_color(Geometry self) -> bool"""
647 return _IMP_display.Geometry_get_has_color(self)
649 def set_has_color(self, tf):
650 r"""set_has_color(Geometry self, bool tf)"""
651 return _IMP_display.Geometry_set_has_color(self, tf)
653 def set_color(self, c):
654 r"""set_color(Geometry self, Color c)"""
655 return _IMP_display.Geometry_set_color(self, c)
657 def get_components(self):
658 r"""get_components(Geometry self) -> IMP::display::Geometries"""
659 return _IMP_display.Geometry_get_components(self)
660 __swig_destroy__ = _IMP_display.delete_Geometry
663 r"""__str__(Geometry self) -> std::string"""
664 return _IMP_display.Geometry___str__(self)
667 r"""__repr__(Geometry self) -> std::string"""
668 return _IMP_display.Geometry___repr__(self)
672 return _object_cast_to_Geometry(o)
675 def do_show(self, out):
680 return _object_cast_to_Geometry(o)
682 def __disown__(self):
684 _IMP_display.disown_Geometry(self)
685 return weakref.proxy(self)
687 def do_destroy(self):
688 r"""do_destroy(Geometry self)"""
689 return _IMP_display.Geometry_do_destroy(self)
692 _IMP_display.Geometry_swigregister(Geometry)
693 class GeometrySet(Geometry):
694 r"""Proxy of C++ IMP::display::GeometrySet class."""
696 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
698 def __init__(self, *args):
700 __init__(GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
701 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
702 __init__(GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
703 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
705 _IMP_display.GeometrySet_swiginit(self, _IMP_display.new_GeometrySet(*args))
707 def get_geometry(self):
708 r"""get_geometry(GeometrySet self) -> IMP::display::Geometries"""
709 return _IMP_display.GeometrySet_get_geometry(self)
711 def get_version_info(self):
712 r"""get_version_info(GeometrySet self) -> VersionInfo"""
713 return _IMP_display.GeometrySet_get_version_info(self)
714 __swig_destroy__ = _IMP_display.delete_GeometrySet
717 r"""__str__(GeometrySet self) -> std::string"""
718 return _IMP_display.GeometrySet___str__(self)
721 r"""__repr__(GeometrySet self) -> std::string"""
722 return _IMP_display.GeometrySet___repr__(self)
726 return _object_cast_to_GeometrySet(o)
730 _IMP_display.GeometrySet_swigregister(GeometrySet)
731 class SphereGeometry(Geometry):
732 r"""Proxy of C++ IMP::display::SphereGeometry class."""
734 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
736 def __init__(self, *args):
738 __init__(SphereGeometry self, Sphere3D v) -> SphereGeometry
739 __init__(SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
740 __init__(SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
741 __init__(SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
743 _IMP_display.SphereGeometry_swiginit(self, _IMP_display.new_SphereGeometry(*args))
745 def get_geometry(self):
746 r"""get_geometry(SphereGeometry self) -> Sphere3D"""
747 return _IMP_display.SphereGeometry_get_geometry(self)
749 def set_geometry(self, v):
750 r"""set_geometry(SphereGeometry self, Sphere3D v)"""
751 return _IMP_display.SphereGeometry_set_geometry(self, v)
753 def get_version_info(self):
754 r"""get_version_info(SphereGeometry self) -> VersionInfo"""
755 return _IMP_display.SphereGeometry_get_version_info(self)
756 __swig_destroy__ = _IMP_display.delete_SphereGeometry
759 r"""__str__(SphereGeometry self) -> std::string"""
760 return _IMP_display.SphereGeometry___str__(self)
763 r"""__repr__(SphereGeometry self) -> std::string"""
764 return _IMP_display.SphereGeometry___repr__(self)
768 return _object_cast_to_SphereGeometry(o)
772 _IMP_display.SphereGeometry_swigregister(SphereGeometry)
773 class CylinderGeometry(Geometry):
774 r"""Proxy of C++ IMP::display::CylinderGeometry class."""
776 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
778 def __init__(self, *args):
780 __init__(CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
781 __init__(CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
782 __init__(CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
783 __init__(CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
785 _IMP_display.CylinderGeometry_swiginit(self, _IMP_display.new_CylinderGeometry(*args))
787 def get_geometry(self):
788 r"""get_geometry(CylinderGeometry self) -> Cylinder3D"""
789 return _IMP_display.CylinderGeometry_get_geometry(self)
791 def set_geometry(self, v):
792 r"""set_geometry(CylinderGeometry self, Cylinder3D v)"""
793 return _IMP_display.CylinderGeometry_set_geometry(self, v)
795 def get_version_info(self):
796 r"""get_version_info(CylinderGeometry self) -> VersionInfo"""
797 return _IMP_display.CylinderGeometry_get_version_info(self)
798 __swig_destroy__ = _IMP_display.delete_CylinderGeometry
801 r"""__str__(CylinderGeometry self) -> std::string"""
802 return _IMP_display.CylinderGeometry___str__(self)
805 r"""__repr__(CylinderGeometry self) -> std::string"""
806 return _IMP_display.CylinderGeometry___repr__(self)
810 return _object_cast_to_CylinderGeometry(o)
814 _IMP_display.CylinderGeometry_swigregister(CylinderGeometry)
815 class EllipsoidGeometry(Geometry):
816 r"""Proxy of C++ IMP::display::EllipsoidGeometry class."""
818 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
820 def __init__(self, *args):
822 __init__(EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
823 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
824 __init__(EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
825 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
827 _IMP_display.EllipsoidGeometry_swiginit(self, _IMP_display.new_EllipsoidGeometry(*args))
829 def get_geometry(self):
830 r"""get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
831 return _IMP_display.EllipsoidGeometry_get_geometry(self)
833 def set_geometry(self, v):
834 r"""set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
835 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
837 def get_version_info(self):
838 r"""get_version_info(EllipsoidGeometry self) -> VersionInfo"""
839 return _IMP_display.EllipsoidGeometry_get_version_info(self)
840 __swig_destroy__ = _IMP_display.delete_EllipsoidGeometry
843 r"""__str__(EllipsoidGeometry self) -> std::string"""
844 return _IMP_display.EllipsoidGeometry___str__(self)
847 r"""__repr__(EllipsoidGeometry self) -> std::string"""
848 return _IMP_display.EllipsoidGeometry___repr__(self)
852 return _object_cast_to_EllipsoidGeometry(o)
856 _IMP_display.EllipsoidGeometry_swigregister(EllipsoidGeometry)
857 class PointGeometry(Geometry):
858 r"""Proxy of C++ IMP::display::PointGeometry class."""
860 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
862 def __init__(self, *args):
864 __init__(PointGeometry self, Vector3D v) -> PointGeometry
865 __init__(PointGeometry self, Vector3D v, Color c) -> PointGeometry
866 __init__(PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
867 __init__(PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
869 _IMP_display.PointGeometry_swiginit(self, _IMP_display.new_PointGeometry(*args))
871 def get_geometry(self):
872 r"""get_geometry(PointGeometry self) -> Vector3D"""
873 return _IMP_display.PointGeometry_get_geometry(self)
875 def set_geometry(self, v):
876 r"""set_geometry(PointGeometry self, Vector3D v)"""
877 return _IMP_display.PointGeometry_set_geometry(self, v)
879 def get_version_info(self):
880 r"""get_version_info(PointGeometry self) -> VersionInfo"""
881 return _IMP_display.PointGeometry_get_version_info(self)
882 __swig_destroy__ = _IMP_display.delete_PointGeometry
885 r"""__str__(PointGeometry self) -> std::string"""
886 return _IMP_display.PointGeometry___str__(self)
889 r"""__repr__(PointGeometry self) -> std::string"""
890 return _IMP_display.PointGeometry___repr__(self)
894 return _object_cast_to_PointGeometry(o)
898 _IMP_display.PointGeometry_swigregister(PointGeometry)
899 class SegmentGeometry(Geometry):
900 r"""Proxy of C++ IMP::display::SegmentGeometry class."""
902 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
904 def __init__(self, *args):
906 __init__(SegmentGeometry self, Segment3D v) -> SegmentGeometry
907 __init__(SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
908 __init__(SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
909 __init__(SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
911 _IMP_display.SegmentGeometry_swiginit(self, _IMP_display.new_SegmentGeometry(*args))
913 def get_geometry(self):
914 r"""get_geometry(SegmentGeometry self) -> Segment3D"""
915 return _IMP_display.SegmentGeometry_get_geometry(self)
917 def set_geometry(self, v):
918 r"""set_geometry(SegmentGeometry self, Segment3D v)"""
919 return _IMP_display.SegmentGeometry_set_geometry(self, v)
921 def get_version_info(self):
922 r"""get_version_info(SegmentGeometry self) -> VersionInfo"""
923 return _IMP_display.SegmentGeometry_get_version_info(self)
924 __swig_destroy__ = _IMP_display.delete_SegmentGeometry
927 r"""__str__(SegmentGeometry self) -> std::string"""
928 return _IMP_display.SegmentGeometry___str__(self)
931 r"""__repr__(SegmentGeometry self) -> std::string"""
932 return _IMP_display.SegmentGeometry___repr__(self)
936 return _object_cast_to_SegmentGeometry(o)
940 _IMP_display.SegmentGeometry_swigregister(SegmentGeometry)
941 class PolygonGeometry(Geometry):
942 r"""Proxy of C++ IMP::display::PolygonGeometry class."""
944 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
946 def __init__(self, *args):
948 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
949 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
950 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
951 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
953 _IMP_display.PolygonGeometry_swiginit(self, _IMP_display.new_PolygonGeometry(*args))
955 def get_geometry(self):
956 r"""get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
957 return _IMP_display.PolygonGeometry_get_geometry(self)
959 def set_geometry(self, v):
960 r"""set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
961 return _IMP_display.PolygonGeometry_set_geometry(self, v)
963 def get_version_info(self):
964 r"""get_version_info(PolygonGeometry self) -> VersionInfo"""
965 return _IMP_display.PolygonGeometry_get_version_info(self)
966 __swig_destroy__ = _IMP_display.delete_PolygonGeometry
969 r"""__str__(PolygonGeometry self) -> std::string"""
970 return _IMP_display.PolygonGeometry___str__(self)
973 r"""__repr__(PolygonGeometry self) -> std::string"""
974 return _IMP_display.PolygonGeometry___repr__(self)
978 return _object_cast_to_PolygonGeometry(o)
982 _IMP_display.PolygonGeometry_swigregister(PolygonGeometry)
983 class TriangleGeometry(Geometry):
984 r"""Proxy of C++ IMP::display::TriangleGeometry class."""
986 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
988 def __init__(self, *args):
990 __init__(TriangleGeometry self, Triangle3D v) -> TriangleGeometry
991 __init__(TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
992 __init__(TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
993 __init__(TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
995 _IMP_display.TriangleGeometry_swiginit(self, _IMP_display.new_TriangleGeometry(*args))
997 def get_geometry(self):
998 r"""get_geometry(TriangleGeometry self) -> Triangle3D"""
999 return _IMP_display.TriangleGeometry_get_geometry(self)
1001 def set_geometry(self, v):
1002 r"""set_geometry(TriangleGeometry self, Triangle3D v)"""
1003 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1005 def get_version_info(self):
1006 r"""get_version_info(TriangleGeometry self) -> VersionInfo"""
1007 return _IMP_display.TriangleGeometry_get_version_info(self)
1008 __swig_destroy__ = _IMP_display.delete_TriangleGeometry
1011 r"""__str__(TriangleGeometry self) -> std::string"""
1012 return _IMP_display.TriangleGeometry___str__(self)
1015 r"""__repr__(TriangleGeometry self) -> std::string"""
1016 return _IMP_display.TriangleGeometry___repr__(self)
1020 return _object_cast_to_TriangleGeometry(o)
1024 _IMP_display.TriangleGeometry_swigregister(TriangleGeometry)
1025 class BoundingBoxGeometry(Geometry):
1026 r"""Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1028 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1030 def __init__(self, *args):
1032 __init__(BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1033 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1034 __init__(BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1035 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1037 _IMP_display.BoundingBoxGeometry_swiginit(self, _IMP_display.new_BoundingBoxGeometry(*args))
1039 def get_geometry(self):
1040 r"""get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1041 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1043 def set_geometry(self, v):
1044 r"""set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1045 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1047 def get_version_info(self):
1048 r"""get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1049 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1050 __swig_destroy__ = _IMP_display.delete_BoundingBoxGeometry
1053 r"""__str__(BoundingBoxGeometry self) -> std::string"""
1054 return _IMP_display.BoundingBoxGeometry___str__(self)
1057 r"""__repr__(BoundingBoxGeometry self) -> std::string"""
1058 return _IMP_display.BoundingBoxGeometry___repr__(self)
1062 return _object_cast_to_BoundingBoxGeometry(o)
1066 _IMP_display.BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1067 class ReferenceFrameGeometry(Geometry):
1068 r"""Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1070 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1072 def __init__(self, *args):
1074 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1075 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1076 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1077 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1079 _IMP_display.ReferenceFrameGeometry_swiginit(self, _IMP_display.new_ReferenceFrameGeometry(*args))
1081 def get_geometry(self):
1082 r"""get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1083 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1085 def set_geometry(self, v):
1086 r"""set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1087 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1089 def get_version_info(self):
1090 r"""get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1091 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1092 __swig_destroy__ = _IMP_display.delete_ReferenceFrameGeometry
1095 r"""__str__(ReferenceFrameGeometry self) -> std::string"""
1096 return _IMP_display.ReferenceFrameGeometry___str__(self)
1099 r"""__repr__(ReferenceFrameGeometry self) -> std::string"""
1100 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1104 return _object_cast_to_ReferenceFrameGeometry(o)
1108 _IMP_display.ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1112 create_geometry(Sphere3D t, std::string name="algebra::Sphere3D"+"%1%") -> SphereGeometry
1113 create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D"+"%1%") -> CylinderGeometry
1114 create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D"+"%1%") -> EllipsoidGeometry
1115 create_geometry(Vector3D t, std::string name="algebra::Vector3D"+"%1%") -> PointGeometry
1116 create_geometry(Segment3D t, std::string name="algebra::Segment3D"+"%1%") -> SegmentGeometry
1117 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds"+"%1%") -> PolygonGeometry
1118 create_geometry(Triangle3D t, std::string name="algebra::Triangle3D"+"%1%") -> TriangleGeometry
1119 create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>"+"%1%") -> BoundingBoxGeometry
1120 create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D"+"%1%") -> ReferenceFrameGeometry
1122 return _IMP_display.create_geometry(*args)
1123 class LabelGeometry(Geometry):
1124 r"""Proxy of C++ IMP::display::LabelGeometry class."""
1126 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1128 def __init__(self, *args):
1130 __init__(LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1131 __init__(LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1133 _IMP_display.LabelGeometry_swiginit(self, _IMP_display.new_LabelGeometry(*args))
1136 r"""get_text(LabelGeometry self) -> std::string"""
1137 return _IMP_display.LabelGeometry_get_text(self)
1139 def get_location(self):
1140 r"""get_location(LabelGeometry self) -> Sphere3D"""
1141 return _IMP_display.LabelGeometry_get_location(self)
1143 def get_version_info(self):
1144 r"""get_version_info(LabelGeometry self) -> VersionInfo"""
1145 return _IMP_display.LabelGeometry_get_version_info(self)
1146 __swig_destroy__ = _IMP_display.delete_LabelGeometry
1149 r"""__str__(LabelGeometry self) -> std::string"""
1150 return _IMP_display.LabelGeometry___str__(self)
1153 r"""__repr__(LabelGeometry self) -> std::string"""
1154 return _IMP_display.LabelGeometry___repr__(self)
1158 return _object_cast_to_LabelGeometry(o)
1162 _IMP_display.LabelGeometry_swigregister(LabelGeometry)
1163 class SurfaceMeshGeometry(Geometry):
1164 r"""Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1166 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1168 def __init__(self, vertices, faces):
1169 r"""__init__(SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1170 _IMP_display.SurfaceMeshGeometry_swiginit(self, _IMP_display.new_SurfaceMeshGeometry(vertices, faces))
1172 def get_vertexes(self):
1173 r"""get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1174 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1176 def get_faces(self):
1177 r"""get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1178 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1180 def get_version_info(self):
1181 r"""get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1182 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1183 __swig_destroy__ = _IMP_display.delete_SurfaceMeshGeometry
1186 r"""__str__(SurfaceMeshGeometry self) -> std::string"""
1187 return _IMP_display.SurfaceMeshGeometry___str__(self)
1190 r"""__repr__(SurfaceMeshGeometry self) -> std::string"""
1191 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1195 return _object_cast_to_SurfaceMeshGeometry(o)
1199 _IMP_display.SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1200 class PlaneGeometry(Geometry):
1201 r"""Proxy of C++ IMP::display::PlaneGeometry class."""
1203 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1205 def __init__(self, loc, box):
1206 r"""__init__(PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1207 _IMP_display.PlaneGeometry_swiginit(self, _IMP_display.new_PlaneGeometry(loc, box))
1209 def get_version_info(self):
1210 r"""get_version_info(PlaneGeometry self) -> VersionInfo"""
1211 return _IMP_display.PlaneGeometry_get_version_info(self)
1212 __swig_destroy__ = _IMP_display.delete_PlaneGeometry
1215 r"""__str__(PlaneGeometry self) -> std::string"""
1216 return _IMP_display.PlaneGeometry___str__(self)
1219 r"""__repr__(PlaneGeometry self) -> std::string"""
1220 return _IMP_display.PlaneGeometry___repr__(self)
1224 return _object_cast_to_PlaneGeometry(o)
1228 _IMP_display.PlaneGeometry_swigregister(PlaneGeometry)
1229 class IsosurfaceGeometry(SurfaceMeshGeometry):
1230 r"""Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1232 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1234 def __init__(self, *args):
1236 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1237 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1239 _IMP_display.IsosurfaceGeometry_swiginit(self, _IMP_display.new_IsosurfaceGeometry(*args))
1242 r"""__str__(IsosurfaceGeometry self) -> std::string"""
1243 return _IMP_display.IsosurfaceGeometry___str__(self)
1246 r"""__repr__(IsosurfaceGeometry self) -> std::string"""
1247 return _IMP_display.IsosurfaceGeometry___repr__(self)
1251 return _object_cast_to_IsosurfaceGeometry(o)
1253 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1256 _IMP_display.IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1257 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1258 r"""Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1260 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1262 def __init__(self, balls):
1263 r"""__init__(SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1264 _IMP_display.SkinSurfaceGeometry_swiginit(self, _IMP_display.new_SkinSurfaceGeometry(balls))
1267 r"""__str__(SkinSurfaceGeometry self) -> std::string"""
1268 return _IMP_display.SkinSurfaceGeometry___str__(self)
1271 r"""__repr__(SkinSurfaceGeometry self) -> std::string"""
1272 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1276 return _object_cast_to_SkinSurfaceGeometry(o)
1278 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1281 _IMP_display.SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1282 class GeometryProcessor(object):
1283 r"""Proxy of C++ IMP::display::GeometryProcessor class."""
1285 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1286 __repr__ = _swig_repr
1289 r"""__init__(GeometryProcessor self) -> GeometryProcessor"""
1290 _IMP_display.GeometryProcessor_swiginit(self, _IMP_display.new_GeometryProcessor())
1293 _IMP_display.GeometryProcessor_swigregister(GeometryProcessor)
1295 r"""Proxy of C++ IMP::display::Writer class."""
1297 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1299 def __init__(self, name):
1300 r"""__init__(Writer self, std::string name) -> Writer"""
1301 if self.__class__ == Writer:
1305 _IMP_display.Writer_swiginit(self, _IMP_display.new_Writer(_self, name))
1307 if self.__class__ != Writer:
1308 _director_objects.register(self)
1312 __swig_destroy__ = _IMP_display.delete_Writer
1314 def set_frame(self, i):
1315 r"""set_frame(Writer self, unsigned int i)"""
1316 return _IMP_display.Writer_set_frame(self, i)
1318 def get_frame(self):
1319 r"""get_frame(Writer self) -> int"""
1320 return _IMP_display.Writer_get_frame(self)
1324 add_geometry(Writer self, Geometry g)
1325 add_geometry(Writer self, IMP::display::Geometries const & g)
1327 return _IMP_display.Writer_add_geometry(self, *args)
1330 r"""do_close(Writer self)"""
1331 return _IMP_display.Writer_do_close(self)
1334 r"""do_open(Writer self)"""
1335 return _IMP_display.Writer_do_open(self)
1337 def do_set_frame(self):
1338 r"""do_set_frame(Writer self)"""
1339 return _IMP_display.Writer_do_set_frame(self)
1342 r"""__str__(Writer self) -> std::string"""
1343 return _IMP_display.Writer___str__(self)
1346 r"""__repr__(Writer self) -> std::string"""
1347 return _IMP_display.Writer___repr__(self)
1351 return _object_cast_to_Writer(o)
1354 def do_show(self, out):
1359 return _object_cast_to_Writer(o)
1361 def __disown__(self):
1363 _IMP_display.disown_Writer(self)
1364 return weakref.proxy(self)
1366 def handle_sphere(self, arg0, arg1, arg2):
1367 r"""handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1368 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1370 def handle_cylinder(self, arg0, arg1, arg2):
1371 r"""handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1372 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1374 def handle_point(self, arg0, arg1, arg2):
1375 r"""handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1376 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1378 def handle_segment(self, arg0, arg1, arg2):
1379 r"""handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1380 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1382 def handle_polygon(self, arg0, arg1, arg2):
1383 r"""handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1384 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1386 def handle_triangle(self, arg0, arg1, arg2):
1387 r"""handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1388 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1390 def handle_surface_mesh(self, arg0, arg1, arg2):
1391 r"""handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1392 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1394 def handle_label(self, arg0, arg1, arg2):
1395 r"""handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1396 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1398 def handle_ellipsoid(self, arg0, arg1, arg2):
1399 r"""handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1400 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1402 def handle_bounding_box(self, arg0, arg1, arg2):
1403 r"""handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1404 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1406 def handle_anything(self, arg0, arg1, arg2):
1407 r"""handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1408 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1410 def do_destroy(self):
1411 r"""do_destroy(Writer self)"""
1412 return _IMP_display.Writer_do_destroy(self)
1415 _IMP_display.Writer_swigregister(Writer)
1416 class TextWriter(Writer):
1417 r"""Proxy of C++ IMP::display::TextWriter class."""
1419 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1422 r"""open(TextWriter self)"""
1423 return _IMP_display.TextWriter_open(self)
1425 def get_stream(self):
1426 r"""get_stream(TextWriter self) -> _ostream"""
1427 return _IMP_display.TextWriter_get_stream(self)
1429 def do_set_frame(self):
1430 r"""do_set_frame(TextWriter self)"""
1431 return _IMP_display.TextWriter_do_set_frame(self)
1433 def __init__(self, *args):
1435 __init__(TextWriter self, TextOutput fn) -> TextWriter
1436 __init__(TextWriter self, std::string name) -> TextWriter
1438 if self.__class__ == TextWriter:
1442 _IMP_display.TextWriter_swiginit(self, _IMP_display.new_TextWriter(_self, *args))
1444 if self.__class__ != TextWriter:
1445 _director_objects.register(self)
1450 def get_current_file_name(self):
1451 r"""get_current_file_name(TextWriter self) -> std::string"""
1452 return _IMP_display.TextWriter_get_current_file_name(self)
1453 __swig_destroy__ = _IMP_display.delete_TextWriter
1456 r"""__str__(TextWriter self) -> std::string"""
1457 return _IMP_display.TextWriter___str__(self)
1460 r"""__repr__(TextWriter self) -> std::string"""
1461 return _IMP_display.TextWriter___repr__(self)
1465 return _object_cast_to_TextWriter(o)
1468 def do_show(self, out):
1473 return _object_cast_to_TextWriter(o)
1475 def __disown__(self):
1477 _IMP_display.disown_TextWriter(self)
1478 return weakref.proxy(self)
1480 def handle_sphere(self, arg0, arg1, arg2):
1481 r"""handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1482 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1484 def handle_cylinder(self, arg0, arg1, arg2):
1485 r"""handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1486 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1488 def handle_point(self, arg0, arg1, arg2):
1489 r"""handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1490 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1492 def handle_segment(self, arg0, arg1, arg2):
1493 r"""handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1494 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1496 def handle_polygon(self, arg0, arg1, arg2):
1497 r"""handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1498 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1500 def handle_triangle(self, arg0, arg1, arg2):
1501 r"""handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1502 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1504 def handle_surface_mesh(self, arg0, arg1, arg2):
1505 r"""handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1506 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1508 def handle_label(self, arg0, arg1, arg2):
1509 r"""handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1510 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1512 def handle_ellipsoid(self, arg0, arg1, arg2):
1513 r"""handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1514 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1516 def handle_bounding_box(self, arg0, arg1, arg2):
1517 r"""handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1518 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1520 def handle_anything(self, arg0, arg1, arg2):
1521 r"""handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1522 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1524 def do_destroy(self):
1525 r"""do_destroy(TextWriter self)"""
1526 return _IMP_display.TextWriter_do_destroy(self)
1529 r"""do_close(TextWriter self)"""
1530 return _IMP_display.TextWriter_do_close(self)
1533 r"""do_open(TextWriter self)"""
1534 return _IMP_display.TextWriter_do_open(self)
1537 _IMP_display.TextWriter_swigregister(TextWriter)
1540 r"""create_writer(std::string filename) -> Writer"""
1541 return _IMP_display.create_writer(filename)
1542 class WriterAdaptor(IMP._InputAdaptor):
1543 r"""Proxy of C++ IMP::display::WriterAdaptor class."""
1545 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1547 def __init__(self, *args):
1549 __init__(WriterAdaptor self, std::string name) -> WriterAdaptor
1550 __init__(WriterAdaptor self, Writer w) -> WriterAdaptor
1552 _IMP_display.WriterAdaptor_swiginit(self, _IMP_display.new_WriterAdaptor(*args))
1554 def get_writer(self):
1555 r"""get_writer(WriterAdaptor self) -> Writer"""
1556 return _IMP_display.WriterAdaptor_get_writer(self)
1558 def show(self, *args):
1559 r"""show(WriterAdaptor self, _ostream out=std::cout)"""
1560 return _IMP_display.WriterAdaptor_show(self, *args)
1561 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1564 r"""__str__(WriterAdaptor self) -> std::string"""
1565 return _IMP_display.WriterAdaptor___str__(self)
1568 r"""__repr__(WriterAdaptor self) -> std::string"""
1569 return _IMP_display.WriterAdaptor___repr__(self)
1572 _IMP_display.WriterAdaptor_swigregister(WriterAdaptor)
1574 r"""Proxy of C++ IMP::display::Colored class."""
1576 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1578 def set_color(self, c):
1579 r"""set_color(Colored self, Color c)"""
1580 return _IMP_display.Colored_set_color(self, c)
1582 def get_color(self):
1583 r"""get_color(Colored self) -> Color"""
1584 return _IMP_display.Colored_get_color(self)
1587 def get_color_keys():
1588 r"""get_color_keys() -> IMP::FloatKeys const &"""
1589 return _IMP_display.Colored_get_color_keys()
1591 def __init__(self, *args):
1593 __init__(Colored self) -> Colored
1594 __init__(Colored self, Model m, ParticleIndex id) -> Colored
1595 __init__(Colored self, _ParticleAdaptor d) -> Colored
1597 _IMP_display.Colored_swiginit(self, _IMP_display.new_Colored(*args))
1600 def get_is_setup(*args):
1602 get_is_setup(Model m, ParticleIndex pi) -> bool
1603 get_is_setup(_ParticleAdaptor p) -> bool
1605 return _IMP_display.Colored_get_is_setup(*args)
1607 def show(self, *args):
1608 r"""show(Colored self, _ostream out=std::cout)"""
1609 return _IMP_display.Colored_show(self, *args)
1612 def setup_particle(*args):
1614 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1615 setup_particle(_ParticleAdaptor pa, Color color) -> Colored
1617 return _IMP_display.Colored_setup_particle(*args)
1619 def add_attribute(self, *args):
1621 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1622 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1623 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1624 add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1625 add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1626 add_attribute(Colored self, StringKey a0, IMP::String a1)
1627 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1628 add_attribute(Colored self, ObjectKey a0, Object a1)
1629 add_attribute(Colored self, SparseFloatKey a0, IMP::Float a1)
1630 add_attribute(Colored self, SparseIntKey a0, IMP::Int a1)
1631 add_attribute(Colored self, SparseStringKey a0, IMP::String a1)
1632 add_attribute(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1634 return _IMP_display.Colored_add_attribute(self, *args)
1636 def get_value(self, *args):
1638 get_value(Colored self, FloatKey a0) -> IMP::Float
1639 get_value(Colored self, IntKey a0) -> IMP::Int
1640 get_value(Colored self, FloatsKey a0) -> IMP::Floats
1641 get_value(Colored self, IntsKey a0) -> IMP::Ints
1642 get_value(Colored self, StringKey a0) -> IMP::String
1643 get_value(Colored self, ParticleIndexKey a0) -> Particle
1644 get_value(Colored self, ObjectKey a0) -> Object
1645 get_value(Colored self, SparseFloatKey a0) -> IMP::Float
1646 get_value(Colored self, SparseIntKey a0) -> IMP::Int
1647 get_value(Colored self, SparseStringKey a0) -> IMP::String
1648 get_value(Colored self, SparseParticleIndexKey a0) -> ParticleIndex
1650 return _IMP_display.Colored_get_value(self, *args)
1652 def set_value(self, *args):
1654 set_value(Colored self, FloatKey a0, IMP::Float a1)
1655 set_value(Colored self, IntKey a0, IMP::Int a1)
1656 set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1657 set_value(Colored self, IntsKey a0, IMP::Ints a1)
1658 set_value(Colored self, StringKey a0, IMP::String a1)
1659 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1660 set_value(Colored self, ObjectKey a0, Object a1)
1661 set_value(Colored self, SparseFloatKey a0, IMP::Float a1)
1662 set_value(Colored self, SparseIntKey a0, IMP::Int a1)
1663 set_value(Colored self, SparseStringKey a0, IMP::String a1)
1664 set_value(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1666 return _IMP_display.Colored_set_value(self, *args)
1668 def remove_attribute(self, *args):
1670 remove_attribute(Colored self, FloatKey a0)
1671 remove_attribute(Colored self, IntKey a0)
1672 remove_attribute(Colored self, FloatsKey a0)
1673 remove_attribute(Colored self, IntsKey a0)
1674 remove_attribute(Colored self, StringKey a0)
1675 remove_attribute(Colored self, ParticleIndexKey a0)
1676 remove_attribute(Colored self, ObjectKey a0)
1677 remove_attribute(Colored self, SparseFloatKey a0)
1678 remove_attribute(Colored self, SparseIntKey a0)
1679 remove_attribute(Colored self, SparseStringKey a0)
1680 remove_attribute(Colored self, SparseParticleIndexKey a0)
1682 return _IMP_display.Colored_remove_attribute(self, *args)
1684 def has_attribute(self, *args):
1686 has_attribute(Colored self, FloatKey a0) -> bool
1687 has_attribute(Colored self, IntKey a0) -> bool
1688 has_attribute(Colored self, FloatsKey a0) -> bool
1689 has_attribute(Colored self, IntsKey a0) -> bool
1690 has_attribute(Colored self, StringKey a0) -> bool
1691 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1692 has_attribute(Colored self, ObjectKey a0) -> bool
1693 has_attribute(Colored self, SparseFloatKey a0) -> bool
1694 has_attribute(Colored self, SparseIntKey a0) -> bool
1695 has_attribute(Colored self, SparseStringKey a0) -> bool
1696 has_attribute(Colored self, SparseParticleIndexKey a0) -> bool
1698 return _IMP_display.Colored_has_attribute(self, *args)
1700 def get_derivative(self, a0):
1701 r"""get_derivative(Colored self, FloatKey a0) -> double"""
1702 return _IMP_display.Colored_get_derivative(self, a0)
1705 r"""get_name(Colored self) -> std::string"""
1706 return _IMP_display.Colored_get_name(self)
1708 def clear_caches(self):
1709 r"""clear_caches(Colored self)"""
1710 return _IMP_display.Colored_clear_caches(self)
1712 def set_name(self, a0):
1713 r"""set_name(Colored self, std::string a0)"""
1714 return _IMP_display.Colored_set_name(self, a0)
1717 r"""set_check_level(Colored self, IMP::CheckLevel a0)"""
1718 return _IMP_display.Colored_set_check_level(self, a0)
1720 def add_to_derivative(self, a0, a1, a2):
1721 r"""add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1722 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1724 def set_is_optimized(self, a0, a1):
1725 r"""set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1726 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1728 def get_is_optimized(self, a0):
1729 r"""get_is_optimized(Colored self, FloatKey a0) -> bool"""
1730 return _IMP_display.Colored_get_is_optimized(self, a0)
1733 r"""get_check_level(Colored self) -> IMP::CheckLevel"""
1734 return _IMP_display.Colored_get_check_level(self)
1736 def __eq__(self, *args):
1738 __eq__(Colored self, Colored o) -> bool
1739 __eq__(Colored self, Particle d) -> bool
1741 return _IMP_display.Colored___eq__(self, *args)
1743 def __ne__(self, *args):
1745 __ne__(Colored self, Colored o) -> bool
1746 __ne__(Colored self, Particle d) -> bool
1748 return _IMP_display.Colored___ne__(self, *args)
1750 def __le__(self, *args):
1752 __le__(Colored self, Colored o) -> bool
1753 __le__(Colored self, Particle d) -> bool
1755 return _IMP_display.Colored___le__(self, *args)
1757 def __lt__(self, *args):
1759 __lt__(Colored self, Colored o) -> bool
1760 __lt__(Colored self, Particle d) -> bool
1762 return _IMP_display.Colored___lt__(self, *args)
1764 def __ge__(self, *args):
1766 __ge__(Colored self, Colored o) -> bool
1767 __ge__(Colored self, Particle d) -> bool
1769 return _IMP_display.Colored___ge__(self, *args)
1771 def __gt__(self, *args):
1773 __gt__(Colored self, Colored o) -> bool
1774 __gt__(Colored self, Particle d) -> bool
1776 return _IMP_display.Colored___gt__(self, *args)
1779 r"""__hash__(Colored self) -> std::size_t"""
1780 return _IMP_display.Colored___hash__(self)
1783 r"""__str__(Colored self) -> std::string"""
1784 return _IMP_display.Colored___str__(self)
1787 r"""__repr__(Colored self) -> std::string"""
1788 return _IMP_display.Colored___repr__(self)
1790 def _get_as_binary(self):
1791 r"""_get_as_binary(Colored self) -> PyObject *"""
1792 return _IMP_display.Colored__get_as_binary(self)
1794 def _set_from_binary(self, p):
1795 r"""_set_from_binary(Colored self, PyObject * p)"""
1796 return _IMP_display.Colored__set_from_binary(self, p)
1798 def __getstate__(self):
1799 p = self._get_as_binary()
1800 if len(self.__dict__) > 1:
1801 d = self.__dict__.copy()
1806 def __setstate__(self, p):
1807 if not hasattr(self,
'this'):
1809 if isinstance(p, tuple):
1811 self.__dict__.update(d)
1812 return self._set_from_binary(p)
1814 __swig_destroy__ = _IMP_display.delete_Colored
1817 _IMP_display.Colored_swigregister(Colored)
1819 def __lshift__(out, n):
1820 r"""__lshift__(_ostream out, Colored n) -> _ostream"""
1821 return _IMP_display.__lshift__(out, n)
1822 class FilterGeometry(GeometryProcessor, Geometry):
1823 r"""Proxy of C++ IMP::display::FilterGeometry class."""
1825 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1827 def __init__(self, p):
1828 r"""__init__(FilterGeometry self, Plane3D p) -> FilterGeometry"""
1829 _IMP_display.FilterGeometry_swiginit(self, _IMP_display.new_FilterGeometry(p))
1833 add_geometry(FilterGeometry self, Geometry g)
1834 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1836 return _IMP_display.FilterGeometry_add_geometry(self, *args)
1838 def get_version_info(self):
1839 r"""get_version_info(FilterGeometry self) -> VersionInfo"""
1840 return _IMP_display.FilterGeometry_get_version_info(self)
1841 __swig_destroy__ = _IMP_display.delete_FilterGeometry
1844 r"""__str__(FilterGeometry self) -> std::string"""
1845 return _IMP_display.FilterGeometry___str__(self)
1848 r"""__repr__(FilterGeometry self) -> std::string"""
1849 return _IMP_display.FilterGeometry___repr__(self)
1853 return _object_cast_to_FilterGeometry(o)
1857 _IMP_display.FilterGeometry_swigregister(FilterGeometry)
1859 r"""Proxy of C++ IMP::display::WriteOptimizerState class."""
1861 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1863 def __init__(self, m, w):
1864 r"""__init__(WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1865 _IMP_display.WriteOptimizerState_swiginit(self, _IMP_display.new_WriteOptimizerState(m, w))
1868 r"""write(WriteOptimizerState self, WriterAdaptor w)"""
1869 return _IMP_display.WriteOptimizerState_write(self, w)
1870 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)
1871 def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
1872 def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
1873 geometries = property(__get_geometries, __set_geometries, __del_geometries, doc=
"List of ##ucnames")
1875 def remove_geometry(self, d):
1876 r"""remove_geometry(WriteOptimizerState self, Geometry d)"""
1877 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
1879 def _python_index_geometry(self, d, start, stop):
1880 r"""_python_index_geometry(WriteOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1881 return _IMP_display.WriteOptimizerState__python_index_geometry(self, d, start, stop)
1883 def remove_geometries(self, d):
1884 r"""remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1885 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
1887 def set_geometries(self, ps):
1888 r"""set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1889 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
1891 def set_geometries_order(self, objs):
1892 r"""set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1893 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
1896 r"""add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1897 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
1900 r"""add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1901 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
1903 def clear_geometries(self):
1904 r"""clear_geometries(WriteOptimizerState self)"""
1905 return _IMP_display.WriteOptimizerState_clear_geometries(self)
1907 def get_number_of_geometries(self):
1908 r"""get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1909 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1911 def get_has_geometries(self):
1912 r"""get_has_geometries(WriteOptimizerState self) -> bool"""
1913 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1915 def get_geometry(self, i):
1916 r"""get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1917 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
1919 def get_geometries(self):
1920 r"""get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1921 return _IMP_display.WriteOptimizerState_get_geometries(self)
1923 def erase_geometry(self, i):
1924 r"""erase_geometry(WriteOptimizerState self, unsigned int i)"""
1925 return _IMP_display.WriteOptimizerState_erase_geometry(self, i)
1927 def reserve_geometries(self, sz):
1928 r"""reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1929 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
1931 def get_version_info(self):
1932 r"""get_version_info(WriteOptimizerState self) -> VersionInfo"""
1933 return _IMP_display.WriteOptimizerState_get_version_info(self)
1934 __swig_destroy__ = _IMP_display.delete_WriteOptimizerState
1937 r"""__str__(WriteOptimizerState self) -> std::string"""
1938 return _IMP_display.WriteOptimizerState___str__(self)
1941 r"""__repr__(WriteOptimizerState self) -> std::string"""
1942 return _IMP_display.WriteOptimizerState___repr__(self)
1946 return _object_cast_to_WriteOptimizerState(o)
1950 _IMP_display.WriteOptimizerState_swigregister(WriteOptimizerState)
1951 class SingletonGeometry(Geometry):
1952 r"""Proxy of C++ IMP::display::SingletonGeometry class."""
1954 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1956 def __init__(self, p):
1957 r"""__init__(SingletonGeometry self, Particle p) -> SingletonGeometry"""
1958 _IMP_display.SingletonGeometry_swiginit(self, _IMP_display.new_SingletonGeometry(p))
1960 def get_particle(self):
1961 r"""get_particle(SingletonGeometry self) -> Particle"""
1962 return _IMP_display.SingletonGeometry_get_particle(self)
1963 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1966 r"""__str__(SingletonGeometry self) -> std::string"""
1967 return _IMP_display.SingletonGeometry___str__(self)
1970 r"""__repr__(SingletonGeometry self) -> std::string"""
1971 return _IMP_display.SingletonGeometry___repr__(self)
1975 return _object_cast_to_SingletonGeometry(o)
1979 _IMP_display.SingletonGeometry_swigregister(SingletonGeometry)
1980 class SingletonsGeometry(Geometry):
1981 r"""Proxy of C++ IMP::display::SingletonsGeometry class."""
1983 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1985 def __init__(self, *args):
1987 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
1988 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
1990 _IMP_display.SingletonsGeometry_swiginit(self, _IMP_display.new_SingletonsGeometry(*args))
1992 def get_container(self):
1993 r"""get_container(SingletonsGeometry self) -> SingletonContainer"""
1994 return _IMP_display.SingletonsGeometry_get_container(self)
1995 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
1998 r"""__str__(SingletonsGeometry self) -> std::string"""
1999 return _IMP_display.SingletonsGeometry___str__(self)
2002 r"""__repr__(SingletonsGeometry self) -> std::string"""
2003 return _IMP_display.SingletonsGeometry___repr__(self)
2007 return _object_cast_to_SingletonsGeometry(o)
2011 _IMP_display.SingletonsGeometry_swigregister(SingletonsGeometry)
2012 class PairGeometry(Geometry):
2013 r"""Proxy of C++ IMP::display::PairGeometry class."""
2015 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2017 def __init__(self, pp):
2018 r"""__init__(PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2019 _IMP_display.PairGeometry_swiginit(self, _IMP_display.new_PairGeometry(pp))
2021 def get_particle_pair(self):
2022 r"""get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2023 return _IMP_display.PairGeometry_get_particle_pair(self)
2024 __swig_destroy__ = _IMP_display.delete_PairGeometry
2027 r"""__str__(PairGeometry self) -> std::string"""
2028 return _IMP_display.PairGeometry___str__(self)
2031 r"""__repr__(PairGeometry self) -> std::string"""
2032 return _IMP_display.PairGeometry___repr__(self)
2036 return _object_cast_to_PairGeometry(o)
2040 _IMP_display.PairGeometry_swigregister(PairGeometry)
2041 class PairsGeometry(Geometry):
2042 r"""Proxy of C++ IMP::display::PairsGeometry class."""
2044 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2046 def __init__(self, *args):
2048 __init__(PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2049 __init__(PairsGeometry self, PairContainer pc) -> PairsGeometry
2051 _IMP_display.PairsGeometry_swiginit(self, _IMP_display.new_PairsGeometry(*args))
2053 def get_container(self):
2054 r"""get_container(PairsGeometry self) -> PairContainer"""
2055 return _IMP_display.PairsGeometry_get_container(self)
2056 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2059 r"""__str__(PairsGeometry self) -> std::string"""
2060 return _IMP_display.PairsGeometry___str__(self)
2063 r"""__repr__(PairsGeometry self) -> std::string"""
2064 return _IMP_display.PairsGeometry___repr__(self)
2068 return _object_cast_to_PairsGeometry(o)
2072 _IMP_display.PairsGeometry_swigregister(PairsGeometry)
2073 class PymolWriter(TextWriter):
2074 r"""Proxy of C++ IMP::display::PymolWriter class."""
2076 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2078 def __init__(self, *args):
2080 __init__(PymolWriter self, TextOutput of) -> PymolWriter
2081 __init__(PymolWriter self, std::string name) -> PymolWriter
2082 __init__(PymolWriter self, char const * name) -> PymolWriter
2084 _IMP_display.PymolWriter_swiginit(self, _IMP_display.new_PymolWriter(*args))
2086 def get_version_info(self):
2087 r"""get_version_info(PymolWriter self) -> VersionInfo"""
2088 return _IMP_display.PymolWriter_get_version_info(self)
2089 __swig_destroy__ = _IMP_display.delete_PymolWriter
2092 r"""__str__(PymolWriter self) -> std::string"""
2093 return _IMP_display.PymolWriter___str__(self)
2096 r"""__repr__(PymolWriter self) -> std::string"""
2097 return _IMP_display.PymolWriter___repr__(self)
2101 return _object_cast_to_PymolWriter(o)
2105 _IMP_display.PymolWriter_swigregister(PymolWriter)
2106 class RestraintGeometry(Geometry):
2107 r"""Proxy of C++ IMP::display::RestraintGeometry class."""
2109 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2111 def __init__(self, p):
2112 r"""__init__(RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2113 _IMP_display.RestraintGeometry_swiginit(self, _IMP_display.new_RestraintGeometry(p))
2115 def get_restraint(self):
2116 r"""get_restraint(RestraintGeometry self) -> Restraint"""
2117 return _IMP_display.RestraintGeometry_get_restraint(self)
2119 def get_version_info(self):
2120 r"""get_version_info(RestraintGeometry self) -> VersionInfo"""
2121 return _IMP_display.RestraintGeometry_get_version_info(self)
2122 __swig_destroy__ = _IMP_display.delete_RestraintGeometry
2125 r"""__str__(RestraintGeometry self) -> std::string"""
2126 return _IMP_display.RestraintGeometry___str__(self)
2129 r"""__repr__(RestraintGeometry self) -> std::string"""
2130 return _IMP_display.RestraintGeometry___repr__(self)
2134 return _object_cast_to_RestraintGeometry(o)
2138 _IMP_display.RestraintGeometry_swigregister(RestraintGeometry)
2139 class RestraintSetGeometry(Geometry):
2140 r"""Proxy of C++ IMP::display::RestraintSetGeometry class."""
2142 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2144 def __init__(self, p):
2145 r"""__init__(RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2146 _IMP_display.RestraintSetGeometry_swiginit(self, _IMP_display.new_RestraintSetGeometry(p))
2148 def get_restraint_set(self):
2149 r"""get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2150 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2152 def get_version_info(self):
2153 r"""get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2154 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2155 __swig_destroy__ = _IMP_display.delete_RestraintSetGeometry
2158 r"""__str__(RestraintSetGeometry self) -> std::string"""
2159 return _IMP_display.RestraintSetGeometry___str__(self)
2162 r"""__repr__(RestraintSetGeometry self) -> std::string"""
2163 return _IMP_display.RestraintSetGeometry___repr__(self)
2167 return _object_cast_to_RestraintSetGeometry(o)
2171 _IMP_display.RestraintSetGeometry_swigregister(RestraintSetGeometry)
2174 PivyWriter= _pivy.get_writer(Writer)
2175 _object_types.append(
'PivyWriter')
2178 def get_module_name():
2179 r"""get_module_name() -> std::string const"""
2180 return _IMP_display.get_module_name()
2183 r"""get_module_version() -> std::string const"""
2184 return _IMP_display.get_module_version()
2187 r"""get_example_path(std::string fname) -> std::string"""
2188 return _IMP_display.get_example_path(fname)
2191 r"""get_data_path(std::string fname) -> std::string"""
2192 return _IMP_display.get_data_path(fname)
2194 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.