10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_display', [dirname(__file__)])
28 _mod = imp.load_module(
'_IMP_display', fp, pathname, description)
32 _IMP_display = swig_import_helper()
33 del swig_import_helper
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
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
110 weakref_proxy =
lambda x: x
113 class IMP_DISPLAY_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class"""
115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
117 def __init__(self, *args, **kwargs):
118 raise AttributeError(
"No constructor defined - class is abstract")
119 __repr__ = _swig_repr
120 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
121 __del__ =
lambda self:
None
124 """value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
125 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
130 incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
131 incr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
133 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
138 decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
139 decr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
141 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
144 def distance(self, x):
145 """distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
146 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
150 """equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
151 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
155 """copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
156 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
160 """next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
161 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
165 """__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
166 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
170 """previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
171 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
174 def advance(self, n):
175 """advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
176 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
180 """__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
181 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
185 """__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
186 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
189 def __iadd__(self, n):
190 """__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
191 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
194 def __isub__(self, n):
195 """__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
196 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
199 def __add__(self, n):
200 """__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
201 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
204 def __sub__(self, *args):
206 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
207 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
209 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
213 IMP_DISPLAY_SwigPyIterator_swigregister = _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister
214 IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
223 _IMP_display.IMP_DEBUG_swigconstant(_IMP_display)
224 IMP_DEBUG = _IMP_display.IMP_DEBUG
226 _IMP_display.IMP_RELEASE_swigconstant(_IMP_display)
227 IMP_RELEASE = _IMP_display.IMP_RELEASE
229 _IMP_display.IMP_SILENT_swigconstant(_IMP_display)
230 IMP_SILENT = _IMP_display.IMP_SILENT
232 _IMP_display.IMP_PROGRESS_swigconstant(_IMP_display)
233 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
235 _IMP_display.IMP_TERSE_swigconstant(_IMP_display)
236 IMP_TERSE = _IMP_display.IMP_TERSE
238 _IMP_display.IMP_VERBOSE_swigconstant(_IMP_display)
239 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
241 _IMP_display.IMP_MEMORY_swigconstant(_IMP_display)
242 IMP_MEMORY = _IMP_display.IMP_MEMORY
244 _IMP_display.IMP_NONE_swigconstant(_IMP_display)
245 IMP_NONE = _IMP_display.IMP_NONE
247 _IMP_display.IMP_USAGE_swigconstant(_IMP_display)
248 IMP_USAGE = _IMP_display.IMP_USAGE
250 _IMP_display.IMP_INTERNAL_swigconstant(_IMP_display)
251 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
253 _IMP_display.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_display)
254 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
256 _IMP_display.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_display)
257 IMP_COMPILER_HAS_AUTO = _IMP_display.IMP_COMPILER_HAS_AUTO
259 _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_display)
260 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
262 _IMP_display.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_display)
263 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_display.IMP_COMPILER_HAS_UNIQUE_PTR
265 _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
266 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
268 _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_display)
269 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
271 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_display)
272 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
274 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_display)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
277 _IMP_display.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_display)
278 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
281 class _DirectorObjects(object):
282 """@internal Simple class to keep references to director objects
283 to prevent premature deletion."""
286 def register(self, obj):
287 """Take a reference to a director object; will only work for
288 refcounted C++ classes"""
289 if hasattr(obj,
'get_ref_count'):
290 self._objects.append(obj)
292 """Only drop our reference and allow cleanup by Python if no other
293 Python references exist (we hold 3 references: one in self._objects,
294 one in x, and one in the argument list for getrefcount) *and* no
295 other C++ references exist (the Python object always holds one)"""
296 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
297 or x.get_ref_count() > 1]
301 def get_object_count(self):
302 """Get number of director objects (useful for testing only)"""
303 return len(self._objects)
304 _director_objects = _DirectorObjects()
306 class _ostream(object):
307 """Proxy of C++ std::ostream class"""
308 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
310 def __init__(self, *args, **kwargs):
311 raise AttributeError(
"No constructor defined")
312 __repr__ = _swig_repr
314 def write(self, osa_buf):
315 """write(_ostream self, char const * osa_buf)"""
316 return _IMP_display._ostream_write(self, osa_buf)
318 _ostream_swigregister = _IMP_display._ostream_swigregister
319 _ostream_swigregister(_ostream)
322 _IMP_display.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_display)
323 IMP_COMPILER_HAS_OVERRIDE = _IMP_display.IMP_COMPILER_HAS_OVERRIDE
325 _IMP_display.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_display)
326 IMP_COMPILER_HAS_FINAL = _IMP_display.IMP_COMPILER_HAS_FINAL
328 _IMP_display.IMP_HAS_NOEXCEPT_swigconstant(_IMP_display)
329 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
332 _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
333 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
335 _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
336 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
338 _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
339 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
341 _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
342 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
344 _IMP_display.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_display)
345 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
348 _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_display)
349 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
351 _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
352 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
354 _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
355 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
357 _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
358 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
360 _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
361 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
363 _IMP_display.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_display)
364 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
366 _IMP_display.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_display)
367 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
369 _IMP_display.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_display)
370 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
373 _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_display)
374 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
376 _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
377 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
379 _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
380 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
382 _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
383 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
385 _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
386 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
388 _IMP_display.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_display)
389 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
391 _IMP_display.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_display)
392 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
394 _object_types.append(
"Writer")
397 def _object_cast_to_Writer(o):
398 """_object_cast_to_Writer(Object o) -> Writer"""
399 return _IMP_display._object_cast_to_Writer(o)
401 _object_types.append(
"TextWriter")
404 def _object_cast_to_TextWriter(o):
405 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
406 return _IMP_display._object_cast_to_TextWriter(o)
408 _object_types.append(
"Geometry")
411 def _object_cast_to_Geometry(o):
412 """_object_cast_to_Geometry(Object o) -> Geometry"""
413 return _IMP_display._object_cast_to_Geometry(o)
415 _object_types.append(
"SingletonGeometry")
418 def _object_cast_to_SingletonGeometry(o):
419 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
420 return _IMP_display._object_cast_to_SingletonGeometry(o)
422 _object_types.append(
"PairGeometry")
425 def _object_cast_to_PairGeometry(o):
426 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
427 return _IMP_display._object_cast_to_PairGeometry(o)
429 _object_types.append(
"SingletonsGeometry")
432 def _object_cast_to_SingletonsGeometry(o):
433 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
434 return _IMP_display._object_cast_to_SingletonsGeometry(o)
436 _object_types.append(
"PairsGeometry")
439 def _object_cast_to_PairsGeometry(o):
440 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
441 return _IMP_display._object_cast_to_PairsGeometry(o)
443 _object_types.append(
"PymolWriter")
446 def _object_cast_to_PymolWriter(o):
447 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
448 return _IMP_display._object_cast_to_PymolWriter(o)
450 _object_types.append(
"SphereGeometry")
453 def _object_cast_to_SphereGeometry(o):
454 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
455 return _IMP_display._object_cast_to_SphereGeometry(o)
457 _object_types.append(
"CylinderGeometry")
460 def _object_cast_to_CylinderGeometry(o):
461 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
462 return _IMP_display._object_cast_to_CylinderGeometry(o)
464 _object_types.append(
"EllipsoidGeometry")
467 def _object_cast_to_EllipsoidGeometry(o):
468 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
469 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
471 _object_types.append(
"PointGeometry")
474 def _object_cast_to_PointGeometry(o):
475 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
476 return _IMP_display._object_cast_to_PointGeometry(o)
478 _object_types.append(
"SegmentGeometry")
481 def _object_cast_to_SegmentGeometry(o):
482 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
483 return _IMP_display._object_cast_to_SegmentGeometry(o)
485 _object_types.append(
"PolygonGeometry")
488 def _object_cast_to_PolygonGeometry(o):
489 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
490 return _IMP_display._object_cast_to_PolygonGeometry(o)
492 _object_types.append(
"ReferenceFrameGeometry")
495 def _object_cast_to_ReferenceFrameGeometry(o):
496 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
497 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
499 _object_types.append(
"BoundingBoxGeometry")
502 def _object_cast_to_BoundingBoxGeometry(o):
503 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
504 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
506 _object_types.append(
"LabelGeometry")
509 def _object_cast_to_LabelGeometry(o):
510 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
511 return _IMP_display._object_cast_to_LabelGeometry(o)
513 _object_types.append(
"RestraintGeometry")
516 def _object_cast_to_RestraintGeometry(o):
517 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
518 return _IMP_display._object_cast_to_RestraintGeometry(o)
520 _object_types.append(
"RestraintSetGeometry")
523 def _object_cast_to_RestraintSetGeometry(o):
524 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
525 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
527 _object_types.append(
"GeometrySet")
530 def _object_cast_to_GeometrySet(o):
531 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
532 return _IMP_display._object_cast_to_GeometrySet(o)
535 return [Colored(x)
for x
in l]
536 _plural_types.append(
"Coloreds")
539 _value_types.append(
"Colored")
543 _plural_types.append(
"Colors")
544 _value_types.append(
"Color")
548 _plural_types.append(
"WriterAdaptors")
549 _value_types.append(
"WriterAdaptor")
552 _object_types.append(
"FilterGeometry")
555 def _object_cast_to_FilterGeometry(o):
556 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
557 return _IMP_display._object_cast_to_FilterGeometry(o)
559 _object_types.append(
"WriteOptimizerState")
562 def _object_cast_to_WriteOptimizerState(o):
563 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
564 return _IMP_display._object_cast_to_WriteOptimizerState(o)
566 _object_types.append(
"TriangleGeometry")
569 def _object_cast_to_TriangleGeometry(o):
570 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
571 return _IMP_display._object_cast_to_TriangleGeometry(o)
573 _object_types.append(
"SurfaceMeshGeometry")
576 def _object_cast_to_SurfaceMeshGeometry(o):
577 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
578 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
580 _object_types.append(
"PlaneGeometry")
583 def _object_cast_to_PlaneGeometry(o):
584 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
585 return _IMP_display._object_cast_to_PlaneGeometry(o)
587 _object_types.append(
"IsosurfaceGeometry")
590 def _object_cast_to_IsosurfaceGeometry(o):
591 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
592 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
594 _object_types.append(
"SkinSurfaceGeometry")
597 def _object_cast_to_SkinSurfaceGeometry(o):
598 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
599 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
600 class Color(IMP._Value):
601 """Proxy of C++ IMP::display::Color class"""
602 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
604 def __init__(self, *args):
606 __init__(IMP::display::Color self) -> Color
607 __init__(IMP::display::Color self, double r, double g, double b) -> Color
609 this = _IMP_display.new_Color(*args)
611 self.this.append(this)
614 __swig_destroy__ = _IMP_display.delete_Color
615 __del__ =
lambda self:
None
618 """get_red(Color self) -> double"""
619 return _IMP_display.Color_get_red(self)
623 """get_green(Color self) -> double"""
624 return _IMP_display.Color_get_green(self)
628 """get_blue(Color self) -> double"""
629 return _IMP_display.Color_get_blue(self)
632 def show(self, *args):
634 show(Color self, _ostream out, std::string delim)
635 show(Color self, _ostream out)
638 return _IMP_display.Color_show(self, *args)
641 def __cmp__(self, o):
642 """__cmp__(Color self, Color o) -> int"""
643 return _IMP_display.Color___cmp__(self, o)
647 """__eq__(Color self, Color o) -> bool"""
648 return _IMP_display.Color___eq__(self, o)
652 """__ne__(Color self, Color o) -> bool"""
653 return _IMP_display.Color___ne__(self, o)
657 """__lt__(Color self, Color o) -> bool"""
658 return _IMP_display.Color___lt__(self, o)
662 """__gt__(Color self, Color o) -> bool"""
663 return _IMP_display.Color___gt__(self, o)
667 """__ge__(Color self, Color o) -> bool"""
668 return _IMP_display.Color___ge__(self, o)
672 """__le__(Color self, Color o) -> bool"""
673 return _IMP_display.Color___le__(self, o)
677 """__str__(Color self) -> std::string"""
678 return _IMP_display.Color___str__(self)
682 """__repr__(Color self) -> std::string"""
683 return _IMP_display.Color___repr__(self)
685 Color_swigregister = _IMP_display.Color_swigregister
686 Color_swigregister(Color)
690 """get_display_color(unsigned int i) -> Color"""
691 return _IMP_display.get_display_color(i)
694 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
695 return _IMP_display.get_interpolated_rgb(a, b, f)
698 """get_linear_color_map_value(double min, double max, double value) -> double"""
699 return _IMP_display.get_linear_color_map_value(min, max, value)
702 """get_jet_color(double f) -> Color"""
703 return _IMP_display.get_jet_color(f)
706 """get_hot_color(double f) -> Color"""
707 return _IMP_display.get_hot_color(f)
710 """get_rgb_color(double f) -> Color"""
711 return _IMP_display.get_rgb_color(f)
714 """get_gray_color(double f) -> Color"""
715 return _IMP_display.get_gray_color(f)
718 """get_gnuplot_color(double f) -> Color"""
719 return _IMP_display.get_gnuplot_color(f)
721 """Proxy of C++ IMP::display::Geometry class"""
722 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
724 def __init__(self, *args):
726 __init__(IMP::display::Geometry self, std::string name) -> Geometry
727 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
729 if self.__class__ == Geometry:
733 this = _IMP_display.new_Geometry(_self, *args)
735 self.this.append(this)
739 if self.__class__ != Geometry:
740 _director_objects.register(self)
746 """get_color(Geometry self) -> Color"""
747 return _IMP_display.Geometry_get_color(self)
750 def get_has_color(self):
751 """get_has_color(Geometry self) -> bool"""
752 return _IMP_display.Geometry_get_has_color(self)
755 def set_has_color(self, tf):
756 """set_has_color(Geometry self, bool tf)"""
757 return _IMP_display.Geometry_set_has_color(self, tf)
760 def set_color(self, c):
761 """set_color(Geometry self, Color c)"""
762 return _IMP_display.Geometry_set_color(self, c)
765 def get_components(self):
766 """get_components(Geometry self) -> IMP::display::Geometries"""
767 return _IMP_display.Geometry_get_components(self)
769 __swig_destroy__ = _IMP_display.delete_Geometry
770 __del__ =
lambda self:
None
773 """__str__(Geometry self) -> std::string"""
774 return _IMP_display.Geometry___str__(self)
778 """__repr__(Geometry self) -> std::string"""
779 return _IMP_display.Geometry___repr__(self)
784 return _object_cast_to_Geometry(o)
787 def get_type_name(self):
788 return self.__class__.__name__
789 def do_show(self, out):
791 def get_version_info(self):
792 if"IMP::display" ==
"IMP":
793 return VersionInfo(self.__module__,
794 __import__(self.__module__).get_module_version())
797 __import__(self.__module__).get_module_version())
800 return _object_cast_to_Geometry(o)
802 def __disown__(self):
804 _IMP_display.disown_Geometry(self)
805 return weakref_proxy(self)
807 def do_destroy(self):
808 """do_destroy(Geometry self)"""
809 return _IMP_display.Geometry_do_destroy(self)
811 Geometry_swigregister = _IMP_display.Geometry_swigregister
812 Geometry_swigregister(Geometry)
814 class GeometrySet(Geometry):
815 """Proxy of C++ IMP::display::GeometrySet class"""
816 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
818 def __init__(self, *args):
820 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
821 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
822 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
823 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
825 this = _IMP_display.new_GeometrySet(*args)
827 self.this.append(this)
831 def get_geometry(self):
832 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
833 return _IMP_display.GeometrySet_get_geometry(self)
836 def get_version_info(self):
837 """get_version_info(GeometrySet self) -> VersionInfo"""
838 return _IMP_display.GeometrySet_get_version_info(self)
842 """__str__(GeometrySet self) -> std::string"""
843 return _IMP_display.GeometrySet___str__(self)
847 """__repr__(GeometrySet self) -> std::string"""
848 return _IMP_display.GeometrySet___repr__(self)
853 return _object_cast_to_GeometrySet(o)
855 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
856 GeometrySet_swigregister(GeometrySet)
858 class SphereGeometry(Geometry):
859 """Proxy of C++ IMP::display::SphereGeometry class"""
860 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
862 def __init__(self, *args):
864 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
865 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
866 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
867 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
869 this = _IMP_display.new_SphereGeometry(*args)
871 self.this.append(this)
875 def get_geometry(self):
876 """get_geometry(SphereGeometry self) -> Sphere3D"""
877 return _IMP_display.SphereGeometry_get_geometry(self)
880 def set_geometry(self, v):
881 """set_geometry(SphereGeometry self, Sphere3D v)"""
882 return _IMP_display.SphereGeometry_set_geometry(self, v)
885 def get_version_info(self):
886 """get_version_info(SphereGeometry self) -> VersionInfo"""
887 return _IMP_display.SphereGeometry_get_version_info(self)
891 """__str__(SphereGeometry self) -> std::string"""
892 return _IMP_display.SphereGeometry___str__(self)
896 """__repr__(SphereGeometry self) -> std::string"""
897 return _IMP_display.SphereGeometry___repr__(self)
902 return _object_cast_to_SphereGeometry(o)
904 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
905 SphereGeometry_swigregister(SphereGeometry)
907 class CylinderGeometry(Geometry):
908 """Proxy of C++ IMP::display::CylinderGeometry class"""
909 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
911 def __init__(self, *args):
913 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
914 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
915 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
916 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
918 this = _IMP_display.new_CylinderGeometry(*args)
920 self.this.append(this)
924 def get_geometry(self):
925 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
926 return _IMP_display.CylinderGeometry_get_geometry(self)
929 def set_geometry(self, v):
930 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
931 return _IMP_display.CylinderGeometry_set_geometry(self, v)
934 def get_version_info(self):
935 """get_version_info(CylinderGeometry self) -> VersionInfo"""
936 return _IMP_display.CylinderGeometry_get_version_info(self)
940 """__str__(CylinderGeometry self) -> std::string"""
941 return _IMP_display.CylinderGeometry___str__(self)
945 """__repr__(CylinderGeometry self) -> std::string"""
946 return _IMP_display.CylinderGeometry___repr__(self)
951 return _object_cast_to_CylinderGeometry(o)
953 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
954 CylinderGeometry_swigregister(CylinderGeometry)
956 class EllipsoidGeometry(Geometry):
957 """Proxy of C++ IMP::display::EllipsoidGeometry class"""
958 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
960 def __init__(self, *args):
962 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
963 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
964 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
965 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
967 this = _IMP_display.new_EllipsoidGeometry(*args)
969 self.this.append(this)
973 def get_geometry(self):
974 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
975 return _IMP_display.EllipsoidGeometry_get_geometry(self)
978 def set_geometry(self, v):
979 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
980 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
983 def get_version_info(self):
984 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
985 return _IMP_display.EllipsoidGeometry_get_version_info(self)
989 """__str__(EllipsoidGeometry self) -> std::string"""
990 return _IMP_display.EllipsoidGeometry___str__(self)
994 """__repr__(EllipsoidGeometry self) -> std::string"""
995 return _IMP_display.EllipsoidGeometry___repr__(self)
1000 return _object_cast_to_EllipsoidGeometry(o)
1002 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
1003 EllipsoidGeometry_swigregister(EllipsoidGeometry)
1005 class PointGeometry(Geometry):
1006 """Proxy of C++ IMP::display::PointGeometry class"""
1007 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1009 def __init__(self, *args):
1011 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
1012 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
1013 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
1014 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
1016 this = _IMP_display.new_PointGeometry(*args)
1018 self.this.append(this)
1022 def get_geometry(self):
1023 """get_geometry(PointGeometry self) -> Vector3D"""
1024 return _IMP_display.PointGeometry_get_geometry(self)
1027 def set_geometry(self, v):
1028 """set_geometry(PointGeometry self, Vector3D v)"""
1029 return _IMP_display.PointGeometry_set_geometry(self, v)
1032 def get_version_info(self):
1033 """get_version_info(PointGeometry self) -> VersionInfo"""
1034 return _IMP_display.PointGeometry_get_version_info(self)
1038 """__str__(PointGeometry self) -> std::string"""
1039 return _IMP_display.PointGeometry___str__(self)
1043 """__repr__(PointGeometry self) -> std::string"""
1044 return _IMP_display.PointGeometry___repr__(self)
1049 return _object_cast_to_PointGeometry(o)
1051 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
1052 PointGeometry_swigregister(PointGeometry)
1054 class SegmentGeometry(Geometry):
1055 """Proxy of C++ IMP::display::SegmentGeometry class"""
1056 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1058 def __init__(self, *args):
1060 __init__(IMP::display::SegmentGeometry self, Segment3D v) -> SegmentGeometry
1061 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
1062 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
1063 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
1065 this = _IMP_display.new_SegmentGeometry(*args)
1067 self.this.append(this)
1071 def get_geometry(self):
1072 """get_geometry(SegmentGeometry self) -> Segment3D"""
1073 return _IMP_display.SegmentGeometry_get_geometry(self)
1076 def set_geometry(self, v):
1077 """set_geometry(SegmentGeometry self, Segment3D v)"""
1078 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1081 def get_version_info(self):
1082 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1083 return _IMP_display.SegmentGeometry_get_version_info(self)
1087 """__str__(SegmentGeometry self) -> std::string"""
1088 return _IMP_display.SegmentGeometry___str__(self)
1092 """__repr__(SegmentGeometry self) -> std::string"""
1093 return _IMP_display.SegmentGeometry___repr__(self)
1098 return _object_cast_to_SegmentGeometry(o)
1100 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1101 SegmentGeometry_swigregister(SegmentGeometry)
1103 class PolygonGeometry(Geometry):
1104 """Proxy of C++ IMP::display::PolygonGeometry class"""
1105 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1107 def __init__(self, *args):
1109 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
1110 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
1111 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
1112 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
1114 this = _IMP_display.new_PolygonGeometry(*args)
1116 self.this.append(this)
1120 def get_geometry(self):
1121 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
1122 return _IMP_display.PolygonGeometry_get_geometry(self)
1125 def set_geometry(self, v):
1126 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
1127 return _IMP_display.PolygonGeometry_set_geometry(self, v)
1130 def get_version_info(self):
1131 """get_version_info(PolygonGeometry self) -> VersionInfo"""
1132 return _IMP_display.PolygonGeometry_get_version_info(self)
1136 """__str__(PolygonGeometry self) -> std::string"""
1137 return _IMP_display.PolygonGeometry___str__(self)
1141 """__repr__(PolygonGeometry self) -> std::string"""
1142 return _IMP_display.PolygonGeometry___repr__(self)
1147 return _object_cast_to_PolygonGeometry(o)
1149 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
1150 PolygonGeometry_swigregister(PolygonGeometry)
1152 class TriangleGeometry(Geometry):
1153 """Proxy of C++ IMP::display::TriangleGeometry class"""
1154 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1156 def __init__(self, *args):
1158 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1159 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1160 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1161 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1163 this = _IMP_display.new_TriangleGeometry(*args)
1165 self.this.append(this)
1169 def get_geometry(self):
1170 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1171 return _IMP_display.TriangleGeometry_get_geometry(self)
1174 def set_geometry(self, v):
1175 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1176 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1179 def get_version_info(self):
1180 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1181 return _IMP_display.TriangleGeometry_get_version_info(self)
1185 """__str__(TriangleGeometry self) -> std::string"""
1186 return _IMP_display.TriangleGeometry___str__(self)
1190 """__repr__(TriangleGeometry self) -> std::string"""
1191 return _IMP_display.TriangleGeometry___repr__(self)
1196 return _object_cast_to_TriangleGeometry(o)
1198 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1199 TriangleGeometry_swigregister(TriangleGeometry)
1201 class BoundingBoxGeometry(Geometry):
1202 """Proxy of C++ IMP::display::BoundingBoxGeometry class"""
1203 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1205 def __init__(self, *args):
1207 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1208 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1209 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1210 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1212 this = _IMP_display.new_BoundingBoxGeometry(*args)
1214 self.this.append(this)
1218 def get_geometry(self):
1219 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1220 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1223 def set_geometry(self, v):
1224 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1225 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1228 def get_version_info(self):
1229 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1230 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1234 """__str__(BoundingBoxGeometry self) -> std::string"""
1235 return _IMP_display.BoundingBoxGeometry___str__(self)
1239 """__repr__(BoundingBoxGeometry self) -> std::string"""
1240 return _IMP_display.BoundingBoxGeometry___repr__(self)
1245 return _object_cast_to_BoundingBoxGeometry(o)
1247 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1248 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1250 class ReferenceFrameGeometry(Geometry):
1251 """Proxy of C++ IMP::display::ReferenceFrameGeometry class"""
1252 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1254 def __init__(self, *args):
1256 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1257 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1258 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1259 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1261 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1263 self.this.append(this)
1267 def get_geometry(self):
1268 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1269 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1272 def set_geometry(self, v):
1273 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1274 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1277 def get_version_info(self):
1278 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1279 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1283 """__str__(ReferenceFrameGeometry self) -> std::string"""
1284 return _IMP_display.ReferenceFrameGeometry___str__(self)
1288 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1289 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1294 return _object_cast_to_ReferenceFrameGeometry(o)
1296 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1297 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1302 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1303 create_geometry(Sphere3D t) -> SphereGeometry
1304 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1305 create_geometry(Cylinder3D t) -> CylinderGeometry
1306 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1307 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1308 create_geometry(Vector3D t, std::string name) -> PointGeometry
1309 create_geometry(Vector3D t) -> PointGeometry
1310 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1311 create_geometry(Segment3D t) -> SegmentGeometry
1312 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1313 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1314 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1315 create_geometry(Triangle3D t) -> TriangleGeometry
1316 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1317 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1318 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1319 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1321 return _IMP_display.create_geometry(*args)
1322 class LabelGeometry(Geometry):
1323 """Proxy of C++ IMP::display::LabelGeometry class"""
1324 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1326 def __init__(self, *args):
1328 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1329 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1331 this = _IMP_display.new_LabelGeometry(*args)
1333 self.this.append(this)
1338 """get_text(LabelGeometry self) -> std::string"""
1339 return _IMP_display.LabelGeometry_get_text(self)
1342 def get_location(self):
1343 """get_location(LabelGeometry self) -> Sphere3D"""
1344 return _IMP_display.LabelGeometry_get_location(self)
1347 def get_version_info(self):
1348 """get_version_info(LabelGeometry self) -> VersionInfo"""
1349 return _IMP_display.LabelGeometry_get_version_info(self)
1353 """__str__(LabelGeometry self) -> std::string"""
1354 return _IMP_display.LabelGeometry___str__(self)
1358 """__repr__(LabelGeometry self) -> std::string"""
1359 return _IMP_display.LabelGeometry___repr__(self)
1364 return _object_cast_to_LabelGeometry(o)
1366 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1367 LabelGeometry_swigregister(LabelGeometry)
1369 class SurfaceMeshGeometry(Geometry):
1370 """Proxy of C++ IMP::display::SurfaceMeshGeometry class"""
1371 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1373 def __init__(self, vertices, faces):
1374 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1375 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1377 self.this.append(this)
1381 def get_vertexes(self):
1382 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1383 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1386 def get_faces(self):
1387 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1388 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1391 def get_version_info(self):
1392 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1393 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1397 """__str__(SurfaceMeshGeometry self) -> std::string"""
1398 return _IMP_display.SurfaceMeshGeometry___str__(self)
1402 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1403 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1408 return _object_cast_to_SurfaceMeshGeometry(o)
1410 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1411 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1413 class PlaneGeometry(Geometry):
1414 """Proxy of C++ IMP::display::PlaneGeometry class"""
1415 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1417 def __init__(self, loc, box):
1418 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1419 this = _IMP_display.new_PlaneGeometry(loc, box)
1421 self.this.append(this)
1425 def get_version_info(self):
1426 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1427 return _IMP_display.PlaneGeometry_get_version_info(self)
1431 """__str__(PlaneGeometry self) -> std::string"""
1432 return _IMP_display.PlaneGeometry___str__(self)
1436 """__repr__(PlaneGeometry self) -> std::string"""
1437 return _IMP_display.PlaneGeometry___repr__(self)
1442 return _object_cast_to_PlaneGeometry(o)
1444 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1445 PlaneGeometry_swigregister(PlaneGeometry)
1447 class IsosurfaceGeometry(SurfaceMeshGeometry):
1448 """Proxy of C++ IMP::display::IsosurfaceGeometry class"""
1449 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1451 def __init__(self, *args):
1453 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1454 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1456 this = _IMP_display.new_IsosurfaceGeometry(*args)
1458 self.this.append(this)
1463 """__str__(IsosurfaceGeometry self) -> std::string"""
1464 return _IMP_display.IsosurfaceGeometry___str__(self)
1468 """__repr__(IsosurfaceGeometry self) -> std::string"""
1469 return _IMP_display.IsosurfaceGeometry___repr__(self)
1474 return _object_cast_to_IsosurfaceGeometry(o)
1476 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1477 __del__ =
lambda self:
None
1478 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1479 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1481 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1482 """Proxy of C++ IMP::display::SkinSurfaceGeometry class"""
1483 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1485 def __init__(self, balls):
1486 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1487 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1489 self.this.append(this)
1494 """__str__(SkinSurfaceGeometry self) -> std::string"""
1495 return _IMP_display.SkinSurfaceGeometry___str__(self)
1499 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1500 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1505 return _object_cast_to_SkinSurfaceGeometry(o)
1507 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1508 __del__ =
lambda self:
None
1509 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1510 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1512 class GeometryProcessor(object):
1513 """Proxy of C++ IMP::display::GeometryProcessor class"""
1514 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1515 __repr__ = _swig_repr
1518 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1519 this = _IMP_display.new_GeometryProcessor()
1521 self.this.append(this)
1524 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1525 GeometryProcessor_swigregister(GeometryProcessor)
1528 """Proxy of C++ IMP::display::Writer class"""
1529 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1531 def __init__(self, name):
1532 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1533 if self.__class__ == Writer:
1537 this = _IMP_display.new_Writer(_self, name)
1539 self.this.append(this)
1543 if self.__class__ != Writer:
1544 _director_objects.register(self)
1548 __swig_destroy__ = _IMP_display.delete_Writer
1549 __del__ =
lambda self:
None
1551 def set_frame(self, i):
1552 """set_frame(Writer self, unsigned int i)"""
1553 return _IMP_display.Writer_set_frame(self, i)
1556 def get_frame(self):
1557 """get_frame(Writer self) -> int"""
1558 return _IMP_display.Writer_get_frame(self)
1563 add_geometry(Writer self, Geometry g)
1564 add_geometry(Writer self, IMP::display::Geometries const & g)
1566 return _IMP_display.Writer_add_geometry(self, *args)
1570 """do_close(Writer self)"""
1571 return _IMP_display.Writer_do_close(self)
1575 """do_open(Writer self)"""
1576 return _IMP_display.Writer_do_open(self)
1579 def do_set_frame(self):
1580 """do_set_frame(Writer self)"""
1581 return _IMP_display.Writer_do_set_frame(self)
1585 """__str__(Writer self) -> std::string"""
1586 return _IMP_display.Writer___str__(self)
1590 """__repr__(Writer self) -> std::string"""
1591 return _IMP_display.Writer___repr__(self)
1596 return _object_cast_to_Writer(o)
1599 def get_type_name(self):
1600 return self.__class__.__name__
1601 def do_show(self, out):
1603 def get_version_info(self):
1604 if"IMP::display" ==
"IMP":
1605 return VersionInfo(self.__module__,
1606 __import__(self.__module__).get_module_version())
1609 __import__(self.__module__).get_module_version())
1612 return _object_cast_to_Writer(o)
1614 def __disown__(self):
1616 _IMP_display.disown_Writer(self)
1617 return weakref_proxy(self)
1619 def handle_sphere(self, arg0, arg1, arg2):
1620 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1621 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1624 def handle_cylinder(self, arg0, arg1, arg2):
1625 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1626 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1629 def handle_point(self, arg0, arg1, arg2):
1630 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1631 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1634 def handle_segment(self, arg0, arg1, arg2):
1635 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1636 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1639 def handle_polygon(self, arg0, arg1, arg2):
1640 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1641 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1644 def handle_triangle(self, arg0, arg1, arg2):
1645 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1646 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1649 def handle_surface_mesh(self, arg0, arg1, arg2):
1650 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1651 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1654 def handle_label(self, arg0, arg1, arg2):
1655 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1656 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1659 def handle_ellipsoid(self, arg0, arg1, arg2):
1660 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1661 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1664 def handle_bounding_box(self, arg0, arg1, arg2):
1665 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1666 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1669 def handle_anything(self, arg0, arg1, arg2):
1670 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1671 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1674 def do_destroy(self):
1675 """do_destroy(Writer self)"""
1676 return _IMP_display.Writer_do_destroy(self)
1678 Writer_swigregister = _IMP_display.Writer_swigregister
1679 Writer_swigregister(Writer)
1681 class TextWriter(Writer):
1682 """Proxy of C++ IMP::display::TextWriter class"""
1683 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1686 """open(TextWriter self)"""
1687 return _IMP_display.TextWriter_open(self)
1690 def get_stream(self):
1691 """get_stream(TextWriter self) -> _ostream"""
1692 return _IMP_display.TextWriter_get_stream(self)
1695 def do_set_frame(self):
1696 """do_set_frame(TextWriter self)"""
1697 return _IMP_display.TextWriter_do_set_frame(self)
1700 def __init__(self, *args):
1702 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1703 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1705 if self.__class__ == TextWriter:
1709 this = _IMP_display.new_TextWriter(_self, *args)
1711 self.this.append(this)
1715 if self.__class__ != TextWriter:
1716 _director_objects.register(self)
1721 def get_current_file_name(self):
1722 """get_current_file_name(TextWriter self) -> std::string"""
1723 return _IMP_display.TextWriter_get_current_file_name(self)
1725 __swig_destroy__ = _IMP_display.delete_TextWriter
1726 __del__ =
lambda self:
None
1729 """__str__(TextWriter self) -> std::string"""
1730 return _IMP_display.TextWriter___str__(self)
1734 """__repr__(TextWriter self) -> std::string"""
1735 return _IMP_display.TextWriter___repr__(self)
1740 return _object_cast_to_TextWriter(o)
1743 def get_type_name(self):
1744 return self.__class__.__name__
1745 def do_show(self, out):
1747 def get_version_info(self):
1748 if"IMP::display" ==
"IMP":
1749 return VersionInfo(self.__module__,
1750 __import__(self.__module__).get_module_version())
1753 __import__(self.__module__).get_module_version())
1756 return _object_cast_to_TextWriter(o)
1758 def __disown__(self):
1760 _IMP_display.disown_TextWriter(self)
1761 return weakref_proxy(self)
1763 def handle_sphere(self, arg0, arg1, arg2):
1764 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1765 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1768 def handle_cylinder(self, arg0, arg1, arg2):
1769 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1770 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1773 def handle_point(self, arg0, arg1, arg2):
1774 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1775 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1778 def handle_segment(self, arg0, arg1, arg2):
1779 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1780 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1783 def handle_polygon(self, arg0, arg1, arg2):
1784 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1785 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1788 def handle_triangle(self, arg0, arg1, arg2):
1789 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1790 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1793 def handle_surface_mesh(self, arg0, arg1, arg2):
1794 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1795 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1798 def handle_label(self, arg0, arg1, arg2):
1799 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1800 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1803 def handle_ellipsoid(self, arg0, arg1, arg2):
1804 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1805 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1808 def handle_bounding_box(self, arg0, arg1, arg2):
1809 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1810 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1813 def handle_anything(self, arg0, arg1, arg2):
1814 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1815 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1818 def do_destroy(self):
1819 """do_destroy(TextWriter self)"""
1820 return _IMP_display.TextWriter_do_destroy(self)
1824 """do_close(TextWriter self)"""
1825 return _IMP_display.TextWriter_do_close(self)
1829 """do_open(TextWriter self)"""
1830 return _IMP_display.TextWriter_do_open(self)
1832 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1833 TextWriter_swigregister(TextWriter)
1837 """create_writer(std::string filename) -> Writer"""
1838 return _IMP_display.create_writer(filename)
1839 class WriterAdaptor(IMP._InputAdaptor):
1840 """Proxy of C++ IMP::display::WriterAdaptor class"""
1841 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1843 def __init__(self, *args):
1845 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1846 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1848 this = _IMP_display.new_WriterAdaptor(*args)
1850 self.this.append(this)
1854 def get_writer(self):
1855 """get_writer(WriterAdaptor self) -> Writer"""
1856 return _IMP_display.WriterAdaptor_get_writer(self)
1859 def show(self, *args):
1861 show(WriterAdaptor self, _ostream out)
1862 show(WriterAdaptor self)
1864 return _IMP_display.WriterAdaptor_show(self, *args)
1866 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1867 __del__ =
lambda self:
None
1870 """__str__(WriterAdaptor self) -> std::string"""
1871 return _IMP_display.WriterAdaptor___str__(self)
1875 """__repr__(WriterAdaptor self) -> std::string"""
1876 return _IMP_display.WriterAdaptor___repr__(self)
1878 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1879 WriterAdaptor_swigregister(WriterAdaptor)
1882 """Proxy of C++ IMP::display::Colored class"""
1883 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1885 def set_color(self, c):
1886 """set_color(Colored self, Color c)"""
1887 return _IMP_display.Colored_set_color(self, c)
1890 def get_color(self):
1891 """get_color(Colored self) -> Color"""
1892 return _IMP_display.Colored_get_color(self)
1895 def get_color_keys():
1896 """get_color_keys() -> IMP::FloatKeys const &"""
1897 return _IMP_display.Colored_get_color_keys()
1899 get_color_keys = staticmethod(get_color_keys)
1901 def __init__(self, *args):
1903 __init__(IMP::display::Colored self) -> Colored
1904 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1905 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1907 this = _IMP_display.new_Colored(*args)
1909 self.this.append(this)
1913 def get_is_setup(*args):
1915 get_is_setup(Model m, ParticleIndex pi) -> bool
1916 get_is_setup(_ParticleAdaptor p) -> bool
1918 return _IMP_display.Colored_get_is_setup(*args)
1920 get_is_setup = staticmethod(get_is_setup)
1922 def show(self, *args):
1924 show(Colored self, _ostream out)
1927 return _IMP_display.Colored_show(self, *args)
1930 def setup_particle(*args):
1932 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1933 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1935 return _IMP_display.Colored_setup_particle(*args)
1937 setup_particle = staticmethod(setup_particle)
1939 def add_attribute(self, *args):
1941 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1942 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1943 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1944 add_attribute(Colored self, StringKey a0, IMP::String a1)
1945 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1946 add_attribute(Colored self, ObjectKey a0, Object a1)
1948 return _IMP_display.Colored_add_attribute(self, *args)
1951 def get_value(self, *args):
1953 get_value(Colored self, FloatKey a0) -> IMP::Float
1954 get_value(Colored self, IntKey a0) -> IMP::Int
1955 get_value(Colored self, StringKey a0) -> IMP::String
1956 get_value(Colored self, ParticleIndexKey a0) -> Particle
1957 get_value(Colored self, ObjectKey a0) -> Object
1959 return _IMP_display.Colored_get_value(self, *args)
1962 def set_value(self, *args):
1964 set_value(Colored self, FloatKey a0, IMP::Float a1)
1965 set_value(Colored self, IntKey a0, IMP::Int a1)
1966 set_value(Colored self, StringKey a0, IMP::String a1)
1967 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1968 set_value(Colored self, ObjectKey a0, Object a1)
1970 return _IMP_display.Colored_set_value(self, *args)
1973 def remove_attribute(self, *args):
1975 remove_attribute(Colored self, FloatKey a0)
1976 remove_attribute(Colored self, IntKey a0)
1977 remove_attribute(Colored self, StringKey a0)
1978 remove_attribute(Colored self, ParticleIndexKey a0)
1979 remove_attribute(Colored self, ObjectKey a0)
1981 return _IMP_display.Colored_remove_attribute(self, *args)
1984 def has_attribute(self, *args):
1986 has_attribute(Colored self, FloatKey a0) -> bool
1987 has_attribute(Colored self, IntKey a0) -> bool
1988 has_attribute(Colored self, StringKey a0) -> bool
1989 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1990 has_attribute(Colored self, ObjectKey a0) -> bool
1992 return _IMP_display.Colored_has_attribute(self, *args)
1995 def get_derivative(self, a0):
1996 """get_derivative(Colored self, FloatKey a0) -> double"""
1997 return _IMP_display.Colored_get_derivative(self, a0)
2001 """get_name(Colored self) -> std::string"""
2002 return _IMP_display.Colored_get_name(self)
2005 def clear_caches(self):
2006 """clear_caches(Colored self)"""
2007 return _IMP_display.Colored_clear_caches(self)
2010 def set_name(self, a0):
2011 """set_name(Colored self, std::string a0)"""
2012 return _IMP_display.Colored_set_name(self, a0)
2016 """set_check_level(Colored self, IMP::CheckLevel a0)"""
2017 return _IMP_display.Colored_set_check_level(self, a0)
2020 def add_to_derivative(self, a0, a1, a2):
2021 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2022 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
2025 def set_is_optimized(self, a0, a1):
2026 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
2027 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
2030 def get_is_optimized(self, a0):
2031 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
2032 return _IMP_display.Colored_get_is_optimized(self, a0)
2036 """get_check_level(Colored self) -> IMP::CheckLevel"""
2037 return _IMP_display.Colored_get_check_level(self)
2040 def __eq__(self, *args):
2042 __eq__(Colored self, Colored o) -> bool
2043 __eq__(Colored self, Particle d) -> bool
2045 return _IMP_display.Colored___eq__(self, *args)
2048 def __ne__(self, *args):
2050 __ne__(Colored self, Colored o) -> bool
2051 __ne__(Colored self, Particle d) -> bool
2053 return _IMP_display.Colored___ne__(self, *args)
2056 def __le__(self, *args):
2058 __le__(Colored self, Colored o) -> bool
2059 __le__(Colored self, Particle d) -> bool
2061 return _IMP_display.Colored___le__(self, *args)
2064 def __lt__(self, *args):
2066 __lt__(Colored self, Colored o) -> bool
2067 __lt__(Colored self, Particle d) -> bool
2069 return _IMP_display.Colored___lt__(self, *args)
2072 def __ge__(self, *args):
2074 __ge__(Colored self, Colored o) -> bool
2075 __ge__(Colored self, Particle d) -> bool
2077 return _IMP_display.Colored___ge__(self, *args)
2080 def __gt__(self, *args):
2082 __gt__(Colored self, Colored o) -> bool
2083 __gt__(Colored self, Particle d) -> bool
2085 return _IMP_display.Colored___gt__(self, *args)
2089 """__hash__(Colored self) -> std::size_t"""
2090 return _IMP_display.Colored___hash__(self)
2094 """__str__(Colored self) -> std::string"""
2095 return _IMP_display.Colored___str__(self)
2099 """__repr__(Colored self) -> std::string"""
2100 return _IMP_display.Colored___repr__(self)
2102 __swig_destroy__ = _IMP_display.delete_Colored
2103 __del__ =
lambda self:
None
2104 Colored_swigregister = _IMP_display.Colored_swigregister
2105 Colored_swigregister(Colored)
2107 def Colored_get_color_keys():
2108 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2109 return _IMP_display.Colored_get_color_keys()
2111 def Colored_get_is_setup(*args):
2113 get_is_setup(Model m, ParticleIndex pi) -> bool
2114 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2116 return _IMP_display.Colored_get_is_setup(*args)
2118 def Colored_setup_particle(*args):
2120 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2121 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2123 return _IMP_display.Colored_setup_particle(*args)
2126 def __lshift__(out, n):
2127 """__lshift__(_ostream out, Colored n) -> _ostream"""
2128 return _IMP_display.__lshift__(out, n)
2129 class FilterGeometry(GeometryProcessor, Geometry):
2130 """Proxy of C++ IMP::display::FilterGeometry class"""
2131 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2133 def __init__(self, p):
2134 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2135 this = _IMP_display.new_FilterGeometry(p)
2137 self.this.append(this)
2143 add_geometry(FilterGeometry self, Geometry g)
2144 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2146 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2149 def get_version_info(self):
2150 """get_version_info(FilterGeometry self) -> VersionInfo"""
2151 return _IMP_display.FilterGeometry_get_version_info(self)
2155 """__str__(FilterGeometry self) -> std::string"""
2156 return _IMP_display.FilterGeometry___str__(self)
2160 """__repr__(FilterGeometry self) -> std::string"""
2161 return _IMP_display.FilterGeometry___repr__(self)
2166 return _object_cast_to_FilterGeometry(o)
2168 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2169 FilterGeometry_swigregister(FilterGeometry)
2172 """Proxy of C++ IMP::display::WriteOptimizerState class"""
2173 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2175 def __init__(self, m, w):
2176 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2177 this = _IMP_display.new_WriteOptimizerState(m, w)
2179 self.this.append(this)
2184 """write(WriteOptimizerState self, WriterAdaptor w)"""
2185 return _IMP_display.WriteOptimizerState_write(self, w)
2188 def remove_geometry(self, d):
2189 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2190 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2193 def remove_geometries(self, d):
2194 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2195 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2198 def set_geometries(self, ps):
2199 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2200 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2203 def set_geometries_order(self, objs):
2204 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2205 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2209 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2210 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2214 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2215 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2218 def clear_geometries(self):
2219 """clear_geometries(WriteOptimizerState self)"""
2220 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2223 def get_number_of_geometries(self):
2224 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2225 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2228 def get_has_geometries(self):
2229 """get_has_geometries(WriteOptimizerState self) -> bool"""
2230 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2233 def get_geometry(self, i):
2234 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2235 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2238 def get_geometries(self):
2239 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2240 return _IMP_display.WriteOptimizerState_get_geometries(self)
2243 def reserve_geometries(self, sz):
2244 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2245 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2248 def get_version_info(self):
2249 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2250 return _IMP_display.WriteOptimizerState_get_version_info(self)
2254 """__str__(WriteOptimizerState self) -> std::string"""
2255 return _IMP_display.WriteOptimizerState___str__(self)
2259 """__repr__(WriteOptimizerState self) -> std::string"""
2260 return _IMP_display.WriteOptimizerState___repr__(self)
2265 return _object_cast_to_WriteOptimizerState(o)
2267 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2268 WriteOptimizerState_swigregister(WriteOptimizerState)
2270 class SingletonGeometry(Geometry):
2271 """Proxy of C++ IMP::display::SingletonGeometry class"""
2272 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2274 def __init__(self, p):
2275 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2276 this = _IMP_display.new_SingletonGeometry(p)
2278 self.this.append(this)
2282 def get_particle(self):
2283 """get_particle(SingletonGeometry self) -> Particle"""
2284 return _IMP_display.SingletonGeometry_get_particle(self)
2286 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2287 __del__ =
lambda self:
None
2290 """__str__(SingletonGeometry self) -> std::string"""
2291 return _IMP_display.SingletonGeometry___str__(self)
2295 """__repr__(SingletonGeometry self) -> std::string"""
2296 return _IMP_display.SingletonGeometry___repr__(self)
2301 return _object_cast_to_SingletonGeometry(o)
2303 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2304 SingletonGeometry_swigregister(SingletonGeometry)
2306 class SingletonsGeometry(Geometry):
2307 """Proxy of C++ IMP::display::SingletonsGeometry class"""
2308 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2310 def __init__(self, *args):
2312 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2313 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2315 this = _IMP_display.new_SingletonsGeometry(*args)
2317 self.this.append(this)
2321 def get_container(self):
2322 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2323 return _IMP_display.SingletonsGeometry_get_container(self)
2325 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2326 __del__ =
lambda self:
None
2329 """__str__(SingletonsGeometry self) -> std::string"""
2330 return _IMP_display.SingletonsGeometry___str__(self)
2334 """__repr__(SingletonsGeometry self) -> std::string"""
2335 return _IMP_display.SingletonsGeometry___repr__(self)
2340 return _object_cast_to_SingletonsGeometry(o)
2342 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2343 SingletonsGeometry_swigregister(SingletonsGeometry)
2345 class PairGeometry(Geometry):
2346 """Proxy of C++ IMP::display::PairGeometry class"""
2347 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2349 def __init__(self, pp):
2350 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2351 this = _IMP_display.new_PairGeometry(pp)
2353 self.this.append(this)
2357 def get_particle_pair(self):
2358 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2359 return _IMP_display.PairGeometry_get_particle_pair(self)
2361 __swig_destroy__ = _IMP_display.delete_PairGeometry
2362 __del__ =
lambda self:
None
2365 """__str__(PairGeometry self) -> std::string"""
2366 return _IMP_display.PairGeometry___str__(self)
2370 """__repr__(PairGeometry self) -> std::string"""
2371 return _IMP_display.PairGeometry___repr__(self)
2376 return _object_cast_to_PairGeometry(o)
2378 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2379 PairGeometry_swigregister(PairGeometry)
2381 class PairsGeometry(Geometry):
2382 """Proxy of C++ IMP::display::PairsGeometry class"""
2383 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2385 def __init__(self, *args):
2387 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2388 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2390 this = _IMP_display.new_PairsGeometry(*args)
2392 self.this.append(this)
2396 def get_container(self):
2397 """get_container(PairsGeometry self) -> PairContainer"""
2398 return _IMP_display.PairsGeometry_get_container(self)
2400 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2401 __del__ =
lambda self:
None
2404 """__str__(PairsGeometry self) -> std::string"""
2405 return _IMP_display.PairsGeometry___str__(self)
2409 """__repr__(PairsGeometry self) -> std::string"""
2410 return _IMP_display.PairsGeometry___repr__(self)
2415 return _object_cast_to_PairsGeometry(o)
2417 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2418 PairsGeometry_swigregister(PairsGeometry)
2420 class PymolWriter(TextWriter):
2421 """Proxy of C++ IMP::display::PymolWriter class"""
2422 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2424 def __init__(self, *args):
2426 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2427 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2428 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2430 this = _IMP_display.new_PymolWriter(*args)
2432 self.this.append(this)
2436 def get_version_info(self):
2437 """get_version_info(PymolWriter self) -> VersionInfo"""
2438 return _IMP_display.PymolWriter_get_version_info(self)
2442 """__str__(PymolWriter self) -> std::string"""
2443 return _IMP_display.PymolWriter___str__(self)
2447 """__repr__(PymolWriter self) -> std::string"""
2448 return _IMP_display.PymolWriter___repr__(self)
2453 return _object_cast_to_PymolWriter(o)
2455 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2456 PymolWriter_swigregister(PymolWriter)
2458 class RestraintGeometry(Geometry):
2459 """Proxy of C++ IMP::display::RestraintGeometry class"""
2460 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2462 def __init__(self, p):
2463 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2464 this = _IMP_display.new_RestraintGeometry(p)
2466 self.this.append(this)
2470 def get_restraint(self):
2471 """get_restraint(RestraintGeometry self) -> Restraint"""
2472 return _IMP_display.RestraintGeometry_get_restraint(self)
2475 def get_version_info(self):
2476 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2477 return _IMP_display.RestraintGeometry_get_version_info(self)
2481 """__str__(RestraintGeometry self) -> std::string"""
2482 return _IMP_display.RestraintGeometry___str__(self)
2486 """__repr__(RestraintGeometry self) -> std::string"""
2487 return _IMP_display.RestraintGeometry___repr__(self)
2492 return _object_cast_to_RestraintGeometry(o)
2494 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2495 RestraintGeometry_swigregister(RestraintGeometry)
2497 class RestraintSetGeometry(Geometry):
2498 """Proxy of C++ IMP::display::RestraintSetGeometry class"""
2499 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2501 def __init__(self, p):
2502 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2503 this = _IMP_display.new_RestraintSetGeometry(p)
2505 self.this.append(this)
2509 def get_restraint_set(self):
2510 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2511 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2514 def get_version_info(self):
2515 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2516 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2520 """__str__(RestraintSetGeometry self) -> std::string"""
2521 return _IMP_display.RestraintSetGeometry___str__(self)
2525 """__repr__(RestraintSetGeometry self) -> std::string"""
2526 return _IMP_display.RestraintSetGeometry___repr__(self)
2531 return _object_cast_to_RestraintSetGeometry(o)
2533 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2534 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2538 PivyWriter= _pivy.get_writer(Writer)
2539 _object_types.append(
'PivyWriter')
2542 def get_module_version():
2543 """get_module_version() -> std::string const"""
2544 return _IMP_display.get_module_version()
2547 """get_example_path(std::string fname) -> std::string"""
2548 return _IMP_display.get_example_path(fname)
2551 """get_data_path(std::string fname) -> std::string"""
2552 return _IMP_display.get_data_path(fname)
2554 from .
import _version_check
2555 _version_check.check_version(get_module_version())
2556 __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.
SphereGeometry * create_geometry(const algebra::Sphere3D &t, std::string name="algebra::Sphere3D"+"%1""%")
Common base class for heavy weight IMP objects.
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.