11 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
19 import builtins
as __builtin__
25 strthis =
"proxy of " + self.this.__repr__()
26 except __builtin__.Exception:
28 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
31 def _swig_setattr_nondynamic_instance_variable(set):
32 def set_instance_attr(self, name, value):
34 set(self, name, value)
35 elif name ==
"thisown":
37 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
38 set(self, name, value)
40 raise AttributeError(
"You cannot add instance attributes to %s" % self)
41 return set_instance_attr
44 def _swig_setattr_nondynamic_class_variable(set):
45 def set_class_attr(cls, name, value):
46 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
49 raise AttributeError(
"You cannot add class attributes to %s" % cls)
53 def _swig_add_metaclass(metaclass):
54 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
56 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
60 class _SwigNonDynamicMeta(type):
61 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
67 class IMP_DISPLAY_SwigPyIterator(object):
68 r"""Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class."""
70 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
72 def __init__(self, *args, **kwargs):
73 raise AttributeError(
"No constructor defined - class is abstract")
75 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
78 r"""value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
79 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
82 r"""incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
83 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
86 r"""decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
87 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
89 def distance(self, x):
90 r"""distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
91 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
94 r"""equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
95 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
98 r"""copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
99 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
102 r"""next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
103 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
106 r"""__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
107 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
110 r"""previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
111 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
113 def advance(self, n):
114 r"""advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
115 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
118 r"""__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
119 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
122 r"""__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
123 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
125 def __iadd__(self, n):
126 r"""__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
127 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
129 def __isub__(self, n):
130 r"""__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
131 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
133 def __add__(self, n):
134 r"""__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
135 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
137 def __sub__(self, *args):
139 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
140 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
142 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
147 _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
154 IMP_DEBUG = _IMP_display.IMP_DEBUG
156 IMP_RELEASE = _IMP_display.IMP_RELEASE
158 IMP_SILENT = _IMP_display.IMP_SILENT
160 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
162 IMP_TERSE = _IMP_display.IMP_TERSE
164 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
166 IMP_MEMORY = _IMP_display.IMP_MEMORY
168 IMP_NONE = _IMP_display.IMP_NONE
170 IMP_USAGE = _IMP_display.IMP_USAGE
172 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_display.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_display.IMP_COMPILER_HAS_RANDOM_SHUFFLE
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_display.IMP_COMPILER_HAS_THREE_WAY
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
186 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
198 class _DirectorObjects(object):
199 """@internal Simple class to keep references to director objects
200 to prevent premature deletion."""
203 def register(self, obj):
204 """Take a reference to a director object; will only work for
205 refcounted C++ classes"""
206 if hasattr(obj,
'get_ref_count'):
207 self._objects.append(obj)
209 """Only drop our reference and allow cleanup by Python if no other
210 Python references exist (we hold 3 references: one in self._objects,
211 one in x, and one in the argument list for getrefcount) *and* no
212 other C++ references exist (the Python object always holds one)"""
213 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
214 or x.get_ref_count() > 1]
218 def get_object_count(self):
219 """Get number of director objects (useful for testing only)"""
220 return len(self._objects)
221 _director_objects = _DirectorObjects()
223 class _ostream(object):
224 r"""Proxy of C++ std::ostream class."""
226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
228 def __init__(self, *args, **kwargs):
229 raise AttributeError(
"No constructor defined")
230 __repr__ = _swig_repr
232 def write(self, osa_buf):
233 r"""write(_ostream self, char const * osa_buf)"""
234 return _IMP_display._ostream_write(self, osa_buf)
237 _IMP_display._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
249 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
251 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
264 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
268 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
281 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
283 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
285 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
287 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
290 _object_types.append(
"Writer")
293 def _object_cast_to_Writer(o):
294 r"""_object_cast_to_Writer(Object o) -> Writer"""
295 return _IMP_display._object_cast_to_Writer(o)
297 _object_types.append(
"TextWriter")
300 def _object_cast_to_TextWriter(o):
301 r"""_object_cast_to_TextWriter(Object o) -> TextWriter"""
302 return _IMP_display._object_cast_to_TextWriter(o)
304 _object_types.append(
"Geometry")
307 def _object_cast_to_Geometry(o):
308 r"""_object_cast_to_Geometry(Object o) -> Geometry"""
309 return _IMP_display._object_cast_to_Geometry(o)
311 _object_types.append(
"SingletonGeometry")
314 def _object_cast_to_SingletonGeometry(o):
315 r"""_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
316 return _IMP_display._object_cast_to_SingletonGeometry(o)
318 _object_types.append(
"PairGeometry")
321 def _object_cast_to_PairGeometry(o):
322 r"""_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
323 return _IMP_display._object_cast_to_PairGeometry(o)
325 _object_types.append(
"SingletonsGeometry")
328 def _object_cast_to_SingletonsGeometry(o):
329 r"""_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
330 return _IMP_display._object_cast_to_SingletonsGeometry(o)
332 _object_types.append(
"PairsGeometry")
335 def _object_cast_to_PairsGeometry(o):
336 r"""_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
337 return _IMP_display._object_cast_to_PairsGeometry(o)
339 _object_types.append(
"PymolWriter")
342 def _object_cast_to_PymolWriter(o):
343 r"""_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
344 return _IMP_display._object_cast_to_PymolWriter(o)
346 _object_types.append(
"SphereGeometry")
349 def _object_cast_to_SphereGeometry(o):
350 r"""_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
351 return _IMP_display._object_cast_to_SphereGeometry(o)
353 _object_types.append(
"CylinderGeometry")
356 def _object_cast_to_CylinderGeometry(o):
357 r"""_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
358 return _IMP_display._object_cast_to_CylinderGeometry(o)
360 _object_types.append(
"EllipsoidGeometry")
363 def _object_cast_to_EllipsoidGeometry(o):
364 r"""_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
365 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
367 _object_types.append(
"PointGeometry")
370 def _object_cast_to_PointGeometry(o):
371 r"""_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
372 return _IMP_display._object_cast_to_PointGeometry(o)
374 _object_types.append(
"SegmentGeometry")
377 def _object_cast_to_SegmentGeometry(o):
378 r"""_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
379 return _IMP_display._object_cast_to_SegmentGeometry(o)
381 _object_types.append(
"PolygonGeometry")
384 def _object_cast_to_PolygonGeometry(o):
385 r"""_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
386 return _IMP_display._object_cast_to_PolygonGeometry(o)
388 _object_types.append(
"ReferenceFrameGeometry")
391 def _object_cast_to_ReferenceFrameGeometry(o):
392 r"""_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
393 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
395 _object_types.append(
"BoundingBoxGeometry")
398 def _object_cast_to_BoundingBoxGeometry(o):
399 r"""_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
400 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
402 _object_types.append(
"LabelGeometry")
405 def _object_cast_to_LabelGeometry(o):
406 r"""_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
407 return _IMP_display._object_cast_to_LabelGeometry(o)
409 _object_types.append(
"RestraintGeometry")
412 def _object_cast_to_RestraintGeometry(o):
413 r"""_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
414 return _IMP_display._object_cast_to_RestraintGeometry(o)
416 _object_types.append(
"RestraintSetGeometry")
419 def _object_cast_to_RestraintSetGeometry(o):
420 r"""_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
421 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
423 _object_types.append(
"GeometrySet")
426 def _object_cast_to_GeometrySet(o):
427 r"""_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
428 return _IMP_display._object_cast_to_GeometrySet(o)
431 return [Colored(x)
for x
in l]
432 _plural_types.append(
"Coloreds")
435 _value_types.append(
"Colored")
439 _plural_types.append(
"Colors")
440 _value_types.append(
"Color")
444 _plural_types.append(
"WriterAdaptors")
445 _value_types.append(
"WriterAdaptor")
448 _object_types.append(
"FilterGeometry")
451 def _object_cast_to_FilterGeometry(o):
452 r"""_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
453 return _IMP_display._object_cast_to_FilterGeometry(o)
455 _object_types.append(
"WriteOptimizerState")
458 def _object_cast_to_WriteOptimizerState(o):
459 r"""_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
460 return _IMP_display._object_cast_to_WriteOptimizerState(o)
462 _object_types.append(
"TriangleGeometry")
465 def _object_cast_to_TriangleGeometry(o):
466 r"""_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
467 return _IMP_display._object_cast_to_TriangleGeometry(o)
469 _object_types.append(
"SurfaceMeshGeometry")
472 def _object_cast_to_SurfaceMeshGeometry(o):
473 r"""_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
474 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
476 _object_types.append(
"PlaneGeometry")
479 def _object_cast_to_PlaneGeometry(o):
480 r"""_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
481 return _IMP_display._object_cast_to_PlaneGeometry(o)
483 _object_types.append(
"IsosurfaceGeometry")
486 def _object_cast_to_IsosurfaceGeometry(o):
487 r"""_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
488 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
490 _object_types.append(
"SkinSurfaceGeometry")
493 def _object_cast_to_SkinSurfaceGeometry(o):
494 r"""_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
495 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
496 class Color(IMP._Value):
497 r"""Proxy of C++ IMP::display::Color class."""
499 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
501 def __init__(self, *args):
503 __init__(Color self, Color arg2) -> Color
504 __init__(Color self) -> Color
505 __init__(Color self, double r, double g, double b) -> Color
507 _IMP_display.Color_swiginit(self, _IMP_display.new_Color(*args))
508 __swig_destroy__ = _IMP_display.delete_Color
511 r"""get_red(Color self) -> double"""
512 return _IMP_display.Color_get_red(self)
515 r"""get_green(Color self) -> double"""
516 return _IMP_display.Color_get_green(self)
519 r"""get_blue(Color self) -> double"""
520 return _IMP_display.Color_get_blue(self)
522 def show(self, *args):
524 show(Color self, _ostream out, std::string delim)
525 show(Color self, _ostream out=std::cout)
527 return _IMP_display.Color_show(self, *args)
529 def __cmp__(self, o):
530 r"""__cmp__(Color self, Color o) -> int"""
531 return _IMP_display.Color___cmp__(self, o)
534 r"""__eq__(Color self, Color o) -> bool"""
535 return _IMP_display.Color___eq__(self, o)
538 r"""__ne__(Color self, Color o) -> bool"""
539 return _IMP_display.Color___ne__(self, o)
542 r"""__lt__(Color self, Color o) -> bool"""
543 return _IMP_display.Color___lt__(self, o)
546 r"""__gt__(Color self, Color o) -> bool"""
547 return _IMP_display.Color___gt__(self, o)
550 r"""__ge__(Color self, Color o) -> bool"""
551 return _IMP_display.Color___ge__(self, o)
554 r"""__le__(Color self, Color o) -> bool"""
555 return _IMP_display.Color___le__(self, o)
558 r"""__str__(Color self) -> std::string"""
559 return _IMP_display.Color___str__(self)
562 r"""__repr__(Color self) -> std::string"""
563 return _IMP_display.Color___repr__(self)
565 def _get_as_binary(self):
566 r"""_get_as_binary(Color self) -> PyObject *"""
567 return _IMP_display.Color__get_as_binary(self)
569 def _set_from_binary(self, p):
570 r"""_set_from_binary(Color self, PyObject * p)"""
571 return _IMP_display.Color__set_from_binary(self, p)
573 def __getstate__(self):
574 p = self._get_as_binary()
575 if len(self.__dict__) > 1:
576 d = self.__dict__.copy()
581 def __setstate__(self, p):
582 if not hasattr(self,
'this'):
584 if isinstance(p, tuple):
586 self.__dict__.update(d)
587 return self._set_from_binary(p)
591 _IMP_display.Color_swigregister(Color)
594 r"""get_display_color(unsigned int i) -> Color"""
595 return _IMP_display.get_display_color(i)
598 r"""get_interpolated_rgb(Color a, Color b, double f) -> Color"""
599 return _IMP_display.get_interpolated_rgb(a, b, f)
602 r"""get_linear_color_map_value(double min, double max, double value) -> double"""
603 return _IMP_display.get_linear_color_map_value(min, max, value)
606 r"""get_jet_color(double f) -> Color"""
607 return _IMP_display.get_jet_color(f)
610 r"""get_hot_color(double f) -> Color"""
611 return _IMP_display.get_hot_color(f)
614 r"""get_rgb_color(double f) -> Color"""
615 return _IMP_display.get_rgb_color(f)
618 r"""get_gray_color(double f) -> Color"""
619 return _IMP_display.get_gray_color(f)
622 r"""get_gnuplot_color(double f) -> Color"""
623 return _IMP_display.get_gnuplot_color(f)
625 r"""Proxy of C++ IMP::display::Geometry class."""
627 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
629 def __init__(self, *args):
631 __init__(Geometry self, std::string name) -> Geometry
632 __init__(Geometry self, Color c, std::string name) -> Geometry
634 if self.__class__ == Geometry:
638 _IMP_display.Geometry_swiginit(self, _IMP_display.new_Geometry(_self, *args))
640 if self.__class__ != Geometry:
641 _director_objects.register(self)
647 r"""get_color(Geometry self) -> Color"""
648 return _IMP_display.Geometry_get_color(self)
650 def get_has_color(self):
651 r"""get_has_color(Geometry self) -> bool"""
652 return _IMP_display.Geometry_get_has_color(self)
654 def set_has_color(self, tf):
655 r"""set_has_color(Geometry self, bool tf)"""
656 return _IMP_display.Geometry_set_has_color(self, tf)
658 def set_color(self, c):
659 r"""set_color(Geometry self, Color c)"""
660 return _IMP_display.Geometry_set_color(self, c)
662 def get_components(self):
663 r"""get_components(Geometry self) -> IMP::display::Geometries"""
664 return _IMP_display.Geometry_get_components(self)
665 __swig_destroy__ = _IMP_display.delete_Geometry
668 r"""__str__(Geometry self) -> std::string"""
669 return _IMP_display.Geometry___str__(self)
672 r"""__repr__(Geometry self) -> std::string"""
673 return _IMP_display.Geometry___repr__(self)
677 return _object_cast_to_Geometry(o)
680 def get_type_name(self):
681 return self.__class__.__name__
682 def do_show(self, out):
684 def get_version_info(self):
685 if"IMP::display" ==
"IMP":
686 return VersionInfo(self.__module__,
693 return _object_cast_to_Geometry(o)
695 def __disown__(self):
697 _IMP_display.disown_Geometry(self)
698 return weakref.proxy(self)
700 def do_destroy(self):
701 r"""do_destroy(Geometry self)"""
702 return _IMP_display.Geometry_do_destroy(self)
705 _IMP_display.Geometry_swigregister(Geometry)
706 class GeometrySet(Geometry):
707 r"""Proxy of C++ IMP::display::GeometrySet class."""
709 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
711 def __init__(self, *args):
713 __init__(GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
714 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
715 __init__(GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
716 __init__(GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
718 _IMP_display.GeometrySet_swiginit(self, _IMP_display.new_GeometrySet(*args))
720 def get_geometry(self):
721 r"""get_geometry(GeometrySet self) -> IMP::display::Geometries"""
722 return _IMP_display.GeometrySet_get_geometry(self)
724 def get_version_info(self):
725 r"""get_version_info(GeometrySet self) -> VersionInfo"""
726 return _IMP_display.GeometrySet_get_version_info(self)
727 __swig_destroy__ = _IMP_display.delete_GeometrySet
730 r"""__str__(GeometrySet self) -> std::string"""
731 return _IMP_display.GeometrySet___str__(self)
734 r"""__repr__(GeometrySet self) -> std::string"""
735 return _IMP_display.GeometrySet___repr__(self)
739 return _object_cast_to_GeometrySet(o)
743 _IMP_display.GeometrySet_swigregister(GeometrySet)
744 class SphereGeometry(Geometry):
745 r"""Proxy of C++ IMP::display::SphereGeometry class."""
747 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
749 def __init__(self, *args):
751 __init__(SphereGeometry self, Sphere3D v) -> SphereGeometry
752 __init__(SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
753 __init__(SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
754 __init__(SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
756 _IMP_display.SphereGeometry_swiginit(self, _IMP_display.new_SphereGeometry(*args))
758 def get_geometry(self):
759 r"""get_geometry(SphereGeometry self) -> Sphere3D"""
760 return _IMP_display.SphereGeometry_get_geometry(self)
762 def set_geometry(self, v):
763 r"""set_geometry(SphereGeometry self, Sphere3D v)"""
764 return _IMP_display.SphereGeometry_set_geometry(self, v)
766 def get_version_info(self):
767 r"""get_version_info(SphereGeometry self) -> VersionInfo"""
768 return _IMP_display.SphereGeometry_get_version_info(self)
769 __swig_destroy__ = _IMP_display.delete_SphereGeometry
772 r"""__str__(SphereGeometry self) -> std::string"""
773 return _IMP_display.SphereGeometry___str__(self)
776 r"""__repr__(SphereGeometry self) -> std::string"""
777 return _IMP_display.SphereGeometry___repr__(self)
781 return _object_cast_to_SphereGeometry(o)
785 _IMP_display.SphereGeometry_swigregister(SphereGeometry)
786 class CylinderGeometry(Geometry):
787 r"""Proxy of C++ IMP::display::CylinderGeometry class."""
789 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
791 def __init__(self, *args):
793 __init__(CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
794 __init__(CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
795 __init__(CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
796 __init__(CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
798 _IMP_display.CylinderGeometry_swiginit(self, _IMP_display.new_CylinderGeometry(*args))
800 def get_geometry(self):
801 r"""get_geometry(CylinderGeometry self) -> Cylinder3D"""
802 return _IMP_display.CylinderGeometry_get_geometry(self)
804 def set_geometry(self, v):
805 r"""set_geometry(CylinderGeometry self, Cylinder3D v)"""
806 return _IMP_display.CylinderGeometry_set_geometry(self, v)
808 def get_version_info(self):
809 r"""get_version_info(CylinderGeometry self) -> VersionInfo"""
810 return _IMP_display.CylinderGeometry_get_version_info(self)
811 __swig_destroy__ = _IMP_display.delete_CylinderGeometry
814 r"""__str__(CylinderGeometry self) -> std::string"""
815 return _IMP_display.CylinderGeometry___str__(self)
818 r"""__repr__(CylinderGeometry self) -> std::string"""
819 return _IMP_display.CylinderGeometry___repr__(self)
823 return _object_cast_to_CylinderGeometry(o)
827 _IMP_display.CylinderGeometry_swigregister(CylinderGeometry)
828 class EllipsoidGeometry(Geometry):
829 r"""Proxy of C++ IMP::display::EllipsoidGeometry class."""
831 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
833 def __init__(self, *args):
835 __init__(EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
836 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
837 __init__(EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
838 __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
840 _IMP_display.EllipsoidGeometry_swiginit(self, _IMP_display.new_EllipsoidGeometry(*args))
842 def get_geometry(self):
843 r"""get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
844 return _IMP_display.EllipsoidGeometry_get_geometry(self)
846 def set_geometry(self, v):
847 r"""set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
848 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
850 def get_version_info(self):
851 r"""get_version_info(EllipsoidGeometry self) -> VersionInfo"""
852 return _IMP_display.EllipsoidGeometry_get_version_info(self)
853 __swig_destroy__ = _IMP_display.delete_EllipsoidGeometry
856 r"""__str__(EllipsoidGeometry self) -> std::string"""
857 return _IMP_display.EllipsoidGeometry___str__(self)
860 r"""__repr__(EllipsoidGeometry self) -> std::string"""
861 return _IMP_display.EllipsoidGeometry___repr__(self)
865 return _object_cast_to_EllipsoidGeometry(o)
869 _IMP_display.EllipsoidGeometry_swigregister(EllipsoidGeometry)
870 class PointGeometry(Geometry):
871 r"""Proxy of C++ IMP::display::PointGeometry class."""
873 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
875 def __init__(self, *args):
877 __init__(PointGeometry self, Vector3D v) -> PointGeometry
878 __init__(PointGeometry self, Vector3D v, Color c) -> PointGeometry
879 __init__(PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
880 __init__(PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
882 _IMP_display.PointGeometry_swiginit(self, _IMP_display.new_PointGeometry(*args))
884 def get_geometry(self):
885 r"""get_geometry(PointGeometry self) -> Vector3D"""
886 return _IMP_display.PointGeometry_get_geometry(self)
888 def set_geometry(self, v):
889 r"""set_geometry(PointGeometry self, Vector3D v)"""
890 return _IMP_display.PointGeometry_set_geometry(self, v)
892 def get_version_info(self):
893 r"""get_version_info(PointGeometry self) -> VersionInfo"""
894 return _IMP_display.PointGeometry_get_version_info(self)
895 __swig_destroy__ = _IMP_display.delete_PointGeometry
898 r"""__str__(PointGeometry self) -> std::string"""
899 return _IMP_display.PointGeometry___str__(self)
902 r"""__repr__(PointGeometry self) -> std::string"""
903 return _IMP_display.PointGeometry___repr__(self)
907 return _object_cast_to_PointGeometry(o)
911 _IMP_display.PointGeometry_swigregister(PointGeometry)
912 class SegmentGeometry(Geometry):
913 r"""Proxy of C++ IMP::display::SegmentGeometry class."""
915 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
917 def __init__(self, *args):
919 __init__(SegmentGeometry self, Segment3D v) -> SegmentGeometry
920 __init__(SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
921 __init__(SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
922 __init__(SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
924 _IMP_display.SegmentGeometry_swiginit(self, _IMP_display.new_SegmentGeometry(*args))
926 def get_geometry(self):
927 r"""get_geometry(SegmentGeometry self) -> Segment3D"""
928 return _IMP_display.SegmentGeometry_get_geometry(self)
930 def set_geometry(self, v):
931 r"""set_geometry(SegmentGeometry self, Segment3D v)"""
932 return _IMP_display.SegmentGeometry_set_geometry(self, v)
934 def get_version_info(self):
935 r"""get_version_info(SegmentGeometry self) -> VersionInfo"""
936 return _IMP_display.SegmentGeometry_get_version_info(self)
937 __swig_destroy__ = _IMP_display.delete_SegmentGeometry
940 r"""__str__(SegmentGeometry self) -> std::string"""
941 return _IMP_display.SegmentGeometry___str__(self)
944 r"""__repr__(SegmentGeometry self) -> std::string"""
945 return _IMP_display.SegmentGeometry___repr__(self)
949 return _object_cast_to_SegmentGeometry(o)
953 _IMP_display.SegmentGeometry_swigregister(SegmentGeometry)
954 class PolygonGeometry(Geometry):
955 r"""Proxy of C++ IMP::display::PolygonGeometry class."""
957 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
959 def __init__(self, *args):
961 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
962 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
963 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
964 __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
966 _IMP_display.PolygonGeometry_swiginit(self, _IMP_display.new_PolygonGeometry(*args))
968 def get_geometry(self):
969 r"""get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
970 return _IMP_display.PolygonGeometry_get_geometry(self)
972 def set_geometry(self, v):
973 r"""set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
974 return _IMP_display.PolygonGeometry_set_geometry(self, v)
976 def get_version_info(self):
977 r"""get_version_info(PolygonGeometry self) -> VersionInfo"""
978 return _IMP_display.PolygonGeometry_get_version_info(self)
979 __swig_destroy__ = _IMP_display.delete_PolygonGeometry
982 r"""__str__(PolygonGeometry self) -> std::string"""
983 return _IMP_display.PolygonGeometry___str__(self)
986 r"""__repr__(PolygonGeometry self) -> std::string"""
987 return _IMP_display.PolygonGeometry___repr__(self)
991 return _object_cast_to_PolygonGeometry(o)
995 _IMP_display.PolygonGeometry_swigregister(PolygonGeometry)
996 class TriangleGeometry(Geometry):
997 r"""Proxy of C++ IMP::display::TriangleGeometry class."""
999 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1001 def __init__(self, *args):
1003 __init__(TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1004 __init__(TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1005 __init__(TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1006 __init__(TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1008 _IMP_display.TriangleGeometry_swiginit(self, _IMP_display.new_TriangleGeometry(*args))
1010 def get_geometry(self):
1011 r"""get_geometry(TriangleGeometry self) -> Triangle3D"""
1012 return _IMP_display.TriangleGeometry_get_geometry(self)
1014 def set_geometry(self, v):
1015 r"""set_geometry(TriangleGeometry self, Triangle3D v)"""
1016 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1018 def get_version_info(self):
1019 r"""get_version_info(TriangleGeometry self) -> VersionInfo"""
1020 return _IMP_display.TriangleGeometry_get_version_info(self)
1021 __swig_destroy__ = _IMP_display.delete_TriangleGeometry
1024 r"""__str__(TriangleGeometry self) -> std::string"""
1025 return _IMP_display.TriangleGeometry___str__(self)
1028 r"""__repr__(TriangleGeometry self) -> std::string"""
1029 return _IMP_display.TriangleGeometry___repr__(self)
1033 return _object_cast_to_TriangleGeometry(o)
1037 _IMP_display.TriangleGeometry_swigregister(TriangleGeometry)
1038 class BoundingBoxGeometry(Geometry):
1039 r"""Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1041 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1043 def __init__(self, *args):
1045 __init__(BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1046 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1047 __init__(BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1048 __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1050 _IMP_display.BoundingBoxGeometry_swiginit(self, _IMP_display.new_BoundingBoxGeometry(*args))
1052 def get_geometry(self):
1053 r"""get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1054 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1056 def set_geometry(self, v):
1057 r"""set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1058 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1060 def get_version_info(self):
1061 r"""get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1062 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1063 __swig_destroy__ = _IMP_display.delete_BoundingBoxGeometry
1066 r"""__str__(BoundingBoxGeometry self) -> std::string"""
1067 return _IMP_display.BoundingBoxGeometry___str__(self)
1070 r"""__repr__(BoundingBoxGeometry self) -> std::string"""
1071 return _IMP_display.BoundingBoxGeometry___repr__(self)
1075 return _object_cast_to_BoundingBoxGeometry(o)
1079 _IMP_display.BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1080 class ReferenceFrameGeometry(Geometry):
1081 r"""Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1083 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1085 def __init__(self, *args):
1087 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1088 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1089 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1090 __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1092 _IMP_display.ReferenceFrameGeometry_swiginit(self, _IMP_display.new_ReferenceFrameGeometry(*args))
1094 def get_geometry(self):
1095 r"""get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1096 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1098 def set_geometry(self, v):
1099 r"""set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1100 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1102 def get_version_info(self):
1103 r"""get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1104 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1105 __swig_destroy__ = _IMP_display.delete_ReferenceFrameGeometry
1108 r"""__str__(ReferenceFrameGeometry self) -> std::string"""
1109 return _IMP_display.ReferenceFrameGeometry___str__(self)
1112 r"""__repr__(ReferenceFrameGeometry self) -> std::string"""
1113 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1117 return _object_cast_to_ReferenceFrameGeometry(o)
1121 _IMP_display.ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1125 create_geometry(Sphere3D t, std::string name="algebra::Sphere3D+%1%") -> SphereGeometry
1126 create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D+%1%") -> CylinderGeometry
1127 create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D+%1%") -> EllipsoidGeometry
1128 create_geometry(Vector3D t, std::string name="algebra::Vector3D+%1%") -> PointGeometry
1129 create_geometry(Segment3D t, std::string name="algebra::Segment3D+%1%") -> SegmentGeometry
1130 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds+%1%") -> PolygonGeometry
1131 create_geometry(Triangle3D t, std::string name="algebra::Triangle3D+%1%") -> TriangleGeometry
1132 create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>+%1%") -> BoundingBoxGeometry
1133 create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D+%1%") -> ReferenceFrameGeometry
1135 return _IMP_display.create_geometry(*args)
1136 class LabelGeometry(Geometry):
1137 r"""Proxy of C++ IMP::display::LabelGeometry class."""
1139 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1141 def __init__(self, *args):
1143 __init__(LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1144 __init__(LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1146 _IMP_display.LabelGeometry_swiginit(self, _IMP_display.new_LabelGeometry(*args))
1149 r"""get_text(LabelGeometry self) -> std::string"""
1150 return _IMP_display.LabelGeometry_get_text(self)
1152 def get_location(self):
1153 r"""get_location(LabelGeometry self) -> Sphere3D"""
1154 return _IMP_display.LabelGeometry_get_location(self)
1156 def get_version_info(self):
1157 r"""get_version_info(LabelGeometry self) -> VersionInfo"""
1158 return _IMP_display.LabelGeometry_get_version_info(self)
1159 __swig_destroy__ = _IMP_display.delete_LabelGeometry
1162 r"""__str__(LabelGeometry self) -> std::string"""
1163 return _IMP_display.LabelGeometry___str__(self)
1166 r"""__repr__(LabelGeometry self) -> std::string"""
1167 return _IMP_display.LabelGeometry___repr__(self)
1171 return _object_cast_to_LabelGeometry(o)
1175 _IMP_display.LabelGeometry_swigregister(LabelGeometry)
1176 class SurfaceMeshGeometry(Geometry):
1177 r"""Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1179 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1181 def __init__(self, vertices, faces):
1182 r"""__init__(SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1183 _IMP_display.SurfaceMeshGeometry_swiginit(self, _IMP_display.new_SurfaceMeshGeometry(vertices, faces))
1185 def get_vertexes(self):
1186 r"""get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1187 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1189 def get_faces(self):
1190 r"""get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1191 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1193 def get_version_info(self):
1194 r"""get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1195 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1196 __swig_destroy__ = _IMP_display.delete_SurfaceMeshGeometry
1199 r"""__str__(SurfaceMeshGeometry self) -> std::string"""
1200 return _IMP_display.SurfaceMeshGeometry___str__(self)
1203 r"""__repr__(SurfaceMeshGeometry self) -> std::string"""
1204 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1208 return _object_cast_to_SurfaceMeshGeometry(o)
1212 _IMP_display.SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1213 class PlaneGeometry(Geometry):
1214 r"""Proxy of C++ IMP::display::PlaneGeometry class."""
1216 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1218 def __init__(self, loc, box):
1219 r"""__init__(PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1220 _IMP_display.PlaneGeometry_swiginit(self, _IMP_display.new_PlaneGeometry(loc, box))
1222 def get_version_info(self):
1223 r"""get_version_info(PlaneGeometry self) -> VersionInfo"""
1224 return _IMP_display.PlaneGeometry_get_version_info(self)
1225 __swig_destroy__ = _IMP_display.delete_PlaneGeometry
1228 r"""__str__(PlaneGeometry self) -> std::string"""
1229 return _IMP_display.PlaneGeometry___str__(self)
1232 r"""__repr__(PlaneGeometry self) -> std::string"""
1233 return _IMP_display.PlaneGeometry___repr__(self)
1237 return _object_cast_to_PlaneGeometry(o)
1241 _IMP_display.PlaneGeometry_swigregister(PlaneGeometry)
1242 class IsosurfaceGeometry(SurfaceMeshGeometry):
1243 r"""Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1245 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1247 def __init__(self, *args):
1249 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1250 __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1252 _IMP_display.IsosurfaceGeometry_swiginit(self, _IMP_display.new_IsosurfaceGeometry(*args))
1255 r"""__str__(IsosurfaceGeometry self) -> std::string"""
1256 return _IMP_display.IsosurfaceGeometry___str__(self)
1259 r"""__repr__(IsosurfaceGeometry self) -> std::string"""
1260 return _IMP_display.IsosurfaceGeometry___repr__(self)
1264 return _object_cast_to_IsosurfaceGeometry(o)
1266 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1269 _IMP_display.IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1270 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1271 r"""Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1273 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1275 def __init__(self, balls):
1276 r"""__init__(SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1277 _IMP_display.SkinSurfaceGeometry_swiginit(self, _IMP_display.new_SkinSurfaceGeometry(balls))
1280 r"""__str__(SkinSurfaceGeometry self) -> std::string"""
1281 return _IMP_display.SkinSurfaceGeometry___str__(self)
1284 r"""__repr__(SkinSurfaceGeometry self) -> std::string"""
1285 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1289 return _object_cast_to_SkinSurfaceGeometry(o)
1291 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1294 _IMP_display.SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1295 class GeometryProcessor(object):
1296 r"""Proxy of C++ IMP::display::GeometryProcessor class."""
1298 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1299 __repr__ = _swig_repr
1302 r"""__init__(GeometryProcessor self) -> GeometryProcessor"""
1303 _IMP_display.GeometryProcessor_swiginit(self, _IMP_display.new_GeometryProcessor())
1306 _IMP_display.GeometryProcessor_swigregister(GeometryProcessor)
1308 r"""Proxy of C++ IMP::display::Writer class."""
1310 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1312 def __init__(self, name):
1313 r"""__init__(Writer self, std::string name) -> Writer"""
1314 if self.__class__ == Writer:
1318 _IMP_display.Writer_swiginit(self, _IMP_display.new_Writer(_self, name))
1320 if self.__class__ != Writer:
1321 _director_objects.register(self)
1325 __swig_destroy__ = _IMP_display.delete_Writer
1327 def set_frame(self, i):
1328 r"""set_frame(Writer self, unsigned int i)"""
1329 return _IMP_display.Writer_set_frame(self, i)
1331 def get_frame(self):
1332 r"""get_frame(Writer self) -> int"""
1333 return _IMP_display.Writer_get_frame(self)
1337 add_geometry(Writer self, Geometry g)
1338 add_geometry(Writer self, IMP::display::Geometries const & g)
1340 return _IMP_display.Writer_add_geometry(self, *args)
1343 r"""do_close(Writer self)"""
1344 return _IMP_display.Writer_do_close(self)
1347 r"""do_open(Writer self)"""
1348 return _IMP_display.Writer_do_open(self)
1350 def do_set_frame(self):
1351 r"""do_set_frame(Writer self)"""
1352 return _IMP_display.Writer_do_set_frame(self)
1355 r"""__str__(Writer self) -> std::string"""
1356 return _IMP_display.Writer___str__(self)
1359 r"""__repr__(Writer self) -> std::string"""
1360 return _IMP_display.Writer___repr__(self)
1364 return _object_cast_to_Writer(o)
1367 def get_type_name(self):
1368 return self.__class__.__name__
1369 def do_show(self, out):
1371 def get_version_info(self):
1372 if"IMP::display" ==
"IMP":
1373 return VersionInfo(self.__module__,
1380 return _object_cast_to_Writer(o)
1382 def __disown__(self):
1384 _IMP_display.disown_Writer(self)
1385 return weakref.proxy(self)
1387 def handle_sphere(self, arg0, arg1, arg2):
1388 r"""handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1389 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1391 def handle_cylinder(self, arg0, arg1, arg2):
1392 r"""handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1393 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1395 def handle_point(self, arg0, arg1, arg2):
1396 r"""handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1397 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1399 def handle_segment(self, arg0, arg1, arg2):
1400 r"""handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1401 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1403 def handle_polygon(self, arg0, arg1, arg2):
1404 r"""handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1405 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1407 def handle_triangle(self, arg0, arg1, arg2):
1408 r"""handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1409 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1411 def handle_surface_mesh(self, arg0, arg1, arg2):
1412 r"""handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1413 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1415 def handle_label(self, arg0, arg1, arg2):
1416 r"""handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1417 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1419 def handle_ellipsoid(self, arg0, arg1, arg2):
1420 r"""handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1421 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1423 def handle_bounding_box(self, arg0, arg1, arg2):
1424 r"""handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1425 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1427 def handle_anything(self, arg0, arg1, arg2):
1428 r"""handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1429 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1431 def do_destroy(self):
1432 r"""do_destroy(Writer self)"""
1433 return _IMP_display.Writer_do_destroy(self)
1436 _IMP_display.Writer_swigregister(Writer)
1437 class TextWriter(Writer):
1438 r"""Proxy of C++ IMP::display::TextWriter class."""
1440 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1443 r"""open(TextWriter self)"""
1444 return _IMP_display.TextWriter_open(self)
1446 def get_stream(self):
1447 r"""get_stream(TextWriter self) -> _ostream"""
1448 return _IMP_display.TextWriter_get_stream(self)
1450 def do_set_frame(self):
1451 r"""do_set_frame(TextWriter self)"""
1452 return _IMP_display.TextWriter_do_set_frame(self)
1454 def __init__(self, *args):
1456 __init__(TextWriter self, TextOutput fn) -> TextWriter
1457 __init__(TextWriter self, std::string name) -> TextWriter
1459 if self.__class__ == TextWriter:
1463 _IMP_display.TextWriter_swiginit(self, _IMP_display.new_TextWriter(_self, *args))
1465 if self.__class__ != TextWriter:
1466 _director_objects.register(self)
1471 def get_current_file_name(self):
1472 r"""get_current_file_name(TextWriter self) -> std::string"""
1473 return _IMP_display.TextWriter_get_current_file_name(self)
1474 __swig_destroy__ = _IMP_display.delete_TextWriter
1477 r"""__str__(TextWriter self) -> std::string"""
1478 return _IMP_display.TextWriter___str__(self)
1481 r"""__repr__(TextWriter self) -> std::string"""
1482 return _IMP_display.TextWriter___repr__(self)
1486 return _object_cast_to_TextWriter(o)
1489 def get_type_name(self):
1490 return self.__class__.__name__
1491 def do_show(self, out):
1493 def get_version_info(self):
1494 if"IMP::display" ==
"IMP":
1495 return VersionInfo(self.__module__,
1502 return _object_cast_to_TextWriter(o)
1504 def __disown__(self):
1506 _IMP_display.disown_TextWriter(self)
1507 return weakref.proxy(self)
1509 def handle_sphere(self, arg0, arg1, arg2):
1510 r"""handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1511 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1513 def handle_cylinder(self, arg0, arg1, arg2):
1514 r"""handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1515 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1517 def handle_point(self, arg0, arg1, arg2):
1518 r"""handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1519 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1521 def handle_segment(self, arg0, arg1, arg2):
1522 r"""handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1523 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1525 def handle_polygon(self, arg0, arg1, arg2):
1526 r"""handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1527 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1529 def handle_triangle(self, arg0, arg1, arg2):
1530 r"""handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1531 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1533 def handle_surface_mesh(self, arg0, arg1, arg2):
1534 r"""handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1535 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1537 def handle_label(self, arg0, arg1, arg2):
1538 r"""handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1539 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1541 def handle_ellipsoid(self, arg0, arg1, arg2):
1542 r"""handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1543 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1545 def handle_bounding_box(self, arg0, arg1, arg2):
1546 r"""handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1547 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1549 def handle_anything(self, arg0, arg1, arg2):
1550 r"""handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1551 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1553 def do_destroy(self):
1554 r"""do_destroy(TextWriter self)"""
1555 return _IMP_display.TextWriter_do_destroy(self)
1558 r"""do_close(TextWriter self)"""
1559 return _IMP_display.TextWriter_do_close(self)
1562 r"""do_open(TextWriter self)"""
1563 return _IMP_display.TextWriter_do_open(self)
1566 _IMP_display.TextWriter_swigregister(TextWriter)
1569 r"""create_writer(std::string filename) -> Writer"""
1570 return _IMP_display.create_writer(filename)
1571 class WriterAdaptor(IMP._InputAdaptor):
1572 r"""Proxy of C++ IMP::display::WriterAdaptor class."""
1574 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1576 def __init__(self, *args):
1578 __init__(WriterAdaptor self, std::string name) -> WriterAdaptor
1579 __init__(WriterAdaptor self, Writer w) -> WriterAdaptor
1581 _IMP_display.WriterAdaptor_swiginit(self, _IMP_display.new_WriterAdaptor(*args))
1583 def get_writer(self):
1584 r"""get_writer(WriterAdaptor self) -> Writer"""
1585 return _IMP_display.WriterAdaptor_get_writer(self)
1587 def show(self, *args):
1588 r"""show(WriterAdaptor self, _ostream out=std::cout)"""
1589 return _IMP_display.WriterAdaptor_show(self, *args)
1590 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1593 r"""__str__(WriterAdaptor self) -> std::string"""
1594 return _IMP_display.WriterAdaptor___str__(self)
1597 r"""__repr__(WriterAdaptor self) -> std::string"""
1598 return _IMP_display.WriterAdaptor___repr__(self)
1601 _IMP_display.WriterAdaptor_swigregister(WriterAdaptor)
1603 r"""Proxy of C++ IMP::display::Colored class."""
1605 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1607 def set_color(self, c):
1608 r"""set_color(Colored self, Color c)"""
1609 return _IMP_display.Colored_set_color(self, c)
1611 def get_color(self):
1612 r"""get_color(Colored self) -> Color"""
1613 return _IMP_display.Colored_get_color(self)
1616 def get_color_keys():
1617 r"""get_color_keys() -> IMP::FloatKeys const &"""
1618 return _IMP_display.Colored_get_color_keys()
1620 def __init__(self, *args):
1622 __init__(Colored self) -> Colored
1623 __init__(Colored self, Model m, ParticleIndex id) -> Colored
1624 __init__(Colored self, _ParticleAdaptor d) -> Colored
1626 _IMP_display.Colored_swiginit(self, _IMP_display.new_Colored(*args))
1629 def get_is_setup(*args):
1631 get_is_setup(Model m, ParticleIndex pi) -> bool
1632 get_is_setup(_ParticleAdaptor p) -> bool
1634 return _IMP_display.Colored_get_is_setup(*args)
1636 def show(self, *args):
1637 r"""show(Colored self, _ostream out=std::cout)"""
1638 return _IMP_display.Colored_show(self, *args)
1641 def setup_particle(*args):
1643 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1644 setup_particle(_ParticleAdaptor pa, Color color) -> Colored
1646 return _IMP_display.Colored_setup_particle(*args)
1648 def add_attribute(self, *args):
1650 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1651 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1652 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1653 add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1654 add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1655 add_attribute(Colored self, StringKey a0, IMP::String a1)
1656 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1657 add_attribute(Colored self, ObjectKey a0, Object a1)
1659 return _IMP_display.Colored_add_attribute(self, *args)
1661 def get_value(self, *args):
1663 get_value(Colored self, FloatKey a0) -> IMP::Float
1664 get_value(Colored self, IntKey a0) -> IMP::Int
1665 get_value(Colored self, FloatsKey a0) -> IMP::Floats
1666 get_value(Colored self, IntsKey a0) -> IMP::Ints
1667 get_value(Colored self, StringKey a0) -> IMP::String
1668 get_value(Colored self, ParticleIndexKey a0) -> Particle
1669 get_value(Colored self, ObjectKey a0) -> Object
1671 return _IMP_display.Colored_get_value(self, *args)
1673 def set_value(self, *args):
1675 set_value(Colored self, FloatKey a0, IMP::Float a1)
1676 set_value(Colored self, IntKey a0, IMP::Int a1)
1677 set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1678 set_value(Colored self, IntsKey a0, IMP::Ints a1)
1679 set_value(Colored self, StringKey a0, IMP::String a1)
1680 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1681 set_value(Colored self, ObjectKey a0, Object a1)
1683 return _IMP_display.Colored_set_value(self, *args)
1685 def remove_attribute(self, *args):
1687 remove_attribute(Colored self, FloatKey a0)
1688 remove_attribute(Colored self, IntKey a0)
1689 remove_attribute(Colored self, FloatsKey a0)
1690 remove_attribute(Colored self, IntsKey a0)
1691 remove_attribute(Colored self, StringKey a0)
1692 remove_attribute(Colored self, ParticleIndexKey a0)
1693 remove_attribute(Colored self, ObjectKey a0)
1695 return _IMP_display.Colored_remove_attribute(self, *args)
1697 def has_attribute(self, *args):
1699 has_attribute(Colored self, FloatKey a0) -> bool
1700 has_attribute(Colored self, IntKey a0) -> bool
1701 has_attribute(Colored self, FloatsKey a0) -> bool
1702 has_attribute(Colored self, IntsKey a0) -> bool
1703 has_attribute(Colored self, StringKey a0) -> bool
1704 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1705 has_attribute(Colored self, ObjectKey a0) -> bool
1707 return _IMP_display.Colored_has_attribute(self, *args)
1709 def get_derivative(self, a0):
1710 r"""get_derivative(Colored self, FloatKey a0) -> double"""
1711 return _IMP_display.Colored_get_derivative(self, a0)
1714 r"""get_name(Colored self) -> std::string"""
1715 return _IMP_display.Colored_get_name(self)
1717 def clear_caches(self):
1718 r"""clear_caches(Colored self)"""
1719 return _IMP_display.Colored_clear_caches(self)
1721 def set_name(self, a0):
1722 r"""set_name(Colored self, std::string a0)"""
1723 return _IMP_display.Colored_set_name(self, a0)
1726 r"""set_check_level(Colored self, IMP::CheckLevel a0)"""
1727 return _IMP_display.Colored_set_check_level(self, a0)
1729 def add_to_derivative(self, a0, a1, a2):
1730 r"""add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1731 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1733 def set_is_optimized(self, a0, a1):
1734 r"""set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1735 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1737 def get_is_optimized(self, a0):
1738 r"""get_is_optimized(Colored self, FloatKey a0) -> bool"""
1739 return _IMP_display.Colored_get_is_optimized(self, a0)
1742 r"""get_check_level(Colored self) -> IMP::CheckLevel"""
1743 return _IMP_display.Colored_get_check_level(self)
1745 def __eq__(self, *args):
1747 __eq__(Colored self, Colored o) -> bool
1748 __eq__(Colored self, Particle d) -> bool
1750 return _IMP_display.Colored___eq__(self, *args)
1752 def __ne__(self, *args):
1754 __ne__(Colored self, Colored o) -> bool
1755 __ne__(Colored self, Particle d) -> bool
1757 return _IMP_display.Colored___ne__(self, *args)
1759 def __le__(self, *args):
1761 __le__(Colored self, Colored o) -> bool
1762 __le__(Colored self, Particle d) -> bool
1764 return _IMP_display.Colored___le__(self, *args)
1766 def __lt__(self, *args):
1768 __lt__(Colored self, Colored o) -> bool
1769 __lt__(Colored self, Particle d) -> bool
1771 return _IMP_display.Colored___lt__(self, *args)
1773 def __ge__(self, *args):
1775 __ge__(Colored self, Colored o) -> bool
1776 __ge__(Colored self, Particle d) -> bool
1778 return _IMP_display.Colored___ge__(self, *args)
1780 def __gt__(self, *args):
1782 __gt__(Colored self, Colored o) -> bool
1783 __gt__(Colored self, Particle d) -> bool
1785 return _IMP_display.Colored___gt__(self, *args)
1788 r"""__hash__(Colored self) -> std::size_t"""
1789 return _IMP_display.Colored___hash__(self)
1792 r"""__str__(Colored self) -> std::string"""
1793 return _IMP_display.Colored___str__(self)
1796 r"""__repr__(Colored self) -> std::string"""
1797 return _IMP_display.Colored___repr__(self)
1799 def _get_as_binary(self):
1800 r"""_get_as_binary(Colored self) -> PyObject *"""
1801 return _IMP_display.Colored__get_as_binary(self)
1803 def _set_from_binary(self, p):
1804 r"""_set_from_binary(Colored self, PyObject * p)"""
1805 return _IMP_display.Colored__set_from_binary(self, p)
1807 def __getstate__(self):
1808 p = self._get_as_binary()
1809 if len(self.__dict__) > 1:
1810 d = self.__dict__.copy()
1815 def __setstate__(self, p):
1816 if not hasattr(self,
'this'):
1818 if isinstance(p, tuple):
1820 self.__dict__.update(d)
1821 return self._set_from_binary(p)
1823 __swig_destroy__ = _IMP_display.delete_Colored
1826 _IMP_display.Colored_swigregister(Colored)
1828 def __lshift__(out, n):
1829 r"""__lshift__(_ostream out, Colored n) -> _ostream"""
1830 return _IMP_display.__lshift__(out, n)
1831 class FilterGeometry(GeometryProcessor, Geometry):
1832 r"""Proxy of C++ IMP::display::FilterGeometry class."""
1834 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1836 def __init__(self, p):
1837 r"""__init__(FilterGeometry self, Plane3D p) -> FilterGeometry"""
1838 _IMP_display.FilterGeometry_swiginit(self, _IMP_display.new_FilterGeometry(p))
1842 add_geometry(FilterGeometry self, Geometry g)
1843 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1845 return _IMP_display.FilterGeometry_add_geometry(self, *args)
1847 def get_version_info(self):
1848 r"""get_version_info(FilterGeometry self) -> VersionInfo"""
1849 return _IMP_display.FilterGeometry_get_version_info(self)
1850 __swig_destroy__ = _IMP_display.delete_FilterGeometry
1853 r"""__str__(FilterGeometry self) -> std::string"""
1854 return _IMP_display.FilterGeometry___str__(self)
1857 r"""__repr__(FilterGeometry self) -> std::string"""
1858 return _IMP_display.FilterGeometry___repr__(self)
1862 return _object_cast_to_FilterGeometry(o)
1866 _IMP_display.FilterGeometry_swigregister(FilterGeometry)
1868 r"""Proxy of C++ IMP::display::WriteOptimizerState class."""
1870 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1872 def __init__(self, m, w):
1873 r"""__init__(WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1874 _IMP_display.WriteOptimizerState_swiginit(self, _IMP_display.new_WriteOptimizerState(m, w))
1877 r"""write(WriteOptimizerState self, WriterAdaptor w)"""
1878 return _IMP_display.WriteOptimizerState_write(self, w)
1879 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)
1880 def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
1881 def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
1882 geometries = property(__get_geometries, __set_geometries, __del_geometries, doc=
"List of ##ucnames")
1884 def remove_geometry(self, d):
1885 r"""remove_geometry(WriteOptimizerState self, Geometry d)"""
1886 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
1888 def _python_index_geometry(self, d, start, stop):
1889 r"""_python_index_geometry(WriteOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1890 return _IMP_display.WriteOptimizerState__python_index_geometry(self, d, start, stop)
1892 def remove_geometries(self, d):
1893 r"""remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1894 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
1896 def set_geometries(self, ps):
1897 r"""set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1898 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
1900 def set_geometries_order(self, objs):
1901 r"""set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1902 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
1905 r"""add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1906 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
1909 r"""add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1910 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
1912 def clear_geometries(self):
1913 r"""clear_geometries(WriteOptimizerState self)"""
1914 return _IMP_display.WriteOptimizerState_clear_geometries(self)
1916 def get_number_of_geometries(self):
1917 r"""get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1918 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1920 def get_has_geometries(self):
1921 r"""get_has_geometries(WriteOptimizerState self) -> bool"""
1922 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1924 def get_geometry(self, i):
1925 r"""get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1926 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
1928 def get_geometries(self):
1929 r"""get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1930 return _IMP_display.WriteOptimizerState_get_geometries(self)
1932 def erase_geometry(self, i):
1933 r"""erase_geometry(WriteOptimizerState self, unsigned int i)"""
1934 return _IMP_display.WriteOptimizerState_erase_geometry(self, i)
1936 def reserve_geometries(self, sz):
1937 r"""reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1938 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
1940 def get_version_info(self):
1941 r"""get_version_info(WriteOptimizerState self) -> VersionInfo"""
1942 return _IMP_display.WriteOptimizerState_get_version_info(self)
1943 __swig_destroy__ = _IMP_display.delete_WriteOptimizerState
1946 r"""__str__(WriteOptimizerState self) -> std::string"""
1947 return _IMP_display.WriteOptimizerState___str__(self)
1950 r"""__repr__(WriteOptimizerState self) -> std::string"""
1951 return _IMP_display.WriteOptimizerState___repr__(self)
1955 return _object_cast_to_WriteOptimizerState(o)
1959 _IMP_display.WriteOptimizerState_swigregister(WriteOptimizerState)
1960 class SingletonGeometry(Geometry):
1961 r"""Proxy of C++ IMP::display::SingletonGeometry class."""
1963 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1965 def __init__(self, p):
1966 r"""__init__(SingletonGeometry self, Particle p) -> SingletonGeometry"""
1967 _IMP_display.SingletonGeometry_swiginit(self, _IMP_display.new_SingletonGeometry(p))
1969 def get_particle(self):
1970 r"""get_particle(SingletonGeometry self) -> Particle"""
1971 return _IMP_display.SingletonGeometry_get_particle(self)
1972 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1975 r"""__str__(SingletonGeometry self) -> std::string"""
1976 return _IMP_display.SingletonGeometry___str__(self)
1979 r"""__repr__(SingletonGeometry self) -> std::string"""
1980 return _IMP_display.SingletonGeometry___repr__(self)
1984 return _object_cast_to_SingletonGeometry(o)
1988 _IMP_display.SingletonGeometry_swigregister(SingletonGeometry)
1989 class SingletonsGeometry(Geometry):
1990 r"""Proxy of C++ IMP::display::SingletonsGeometry class."""
1992 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1994 def __init__(self, *args):
1996 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
1997 __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
1999 _IMP_display.SingletonsGeometry_swiginit(self, _IMP_display.new_SingletonsGeometry(*args))
2001 def get_container(self):
2002 r"""get_container(SingletonsGeometry self) -> SingletonContainer"""
2003 return _IMP_display.SingletonsGeometry_get_container(self)
2004 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2007 r"""__str__(SingletonsGeometry self) -> std::string"""
2008 return _IMP_display.SingletonsGeometry___str__(self)
2011 r"""__repr__(SingletonsGeometry self) -> std::string"""
2012 return _IMP_display.SingletonsGeometry___repr__(self)
2016 return _object_cast_to_SingletonsGeometry(o)
2020 _IMP_display.SingletonsGeometry_swigregister(SingletonsGeometry)
2021 class PairGeometry(Geometry):
2022 r"""Proxy of C++ IMP::display::PairGeometry class."""
2024 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2026 def __init__(self, pp):
2027 r"""__init__(PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2028 _IMP_display.PairGeometry_swiginit(self, _IMP_display.new_PairGeometry(pp))
2030 def get_particle_pair(self):
2031 r"""get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2032 return _IMP_display.PairGeometry_get_particle_pair(self)
2033 __swig_destroy__ = _IMP_display.delete_PairGeometry
2036 r"""__str__(PairGeometry self) -> std::string"""
2037 return _IMP_display.PairGeometry___str__(self)
2040 r"""__repr__(PairGeometry self) -> std::string"""
2041 return _IMP_display.PairGeometry___repr__(self)
2045 return _object_cast_to_PairGeometry(o)
2049 _IMP_display.PairGeometry_swigregister(PairGeometry)
2050 class PairsGeometry(Geometry):
2051 r"""Proxy of C++ IMP::display::PairsGeometry class."""
2053 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2055 def __init__(self, *args):
2057 __init__(PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2058 __init__(PairsGeometry self, PairContainer pc) -> PairsGeometry
2060 _IMP_display.PairsGeometry_swiginit(self, _IMP_display.new_PairsGeometry(*args))
2062 def get_container(self):
2063 r"""get_container(PairsGeometry self) -> PairContainer"""
2064 return _IMP_display.PairsGeometry_get_container(self)
2065 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2068 r"""__str__(PairsGeometry self) -> std::string"""
2069 return _IMP_display.PairsGeometry___str__(self)
2072 r"""__repr__(PairsGeometry self) -> std::string"""
2073 return _IMP_display.PairsGeometry___repr__(self)
2077 return _object_cast_to_PairsGeometry(o)
2081 _IMP_display.PairsGeometry_swigregister(PairsGeometry)
2082 class PymolWriter(TextWriter):
2083 r"""Proxy of C++ IMP::display::PymolWriter class."""
2085 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2087 def __init__(self, *args):
2089 __init__(PymolWriter self, TextOutput of) -> PymolWriter
2090 __init__(PymolWriter self, std::string name) -> PymolWriter
2091 __init__(PymolWriter self, char const * name) -> PymolWriter
2093 _IMP_display.PymolWriter_swiginit(self, _IMP_display.new_PymolWriter(*args))
2095 def get_version_info(self):
2096 r"""get_version_info(PymolWriter self) -> VersionInfo"""
2097 return _IMP_display.PymolWriter_get_version_info(self)
2098 __swig_destroy__ = _IMP_display.delete_PymolWriter
2101 r"""__str__(PymolWriter self) -> std::string"""
2102 return _IMP_display.PymolWriter___str__(self)
2105 r"""__repr__(PymolWriter self) -> std::string"""
2106 return _IMP_display.PymolWriter___repr__(self)
2110 return _object_cast_to_PymolWriter(o)
2114 _IMP_display.PymolWriter_swigregister(PymolWriter)
2115 class RestraintGeometry(Geometry):
2116 r"""Proxy of C++ IMP::display::RestraintGeometry class."""
2118 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2120 def __init__(self, p):
2121 r"""__init__(RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2122 _IMP_display.RestraintGeometry_swiginit(self, _IMP_display.new_RestraintGeometry(p))
2124 def get_restraint(self):
2125 r"""get_restraint(RestraintGeometry self) -> Restraint"""
2126 return _IMP_display.RestraintGeometry_get_restraint(self)
2128 def get_version_info(self):
2129 r"""get_version_info(RestraintGeometry self) -> VersionInfo"""
2130 return _IMP_display.RestraintGeometry_get_version_info(self)
2131 __swig_destroy__ = _IMP_display.delete_RestraintGeometry
2134 r"""__str__(RestraintGeometry self) -> std::string"""
2135 return _IMP_display.RestraintGeometry___str__(self)
2138 r"""__repr__(RestraintGeometry self) -> std::string"""
2139 return _IMP_display.RestraintGeometry___repr__(self)
2143 return _object_cast_to_RestraintGeometry(o)
2147 _IMP_display.RestraintGeometry_swigregister(RestraintGeometry)
2148 class RestraintSetGeometry(Geometry):
2149 r"""Proxy of C++ IMP::display::RestraintSetGeometry class."""
2151 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2153 def __init__(self, p):
2154 r"""__init__(RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2155 _IMP_display.RestraintSetGeometry_swiginit(self, _IMP_display.new_RestraintSetGeometry(p))
2157 def get_restraint_set(self):
2158 r"""get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2159 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2161 def get_version_info(self):
2162 r"""get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2163 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2164 __swig_destroy__ = _IMP_display.delete_RestraintSetGeometry
2167 r"""__str__(RestraintSetGeometry self) -> std::string"""
2168 return _IMP_display.RestraintSetGeometry___str__(self)
2171 r"""__repr__(RestraintSetGeometry self) -> std::string"""
2172 return _IMP_display.RestraintSetGeometry___repr__(self)
2176 return _object_cast_to_RestraintSetGeometry(o)
2180 _IMP_display.RestraintSetGeometry_swigregister(RestraintSetGeometry)
2183 PivyWriter= _pivy.get_writer(Writer)
2184 _object_types.append(
'PivyWriter')
2188 r"""get_module_version() -> std::string const"""
2189 return _IMP_display.get_module_version()
2192 r"""get_example_path(std::string fname) -> std::string"""
2193 return _IMP_display.get_example_path(fname)
2196 r"""get_data_path(std::string fname) -> std::string"""
2197 return _IMP_display.get_data_path(fname)
2199 from .
import _version_check
CheckLevel get_check_level()
Get the current audit mode.
Color get_rgb_color(double f)
Return the color for f from the RGB color map.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
double get_linear_color_map_value(double min, double max, double value)
Color get_interpolated_rgb(const Color &a, const Color &b, double f)
Return a color interpolated between a and b in RGB space.
Color get_hot_color(double f)
Return the color for f from the hot color map.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Common base class for heavy weight IMP objects.
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
Color get_display_color(unsigned int i)
Version and module information for Objects.
Writer * create_writer(std::string filename)
Color get_gnuplot_color(double f)
Return colors using the gnuplot default color map.
Interface to specialized Particle types (e.g. atoms)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Shared optimizer state that is invoked upon commitment of new coordinates.
Color get_gray_color(double f)
Return the a grayscale value for f.
Color get_jet_color(double f)
Return the color for f from the jet color map.
std::string get_module_version()
Return the version of this module, as a string.
void add_geometry(RMF::FileHandle file, display::Geometry *r)
Add a single geometry to the file.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.