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
289 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
290 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
292 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
293 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
295 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
296 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
297 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
298 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
299 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
300 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
301 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
302 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
304 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
305 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
306 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
307 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
308 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
309 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
310 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
312 _object_types.append(
"Writer")
315 def _object_cast_to_Writer(o):
316 """_object_cast_to_Writer(Object o) -> Writer"""
317 return _IMP_display._object_cast_to_Writer(o)
319 _object_types.append(
"TextWriter")
322 def _object_cast_to_TextWriter(o):
323 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
324 return _IMP_display._object_cast_to_TextWriter(o)
326 _object_types.append(
"Geometry")
329 def _object_cast_to_Geometry(o):
330 """_object_cast_to_Geometry(Object o) -> Geometry"""
331 return _IMP_display._object_cast_to_Geometry(o)
333 _object_types.append(
"SingletonGeometry")
336 def _object_cast_to_SingletonGeometry(o):
337 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
338 return _IMP_display._object_cast_to_SingletonGeometry(o)
340 _object_types.append(
"PairGeometry")
343 def _object_cast_to_PairGeometry(o):
344 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
345 return _IMP_display._object_cast_to_PairGeometry(o)
347 _object_types.append(
"SingletonsGeometry")
350 def _object_cast_to_SingletonsGeometry(o):
351 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
352 return _IMP_display._object_cast_to_SingletonsGeometry(o)
354 _object_types.append(
"PairsGeometry")
357 def _object_cast_to_PairsGeometry(o):
358 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
359 return _IMP_display._object_cast_to_PairsGeometry(o)
361 _object_types.append(
"PymolWriter")
364 def _object_cast_to_PymolWriter(o):
365 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
366 return _IMP_display._object_cast_to_PymolWriter(o)
368 _object_types.append(
"SphereGeometry")
371 def _object_cast_to_SphereGeometry(o):
372 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
373 return _IMP_display._object_cast_to_SphereGeometry(o)
375 _object_types.append(
"CylinderGeometry")
378 def _object_cast_to_CylinderGeometry(o):
379 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
380 return _IMP_display._object_cast_to_CylinderGeometry(o)
382 _object_types.append(
"EllipsoidGeometry")
385 def _object_cast_to_EllipsoidGeometry(o):
386 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
387 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
389 _object_types.append(
"PointGeometry")
392 def _object_cast_to_PointGeometry(o):
393 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
394 return _IMP_display._object_cast_to_PointGeometry(o)
396 _object_types.append(
"SegmentGeometry")
399 def _object_cast_to_SegmentGeometry(o):
400 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
401 return _IMP_display._object_cast_to_SegmentGeometry(o)
403 _object_types.append(
"PolygonGeometry")
406 def _object_cast_to_PolygonGeometry(o):
407 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
408 return _IMP_display._object_cast_to_PolygonGeometry(o)
410 _object_types.append(
"ReferenceFrameGeometry")
413 def _object_cast_to_ReferenceFrameGeometry(o):
414 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
415 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
417 _object_types.append(
"BoundingBoxGeometry")
420 def _object_cast_to_BoundingBoxGeometry(o):
421 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
422 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
424 _object_types.append(
"LabelGeometry")
427 def _object_cast_to_LabelGeometry(o):
428 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
429 return _IMP_display._object_cast_to_LabelGeometry(o)
431 _object_types.append(
"RestraintGeometry")
434 def _object_cast_to_RestraintGeometry(o):
435 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
436 return _IMP_display._object_cast_to_RestraintGeometry(o)
438 _object_types.append(
"RestraintSetGeometry")
441 def _object_cast_to_RestraintSetGeometry(o):
442 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
443 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
445 _object_types.append(
"GeometrySet")
448 def _object_cast_to_GeometrySet(o):
449 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
450 return _IMP_display._object_cast_to_GeometrySet(o)
453 return [Colored(x)
for x
in l]
454 _plural_types.append(
"Coloreds")
457 _value_types.append(
"Colored")
461 _plural_types.append(
"Colors")
462 _value_types.append(
"Color")
466 _plural_types.append(
"WriterAdaptors")
467 _value_types.append(
"WriterAdaptor")
470 _object_types.append(
"FilterGeometry")
473 def _object_cast_to_FilterGeometry(o):
474 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
475 return _IMP_display._object_cast_to_FilterGeometry(o)
477 _object_types.append(
"WriteOptimizerState")
480 def _object_cast_to_WriteOptimizerState(o):
481 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
482 return _IMP_display._object_cast_to_WriteOptimizerState(o)
484 _object_types.append(
"TriangleGeometry")
487 def _object_cast_to_TriangleGeometry(o):
488 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
489 return _IMP_display._object_cast_to_TriangleGeometry(o)
491 _object_types.append(
"SurfaceMeshGeometry")
494 def _object_cast_to_SurfaceMeshGeometry(o):
495 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
496 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
498 _object_types.append(
"PlaneGeometry")
501 def _object_cast_to_PlaneGeometry(o):
502 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
503 return _IMP_display._object_cast_to_PlaneGeometry(o)
505 _object_types.append(
"IsosurfaceGeometry")
508 def _object_cast_to_IsosurfaceGeometry(o):
509 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
510 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
512 _object_types.append(
"SkinSurfaceGeometry")
515 def _object_cast_to_SkinSurfaceGeometry(o):
516 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
517 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
518 class Color(IMP._Value):
519 """Proxy of C++ IMP::display::Color class."""
521 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
523 def __init__(self, *args):
525 __init__(IMP::display::Color self) -> Color
526 __init__(IMP::display::Color self, double r, double g, double b) -> Color
528 this = _IMP_display.new_Color(*args)
530 self.this.append(this)
531 except __builtin__.Exception:
533 __swig_destroy__ = _IMP_display.delete_Color
534 __del__ =
lambda self:
None
537 """get_red(Color self) -> double"""
538 return _IMP_display.Color_get_red(self)
542 """get_green(Color self) -> double"""
543 return _IMP_display.Color_get_green(self)
547 """get_blue(Color self) -> double"""
548 return _IMP_display.Color_get_blue(self)
551 def show(self, *args):
553 show(Color self, _ostream out, std::string delim)
554 show(Color self, _ostream out)
557 return _IMP_display.Color_show(self, *args)
560 def __cmp__(self, o):
561 """__cmp__(Color self, Color o) -> int"""
562 return _IMP_display.Color___cmp__(self, o)
566 """__eq__(Color self, Color o) -> bool"""
567 return _IMP_display.Color___eq__(self, o)
571 """__ne__(Color self, Color o) -> bool"""
572 return _IMP_display.Color___ne__(self, o)
576 """__lt__(Color self, Color o) -> bool"""
577 return _IMP_display.Color___lt__(self, o)
581 """__gt__(Color self, Color o) -> bool"""
582 return _IMP_display.Color___gt__(self, o)
586 """__ge__(Color self, Color o) -> bool"""
587 return _IMP_display.Color___ge__(self, o)
591 """__le__(Color self, Color o) -> bool"""
592 return _IMP_display.Color___le__(self, o)
596 """__str__(Color self) -> std::string"""
597 return _IMP_display.Color___str__(self)
601 """__repr__(Color self) -> std::string"""
602 return _IMP_display.Color___repr__(self)
604 Color_swigregister = _IMP_display.Color_swigregister
605 Color_swigregister(Color)
609 """get_display_color(unsigned int i) -> Color"""
610 return _IMP_display.get_display_color(i)
613 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
614 return _IMP_display.get_interpolated_rgb(a, b, f)
617 """get_linear_color_map_value(double min, double max, double value) -> double"""
618 return _IMP_display.get_linear_color_map_value(min, max, value)
621 """get_jet_color(double f) -> Color"""
622 return _IMP_display.get_jet_color(f)
625 """get_hot_color(double f) -> Color"""
626 return _IMP_display.get_hot_color(f)
629 """get_rgb_color(double f) -> Color"""
630 return _IMP_display.get_rgb_color(f)
633 """get_gray_color(double f) -> Color"""
634 return _IMP_display.get_gray_color(f)
637 """get_gnuplot_color(double f) -> Color"""
638 return _IMP_display.get_gnuplot_color(f)
640 """Proxy of C++ IMP::display::Geometry class."""
642 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
644 def __init__(self, *args):
646 __init__(IMP::display::Geometry self, std::string name) -> Geometry
647 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
649 if self.__class__ == Geometry:
653 this = _IMP_display.new_Geometry(_self, *args)
655 self.this.append(this)
656 except __builtin__.Exception:
659 if self.__class__ != Geometry:
660 _director_objects.register(self)
666 """get_color(Geometry self) -> Color"""
667 return _IMP_display.Geometry_get_color(self)
670 def get_has_color(self):
671 """get_has_color(Geometry self) -> bool"""
672 return _IMP_display.Geometry_get_has_color(self)
675 def set_has_color(self, tf):
676 """set_has_color(Geometry self, bool tf)"""
677 return _IMP_display.Geometry_set_has_color(self, tf)
680 def set_color(self, c):
681 """set_color(Geometry self, Color c)"""
682 return _IMP_display.Geometry_set_color(self, c)
685 def get_components(self):
686 """get_components(Geometry self) -> IMP::display::Geometries"""
687 return _IMP_display.Geometry_get_components(self)
689 __swig_destroy__ = _IMP_display.delete_Geometry
690 __del__ =
lambda self:
None
693 """__str__(Geometry self) -> std::string"""
694 return _IMP_display.Geometry___str__(self)
698 """__repr__(Geometry self) -> std::string"""
699 return _IMP_display.Geometry___repr__(self)
704 return _object_cast_to_Geometry(o)
707 def get_type_name(self):
708 return self.__class__.__name__
709 def do_show(self, out):
711 def get_version_info(self):
712 if"IMP::display" ==
"IMP":
713 return VersionInfo(self.__module__,
714 __import__(self.__module__).get_module_version())
717 __import__(self.__module__).get_module_version())
720 return _object_cast_to_Geometry(o)
722 def __disown__(self):
724 _IMP_display.disown_Geometry(self)
725 return weakref_proxy(self)
727 def do_destroy(self):
728 """do_destroy(Geometry self)"""
729 return _IMP_display.Geometry_do_destroy(self)
731 Geometry_swigregister = _IMP_display.Geometry_swigregister
732 Geometry_swigregister(Geometry)
734 class GeometrySet(Geometry):
735 """Proxy of C++ IMP::display::GeometrySet class."""
737 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
739 def __init__(self, *args):
741 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
742 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
743 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
744 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
746 this = _IMP_display.new_GeometrySet(*args)
748 self.this.append(this)
749 except __builtin__.Exception:
752 def get_geometry(self):
753 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
754 return _IMP_display.GeometrySet_get_geometry(self)
757 def get_version_info(self):
758 """get_version_info(GeometrySet self) -> VersionInfo"""
759 return _IMP_display.GeometrySet_get_version_info(self)
763 """__str__(GeometrySet self) -> std::string"""
764 return _IMP_display.GeometrySet___str__(self)
768 """__repr__(GeometrySet self) -> std::string"""
769 return _IMP_display.GeometrySet___repr__(self)
774 return _object_cast_to_GeometrySet(o)
776 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
777 GeometrySet_swigregister(GeometrySet)
779 class SphereGeometry(Geometry):
780 """Proxy of C++ IMP::display::SphereGeometry class."""
782 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
784 def __init__(self, *args):
786 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
787 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
788 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
789 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
791 this = _IMP_display.new_SphereGeometry(*args)
793 self.this.append(this)
794 except __builtin__.Exception:
797 def get_geometry(self):
798 """get_geometry(SphereGeometry self) -> Sphere3D"""
799 return _IMP_display.SphereGeometry_get_geometry(self)
802 def set_geometry(self, v):
803 """set_geometry(SphereGeometry self, Sphere3D v)"""
804 return _IMP_display.SphereGeometry_set_geometry(self, v)
807 def get_version_info(self):
808 """get_version_info(SphereGeometry self) -> VersionInfo"""
809 return _IMP_display.SphereGeometry_get_version_info(self)
813 """__str__(SphereGeometry self) -> std::string"""
814 return _IMP_display.SphereGeometry___str__(self)
818 """__repr__(SphereGeometry self) -> std::string"""
819 return _IMP_display.SphereGeometry___repr__(self)
824 return _object_cast_to_SphereGeometry(o)
826 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
827 SphereGeometry_swigregister(SphereGeometry)
829 class CylinderGeometry(Geometry):
830 """Proxy of C++ IMP::display::CylinderGeometry class."""
832 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
834 def __init__(self, *args):
836 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
837 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
838 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
839 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
841 this = _IMP_display.new_CylinderGeometry(*args)
843 self.this.append(this)
844 except __builtin__.Exception:
847 def get_geometry(self):
848 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
849 return _IMP_display.CylinderGeometry_get_geometry(self)
852 def set_geometry(self, v):
853 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
854 return _IMP_display.CylinderGeometry_set_geometry(self, v)
857 def get_version_info(self):
858 """get_version_info(CylinderGeometry self) -> VersionInfo"""
859 return _IMP_display.CylinderGeometry_get_version_info(self)
863 """__str__(CylinderGeometry self) -> std::string"""
864 return _IMP_display.CylinderGeometry___str__(self)
868 """__repr__(CylinderGeometry self) -> std::string"""
869 return _IMP_display.CylinderGeometry___repr__(self)
874 return _object_cast_to_CylinderGeometry(o)
876 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
877 CylinderGeometry_swigregister(CylinderGeometry)
879 class EllipsoidGeometry(Geometry):
880 """Proxy of C++ IMP::display::EllipsoidGeometry class."""
882 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
884 def __init__(self, *args):
886 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
887 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
888 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
889 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
891 this = _IMP_display.new_EllipsoidGeometry(*args)
893 self.this.append(this)
894 except __builtin__.Exception:
897 def get_geometry(self):
898 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
899 return _IMP_display.EllipsoidGeometry_get_geometry(self)
902 def set_geometry(self, v):
903 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
904 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
907 def get_version_info(self):
908 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
909 return _IMP_display.EllipsoidGeometry_get_version_info(self)
913 """__str__(EllipsoidGeometry self) -> std::string"""
914 return _IMP_display.EllipsoidGeometry___str__(self)
918 """__repr__(EllipsoidGeometry self) -> std::string"""
919 return _IMP_display.EllipsoidGeometry___repr__(self)
924 return _object_cast_to_EllipsoidGeometry(o)
926 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
927 EllipsoidGeometry_swigregister(EllipsoidGeometry)
929 class PointGeometry(Geometry):
930 """Proxy of C++ IMP::display::PointGeometry class."""
932 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
934 def __init__(self, *args):
936 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
937 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
938 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
939 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
941 this = _IMP_display.new_PointGeometry(*args)
943 self.this.append(this)
944 except __builtin__.Exception:
947 def get_geometry(self):
948 """get_geometry(PointGeometry self) -> Vector3D"""
949 return _IMP_display.PointGeometry_get_geometry(self)
952 def set_geometry(self, v):
953 """set_geometry(PointGeometry self, Vector3D v)"""
954 return _IMP_display.PointGeometry_set_geometry(self, v)
957 def get_version_info(self):
958 """get_version_info(PointGeometry self) -> VersionInfo"""
959 return _IMP_display.PointGeometry_get_version_info(self)
963 """__str__(PointGeometry self) -> std::string"""
964 return _IMP_display.PointGeometry___str__(self)
968 """__repr__(PointGeometry self) -> std::string"""
969 return _IMP_display.PointGeometry___repr__(self)
974 return _object_cast_to_PointGeometry(o)
976 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
977 PointGeometry_swigregister(PointGeometry)
979 class SegmentGeometry(Geometry):
980 """Proxy of C++ IMP::display::SegmentGeometry class."""
982 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
984 def __init__(self, *args):
986 __init__(IMP::display::SegmentGeometry self, Segment3D v) -> SegmentGeometry
987 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
988 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
989 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
991 this = _IMP_display.new_SegmentGeometry(*args)
993 self.this.append(this)
994 except __builtin__.Exception:
997 def get_geometry(self):
998 """get_geometry(SegmentGeometry self) -> Segment3D"""
999 return _IMP_display.SegmentGeometry_get_geometry(self)
1002 def set_geometry(self, v):
1003 """set_geometry(SegmentGeometry self, Segment3D v)"""
1004 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1007 def get_version_info(self):
1008 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1009 return _IMP_display.SegmentGeometry_get_version_info(self)
1013 """__str__(SegmentGeometry self) -> std::string"""
1014 return _IMP_display.SegmentGeometry___str__(self)
1018 """__repr__(SegmentGeometry self) -> std::string"""
1019 return _IMP_display.SegmentGeometry___repr__(self)
1024 return _object_cast_to_SegmentGeometry(o)
1026 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1027 SegmentGeometry_swigregister(SegmentGeometry)
1029 class PolygonGeometry(Geometry):
1030 """Proxy of C++ IMP::display::PolygonGeometry class."""
1032 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1034 def __init__(self, *args):
1036 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
1037 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
1038 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
1039 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
1041 this = _IMP_display.new_PolygonGeometry(*args)
1043 self.this.append(this)
1044 except __builtin__.Exception:
1047 def get_geometry(self):
1048 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
1049 return _IMP_display.PolygonGeometry_get_geometry(self)
1052 def set_geometry(self, v):
1053 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
1054 return _IMP_display.PolygonGeometry_set_geometry(self, v)
1057 def get_version_info(self):
1058 """get_version_info(PolygonGeometry self) -> VersionInfo"""
1059 return _IMP_display.PolygonGeometry_get_version_info(self)
1063 """__str__(PolygonGeometry self) -> std::string"""
1064 return _IMP_display.PolygonGeometry___str__(self)
1068 """__repr__(PolygonGeometry self) -> std::string"""
1069 return _IMP_display.PolygonGeometry___repr__(self)
1074 return _object_cast_to_PolygonGeometry(o)
1076 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
1077 PolygonGeometry_swigregister(PolygonGeometry)
1079 class TriangleGeometry(Geometry):
1080 """Proxy of C++ IMP::display::TriangleGeometry class."""
1082 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1084 def __init__(self, *args):
1086 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1087 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1088 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1089 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1091 this = _IMP_display.new_TriangleGeometry(*args)
1093 self.this.append(this)
1094 except __builtin__.Exception:
1097 def get_geometry(self):
1098 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1099 return _IMP_display.TriangleGeometry_get_geometry(self)
1102 def set_geometry(self, v):
1103 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1104 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1107 def get_version_info(self):
1108 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1109 return _IMP_display.TriangleGeometry_get_version_info(self)
1113 """__str__(TriangleGeometry self) -> std::string"""
1114 return _IMP_display.TriangleGeometry___str__(self)
1118 """__repr__(TriangleGeometry self) -> std::string"""
1119 return _IMP_display.TriangleGeometry___repr__(self)
1124 return _object_cast_to_TriangleGeometry(o)
1126 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1127 TriangleGeometry_swigregister(TriangleGeometry)
1129 class BoundingBoxGeometry(Geometry):
1130 """Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1132 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1134 def __init__(self, *args):
1136 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1137 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1138 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1139 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1141 this = _IMP_display.new_BoundingBoxGeometry(*args)
1143 self.this.append(this)
1144 except __builtin__.Exception:
1147 def get_geometry(self):
1148 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1149 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1152 def set_geometry(self, v):
1153 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1154 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1157 def get_version_info(self):
1158 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1159 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1163 """__str__(BoundingBoxGeometry self) -> std::string"""
1164 return _IMP_display.BoundingBoxGeometry___str__(self)
1168 """__repr__(BoundingBoxGeometry self) -> std::string"""
1169 return _IMP_display.BoundingBoxGeometry___repr__(self)
1174 return _object_cast_to_BoundingBoxGeometry(o)
1176 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1177 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1179 class ReferenceFrameGeometry(Geometry):
1180 """Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1182 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1184 def __init__(self, *args):
1186 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1187 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1188 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1189 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1191 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1193 self.this.append(this)
1194 except __builtin__.Exception:
1197 def get_geometry(self):
1198 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1199 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1202 def set_geometry(self, v):
1203 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1204 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1207 def get_version_info(self):
1208 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1209 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1213 """__str__(ReferenceFrameGeometry self) -> std::string"""
1214 return _IMP_display.ReferenceFrameGeometry___str__(self)
1218 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1219 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1224 return _object_cast_to_ReferenceFrameGeometry(o)
1226 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1227 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1232 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1233 create_geometry(Sphere3D t) -> SphereGeometry
1234 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1235 create_geometry(Cylinder3D t) -> CylinderGeometry
1236 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1237 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1238 create_geometry(Vector3D t, std::string name) -> PointGeometry
1239 create_geometry(Vector3D t) -> PointGeometry
1240 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1241 create_geometry(Segment3D t) -> SegmentGeometry
1242 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1243 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1244 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1245 create_geometry(Triangle3D t) -> TriangleGeometry
1246 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1247 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1248 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1249 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1251 return _IMP_display.create_geometry(*args)
1252 class LabelGeometry(Geometry):
1253 """Proxy of C++ IMP::display::LabelGeometry class."""
1255 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1257 def __init__(self, *args):
1259 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1260 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1262 this = _IMP_display.new_LabelGeometry(*args)
1264 self.this.append(this)
1265 except __builtin__.Exception:
1269 """get_text(LabelGeometry self) -> std::string"""
1270 return _IMP_display.LabelGeometry_get_text(self)
1273 def get_location(self):
1274 """get_location(LabelGeometry self) -> Sphere3D"""
1275 return _IMP_display.LabelGeometry_get_location(self)
1278 def get_version_info(self):
1279 """get_version_info(LabelGeometry self) -> VersionInfo"""
1280 return _IMP_display.LabelGeometry_get_version_info(self)
1284 """__str__(LabelGeometry self) -> std::string"""
1285 return _IMP_display.LabelGeometry___str__(self)
1289 """__repr__(LabelGeometry self) -> std::string"""
1290 return _IMP_display.LabelGeometry___repr__(self)
1295 return _object_cast_to_LabelGeometry(o)
1297 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1298 LabelGeometry_swigregister(LabelGeometry)
1300 class SurfaceMeshGeometry(Geometry):
1301 """Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1303 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1305 def __init__(self, vertices, faces):
1306 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1307 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1309 self.this.append(this)
1310 except __builtin__.Exception:
1313 def get_vertexes(self):
1314 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1315 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1318 def get_faces(self):
1319 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1320 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1323 def get_version_info(self):
1324 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1325 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1329 """__str__(SurfaceMeshGeometry self) -> std::string"""
1330 return _IMP_display.SurfaceMeshGeometry___str__(self)
1334 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1335 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1340 return _object_cast_to_SurfaceMeshGeometry(o)
1342 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1343 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1345 class PlaneGeometry(Geometry):
1346 """Proxy of C++ IMP::display::PlaneGeometry class."""
1348 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1350 def __init__(self, loc, box):
1351 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1352 this = _IMP_display.new_PlaneGeometry(loc, box)
1354 self.this.append(this)
1355 except __builtin__.Exception:
1358 def get_version_info(self):
1359 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1360 return _IMP_display.PlaneGeometry_get_version_info(self)
1364 """__str__(PlaneGeometry self) -> std::string"""
1365 return _IMP_display.PlaneGeometry___str__(self)
1369 """__repr__(PlaneGeometry self) -> std::string"""
1370 return _IMP_display.PlaneGeometry___repr__(self)
1375 return _object_cast_to_PlaneGeometry(o)
1377 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1378 PlaneGeometry_swigregister(PlaneGeometry)
1380 class IsosurfaceGeometry(SurfaceMeshGeometry):
1381 """Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1383 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1385 def __init__(self, *args):
1387 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1388 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1390 this = _IMP_display.new_IsosurfaceGeometry(*args)
1392 self.this.append(this)
1393 except __builtin__.Exception:
1397 """__str__(IsosurfaceGeometry self) -> std::string"""
1398 return _IMP_display.IsosurfaceGeometry___str__(self)
1402 """__repr__(IsosurfaceGeometry self) -> std::string"""
1403 return _IMP_display.IsosurfaceGeometry___repr__(self)
1408 return _object_cast_to_IsosurfaceGeometry(o)
1410 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1411 __del__ =
lambda self:
None
1412 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1413 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1415 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1416 """Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1418 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1420 def __init__(self, balls):
1421 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1422 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1424 self.this.append(this)
1425 except __builtin__.Exception:
1429 """__str__(SkinSurfaceGeometry self) -> std::string"""
1430 return _IMP_display.SkinSurfaceGeometry___str__(self)
1434 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1435 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1440 return _object_cast_to_SkinSurfaceGeometry(o)
1442 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1443 __del__ =
lambda self:
None
1444 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1445 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1447 class GeometryProcessor(object):
1448 """Proxy of C++ IMP::display::GeometryProcessor class."""
1450 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1451 __repr__ = _swig_repr
1454 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1455 this = _IMP_display.new_GeometryProcessor()
1457 self.this.append(this)
1458 except __builtin__.Exception:
1460 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1461 GeometryProcessor_swigregister(GeometryProcessor)
1464 """Proxy of C++ IMP::display::Writer class."""
1466 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1468 def __init__(self, name):
1469 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1470 if self.__class__ == Writer:
1474 this = _IMP_display.new_Writer(_self, name)
1476 self.this.append(this)
1477 except __builtin__.Exception:
1480 if self.__class__ != Writer:
1481 _director_objects.register(self)
1485 __swig_destroy__ = _IMP_display.delete_Writer
1486 __del__ =
lambda self:
None
1488 def set_frame(self, i):
1489 """set_frame(Writer self, unsigned int i)"""
1490 return _IMP_display.Writer_set_frame(self, i)
1493 def get_frame(self):
1494 """get_frame(Writer self) -> int"""
1495 return _IMP_display.Writer_get_frame(self)
1500 add_geometry(Writer self, Geometry g)
1501 add_geometry(Writer self, IMP::display::Geometries const & g)
1503 return _IMP_display.Writer_add_geometry(self, *args)
1507 """do_close(Writer self)"""
1508 return _IMP_display.Writer_do_close(self)
1512 """do_open(Writer self)"""
1513 return _IMP_display.Writer_do_open(self)
1516 def do_set_frame(self):
1517 """do_set_frame(Writer self)"""
1518 return _IMP_display.Writer_do_set_frame(self)
1522 """__str__(Writer self) -> std::string"""
1523 return _IMP_display.Writer___str__(self)
1527 """__repr__(Writer self) -> std::string"""
1528 return _IMP_display.Writer___repr__(self)
1533 return _object_cast_to_Writer(o)
1536 def get_type_name(self):
1537 return self.__class__.__name__
1538 def do_show(self, out):
1540 def get_version_info(self):
1541 if"IMP::display" ==
"IMP":
1542 return VersionInfo(self.__module__,
1543 __import__(self.__module__).get_module_version())
1546 __import__(self.__module__).get_module_version())
1549 return _object_cast_to_Writer(o)
1551 def __disown__(self):
1553 _IMP_display.disown_Writer(self)
1554 return weakref_proxy(self)
1556 def handle_sphere(self, arg0, arg1, arg2):
1557 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1558 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1561 def handle_cylinder(self, arg0, arg1, arg2):
1562 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1563 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1566 def handle_point(self, arg0, arg1, arg2):
1567 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1568 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1571 def handle_segment(self, arg0, arg1, arg2):
1572 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1573 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1576 def handle_polygon(self, arg0, arg1, arg2):
1577 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1578 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1581 def handle_triangle(self, arg0, arg1, arg2):
1582 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1583 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1586 def handle_surface_mesh(self, arg0, arg1, arg2):
1587 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1588 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1591 def handle_label(self, arg0, arg1, arg2):
1592 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1593 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1596 def handle_ellipsoid(self, arg0, arg1, arg2):
1597 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1598 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1601 def handle_bounding_box(self, arg0, arg1, arg2):
1602 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1603 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1606 def handle_anything(self, arg0, arg1, arg2):
1607 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1608 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1611 def do_destroy(self):
1612 """do_destroy(Writer self)"""
1613 return _IMP_display.Writer_do_destroy(self)
1615 Writer_swigregister = _IMP_display.Writer_swigregister
1616 Writer_swigregister(Writer)
1618 class TextWriter(Writer):
1619 """Proxy of C++ IMP::display::TextWriter class."""
1621 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1624 """open(TextWriter self)"""
1625 return _IMP_display.TextWriter_open(self)
1628 def get_stream(self):
1629 """get_stream(TextWriter self) -> _ostream"""
1630 return _IMP_display.TextWriter_get_stream(self)
1633 def do_set_frame(self):
1634 """do_set_frame(TextWriter self)"""
1635 return _IMP_display.TextWriter_do_set_frame(self)
1638 def __init__(self, *args):
1640 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1641 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1643 if self.__class__ == TextWriter:
1647 this = _IMP_display.new_TextWriter(_self, *args)
1649 self.this.append(this)
1650 except __builtin__.Exception:
1653 if self.__class__ != TextWriter:
1654 _director_objects.register(self)
1659 def get_current_file_name(self):
1660 """get_current_file_name(TextWriter self) -> std::string"""
1661 return _IMP_display.TextWriter_get_current_file_name(self)
1663 __swig_destroy__ = _IMP_display.delete_TextWriter
1664 __del__ =
lambda self:
None
1667 """__str__(TextWriter self) -> std::string"""
1668 return _IMP_display.TextWriter___str__(self)
1672 """__repr__(TextWriter self) -> std::string"""
1673 return _IMP_display.TextWriter___repr__(self)
1678 return _object_cast_to_TextWriter(o)
1681 def get_type_name(self):
1682 return self.__class__.__name__
1683 def do_show(self, out):
1685 def get_version_info(self):
1686 if"IMP::display" ==
"IMP":
1687 return VersionInfo(self.__module__,
1688 __import__(self.__module__).get_module_version())
1691 __import__(self.__module__).get_module_version())
1694 return _object_cast_to_TextWriter(o)
1696 def __disown__(self):
1698 _IMP_display.disown_TextWriter(self)
1699 return weakref_proxy(self)
1701 def handle_sphere(self, arg0, arg1, arg2):
1702 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1703 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1706 def handle_cylinder(self, arg0, arg1, arg2):
1707 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1708 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1711 def handle_point(self, arg0, arg1, arg2):
1712 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1713 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1716 def handle_segment(self, arg0, arg1, arg2):
1717 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1718 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1721 def handle_polygon(self, arg0, arg1, arg2):
1722 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1723 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1726 def handle_triangle(self, arg0, arg1, arg2):
1727 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1728 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1731 def handle_surface_mesh(self, arg0, arg1, arg2):
1732 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1733 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1736 def handle_label(self, arg0, arg1, arg2):
1737 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1738 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1741 def handle_ellipsoid(self, arg0, arg1, arg2):
1742 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1743 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1746 def handle_bounding_box(self, arg0, arg1, arg2):
1747 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1748 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1751 def handle_anything(self, arg0, arg1, arg2):
1752 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1753 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1756 def do_destroy(self):
1757 """do_destroy(TextWriter self)"""
1758 return _IMP_display.TextWriter_do_destroy(self)
1762 """do_close(TextWriter self)"""
1763 return _IMP_display.TextWriter_do_close(self)
1767 """do_open(TextWriter self)"""
1768 return _IMP_display.TextWriter_do_open(self)
1770 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1771 TextWriter_swigregister(TextWriter)
1775 """create_writer(std::string filename) -> Writer"""
1776 return _IMP_display.create_writer(filename)
1777 class WriterAdaptor(IMP._InputAdaptor):
1778 """Proxy of C++ IMP::display::WriterAdaptor class."""
1780 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1782 def __init__(self, *args):
1784 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1785 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1787 this = _IMP_display.new_WriterAdaptor(*args)
1789 self.this.append(this)
1790 except __builtin__.Exception:
1793 def get_writer(self):
1794 """get_writer(WriterAdaptor self) -> Writer"""
1795 return _IMP_display.WriterAdaptor_get_writer(self)
1798 def show(self, *args):
1800 show(WriterAdaptor self, _ostream out)
1801 show(WriterAdaptor self)
1803 return _IMP_display.WriterAdaptor_show(self, *args)
1805 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1806 __del__ =
lambda self:
None
1809 """__str__(WriterAdaptor self) -> std::string"""
1810 return _IMP_display.WriterAdaptor___str__(self)
1814 """__repr__(WriterAdaptor self) -> std::string"""
1815 return _IMP_display.WriterAdaptor___repr__(self)
1817 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1818 WriterAdaptor_swigregister(WriterAdaptor)
1821 """Proxy of C++ IMP::display::Colored class."""
1823 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1825 def set_color(self, c):
1826 """set_color(Colored self, Color c)"""
1827 return _IMP_display.Colored_set_color(self, c)
1830 def get_color(self):
1831 """get_color(Colored self) -> Color"""
1832 return _IMP_display.Colored_get_color(self)
1835 def get_color_keys():
1836 """get_color_keys() -> IMP::FloatKeys const &"""
1837 return _IMP_display.Colored_get_color_keys()
1839 get_color_keys = staticmethod(get_color_keys)
1841 def __init__(self, *args):
1843 __init__(IMP::display::Colored self) -> Colored
1844 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1845 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1847 this = _IMP_display.new_Colored(*args)
1849 self.this.append(this)
1850 except __builtin__.Exception:
1853 def get_is_setup(*args):
1855 get_is_setup(Model m, ParticleIndex pi) -> bool
1856 get_is_setup(_ParticleAdaptor p) -> bool
1858 return _IMP_display.Colored_get_is_setup(*args)
1860 get_is_setup = staticmethod(get_is_setup)
1862 def show(self, *args):
1864 show(Colored self, _ostream out)
1867 return _IMP_display.Colored_show(self, *args)
1870 def setup_particle(*args):
1872 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1873 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1875 return _IMP_display.Colored_setup_particle(*args)
1877 setup_particle = staticmethod(setup_particle)
1879 def add_attribute(self, *args):
1881 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1882 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1883 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1884 add_attribute(Colored self, StringKey a0, IMP::String a1)
1885 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1886 add_attribute(Colored self, ObjectKey a0, Object a1)
1888 return _IMP_display.Colored_add_attribute(self, *args)
1891 def get_value(self, *args):
1893 get_value(Colored self, FloatKey a0) -> IMP::Float
1894 get_value(Colored self, IntKey a0) -> IMP::Int
1895 get_value(Colored self, StringKey a0) -> IMP::String
1896 get_value(Colored self, ParticleIndexKey a0) -> Particle
1897 get_value(Colored self, ObjectKey a0) -> Object
1899 return _IMP_display.Colored_get_value(self, *args)
1902 def set_value(self, *args):
1904 set_value(Colored self, FloatKey a0, IMP::Float a1)
1905 set_value(Colored self, IntKey a0, IMP::Int a1)
1906 set_value(Colored self, StringKey a0, IMP::String a1)
1907 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1908 set_value(Colored self, ObjectKey a0, Object a1)
1910 return _IMP_display.Colored_set_value(self, *args)
1913 def remove_attribute(self, *args):
1915 remove_attribute(Colored self, FloatKey a0)
1916 remove_attribute(Colored self, IntKey a0)
1917 remove_attribute(Colored self, StringKey a0)
1918 remove_attribute(Colored self, ParticleIndexKey a0)
1919 remove_attribute(Colored self, ObjectKey a0)
1921 return _IMP_display.Colored_remove_attribute(self, *args)
1924 def has_attribute(self, *args):
1926 has_attribute(Colored self, FloatKey a0) -> bool
1927 has_attribute(Colored self, IntKey a0) -> bool
1928 has_attribute(Colored self, StringKey a0) -> bool
1929 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1930 has_attribute(Colored self, ObjectKey a0) -> bool
1932 return _IMP_display.Colored_has_attribute(self, *args)
1935 def get_derivative(self, a0):
1936 """get_derivative(Colored self, FloatKey a0) -> double"""
1937 return _IMP_display.Colored_get_derivative(self, a0)
1941 """get_name(Colored self) -> std::string"""
1942 return _IMP_display.Colored_get_name(self)
1945 def clear_caches(self):
1946 """clear_caches(Colored self)"""
1947 return _IMP_display.Colored_clear_caches(self)
1950 def set_name(self, a0):
1951 """set_name(Colored self, std::string a0)"""
1952 return _IMP_display.Colored_set_name(self, a0)
1956 """set_check_level(Colored self, IMP::CheckLevel a0)"""
1957 return _IMP_display.Colored_set_check_level(self, a0)
1960 def add_to_derivative(self, a0, a1, a2):
1961 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1962 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1965 def set_is_optimized(self, a0, a1):
1966 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1967 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1970 def get_is_optimized(self, a0):
1971 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
1972 return _IMP_display.Colored_get_is_optimized(self, a0)
1976 """get_check_level(Colored self) -> IMP::CheckLevel"""
1977 return _IMP_display.Colored_get_check_level(self)
1980 def __eq__(self, *args):
1982 __eq__(Colored self, Colored o) -> bool
1983 __eq__(Colored self, Particle d) -> bool
1985 return _IMP_display.Colored___eq__(self, *args)
1988 def __ne__(self, *args):
1990 __ne__(Colored self, Colored o) -> bool
1991 __ne__(Colored self, Particle d) -> bool
1993 return _IMP_display.Colored___ne__(self, *args)
1996 def __le__(self, *args):
1998 __le__(Colored self, Colored o) -> bool
1999 __le__(Colored self, Particle d) -> bool
2001 return _IMP_display.Colored___le__(self, *args)
2004 def __lt__(self, *args):
2006 __lt__(Colored self, Colored o) -> bool
2007 __lt__(Colored self, Particle d) -> bool
2009 return _IMP_display.Colored___lt__(self, *args)
2012 def __ge__(self, *args):
2014 __ge__(Colored self, Colored o) -> bool
2015 __ge__(Colored self, Particle d) -> bool
2017 return _IMP_display.Colored___ge__(self, *args)
2020 def __gt__(self, *args):
2022 __gt__(Colored self, Colored o) -> bool
2023 __gt__(Colored self, Particle d) -> bool
2025 return _IMP_display.Colored___gt__(self, *args)
2029 """__hash__(Colored self) -> std::size_t"""
2030 return _IMP_display.Colored___hash__(self)
2034 """__str__(Colored self) -> std::string"""
2035 return _IMP_display.Colored___str__(self)
2039 """__repr__(Colored self) -> std::string"""
2040 return _IMP_display.Colored___repr__(self)
2042 __swig_destroy__ = _IMP_display.delete_Colored
2043 __del__ =
lambda self:
None
2044 Colored_swigregister = _IMP_display.Colored_swigregister
2045 Colored_swigregister(Colored)
2047 def Colored_get_color_keys():
2048 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2049 return _IMP_display.Colored_get_color_keys()
2051 def Colored_get_is_setup(*args):
2053 get_is_setup(Model m, ParticleIndex pi) -> bool
2054 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2056 return _IMP_display.Colored_get_is_setup(*args)
2058 def Colored_setup_particle(*args):
2060 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2061 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2063 return _IMP_display.Colored_setup_particle(*args)
2066 def __lshift__(out, n):
2067 """__lshift__(_ostream out, Colored n) -> _ostream"""
2068 return _IMP_display.__lshift__(out, n)
2069 class FilterGeometry(GeometryProcessor, Geometry):
2070 """Proxy of C++ IMP::display::FilterGeometry class."""
2072 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2074 def __init__(self, p):
2075 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2076 this = _IMP_display.new_FilterGeometry(p)
2078 self.this.append(this)
2079 except __builtin__.Exception:
2084 add_geometry(FilterGeometry self, Geometry g)
2085 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2087 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2090 def get_version_info(self):
2091 """get_version_info(FilterGeometry self) -> VersionInfo"""
2092 return _IMP_display.FilterGeometry_get_version_info(self)
2096 """__str__(FilterGeometry self) -> std::string"""
2097 return _IMP_display.FilterGeometry___str__(self)
2101 """__repr__(FilterGeometry self) -> std::string"""
2102 return _IMP_display.FilterGeometry___repr__(self)
2107 return _object_cast_to_FilterGeometry(o)
2109 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2110 FilterGeometry_swigregister(FilterGeometry)
2113 """Proxy of C++ IMP::display::WriteOptimizerState class."""
2115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2117 def __init__(self, m, w):
2118 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2119 this = _IMP_display.new_WriteOptimizerState(m, w)
2121 self.this.append(this)
2122 except __builtin__.Exception:
2126 """write(WriteOptimizerState self, WriterAdaptor w)"""
2127 return _IMP_display.WriteOptimizerState_write(self, w)
2130 def remove_geometry(self, d):
2131 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2132 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2135 def remove_geometries(self, d):
2136 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2137 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2140 def set_geometries(self, ps):
2141 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2142 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2145 def set_geometries_order(self, objs):
2146 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2147 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2151 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2152 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2156 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2157 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2160 def clear_geometries(self):
2161 """clear_geometries(WriteOptimizerState self)"""
2162 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2165 def get_number_of_geometries(self):
2166 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2167 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2170 def get_has_geometries(self):
2171 """get_has_geometries(WriteOptimizerState self) -> bool"""
2172 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2175 def get_geometry(self, i):
2176 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2177 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2180 def get_geometries(self):
2181 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2182 return _IMP_display.WriteOptimizerState_get_geometries(self)
2185 def reserve_geometries(self, sz):
2186 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2187 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2190 def get_version_info(self):
2191 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2192 return _IMP_display.WriteOptimizerState_get_version_info(self)
2196 """__str__(WriteOptimizerState self) -> std::string"""
2197 return _IMP_display.WriteOptimizerState___str__(self)
2201 """__repr__(WriteOptimizerState self) -> std::string"""
2202 return _IMP_display.WriteOptimizerState___repr__(self)
2207 return _object_cast_to_WriteOptimizerState(o)
2209 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2210 WriteOptimizerState_swigregister(WriteOptimizerState)
2212 class SingletonGeometry(Geometry):
2213 """Proxy of C++ IMP::display::SingletonGeometry class."""
2215 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2217 def __init__(self, p):
2218 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2219 this = _IMP_display.new_SingletonGeometry(p)
2221 self.this.append(this)
2222 except __builtin__.Exception:
2225 def get_particle(self):
2226 """get_particle(SingletonGeometry self) -> Particle"""
2227 return _IMP_display.SingletonGeometry_get_particle(self)
2229 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2230 __del__ =
lambda self:
None
2233 """__str__(SingletonGeometry self) -> std::string"""
2234 return _IMP_display.SingletonGeometry___str__(self)
2238 """__repr__(SingletonGeometry self) -> std::string"""
2239 return _IMP_display.SingletonGeometry___repr__(self)
2244 return _object_cast_to_SingletonGeometry(o)
2246 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2247 SingletonGeometry_swigregister(SingletonGeometry)
2249 class SingletonsGeometry(Geometry):
2250 """Proxy of C++ IMP::display::SingletonsGeometry class."""
2252 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2254 def __init__(self, *args):
2256 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2257 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2259 this = _IMP_display.new_SingletonsGeometry(*args)
2261 self.this.append(this)
2262 except __builtin__.Exception:
2265 def get_container(self):
2266 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2267 return _IMP_display.SingletonsGeometry_get_container(self)
2269 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2270 __del__ =
lambda self:
None
2273 """__str__(SingletonsGeometry self) -> std::string"""
2274 return _IMP_display.SingletonsGeometry___str__(self)
2278 """__repr__(SingletonsGeometry self) -> std::string"""
2279 return _IMP_display.SingletonsGeometry___repr__(self)
2284 return _object_cast_to_SingletonsGeometry(o)
2286 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2287 SingletonsGeometry_swigregister(SingletonsGeometry)
2289 class PairGeometry(Geometry):
2290 """Proxy of C++ IMP::display::PairGeometry class."""
2292 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2294 def __init__(self, pp):
2295 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2296 this = _IMP_display.new_PairGeometry(pp)
2298 self.this.append(this)
2299 except __builtin__.Exception:
2302 def get_particle_pair(self):
2303 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2304 return _IMP_display.PairGeometry_get_particle_pair(self)
2306 __swig_destroy__ = _IMP_display.delete_PairGeometry
2307 __del__ =
lambda self:
None
2310 """__str__(PairGeometry self) -> std::string"""
2311 return _IMP_display.PairGeometry___str__(self)
2315 """__repr__(PairGeometry self) -> std::string"""
2316 return _IMP_display.PairGeometry___repr__(self)
2321 return _object_cast_to_PairGeometry(o)
2323 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2324 PairGeometry_swigregister(PairGeometry)
2326 class PairsGeometry(Geometry):
2327 """Proxy of C++ IMP::display::PairsGeometry class."""
2329 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2331 def __init__(self, *args):
2333 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2334 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2336 this = _IMP_display.new_PairsGeometry(*args)
2338 self.this.append(this)
2339 except __builtin__.Exception:
2342 def get_container(self):
2343 """get_container(PairsGeometry self) -> PairContainer"""
2344 return _IMP_display.PairsGeometry_get_container(self)
2346 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2347 __del__ =
lambda self:
None
2350 """__str__(PairsGeometry self) -> std::string"""
2351 return _IMP_display.PairsGeometry___str__(self)
2355 """__repr__(PairsGeometry self) -> std::string"""
2356 return _IMP_display.PairsGeometry___repr__(self)
2361 return _object_cast_to_PairsGeometry(o)
2363 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2364 PairsGeometry_swigregister(PairsGeometry)
2366 class PymolWriter(TextWriter):
2367 """Proxy of C++ IMP::display::PymolWriter class."""
2369 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2371 def __init__(self, *args):
2373 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2374 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2375 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2377 this = _IMP_display.new_PymolWriter(*args)
2379 self.this.append(this)
2380 except __builtin__.Exception:
2383 def get_version_info(self):
2384 """get_version_info(PymolWriter self) -> VersionInfo"""
2385 return _IMP_display.PymolWriter_get_version_info(self)
2389 """__str__(PymolWriter self) -> std::string"""
2390 return _IMP_display.PymolWriter___str__(self)
2394 """__repr__(PymolWriter self) -> std::string"""
2395 return _IMP_display.PymolWriter___repr__(self)
2400 return _object_cast_to_PymolWriter(o)
2402 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2403 PymolWriter_swigregister(PymolWriter)
2405 class RestraintGeometry(Geometry):
2406 """Proxy of C++ IMP::display::RestraintGeometry class."""
2408 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2410 def __init__(self, p):
2411 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2412 this = _IMP_display.new_RestraintGeometry(p)
2414 self.this.append(this)
2415 except __builtin__.Exception:
2418 def get_restraint(self):
2419 """get_restraint(RestraintGeometry self) -> Restraint"""
2420 return _IMP_display.RestraintGeometry_get_restraint(self)
2423 def get_version_info(self):
2424 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2425 return _IMP_display.RestraintGeometry_get_version_info(self)
2429 """__str__(RestraintGeometry self) -> std::string"""
2430 return _IMP_display.RestraintGeometry___str__(self)
2434 """__repr__(RestraintGeometry self) -> std::string"""
2435 return _IMP_display.RestraintGeometry___repr__(self)
2440 return _object_cast_to_RestraintGeometry(o)
2442 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2443 RestraintGeometry_swigregister(RestraintGeometry)
2445 class RestraintSetGeometry(Geometry):
2446 """Proxy of C++ IMP::display::RestraintSetGeometry class."""
2448 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2450 def __init__(self, p):
2451 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2452 this = _IMP_display.new_RestraintSetGeometry(p)
2454 self.this.append(this)
2455 except __builtin__.Exception:
2458 def get_restraint_set(self):
2459 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2460 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2463 def get_version_info(self):
2464 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2465 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2469 """__str__(RestraintSetGeometry self) -> std::string"""
2470 return _IMP_display.RestraintSetGeometry___str__(self)
2474 """__repr__(RestraintSetGeometry self) -> std::string"""
2475 return _IMP_display.RestraintSetGeometry___repr__(self)
2480 return _object_cast_to_RestraintSetGeometry(o)
2482 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2483 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2487 PivyWriter= _pivy.get_writer(Writer)
2488 _object_types.append(
'PivyWriter')
2491 def get_module_version():
2492 """get_module_version() -> std::string const"""
2493 return _IMP_display.get_module_version()
2496 """get_example_path(std::string fname) -> std::string"""
2497 return _IMP_display.get_example_path(fname)
2500 """get_data_path(std::string fname) -> std::string"""
2501 return _IMP_display.get_data_path(fname)
2503 from .
import _version_check
2504 _version_check.check_version(get_module_version())
2505 __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.
double get_linear_color_map_value(double min, double max, double value)
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
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.
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...
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
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.