10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17 def swig_import_helper():
19 pkg = __name__.rpartition(
'.')[0]
20 mname =
'.'.join((pkg,
'_IMP_display')).lstrip(
'.')
22 return importlib.import_module(mname)
24 return importlib.import_module(
'_IMP_display')
25 _IMP_display = swig_import_helper()
26 del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28 def swig_import_helper():
29 from os.path
import dirname
33 fp, pathname, description = imp.find_module(
'_IMP_display', [dirname(__file__)])
39 _mod = imp.load_module(
'_IMP_display', fp, pathname, description)
43 _IMP_display = swig_import_helper()
44 del swig_import_helper
47 del _swig_python_version_info
49 _swig_property = property
54 import builtins
as __builtin__
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59 if (name ==
"thisown"):
60 return self.this.own(value)
62 if type(value).__name__ ==
'SwigPyObject':
63 self.__dict__[name] = value
65 method = class_type.__swig_setmethods__.get(name,
None)
67 return method(self, value)
69 object.__setattr__(self, name, value)
71 raise AttributeError(
"You cannot add attributes to %s" % self)
74 def _swig_setattr(self, class_type, name, value):
75 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
78 def _swig_getattr(self, class_type, name):
79 if (name ==
"thisown"):
80 return self.this.own()
81 method = class_type.__swig_getmethods__.get(name,
None)
84 raise AttributeError(
"'%s' object has no attribute '%s'" % (class_type.__name__, name))
89 strthis =
"proxy of " + self.this.__repr__()
90 except __builtin__.Exception:
92 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110 weakref_proxy =
lambda x: x
113 class IMP_DISPLAY_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
126 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
131 incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
132 incr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
134 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
139 decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
140 decr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
142 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
151 """equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
152 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
156 """copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
157 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
161 """next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
162 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
166 """__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
167 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
171 """previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
172 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
177 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
182 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
187 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
192 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
197 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
202 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
208 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
214 IMP_DISPLAY_SwigPyIterator_swigregister = _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister
215 IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
223 IMP_DEBUG = _IMP_display.IMP_DEBUG
224 IMP_RELEASE = _IMP_display.IMP_RELEASE
225 IMP_SILENT = _IMP_display.IMP_SILENT
226 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
227 IMP_TERSE = _IMP_display.IMP_TERSE
228 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
229 IMP_MEMORY = _IMP_display.IMP_MEMORY
230 IMP_NONE = _IMP_display.IMP_NONE
231 IMP_USAGE = _IMP_display.IMP_USAGE
232 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_display.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_display.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
239 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
240 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
241 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
244 class _DirectorObjects(object):
245 """@internal Simple class to keep references to director objects
246 to prevent premature deletion."""
249 def register(self, obj):
250 """Take a reference to a director object; will only work for
251 refcounted C++ classes"""
252 if hasattr(obj,
'get_ref_count'):
253 self._objects.append(obj)
255 """Only drop our reference and allow cleanup by Python if no other
256 Python references exist (we hold 3 references: one in self._objects,
257 one in x, and one in the argument list for getrefcount) *and* no
258 other C++ references exist (the Python object always holds one)"""
259 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
260 or x.get_ref_count() > 1]
264 def get_object_count(self):
265 """Get number of director objects (useful for testing only)"""
266 return len(self._objects)
267 _director_objects = _DirectorObjects()
269 class _ostream(object):
270 """Proxy of C++ std::ostream class."""
272 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
274 def __init__(self, *args, **kwargs):
275 raise AttributeError(
"No constructor defined")
276 __repr__ = _swig_repr
278 def write(self, osa_buf):
279 """write(_ostream self, char const * osa_buf)"""
280 return _IMP_display._ostream_write(self, osa_buf)
282 _ostream_swigregister = _IMP_display._ostream_swigregister
283 _ostream_swigregister(_ostream)
285 IMP_COMPILER_HAS_OVERRIDE = _IMP_display.IMP_COMPILER_HAS_OVERRIDE
286 IMP_COMPILER_HAS_FINAL = _IMP_display.IMP_COMPILER_HAS_FINAL
287 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
288 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
290 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
291 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
292 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
293 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
294 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
296 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
297 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
298 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
299 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
300 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
301 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
302 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
303 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
305 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
306 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
307 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
308 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
309 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
310 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
311 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
313 _object_types.append(
"Writer")
316 def _object_cast_to_Writer(o):
317 """_object_cast_to_Writer(Object o) -> Writer"""
318 return _IMP_display._object_cast_to_Writer(o)
320 _object_types.append(
"TextWriter")
323 def _object_cast_to_TextWriter(o):
324 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
325 return _IMP_display._object_cast_to_TextWriter(o)
327 _object_types.append(
"Geometry")
330 def _object_cast_to_Geometry(o):
331 """_object_cast_to_Geometry(Object o) -> Geometry"""
332 return _IMP_display._object_cast_to_Geometry(o)
334 _object_types.append(
"SingletonGeometry")
337 def _object_cast_to_SingletonGeometry(o):
338 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
339 return _IMP_display._object_cast_to_SingletonGeometry(o)
341 _object_types.append(
"PairGeometry")
344 def _object_cast_to_PairGeometry(o):
345 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
346 return _IMP_display._object_cast_to_PairGeometry(o)
348 _object_types.append(
"SingletonsGeometry")
351 def _object_cast_to_SingletonsGeometry(o):
352 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
353 return _IMP_display._object_cast_to_SingletonsGeometry(o)
355 _object_types.append(
"PairsGeometry")
358 def _object_cast_to_PairsGeometry(o):
359 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
360 return _IMP_display._object_cast_to_PairsGeometry(o)
362 _object_types.append(
"PymolWriter")
365 def _object_cast_to_PymolWriter(o):
366 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
367 return _IMP_display._object_cast_to_PymolWriter(o)
369 _object_types.append(
"SphereGeometry")
372 def _object_cast_to_SphereGeometry(o):
373 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
374 return _IMP_display._object_cast_to_SphereGeometry(o)
376 _object_types.append(
"CylinderGeometry")
379 def _object_cast_to_CylinderGeometry(o):
380 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
381 return _IMP_display._object_cast_to_CylinderGeometry(o)
383 _object_types.append(
"EllipsoidGeometry")
386 def _object_cast_to_EllipsoidGeometry(o):
387 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
388 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
390 _object_types.append(
"PointGeometry")
393 def _object_cast_to_PointGeometry(o):
394 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
395 return _IMP_display._object_cast_to_PointGeometry(o)
397 _object_types.append(
"SegmentGeometry")
400 def _object_cast_to_SegmentGeometry(o):
401 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
402 return _IMP_display._object_cast_to_SegmentGeometry(o)
404 _object_types.append(
"PolygonGeometry")
407 def _object_cast_to_PolygonGeometry(o):
408 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
409 return _IMP_display._object_cast_to_PolygonGeometry(o)
411 _object_types.append(
"ReferenceFrameGeometry")
414 def _object_cast_to_ReferenceFrameGeometry(o):
415 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
416 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
418 _object_types.append(
"BoundingBoxGeometry")
421 def _object_cast_to_BoundingBoxGeometry(o):
422 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
423 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
425 _object_types.append(
"LabelGeometry")
428 def _object_cast_to_LabelGeometry(o):
429 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
430 return _IMP_display._object_cast_to_LabelGeometry(o)
432 _object_types.append(
"RestraintGeometry")
435 def _object_cast_to_RestraintGeometry(o):
436 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
437 return _IMP_display._object_cast_to_RestraintGeometry(o)
439 _object_types.append(
"RestraintSetGeometry")
442 def _object_cast_to_RestraintSetGeometry(o):
443 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
444 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
446 _object_types.append(
"GeometrySet")
449 def _object_cast_to_GeometrySet(o):
450 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
451 return _IMP_display._object_cast_to_GeometrySet(o)
454 return [Colored(x)
for x
in l]
455 _plural_types.append(
"Coloreds")
458 _value_types.append(
"Colored")
462 _plural_types.append(
"Colors")
463 _value_types.append(
"Color")
467 _plural_types.append(
"WriterAdaptors")
468 _value_types.append(
"WriterAdaptor")
471 _object_types.append(
"FilterGeometry")
474 def _object_cast_to_FilterGeometry(o):
475 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
476 return _IMP_display._object_cast_to_FilterGeometry(o)
478 _object_types.append(
"WriteOptimizerState")
481 def _object_cast_to_WriteOptimizerState(o):
482 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
483 return _IMP_display._object_cast_to_WriteOptimizerState(o)
485 _object_types.append(
"TriangleGeometry")
488 def _object_cast_to_TriangleGeometry(o):
489 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
490 return _IMP_display._object_cast_to_TriangleGeometry(o)
492 _object_types.append(
"SurfaceMeshGeometry")
495 def _object_cast_to_SurfaceMeshGeometry(o):
496 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
497 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
499 _object_types.append(
"PlaneGeometry")
502 def _object_cast_to_PlaneGeometry(o):
503 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
504 return _IMP_display._object_cast_to_PlaneGeometry(o)
506 _object_types.append(
"IsosurfaceGeometry")
509 def _object_cast_to_IsosurfaceGeometry(o):
510 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
511 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
513 _object_types.append(
"SkinSurfaceGeometry")
516 def _object_cast_to_SkinSurfaceGeometry(o):
517 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
518 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
519 class Color(IMP._Value):
520 """Proxy of C++ IMP::display::Color class."""
522 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
524 def __init__(self, *args):
526 __init__(IMP::display::Color self) -> Color
527 __init__(IMP::display::Color self, double r, double g, double b) -> Color
529 this = _IMP_display.new_Color(*args)
531 self.this.append(this)
532 except __builtin__.Exception:
534 __swig_destroy__ = _IMP_display.delete_Color
535 __del__ =
lambda self:
None
538 """get_red(Color self) -> double"""
539 return _IMP_display.Color_get_red(self)
543 """get_green(Color self) -> double"""
544 return _IMP_display.Color_get_green(self)
548 """get_blue(Color self) -> double"""
549 return _IMP_display.Color_get_blue(self)
552 def show(self, *args):
554 show(Color self, _ostream out, std::string delim)
555 show(Color self, _ostream out)
558 return _IMP_display.Color_show(self, *args)
561 def __cmp__(self, o):
562 """__cmp__(Color self, Color o) -> int"""
563 return _IMP_display.Color___cmp__(self, o)
567 """__eq__(Color self, Color o) -> bool"""
568 return _IMP_display.Color___eq__(self, o)
572 """__ne__(Color self, Color o) -> bool"""
573 return _IMP_display.Color___ne__(self, o)
577 """__lt__(Color self, Color o) -> bool"""
578 return _IMP_display.Color___lt__(self, o)
582 """__gt__(Color self, Color o) -> bool"""
583 return _IMP_display.Color___gt__(self, o)
587 """__ge__(Color self, Color o) -> bool"""
588 return _IMP_display.Color___ge__(self, o)
592 """__le__(Color self, Color o) -> bool"""
593 return _IMP_display.Color___le__(self, o)
597 """__str__(Color self) -> std::string"""
598 return _IMP_display.Color___str__(self)
602 """__repr__(Color self) -> std::string"""
603 return _IMP_display.Color___repr__(self)
605 Color_swigregister = _IMP_display.Color_swigregister
606 Color_swigregister(Color)
610 """get_display_color(unsigned int i) -> Color"""
611 return _IMP_display.get_display_color(i)
614 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
615 return _IMP_display.get_interpolated_rgb(a, b, f)
618 """get_linear_color_map_value(double min, double max, double value) -> double"""
619 return _IMP_display.get_linear_color_map_value(min, max, value)
622 """get_jet_color(double f) -> Color"""
623 return _IMP_display.get_jet_color(f)
626 """get_hot_color(double f) -> Color"""
627 return _IMP_display.get_hot_color(f)
630 """get_rgb_color(double f) -> Color"""
631 return _IMP_display.get_rgb_color(f)
634 """get_gray_color(double f) -> Color"""
635 return _IMP_display.get_gray_color(f)
638 """get_gnuplot_color(double f) -> Color"""
639 return _IMP_display.get_gnuplot_color(f)
641 """Proxy of C++ IMP::display::Geometry class."""
643 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
645 def __init__(self, *args):
647 __init__(IMP::display::Geometry self, std::string name) -> Geometry
648 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
650 if self.__class__ == Geometry:
654 this = _IMP_display.new_Geometry(_self, *args)
656 self.this.append(this)
657 except __builtin__.Exception:
660 if self.__class__ != Geometry:
661 _director_objects.register(self)
667 """get_color(Geometry self) -> Color"""
668 return _IMP_display.Geometry_get_color(self)
671 def get_has_color(self):
672 """get_has_color(Geometry self) -> bool"""
673 return _IMP_display.Geometry_get_has_color(self)
676 def set_has_color(self, tf):
677 """set_has_color(Geometry self, bool tf)"""
678 return _IMP_display.Geometry_set_has_color(self, tf)
681 def set_color(self, c):
682 """set_color(Geometry self, Color c)"""
683 return _IMP_display.Geometry_set_color(self, c)
686 def get_components(self):
687 """get_components(Geometry self) -> IMP::display::Geometries"""
688 return _IMP_display.Geometry_get_components(self)
690 __swig_destroy__ = _IMP_display.delete_Geometry
691 __del__ =
lambda self:
None
694 """__str__(Geometry self) -> std::string"""
695 return _IMP_display.Geometry___str__(self)
699 """__repr__(Geometry self) -> std::string"""
700 return _IMP_display.Geometry___repr__(self)
705 return _object_cast_to_Geometry(o)
708 def get_type_name(self):
709 return self.__class__.__name__
710 def do_show(self, out):
712 def get_version_info(self):
713 if"IMP::display" ==
"IMP":
714 return VersionInfo(self.__module__,
715 __import__(self.__module__).get_module_version())
718 __import__(self.__module__).get_module_version())
721 return _object_cast_to_Geometry(o)
723 def __disown__(self):
725 _IMP_display.disown_Geometry(self)
726 return weakref_proxy(self)
728 def do_destroy(self):
729 """do_destroy(Geometry self)"""
730 return _IMP_display.Geometry_do_destroy(self)
732 Geometry_swigregister = _IMP_display.Geometry_swigregister
733 Geometry_swigregister(Geometry)
735 class GeometrySet(Geometry):
736 """Proxy of C++ IMP::display::GeometrySet class."""
738 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
740 def __init__(self, *args):
742 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
743 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
744 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
745 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
747 this = _IMP_display.new_GeometrySet(*args)
749 self.this.append(this)
750 except __builtin__.Exception:
753 def get_geometry(self):
754 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
755 return _IMP_display.GeometrySet_get_geometry(self)
758 def get_version_info(self):
759 """get_version_info(GeometrySet self) -> VersionInfo"""
760 return _IMP_display.GeometrySet_get_version_info(self)
764 """__str__(GeometrySet self) -> std::string"""
765 return _IMP_display.GeometrySet___str__(self)
769 """__repr__(GeometrySet self) -> std::string"""
770 return _IMP_display.GeometrySet___repr__(self)
775 return _object_cast_to_GeometrySet(o)
777 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
778 GeometrySet_swigregister(GeometrySet)
780 class SphereGeometry(Geometry):
781 """Proxy of C++ IMP::display::SphereGeometry class."""
783 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
785 def __init__(self, *args):
787 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
788 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
789 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
790 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
792 this = _IMP_display.new_SphereGeometry(*args)
794 self.this.append(this)
795 except __builtin__.Exception:
798 def get_geometry(self):
799 """get_geometry(SphereGeometry self) -> Sphere3D"""
800 return _IMP_display.SphereGeometry_get_geometry(self)
803 def set_geometry(self, v):
804 """set_geometry(SphereGeometry self, Sphere3D v)"""
805 return _IMP_display.SphereGeometry_set_geometry(self, v)
808 def get_version_info(self):
809 """get_version_info(SphereGeometry self) -> VersionInfo"""
810 return _IMP_display.SphereGeometry_get_version_info(self)
814 """__str__(SphereGeometry self) -> std::string"""
815 return _IMP_display.SphereGeometry___str__(self)
819 """__repr__(SphereGeometry self) -> std::string"""
820 return _IMP_display.SphereGeometry___repr__(self)
825 return _object_cast_to_SphereGeometry(o)
827 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
828 SphereGeometry_swigregister(SphereGeometry)
830 class CylinderGeometry(Geometry):
831 """Proxy of C++ IMP::display::CylinderGeometry class."""
833 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
835 def __init__(self, *args):
837 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
838 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
839 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
840 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
842 this = _IMP_display.new_CylinderGeometry(*args)
844 self.this.append(this)
845 except __builtin__.Exception:
848 def get_geometry(self):
849 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
850 return _IMP_display.CylinderGeometry_get_geometry(self)
853 def set_geometry(self, v):
854 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
855 return _IMP_display.CylinderGeometry_set_geometry(self, v)
858 def get_version_info(self):
859 """get_version_info(CylinderGeometry self) -> VersionInfo"""
860 return _IMP_display.CylinderGeometry_get_version_info(self)
864 """__str__(CylinderGeometry self) -> std::string"""
865 return _IMP_display.CylinderGeometry___str__(self)
869 """__repr__(CylinderGeometry self) -> std::string"""
870 return _IMP_display.CylinderGeometry___repr__(self)
875 return _object_cast_to_CylinderGeometry(o)
877 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
878 CylinderGeometry_swigregister(CylinderGeometry)
880 class EllipsoidGeometry(Geometry):
881 """Proxy of C++ IMP::display::EllipsoidGeometry class."""
883 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
885 def __init__(self, *args):
887 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
888 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
889 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
890 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
892 this = _IMP_display.new_EllipsoidGeometry(*args)
894 self.this.append(this)
895 except __builtin__.Exception:
898 def get_geometry(self):
899 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
900 return _IMP_display.EllipsoidGeometry_get_geometry(self)
903 def set_geometry(self, v):
904 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
905 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
908 def get_version_info(self):
909 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
910 return _IMP_display.EllipsoidGeometry_get_version_info(self)
914 """__str__(EllipsoidGeometry self) -> std::string"""
915 return _IMP_display.EllipsoidGeometry___str__(self)
919 """__repr__(EllipsoidGeometry self) -> std::string"""
920 return _IMP_display.EllipsoidGeometry___repr__(self)
925 return _object_cast_to_EllipsoidGeometry(o)
927 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
928 EllipsoidGeometry_swigregister(EllipsoidGeometry)
930 class PointGeometry(Geometry):
931 """Proxy of C++ IMP::display::PointGeometry class."""
933 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
935 def __init__(self, *args):
937 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
938 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
939 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
940 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
942 this = _IMP_display.new_PointGeometry(*args)
944 self.this.append(this)
945 except __builtin__.Exception:
948 def get_geometry(self):
949 """get_geometry(PointGeometry self) -> Vector3D"""
950 return _IMP_display.PointGeometry_get_geometry(self)
953 def set_geometry(self, v):
954 """set_geometry(PointGeometry self, Vector3D v)"""
955 return _IMP_display.PointGeometry_set_geometry(self, v)
958 def get_version_info(self):
959 """get_version_info(PointGeometry self) -> VersionInfo"""
960 return _IMP_display.PointGeometry_get_version_info(self)
964 """__str__(PointGeometry self) -> std::string"""
965 return _IMP_display.PointGeometry___str__(self)
969 """__repr__(PointGeometry self) -> std::string"""
970 return _IMP_display.PointGeometry___repr__(self)
975 return _object_cast_to_PointGeometry(o)
977 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
978 PointGeometry_swigregister(PointGeometry)
980 class SegmentGeometry(Geometry):
981 """Proxy of C++ IMP::display::SegmentGeometry class."""
983 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
985 def __init__(self, *args):
987 __init__(IMP::display::SegmentGeometry self, Segment3D v) -> SegmentGeometry
988 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
989 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
990 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
992 this = _IMP_display.new_SegmentGeometry(*args)
994 self.this.append(this)
995 except __builtin__.Exception:
998 def get_geometry(self):
999 """get_geometry(SegmentGeometry self) -> Segment3D"""
1000 return _IMP_display.SegmentGeometry_get_geometry(self)
1003 def set_geometry(self, v):
1004 """set_geometry(SegmentGeometry self, Segment3D v)"""
1005 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1008 def get_version_info(self):
1009 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1010 return _IMP_display.SegmentGeometry_get_version_info(self)
1014 """__str__(SegmentGeometry self) -> std::string"""
1015 return _IMP_display.SegmentGeometry___str__(self)
1019 """__repr__(SegmentGeometry self) -> std::string"""
1020 return _IMP_display.SegmentGeometry___repr__(self)
1025 return _object_cast_to_SegmentGeometry(o)
1027 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1028 SegmentGeometry_swigregister(SegmentGeometry)
1030 class PolygonGeometry(Geometry):
1031 """Proxy of C++ IMP::display::PolygonGeometry class."""
1033 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1035 def __init__(self, *args):
1037 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
1038 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
1039 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
1040 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
1042 this = _IMP_display.new_PolygonGeometry(*args)
1044 self.this.append(this)
1045 except __builtin__.Exception:
1048 def get_geometry(self):
1049 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
1050 return _IMP_display.PolygonGeometry_get_geometry(self)
1053 def set_geometry(self, v):
1054 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
1055 return _IMP_display.PolygonGeometry_set_geometry(self, v)
1058 def get_version_info(self):
1059 """get_version_info(PolygonGeometry self) -> VersionInfo"""
1060 return _IMP_display.PolygonGeometry_get_version_info(self)
1064 """__str__(PolygonGeometry self) -> std::string"""
1065 return _IMP_display.PolygonGeometry___str__(self)
1069 """__repr__(PolygonGeometry self) -> std::string"""
1070 return _IMP_display.PolygonGeometry___repr__(self)
1075 return _object_cast_to_PolygonGeometry(o)
1077 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
1078 PolygonGeometry_swigregister(PolygonGeometry)
1080 class TriangleGeometry(Geometry):
1081 """Proxy of C++ IMP::display::TriangleGeometry class."""
1083 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1085 def __init__(self, *args):
1087 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1088 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1089 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1090 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1092 this = _IMP_display.new_TriangleGeometry(*args)
1094 self.this.append(this)
1095 except __builtin__.Exception:
1098 def get_geometry(self):
1099 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1100 return _IMP_display.TriangleGeometry_get_geometry(self)
1103 def set_geometry(self, v):
1104 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1105 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1108 def get_version_info(self):
1109 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1110 return _IMP_display.TriangleGeometry_get_version_info(self)
1114 """__str__(TriangleGeometry self) -> std::string"""
1115 return _IMP_display.TriangleGeometry___str__(self)
1119 """__repr__(TriangleGeometry self) -> std::string"""
1120 return _IMP_display.TriangleGeometry___repr__(self)
1125 return _object_cast_to_TriangleGeometry(o)
1127 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1128 TriangleGeometry_swigregister(TriangleGeometry)
1130 class BoundingBoxGeometry(Geometry):
1131 """Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1133 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1135 def __init__(self, *args):
1137 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1138 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1139 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1140 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1142 this = _IMP_display.new_BoundingBoxGeometry(*args)
1144 self.this.append(this)
1145 except __builtin__.Exception:
1148 def get_geometry(self):
1149 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1150 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1153 def set_geometry(self, v):
1154 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1155 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1158 def get_version_info(self):
1159 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1160 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1164 """__str__(BoundingBoxGeometry self) -> std::string"""
1165 return _IMP_display.BoundingBoxGeometry___str__(self)
1169 """__repr__(BoundingBoxGeometry self) -> std::string"""
1170 return _IMP_display.BoundingBoxGeometry___repr__(self)
1175 return _object_cast_to_BoundingBoxGeometry(o)
1177 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1178 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1180 class ReferenceFrameGeometry(Geometry):
1181 """Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1183 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1185 def __init__(self, *args):
1187 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1188 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1189 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1190 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1192 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1194 self.this.append(this)
1195 except __builtin__.Exception:
1198 def get_geometry(self):
1199 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1200 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1203 def set_geometry(self, v):
1204 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1205 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1208 def get_version_info(self):
1209 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1210 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1214 """__str__(ReferenceFrameGeometry self) -> std::string"""
1215 return _IMP_display.ReferenceFrameGeometry___str__(self)
1219 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1220 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1225 return _object_cast_to_ReferenceFrameGeometry(o)
1227 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1228 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1233 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1234 create_geometry(Sphere3D t) -> SphereGeometry
1235 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1236 create_geometry(Cylinder3D t) -> CylinderGeometry
1237 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1238 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1239 create_geometry(Vector3D t, std::string name) -> PointGeometry
1240 create_geometry(Vector3D t) -> PointGeometry
1241 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1242 create_geometry(Segment3D t) -> SegmentGeometry
1243 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1244 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1245 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1246 create_geometry(Triangle3D t) -> TriangleGeometry
1247 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1248 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1249 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1250 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1252 return _IMP_display.create_geometry(*args)
1253 class LabelGeometry(Geometry):
1254 """Proxy of C++ IMP::display::LabelGeometry class."""
1256 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1258 def __init__(self, *args):
1260 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1261 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1263 this = _IMP_display.new_LabelGeometry(*args)
1265 self.this.append(this)
1266 except __builtin__.Exception:
1270 """get_text(LabelGeometry self) -> std::string"""
1271 return _IMP_display.LabelGeometry_get_text(self)
1274 def get_location(self):
1275 """get_location(LabelGeometry self) -> Sphere3D"""
1276 return _IMP_display.LabelGeometry_get_location(self)
1279 def get_version_info(self):
1280 """get_version_info(LabelGeometry self) -> VersionInfo"""
1281 return _IMP_display.LabelGeometry_get_version_info(self)
1285 """__str__(LabelGeometry self) -> std::string"""
1286 return _IMP_display.LabelGeometry___str__(self)
1290 """__repr__(LabelGeometry self) -> std::string"""
1291 return _IMP_display.LabelGeometry___repr__(self)
1296 return _object_cast_to_LabelGeometry(o)
1298 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1299 LabelGeometry_swigregister(LabelGeometry)
1301 class SurfaceMeshGeometry(Geometry):
1302 """Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1304 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1306 def __init__(self, vertices, faces):
1307 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1308 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1310 self.this.append(this)
1311 except __builtin__.Exception:
1314 def get_vertexes(self):
1315 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1316 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1319 def get_faces(self):
1320 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1321 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1324 def get_version_info(self):
1325 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1326 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1330 """__str__(SurfaceMeshGeometry self) -> std::string"""
1331 return _IMP_display.SurfaceMeshGeometry___str__(self)
1335 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1336 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1341 return _object_cast_to_SurfaceMeshGeometry(o)
1343 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1344 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1346 class PlaneGeometry(Geometry):
1347 """Proxy of C++ IMP::display::PlaneGeometry class."""
1349 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1351 def __init__(self, loc, box):
1352 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1353 this = _IMP_display.new_PlaneGeometry(loc, box)
1355 self.this.append(this)
1356 except __builtin__.Exception:
1359 def get_version_info(self):
1360 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1361 return _IMP_display.PlaneGeometry_get_version_info(self)
1365 """__str__(PlaneGeometry self) -> std::string"""
1366 return _IMP_display.PlaneGeometry___str__(self)
1370 """__repr__(PlaneGeometry self) -> std::string"""
1371 return _IMP_display.PlaneGeometry___repr__(self)
1376 return _object_cast_to_PlaneGeometry(o)
1378 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1379 PlaneGeometry_swigregister(PlaneGeometry)
1381 class IsosurfaceGeometry(SurfaceMeshGeometry):
1382 """Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1384 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1386 def __init__(self, *args):
1388 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1389 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1391 this = _IMP_display.new_IsosurfaceGeometry(*args)
1393 self.this.append(this)
1394 except __builtin__.Exception:
1398 """__str__(IsosurfaceGeometry self) -> std::string"""
1399 return _IMP_display.IsosurfaceGeometry___str__(self)
1403 """__repr__(IsosurfaceGeometry self) -> std::string"""
1404 return _IMP_display.IsosurfaceGeometry___repr__(self)
1409 return _object_cast_to_IsosurfaceGeometry(o)
1411 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1412 __del__ =
lambda self:
None
1413 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1414 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1416 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1417 """Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1419 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1421 def __init__(self, balls):
1422 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1423 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1425 self.this.append(this)
1426 except __builtin__.Exception:
1430 """__str__(SkinSurfaceGeometry self) -> std::string"""
1431 return _IMP_display.SkinSurfaceGeometry___str__(self)
1435 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1436 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1441 return _object_cast_to_SkinSurfaceGeometry(o)
1443 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1444 __del__ =
lambda self:
None
1445 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1446 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1448 class GeometryProcessor(object):
1449 """Proxy of C++ IMP::display::GeometryProcessor class."""
1451 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1452 __repr__ = _swig_repr
1455 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1456 this = _IMP_display.new_GeometryProcessor()
1458 self.this.append(this)
1459 except __builtin__.Exception:
1461 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1462 GeometryProcessor_swigregister(GeometryProcessor)
1465 """Proxy of C++ IMP::display::Writer class."""
1467 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1469 def __init__(self, name):
1470 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1471 if self.__class__ == Writer:
1475 this = _IMP_display.new_Writer(_self, name)
1477 self.this.append(this)
1478 except __builtin__.Exception:
1481 if self.__class__ != Writer:
1482 _director_objects.register(self)
1486 __swig_destroy__ = _IMP_display.delete_Writer
1487 __del__ =
lambda self:
None
1489 def set_frame(self, i):
1490 """set_frame(Writer self, unsigned int i)"""
1491 return _IMP_display.Writer_set_frame(self, i)
1494 def get_frame(self):
1495 """get_frame(Writer self) -> int"""
1496 return _IMP_display.Writer_get_frame(self)
1501 add_geometry(Writer self, Geometry g)
1502 add_geometry(Writer self, IMP::display::Geometries const & g)
1504 return _IMP_display.Writer_add_geometry(self, *args)
1508 """do_close(Writer self)"""
1509 return _IMP_display.Writer_do_close(self)
1513 """do_open(Writer self)"""
1514 return _IMP_display.Writer_do_open(self)
1517 def do_set_frame(self):
1518 """do_set_frame(Writer self)"""
1519 return _IMP_display.Writer_do_set_frame(self)
1523 """__str__(Writer self) -> std::string"""
1524 return _IMP_display.Writer___str__(self)
1528 """__repr__(Writer self) -> std::string"""
1529 return _IMP_display.Writer___repr__(self)
1534 return _object_cast_to_Writer(o)
1537 def get_type_name(self):
1538 return self.__class__.__name__
1539 def do_show(self, out):
1541 def get_version_info(self):
1542 if"IMP::display" ==
"IMP":
1543 return VersionInfo(self.__module__,
1544 __import__(self.__module__).get_module_version())
1547 __import__(self.__module__).get_module_version())
1550 return _object_cast_to_Writer(o)
1552 def __disown__(self):
1554 _IMP_display.disown_Writer(self)
1555 return weakref_proxy(self)
1557 def handle_sphere(self, arg0, arg1, arg2):
1558 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1559 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1562 def handle_cylinder(self, arg0, arg1, arg2):
1563 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1564 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1567 def handle_point(self, arg0, arg1, arg2):
1568 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1569 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1572 def handle_segment(self, arg0, arg1, arg2):
1573 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1574 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1577 def handle_polygon(self, arg0, arg1, arg2):
1578 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1579 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1582 def handle_triangle(self, arg0, arg1, arg2):
1583 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1584 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1587 def handle_surface_mesh(self, arg0, arg1, arg2):
1588 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1589 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1592 def handle_label(self, arg0, arg1, arg2):
1593 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1594 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1597 def handle_ellipsoid(self, arg0, arg1, arg2):
1598 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1599 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1602 def handle_bounding_box(self, arg0, arg1, arg2):
1603 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1604 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1607 def handle_anything(self, arg0, arg1, arg2):
1608 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1609 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1612 def do_destroy(self):
1613 """do_destroy(Writer self)"""
1614 return _IMP_display.Writer_do_destroy(self)
1616 Writer_swigregister = _IMP_display.Writer_swigregister
1617 Writer_swigregister(Writer)
1619 class TextWriter(Writer):
1620 """Proxy of C++ IMP::display::TextWriter class."""
1622 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1625 """open(TextWriter self)"""
1626 return _IMP_display.TextWriter_open(self)
1629 def get_stream(self):
1630 """get_stream(TextWriter self) -> _ostream"""
1631 return _IMP_display.TextWriter_get_stream(self)
1634 def do_set_frame(self):
1635 """do_set_frame(TextWriter self)"""
1636 return _IMP_display.TextWriter_do_set_frame(self)
1639 def __init__(self, *args):
1641 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1642 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1644 if self.__class__ == TextWriter:
1648 this = _IMP_display.new_TextWriter(_self, *args)
1650 self.this.append(this)
1651 except __builtin__.Exception:
1654 if self.__class__ != TextWriter:
1655 _director_objects.register(self)
1660 def get_current_file_name(self):
1661 """get_current_file_name(TextWriter self) -> std::string"""
1662 return _IMP_display.TextWriter_get_current_file_name(self)
1664 __swig_destroy__ = _IMP_display.delete_TextWriter
1665 __del__ =
lambda self:
None
1668 """__str__(TextWriter self) -> std::string"""
1669 return _IMP_display.TextWriter___str__(self)
1673 """__repr__(TextWriter self) -> std::string"""
1674 return _IMP_display.TextWriter___repr__(self)
1679 return _object_cast_to_TextWriter(o)
1682 def get_type_name(self):
1683 return self.__class__.__name__
1684 def do_show(self, out):
1686 def get_version_info(self):
1687 if"IMP::display" ==
"IMP":
1688 return VersionInfo(self.__module__,
1689 __import__(self.__module__).get_module_version())
1692 __import__(self.__module__).get_module_version())
1695 return _object_cast_to_TextWriter(o)
1697 def __disown__(self):
1699 _IMP_display.disown_TextWriter(self)
1700 return weakref_proxy(self)
1702 def handle_sphere(self, arg0, arg1, arg2):
1703 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1704 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1707 def handle_cylinder(self, arg0, arg1, arg2):
1708 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1709 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1712 def handle_point(self, arg0, arg1, arg2):
1713 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1714 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1717 def handle_segment(self, arg0, arg1, arg2):
1718 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1719 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1722 def handle_polygon(self, arg0, arg1, arg2):
1723 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1724 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1727 def handle_triangle(self, arg0, arg1, arg2):
1728 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1729 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1732 def handle_surface_mesh(self, arg0, arg1, arg2):
1733 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1734 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1737 def handle_label(self, arg0, arg1, arg2):
1738 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1739 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1742 def handle_ellipsoid(self, arg0, arg1, arg2):
1743 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1744 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1747 def handle_bounding_box(self, arg0, arg1, arg2):
1748 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1749 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1752 def handle_anything(self, arg0, arg1, arg2):
1753 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1754 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1757 def do_destroy(self):
1758 """do_destroy(TextWriter self)"""
1759 return _IMP_display.TextWriter_do_destroy(self)
1763 """do_close(TextWriter self)"""
1764 return _IMP_display.TextWriter_do_close(self)
1768 """do_open(TextWriter self)"""
1769 return _IMP_display.TextWriter_do_open(self)
1771 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1772 TextWriter_swigregister(TextWriter)
1776 """create_writer(std::string filename) -> Writer"""
1777 return _IMP_display.create_writer(filename)
1778 class WriterAdaptor(IMP._InputAdaptor):
1779 """Proxy of C++ IMP::display::WriterAdaptor class."""
1781 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1783 def __init__(self, *args):
1785 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1786 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1788 this = _IMP_display.new_WriterAdaptor(*args)
1790 self.this.append(this)
1791 except __builtin__.Exception:
1794 def get_writer(self):
1795 """get_writer(WriterAdaptor self) -> Writer"""
1796 return _IMP_display.WriterAdaptor_get_writer(self)
1799 def show(self, *args):
1801 show(WriterAdaptor self, _ostream out)
1802 show(WriterAdaptor self)
1804 return _IMP_display.WriterAdaptor_show(self, *args)
1806 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1807 __del__ =
lambda self:
None
1810 """__str__(WriterAdaptor self) -> std::string"""
1811 return _IMP_display.WriterAdaptor___str__(self)
1815 """__repr__(WriterAdaptor self) -> std::string"""
1816 return _IMP_display.WriterAdaptor___repr__(self)
1818 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1819 WriterAdaptor_swigregister(WriterAdaptor)
1822 """Proxy of C++ IMP::display::Colored class."""
1824 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1826 def set_color(self, c):
1827 """set_color(Colored self, Color c)"""
1828 return _IMP_display.Colored_set_color(self, c)
1831 def get_color(self):
1832 """get_color(Colored self) -> Color"""
1833 return _IMP_display.Colored_get_color(self)
1836 def get_color_keys():
1837 """get_color_keys() -> IMP::FloatKeys const &"""
1838 return _IMP_display.Colored_get_color_keys()
1840 get_color_keys = staticmethod(get_color_keys)
1842 def __init__(self, *args):
1844 __init__(IMP::display::Colored self) -> Colored
1845 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1846 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1848 this = _IMP_display.new_Colored(*args)
1850 self.this.append(this)
1851 except __builtin__.Exception:
1854 def get_is_setup(*args):
1856 get_is_setup(Model m, ParticleIndex pi) -> bool
1857 get_is_setup(_ParticleAdaptor p) -> bool
1859 return _IMP_display.Colored_get_is_setup(*args)
1861 get_is_setup = staticmethod(get_is_setup)
1863 def show(self, *args):
1865 show(Colored self, _ostream out)
1868 return _IMP_display.Colored_show(self, *args)
1871 def setup_particle(*args):
1873 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1874 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1876 return _IMP_display.Colored_setup_particle(*args)
1878 setup_particle = staticmethod(setup_particle)
1880 def add_attribute(self, *args):
1882 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1883 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1884 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1885 add_attribute(Colored self, StringKey a0, IMP::String a1)
1886 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1887 add_attribute(Colored self, ObjectKey a0, Object a1)
1889 return _IMP_display.Colored_add_attribute(self, *args)
1892 def get_value(self, *args):
1894 get_value(Colored self, FloatKey a0) -> IMP::Float
1895 get_value(Colored self, IntKey a0) -> IMP::Int
1896 get_value(Colored self, StringKey a0) -> IMP::String
1897 get_value(Colored self, ParticleIndexKey a0) -> Particle
1898 get_value(Colored self, ObjectKey a0) -> Object
1900 return _IMP_display.Colored_get_value(self, *args)
1903 def set_value(self, *args):
1905 set_value(Colored self, FloatKey a0, IMP::Float a1)
1906 set_value(Colored self, IntKey a0, IMP::Int a1)
1907 set_value(Colored self, StringKey a0, IMP::String a1)
1908 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1909 set_value(Colored self, ObjectKey a0, Object a1)
1911 return _IMP_display.Colored_set_value(self, *args)
1914 def remove_attribute(self, *args):
1916 remove_attribute(Colored self, FloatKey a0)
1917 remove_attribute(Colored self, IntKey a0)
1918 remove_attribute(Colored self, StringKey a0)
1919 remove_attribute(Colored self, ParticleIndexKey a0)
1920 remove_attribute(Colored self, ObjectKey a0)
1922 return _IMP_display.Colored_remove_attribute(self, *args)
1925 def has_attribute(self, *args):
1927 has_attribute(Colored self, FloatKey a0) -> bool
1928 has_attribute(Colored self, IntKey a0) -> bool
1929 has_attribute(Colored self, StringKey a0) -> bool
1930 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1931 has_attribute(Colored self, ObjectKey a0) -> bool
1933 return _IMP_display.Colored_has_attribute(self, *args)
1936 def get_derivative(self, a0):
1937 """get_derivative(Colored self, FloatKey a0) -> double"""
1938 return _IMP_display.Colored_get_derivative(self, a0)
1942 """get_name(Colored self) -> std::string"""
1943 return _IMP_display.Colored_get_name(self)
1946 def clear_caches(self):
1947 """clear_caches(Colored self)"""
1948 return _IMP_display.Colored_clear_caches(self)
1951 def set_name(self, a0):
1952 """set_name(Colored self, std::string a0)"""
1953 return _IMP_display.Colored_set_name(self, a0)
1957 """set_check_level(Colored self, IMP::CheckLevel a0)"""
1958 return _IMP_display.Colored_set_check_level(self, a0)
1961 def add_to_derivative(self, a0, a1, a2):
1962 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1963 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1966 def set_is_optimized(self, a0, a1):
1967 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1968 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1971 def get_is_optimized(self, a0):
1972 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
1973 return _IMP_display.Colored_get_is_optimized(self, a0)
1977 """get_check_level(Colored self) -> IMP::CheckLevel"""
1978 return _IMP_display.Colored_get_check_level(self)
1981 def __eq__(self, *args):
1983 __eq__(Colored self, Colored o) -> bool
1984 __eq__(Colored self, Particle d) -> bool
1986 return _IMP_display.Colored___eq__(self, *args)
1989 def __ne__(self, *args):
1991 __ne__(Colored self, Colored o) -> bool
1992 __ne__(Colored self, Particle d) -> bool
1994 return _IMP_display.Colored___ne__(self, *args)
1997 def __le__(self, *args):
1999 __le__(Colored self, Colored o) -> bool
2000 __le__(Colored self, Particle d) -> bool
2002 return _IMP_display.Colored___le__(self, *args)
2005 def __lt__(self, *args):
2007 __lt__(Colored self, Colored o) -> bool
2008 __lt__(Colored self, Particle d) -> bool
2010 return _IMP_display.Colored___lt__(self, *args)
2013 def __ge__(self, *args):
2015 __ge__(Colored self, Colored o) -> bool
2016 __ge__(Colored self, Particle d) -> bool
2018 return _IMP_display.Colored___ge__(self, *args)
2021 def __gt__(self, *args):
2023 __gt__(Colored self, Colored o) -> bool
2024 __gt__(Colored self, Particle d) -> bool
2026 return _IMP_display.Colored___gt__(self, *args)
2030 """__hash__(Colored self) -> std::size_t"""
2031 return _IMP_display.Colored___hash__(self)
2035 """__str__(Colored self) -> std::string"""
2036 return _IMP_display.Colored___str__(self)
2040 """__repr__(Colored self) -> std::string"""
2041 return _IMP_display.Colored___repr__(self)
2043 __swig_destroy__ = _IMP_display.delete_Colored
2044 __del__ =
lambda self:
None
2045 Colored_swigregister = _IMP_display.Colored_swigregister
2046 Colored_swigregister(Colored)
2048 def Colored_get_color_keys():
2049 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2050 return _IMP_display.Colored_get_color_keys()
2052 def Colored_get_is_setup(*args):
2054 get_is_setup(Model m, ParticleIndex pi) -> bool
2055 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2057 return _IMP_display.Colored_get_is_setup(*args)
2059 def Colored_setup_particle(*args):
2061 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2062 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2064 return _IMP_display.Colored_setup_particle(*args)
2067 def __lshift__(out, n):
2068 """__lshift__(_ostream out, Colored n) -> _ostream"""
2069 return _IMP_display.__lshift__(out, n)
2070 class FilterGeometry(GeometryProcessor, Geometry):
2071 """Proxy of C++ IMP::display::FilterGeometry class."""
2073 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2075 def __init__(self, p):
2076 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2077 this = _IMP_display.new_FilterGeometry(p)
2079 self.this.append(this)
2080 except __builtin__.Exception:
2085 add_geometry(FilterGeometry self, Geometry g)
2086 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2088 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2091 def get_version_info(self):
2092 """get_version_info(FilterGeometry self) -> VersionInfo"""
2093 return _IMP_display.FilterGeometry_get_version_info(self)
2097 """__str__(FilterGeometry self) -> std::string"""
2098 return _IMP_display.FilterGeometry___str__(self)
2102 """__repr__(FilterGeometry self) -> std::string"""
2103 return _IMP_display.FilterGeometry___repr__(self)
2108 return _object_cast_to_FilterGeometry(o)
2110 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2111 FilterGeometry_swigregister(FilterGeometry)
2114 """Proxy of C++ IMP::display::WriteOptimizerState class."""
2116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2118 def __init__(self, m, w):
2119 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2120 this = _IMP_display.new_WriteOptimizerState(m, w)
2122 self.this.append(this)
2123 except __builtin__.Exception:
2127 """write(WriteOptimizerState self, WriterAdaptor w)"""
2128 return _IMP_display.WriteOptimizerState_write(self, w)
2131 def remove_geometry(self, d):
2132 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2133 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2136 def remove_geometries(self, d):
2137 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2138 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2141 def set_geometries(self, ps):
2142 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2143 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2146 def set_geometries_order(self, objs):
2147 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2148 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2152 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2153 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2157 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2158 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2161 def clear_geometries(self):
2162 """clear_geometries(WriteOptimizerState self)"""
2163 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2166 def get_number_of_geometries(self):
2167 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2168 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2171 def get_has_geometries(self):
2172 """get_has_geometries(WriteOptimizerState self) -> bool"""
2173 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2176 def get_geometry(self, i):
2177 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2178 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2181 def get_geometries(self):
2182 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2183 return _IMP_display.WriteOptimizerState_get_geometries(self)
2186 def reserve_geometries(self, sz):
2187 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2188 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2191 def get_version_info(self):
2192 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2193 return _IMP_display.WriteOptimizerState_get_version_info(self)
2197 """__str__(WriteOptimizerState self) -> std::string"""
2198 return _IMP_display.WriteOptimizerState___str__(self)
2202 """__repr__(WriteOptimizerState self) -> std::string"""
2203 return _IMP_display.WriteOptimizerState___repr__(self)
2208 return _object_cast_to_WriteOptimizerState(o)
2210 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2211 WriteOptimizerState_swigregister(WriteOptimizerState)
2213 class SingletonGeometry(Geometry):
2214 """Proxy of C++ IMP::display::SingletonGeometry class."""
2216 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2218 def __init__(self, p):
2219 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2220 this = _IMP_display.new_SingletonGeometry(p)
2222 self.this.append(this)
2223 except __builtin__.Exception:
2226 def get_particle(self):
2227 """get_particle(SingletonGeometry self) -> Particle"""
2228 return _IMP_display.SingletonGeometry_get_particle(self)
2230 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2231 __del__ =
lambda self:
None
2234 """__str__(SingletonGeometry self) -> std::string"""
2235 return _IMP_display.SingletonGeometry___str__(self)
2239 """__repr__(SingletonGeometry self) -> std::string"""
2240 return _IMP_display.SingletonGeometry___repr__(self)
2245 return _object_cast_to_SingletonGeometry(o)
2247 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2248 SingletonGeometry_swigregister(SingletonGeometry)
2250 class SingletonsGeometry(Geometry):
2251 """Proxy of C++ IMP::display::SingletonsGeometry class."""
2253 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2255 def __init__(self, *args):
2257 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2258 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2260 this = _IMP_display.new_SingletonsGeometry(*args)
2262 self.this.append(this)
2263 except __builtin__.Exception:
2266 def get_container(self):
2267 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2268 return _IMP_display.SingletonsGeometry_get_container(self)
2270 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2271 __del__ =
lambda self:
None
2274 """__str__(SingletonsGeometry self) -> std::string"""
2275 return _IMP_display.SingletonsGeometry___str__(self)
2279 """__repr__(SingletonsGeometry self) -> std::string"""
2280 return _IMP_display.SingletonsGeometry___repr__(self)
2285 return _object_cast_to_SingletonsGeometry(o)
2287 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2288 SingletonsGeometry_swigregister(SingletonsGeometry)
2290 class PairGeometry(Geometry):
2291 """Proxy of C++ IMP::display::PairGeometry class."""
2293 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2295 def __init__(self, pp):
2296 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2297 this = _IMP_display.new_PairGeometry(pp)
2299 self.this.append(this)
2300 except __builtin__.Exception:
2303 def get_particle_pair(self):
2304 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2305 return _IMP_display.PairGeometry_get_particle_pair(self)
2307 __swig_destroy__ = _IMP_display.delete_PairGeometry
2308 __del__ =
lambda self:
None
2311 """__str__(PairGeometry self) -> std::string"""
2312 return _IMP_display.PairGeometry___str__(self)
2316 """__repr__(PairGeometry self) -> std::string"""
2317 return _IMP_display.PairGeometry___repr__(self)
2322 return _object_cast_to_PairGeometry(o)
2324 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2325 PairGeometry_swigregister(PairGeometry)
2327 class PairsGeometry(Geometry):
2328 """Proxy of C++ IMP::display::PairsGeometry class."""
2330 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2332 def __init__(self, *args):
2334 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2335 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2337 this = _IMP_display.new_PairsGeometry(*args)
2339 self.this.append(this)
2340 except __builtin__.Exception:
2343 def get_container(self):
2344 """get_container(PairsGeometry self) -> PairContainer"""
2345 return _IMP_display.PairsGeometry_get_container(self)
2347 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2348 __del__ =
lambda self:
None
2351 """__str__(PairsGeometry self) -> std::string"""
2352 return _IMP_display.PairsGeometry___str__(self)
2356 """__repr__(PairsGeometry self) -> std::string"""
2357 return _IMP_display.PairsGeometry___repr__(self)
2362 return _object_cast_to_PairsGeometry(o)
2364 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2365 PairsGeometry_swigregister(PairsGeometry)
2367 class PymolWriter(TextWriter):
2368 """Proxy of C++ IMP::display::PymolWriter class."""
2370 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2372 def __init__(self, *args):
2374 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2375 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2376 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2378 this = _IMP_display.new_PymolWriter(*args)
2380 self.this.append(this)
2381 except __builtin__.Exception:
2384 def get_version_info(self):
2385 """get_version_info(PymolWriter self) -> VersionInfo"""
2386 return _IMP_display.PymolWriter_get_version_info(self)
2390 """__str__(PymolWriter self) -> std::string"""
2391 return _IMP_display.PymolWriter___str__(self)
2395 """__repr__(PymolWriter self) -> std::string"""
2396 return _IMP_display.PymolWriter___repr__(self)
2401 return _object_cast_to_PymolWriter(o)
2403 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2404 PymolWriter_swigregister(PymolWriter)
2406 class RestraintGeometry(Geometry):
2407 """Proxy of C++ IMP::display::RestraintGeometry class."""
2409 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2411 def __init__(self, p):
2412 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2413 this = _IMP_display.new_RestraintGeometry(p)
2415 self.this.append(this)
2416 except __builtin__.Exception:
2419 def get_restraint(self):
2420 """get_restraint(RestraintGeometry self) -> Restraint"""
2421 return _IMP_display.RestraintGeometry_get_restraint(self)
2424 def get_version_info(self):
2425 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2426 return _IMP_display.RestraintGeometry_get_version_info(self)
2430 """__str__(RestraintGeometry self) -> std::string"""
2431 return _IMP_display.RestraintGeometry___str__(self)
2435 """__repr__(RestraintGeometry self) -> std::string"""
2436 return _IMP_display.RestraintGeometry___repr__(self)
2441 return _object_cast_to_RestraintGeometry(o)
2443 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2444 RestraintGeometry_swigregister(RestraintGeometry)
2446 class RestraintSetGeometry(Geometry):
2447 """Proxy of C++ IMP::display::RestraintSetGeometry class."""
2449 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2451 def __init__(self, p):
2452 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2453 this = _IMP_display.new_RestraintSetGeometry(p)
2455 self.this.append(this)
2456 except __builtin__.Exception:
2459 def get_restraint_set(self):
2460 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2461 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2464 def get_version_info(self):
2465 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2466 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2470 """__str__(RestraintSetGeometry self) -> std::string"""
2471 return _IMP_display.RestraintSetGeometry___str__(self)
2475 """__repr__(RestraintSetGeometry self) -> std::string"""
2476 return _IMP_display.RestraintSetGeometry___repr__(self)
2481 return _object_cast_to_RestraintSetGeometry(o)
2483 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2484 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2488 PivyWriter= _pivy.get_writer(Writer)
2489 _object_types.append(
'PivyWriter')
2492 def get_module_version():
2493 """get_module_version() -> std::string const"""
2494 return _IMP_display.get_module_version()
2497 """get_example_path(std::string fname) -> std::string"""
2498 return _IMP_display.get_example_path(fname)
2501 """get_data_path(std::string fname) -> std::string"""
2502 return _IMP_display.get_data_path(fname)
2504 from .
import _version_check
2505 _version_check.check_version(get_module_version())
2506 __version__ = get_module_version()
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.
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.