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_NUMPY_swigconstant(_IMP_display)
269 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
271 _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_display)
272 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
274 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_display)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
277 _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_display)
278 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
280 _IMP_display.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_display)
281 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
284 class _DirectorObjects(object):
285 """@internal Simple class to keep references to director objects
286 to prevent premature deletion."""
289 def register(self, obj):
290 """Take a reference to a director object; will only work for
291 refcounted C++ classes"""
292 if hasattr(obj,
'get_ref_count'):
293 self._objects.append(obj)
295 """Only drop our reference and allow cleanup by Python if no other
296 Python references exist (we hold 3 references: one in self._objects,
297 one in x, and one in the argument list for getrefcount) *and* no
298 other C++ references exist (the Python object always holds one)"""
299 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
300 or x.get_ref_count() > 1]
304 def get_object_count(self):
305 """Get number of director objects (useful for testing only)"""
306 return len(self._objects)
307 _director_objects = _DirectorObjects()
309 class _ostream(object):
310 """Proxy of C++ std::ostream class"""
311 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
313 def __init__(self, *args, **kwargs):
314 raise AttributeError(
"No constructor defined")
315 __repr__ = _swig_repr
317 def write(self, osa_buf):
318 """write(_ostream self, char const * osa_buf)"""
319 return _IMP_display._ostream_write(self, osa_buf)
321 _ostream_swigregister = _IMP_display._ostream_swigregister
322 _ostream_swigregister(_ostream)
325 _IMP_display.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_display)
326 IMP_COMPILER_HAS_OVERRIDE = _IMP_display.IMP_COMPILER_HAS_OVERRIDE
328 _IMP_display.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_display)
329 IMP_COMPILER_HAS_FINAL = _IMP_display.IMP_COMPILER_HAS_FINAL
331 _IMP_display.IMP_HAS_NOEXCEPT_swigconstant(_IMP_display)
332 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
334 _IMP_display.IMP_C_OPEN_BINARY_swigconstant(_IMP_display)
335 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
338 _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
339 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
341 _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
342 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
344 _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
345 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
347 _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
348 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
350 _IMP_display.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_display)
351 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
353 _IMP_display.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_display)
354 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
357 _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_display)
358 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
360 _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
361 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
363 _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
364 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
366 _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
367 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
369 _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
370 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
372 _IMP_display.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_display)
373 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
375 _IMP_display.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_display)
376 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
378 _IMP_display.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_display)
379 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
381 _IMP_display.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_display)
382 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
385 _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_display)
386 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
388 _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_display)
389 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
391 _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_display)
392 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
394 _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_display)
395 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
397 _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_display)
398 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
400 _IMP_display.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_display)
401 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
403 _IMP_display.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_display)
404 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
406 _IMP_display.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_display)
407 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
409 _object_types.append(
"Writer")
412 def _object_cast_to_Writer(o):
413 """_object_cast_to_Writer(Object o) -> Writer"""
414 return _IMP_display._object_cast_to_Writer(o)
416 _object_types.append(
"TextWriter")
419 def _object_cast_to_TextWriter(o):
420 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
421 return _IMP_display._object_cast_to_TextWriter(o)
423 _object_types.append(
"Geometry")
426 def _object_cast_to_Geometry(o):
427 """_object_cast_to_Geometry(Object o) -> Geometry"""
428 return _IMP_display._object_cast_to_Geometry(o)
430 _object_types.append(
"SingletonGeometry")
433 def _object_cast_to_SingletonGeometry(o):
434 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
435 return _IMP_display._object_cast_to_SingletonGeometry(o)
437 _object_types.append(
"PairGeometry")
440 def _object_cast_to_PairGeometry(o):
441 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
442 return _IMP_display._object_cast_to_PairGeometry(o)
444 _object_types.append(
"SingletonsGeometry")
447 def _object_cast_to_SingletonsGeometry(o):
448 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
449 return _IMP_display._object_cast_to_SingletonsGeometry(o)
451 _object_types.append(
"PairsGeometry")
454 def _object_cast_to_PairsGeometry(o):
455 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
456 return _IMP_display._object_cast_to_PairsGeometry(o)
458 _object_types.append(
"PymolWriter")
461 def _object_cast_to_PymolWriter(o):
462 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
463 return _IMP_display._object_cast_to_PymolWriter(o)
465 _object_types.append(
"SphereGeometry")
468 def _object_cast_to_SphereGeometry(o):
469 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
470 return _IMP_display._object_cast_to_SphereGeometry(o)
472 _object_types.append(
"CylinderGeometry")
475 def _object_cast_to_CylinderGeometry(o):
476 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
477 return _IMP_display._object_cast_to_CylinderGeometry(o)
479 _object_types.append(
"EllipsoidGeometry")
482 def _object_cast_to_EllipsoidGeometry(o):
483 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
484 return _IMP_display._object_cast_to_EllipsoidGeometry(o)
486 _object_types.append(
"PointGeometry")
489 def _object_cast_to_PointGeometry(o):
490 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
491 return _IMP_display._object_cast_to_PointGeometry(o)
493 _object_types.append(
"SegmentGeometry")
496 def _object_cast_to_SegmentGeometry(o):
497 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
498 return _IMP_display._object_cast_to_SegmentGeometry(o)
500 _object_types.append(
"PolygonGeometry")
503 def _object_cast_to_PolygonGeometry(o):
504 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
505 return _IMP_display._object_cast_to_PolygonGeometry(o)
507 _object_types.append(
"ReferenceFrameGeometry")
510 def _object_cast_to_ReferenceFrameGeometry(o):
511 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
512 return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
514 _object_types.append(
"BoundingBoxGeometry")
517 def _object_cast_to_BoundingBoxGeometry(o):
518 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
519 return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
521 _object_types.append(
"LabelGeometry")
524 def _object_cast_to_LabelGeometry(o):
525 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
526 return _IMP_display._object_cast_to_LabelGeometry(o)
528 _object_types.append(
"RestraintGeometry")
531 def _object_cast_to_RestraintGeometry(o):
532 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
533 return _IMP_display._object_cast_to_RestraintGeometry(o)
535 _object_types.append(
"RestraintSetGeometry")
538 def _object_cast_to_RestraintSetGeometry(o):
539 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
540 return _IMP_display._object_cast_to_RestraintSetGeometry(o)
542 _object_types.append(
"GeometrySet")
545 def _object_cast_to_GeometrySet(o):
546 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
547 return _IMP_display._object_cast_to_GeometrySet(o)
550 return [Colored(x)
for x
in l]
551 _plural_types.append(
"Coloreds")
554 _value_types.append(
"Colored")
558 _plural_types.append(
"Colors")
559 _value_types.append(
"Color")
563 _plural_types.append(
"WriterAdaptors")
564 _value_types.append(
"WriterAdaptor")
567 _object_types.append(
"FilterGeometry")
570 def _object_cast_to_FilterGeometry(o):
571 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
572 return _IMP_display._object_cast_to_FilterGeometry(o)
574 _object_types.append(
"WriteOptimizerState")
577 def _object_cast_to_WriteOptimizerState(o):
578 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
579 return _IMP_display._object_cast_to_WriteOptimizerState(o)
581 _object_types.append(
"TriangleGeometry")
584 def _object_cast_to_TriangleGeometry(o):
585 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
586 return _IMP_display._object_cast_to_TriangleGeometry(o)
588 _object_types.append(
"SurfaceMeshGeometry")
591 def _object_cast_to_SurfaceMeshGeometry(o):
592 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
593 return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
595 _object_types.append(
"PlaneGeometry")
598 def _object_cast_to_PlaneGeometry(o):
599 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
600 return _IMP_display._object_cast_to_PlaneGeometry(o)
602 _object_types.append(
"IsosurfaceGeometry")
605 def _object_cast_to_IsosurfaceGeometry(o):
606 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
607 return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
609 _object_types.append(
"SkinSurfaceGeometry")
612 def _object_cast_to_SkinSurfaceGeometry(o):
613 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
614 return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
615 class Color(IMP._Value):
616 """Proxy of C++ IMP::display::Color class"""
617 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
619 def __init__(self, *args):
621 __init__(IMP::display::Color self) -> Color
622 __init__(IMP::display::Color self, double r, double g, double b) -> Color
624 this = _IMP_display.new_Color(*args)
626 self.this.append(this)
629 __swig_destroy__ = _IMP_display.delete_Color
630 __del__ =
lambda self:
None
633 """get_red(Color self) -> double"""
634 return _IMP_display.Color_get_red(self)
638 """get_green(Color self) -> double"""
639 return _IMP_display.Color_get_green(self)
643 """get_blue(Color self) -> double"""
644 return _IMP_display.Color_get_blue(self)
647 def show(self, *args):
649 show(Color self, _ostream out, std::string delim)
650 show(Color self, _ostream out)
653 return _IMP_display.Color_show(self, *args)
656 def __cmp__(self, o):
657 """__cmp__(Color self, Color o) -> int"""
658 return _IMP_display.Color___cmp__(self, o)
662 """__eq__(Color self, Color o) -> bool"""
663 return _IMP_display.Color___eq__(self, o)
667 """__ne__(Color self, Color o) -> bool"""
668 return _IMP_display.Color___ne__(self, o)
672 """__lt__(Color self, Color o) -> bool"""
673 return _IMP_display.Color___lt__(self, o)
677 """__gt__(Color self, Color o) -> bool"""
678 return _IMP_display.Color___gt__(self, o)
682 """__ge__(Color self, Color o) -> bool"""
683 return _IMP_display.Color___ge__(self, o)
687 """__le__(Color self, Color o) -> bool"""
688 return _IMP_display.Color___le__(self, o)
692 """__str__(Color self) -> std::string"""
693 return _IMP_display.Color___str__(self)
697 """__repr__(Color self) -> std::string"""
698 return _IMP_display.Color___repr__(self)
700 Color_swigregister = _IMP_display.Color_swigregister
701 Color_swigregister(Color)
705 """get_display_color(unsigned int i) -> Color"""
706 return _IMP_display.get_display_color(i)
709 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
710 return _IMP_display.get_interpolated_rgb(a, b, f)
713 """get_linear_color_map_value(double min, double max, double value) -> double"""
714 return _IMP_display.get_linear_color_map_value(min, max, value)
717 """get_jet_color(double f) -> Color"""
718 return _IMP_display.get_jet_color(f)
721 """get_hot_color(double f) -> Color"""
722 return _IMP_display.get_hot_color(f)
725 """get_rgb_color(double f) -> Color"""
726 return _IMP_display.get_rgb_color(f)
729 """get_gray_color(double f) -> Color"""
730 return _IMP_display.get_gray_color(f)
733 """get_gnuplot_color(double f) -> Color"""
734 return _IMP_display.get_gnuplot_color(f)
736 """Proxy of C++ IMP::display::Geometry 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::Geometry self, std::string name) -> Geometry
742 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
744 if self.__class__ == Geometry:
748 this = _IMP_display.new_Geometry(_self, *args)
750 self.this.append(this)
754 if self.__class__ != Geometry:
755 _director_objects.register(self)
761 """get_color(Geometry self) -> Color"""
762 return _IMP_display.Geometry_get_color(self)
765 def get_has_color(self):
766 """get_has_color(Geometry self) -> bool"""
767 return _IMP_display.Geometry_get_has_color(self)
770 def set_has_color(self, tf):
771 """set_has_color(Geometry self, bool tf)"""
772 return _IMP_display.Geometry_set_has_color(self, tf)
775 def set_color(self, c):
776 """set_color(Geometry self, Color c)"""
777 return _IMP_display.Geometry_set_color(self, c)
780 def get_components(self):
781 """get_components(Geometry self) -> IMP::display::Geometries"""
782 return _IMP_display.Geometry_get_components(self)
784 __swig_destroy__ = _IMP_display.delete_Geometry
785 __del__ =
lambda self:
None
788 """__str__(Geometry self) -> std::string"""
789 return _IMP_display.Geometry___str__(self)
793 """__repr__(Geometry self) -> std::string"""
794 return _IMP_display.Geometry___repr__(self)
799 return _object_cast_to_Geometry(o)
802 def get_type_name(self):
803 return self.__class__.__name__
804 def do_show(self, out):
806 def get_version_info(self):
807 if"IMP::display" ==
"IMP":
808 return VersionInfo(self.__module__,
815 return _object_cast_to_Geometry(o)
817 def __disown__(self):
819 _IMP_display.disown_Geometry(self)
820 return weakref_proxy(self)
822 def do_destroy(self):
823 """do_destroy(Geometry self)"""
824 return _IMP_display.Geometry_do_destroy(self)
826 Geometry_swigregister = _IMP_display.Geometry_swigregister
827 Geometry_swigregister(Geometry)
829 class GeometrySet(Geometry):
830 """Proxy of C++ IMP::display::GeometrySet class"""
831 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
833 def __init__(self, *args):
835 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
836 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
837 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
838 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
840 this = _IMP_display.new_GeometrySet(*args)
842 self.this.append(this)
846 def get_geometry(self):
847 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
848 return _IMP_display.GeometrySet_get_geometry(self)
851 def get_version_info(self):
852 """get_version_info(GeometrySet self) -> VersionInfo"""
853 return _IMP_display.GeometrySet_get_version_info(self)
857 """__str__(GeometrySet self) -> std::string"""
858 return _IMP_display.GeometrySet___str__(self)
862 """__repr__(GeometrySet self) -> std::string"""
863 return _IMP_display.GeometrySet___repr__(self)
868 return _object_cast_to_GeometrySet(o)
870 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
871 GeometrySet_swigregister(GeometrySet)
873 class SphereGeometry(Geometry):
874 """Proxy of C++ IMP::display::SphereGeometry class"""
875 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
877 def __init__(self, *args):
879 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
880 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
881 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
882 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
884 this = _IMP_display.new_SphereGeometry(*args)
886 self.this.append(this)
890 def get_geometry(self):
891 """get_geometry(SphereGeometry self) -> Sphere3D"""
892 return _IMP_display.SphereGeometry_get_geometry(self)
895 def set_geometry(self, v):
896 """set_geometry(SphereGeometry self, Sphere3D v)"""
897 return _IMP_display.SphereGeometry_set_geometry(self, v)
900 def get_version_info(self):
901 """get_version_info(SphereGeometry self) -> VersionInfo"""
902 return _IMP_display.SphereGeometry_get_version_info(self)
906 """__str__(SphereGeometry self) -> std::string"""
907 return _IMP_display.SphereGeometry___str__(self)
911 """__repr__(SphereGeometry self) -> std::string"""
912 return _IMP_display.SphereGeometry___repr__(self)
917 return _object_cast_to_SphereGeometry(o)
919 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
920 SphereGeometry_swigregister(SphereGeometry)
922 class CylinderGeometry(Geometry):
923 """Proxy of C++ IMP::display::CylinderGeometry class"""
924 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
926 def __init__(self, *args):
928 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
929 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
930 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
931 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
933 this = _IMP_display.new_CylinderGeometry(*args)
935 self.this.append(this)
939 def get_geometry(self):
940 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
941 return _IMP_display.CylinderGeometry_get_geometry(self)
944 def set_geometry(self, v):
945 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
946 return _IMP_display.CylinderGeometry_set_geometry(self, v)
949 def get_version_info(self):
950 """get_version_info(CylinderGeometry self) -> VersionInfo"""
951 return _IMP_display.CylinderGeometry_get_version_info(self)
955 """__str__(CylinderGeometry self) -> std::string"""
956 return _IMP_display.CylinderGeometry___str__(self)
960 """__repr__(CylinderGeometry self) -> std::string"""
961 return _IMP_display.CylinderGeometry___repr__(self)
966 return _object_cast_to_CylinderGeometry(o)
968 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
969 CylinderGeometry_swigregister(CylinderGeometry)
971 class EllipsoidGeometry(Geometry):
972 """Proxy of C++ IMP::display::EllipsoidGeometry class"""
973 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
975 def __init__(self, *args):
977 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
978 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
979 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
980 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
982 this = _IMP_display.new_EllipsoidGeometry(*args)
984 self.this.append(this)
988 def get_geometry(self):
989 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
990 return _IMP_display.EllipsoidGeometry_get_geometry(self)
993 def set_geometry(self, v):
994 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
995 return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
998 def get_version_info(self):
999 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
1000 return _IMP_display.EllipsoidGeometry_get_version_info(self)
1004 """__str__(EllipsoidGeometry self) -> std::string"""
1005 return _IMP_display.EllipsoidGeometry___str__(self)
1009 """__repr__(EllipsoidGeometry self) -> std::string"""
1010 return _IMP_display.EllipsoidGeometry___repr__(self)
1015 return _object_cast_to_EllipsoidGeometry(o)
1017 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
1018 EllipsoidGeometry_swigregister(EllipsoidGeometry)
1020 class PointGeometry(Geometry):
1021 """Proxy of C++ IMP::display::PointGeometry class"""
1022 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1024 def __init__(self, *args):
1026 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
1027 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
1028 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
1029 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
1031 this = _IMP_display.new_PointGeometry(*args)
1033 self.this.append(this)
1037 def get_geometry(self):
1038 """get_geometry(PointGeometry self) -> Vector3D"""
1039 return _IMP_display.PointGeometry_get_geometry(self)
1042 def set_geometry(self, v):
1043 """set_geometry(PointGeometry self, Vector3D v)"""
1044 return _IMP_display.PointGeometry_set_geometry(self, v)
1047 def get_version_info(self):
1048 """get_version_info(PointGeometry self) -> VersionInfo"""
1049 return _IMP_display.PointGeometry_get_version_info(self)
1053 """__str__(PointGeometry self) -> std::string"""
1054 return _IMP_display.PointGeometry___str__(self)
1058 """__repr__(PointGeometry self) -> std::string"""
1059 return _IMP_display.PointGeometry___repr__(self)
1064 return _object_cast_to_PointGeometry(o)
1066 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
1067 PointGeometry_swigregister(PointGeometry)
1069 class SegmentGeometry(Geometry):
1070 """Proxy of C++ IMP::display::SegmentGeometry class"""
1071 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1073 def __init__(self, *args):
1075 __init__(IMP::display::SegmentGeometry self, Segment3D v) -> SegmentGeometry
1076 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
1077 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
1078 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
1080 this = _IMP_display.new_SegmentGeometry(*args)
1082 self.this.append(this)
1086 def get_geometry(self):
1087 """get_geometry(SegmentGeometry self) -> Segment3D"""
1088 return _IMP_display.SegmentGeometry_get_geometry(self)
1091 def set_geometry(self, v):
1092 """set_geometry(SegmentGeometry self, Segment3D v)"""
1093 return _IMP_display.SegmentGeometry_set_geometry(self, v)
1096 def get_version_info(self):
1097 """get_version_info(SegmentGeometry self) -> VersionInfo"""
1098 return _IMP_display.SegmentGeometry_get_version_info(self)
1102 """__str__(SegmentGeometry self) -> std::string"""
1103 return _IMP_display.SegmentGeometry___str__(self)
1107 """__repr__(SegmentGeometry self) -> std::string"""
1108 return _IMP_display.SegmentGeometry___repr__(self)
1113 return _object_cast_to_SegmentGeometry(o)
1115 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
1116 SegmentGeometry_swigregister(SegmentGeometry)
1118 class PolygonGeometry(Geometry):
1119 """Proxy of C++ IMP::display::PolygonGeometry class"""
1120 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1122 def __init__(self, *args):
1124 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
1125 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
1126 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
1127 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
1129 this = _IMP_display.new_PolygonGeometry(*args)
1131 self.this.append(this)
1135 def get_geometry(self):
1136 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
1137 return _IMP_display.PolygonGeometry_get_geometry(self)
1140 def set_geometry(self, v):
1141 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
1142 return _IMP_display.PolygonGeometry_set_geometry(self, v)
1145 def get_version_info(self):
1146 """get_version_info(PolygonGeometry self) -> VersionInfo"""
1147 return _IMP_display.PolygonGeometry_get_version_info(self)
1151 """__str__(PolygonGeometry self) -> std::string"""
1152 return _IMP_display.PolygonGeometry___str__(self)
1156 """__repr__(PolygonGeometry self) -> std::string"""
1157 return _IMP_display.PolygonGeometry___repr__(self)
1162 return _object_cast_to_PolygonGeometry(o)
1164 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
1165 PolygonGeometry_swigregister(PolygonGeometry)
1167 class TriangleGeometry(Geometry):
1168 """Proxy of C++ IMP::display::TriangleGeometry class"""
1169 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1171 def __init__(self, *args):
1173 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
1174 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
1175 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
1176 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
1178 this = _IMP_display.new_TriangleGeometry(*args)
1180 self.this.append(this)
1184 def get_geometry(self):
1185 """get_geometry(TriangleGeometry self) -> Triangle3D"""
1186 return _IMP_display.TriangleGeometry_get_geometry(self)
1189 def set_geometry(self, v):
1190 """set_geometry(TriangleGeometry self, Triangle3D v)"""
1191 return _IMP_display.TriangleGeometry_set_geometry(self, v)
1194 def get_version_info(self):
1195 """get_version_info(TriangleGeometry self) -> VersionInfo"""
1196 return _IMP_display.TriangleGeometry_get_version_info(self)
1200 """__str__(TriangleGeometry self) -> std::string"""
1201 return _IMP_display.TriangleGeometry___str__(self)
1205 """__repr__(TriangleGeometry self) -> std::string"""
1206 return _IMP_display.TriangleGeometry___repr__(self)
1211 return _object_cast_to_TriangleGeometry(o)
1213 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
1214 TriangleGeometry_swigregister(TriangleGeometry)
1216 class BoundingBoxGeometry(Geometry):
1217 """Proxy of C++ IMP::display::BoundingBoxGeometry class"""
1218 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1220 def __init__(self, *args):
1222 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1223 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1224 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1225 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1227 this = _IMP_display.new_BoundingBoxGeometry(*args)
1229 self.this.append(this)
1233 def get_geometry(self):
1234 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1235 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1238 def set_geometry(self, v):
1239 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1240 return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1243 def get_version_info(self):
1244 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1245 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1249 """__str__(BoundingBoxGeometry self) -> std::string"""
1250 return _IMP_display.BoundingBoxGeometry___str__(self)
1254 """__repr__(BoundingBoxGeometry self) -> std::string"""
1255 return _IMP_display.BoundingBoxGeometry___repr__(self)
1260 return _object_cast_to_BoundingBoxGeometry(o)
1262 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
1263 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1265 class ReferenceFrameGeometry(Geometry):
1266 """Proxy of C++ IMP::display::ReferenceFrameGeometry class"""
1267 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1269 def __init__(self, *args):
1271 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1272 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1273 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1274 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1276 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1278 self.this.append(this)
1282 def get_geometry(self):
1283 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1284 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1287 def set_geometry(self, v):
1288 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1289 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1292 def get_version_info(self):
1293 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1294 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1298 """__str__(ReferenceFrameGeometry self) -> std::string"""
1299 return _IMP_display.ReferenceFrameGeometry___str__(self)
1303 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1304 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1309 return _object_cast_to_ReferenceFrameGeometry(o)
1311 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1312 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1317 create_geometry(Sphere3D t, std::string name) -> SphereGeometry
1318 create_geometry(Sphere3D t) -> SphereGeometry
1319 create_geometry(Cylinder3D t, std::string name) -> CylinderGeometry
1320 create_geometry(Cylinder3D t) -> CylinderGeometry
1321 create_geometry(Ellipsoid3D t, std::string name) -> EllipsoidGeometry
1322 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1323 create_geometry(Vector3D t, std::string name) -> PointGeometry
1324 create_geometry(Vector3D t) -> PointGeometry
1325 create_geometry(Segment3D t, std::string name) -> SegmentGeometry
1326 create_geometry(Segment3D t) -> SegmentGeometry
1327 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name) -> PolygonGeometry
1328 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1329 create_geometry(Triangle3D t, std::string name) -> TriangleGeometry
1330 create_geometry(Triangle3D t) -> TriangleGeometry
1331 create_geometry(BoundingBox3D t, std::string name) -> BoundingBoxGeometry
1332 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1333 create_geometry(ReferenceFrame3D t, std::string name) -> ReferenceFrameGeometry
1334 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1336 return _IMP_display.create_geometry(*args)
1337 class LabelGeometry(Geometry):
1338 """Proxy of C++ IMP::display::LabelGeometry class"""
1339 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1341 def __init__(self, *args):
1343 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1344 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1346 this = _IMP_display.new_LabelGeometry(*args)
1348 self.this.append(this)
1353 """get_text(LabelGeometry self) -> std::string"""
1354 return _IMP_display.LabelGeometry_get_text(self)
1357 def get_location(self):
1358 """get_location(LabelGeometry self) -> Sphere3D"""
1359 return _IMP_display.LabelGeometry_get_location(self)
1362 def get_version_info(self):
1363 """get_version_info(LabelGeometry self) -> VersionInfo"""
1364 return _IMP_display.LabelGeometry_get_version_info(self)
1368 """__str__(LabelGeometry self) -> std::string"""
1369 return _IMP_display.LabelGeometry___str__(self)
1373 """__repr__(LabelGeometry self) -> std::string"""
1374 return _IMP_display.LabelGeometry___repr__(self)
1379 return _object_cast_to_LabelGeometry(o)
1381 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1382 LabelGeometry_swigregister(LabelGeometry)
1384 class SurfaceMeshGeometry(Geometry):
1385 """Proxy of C++ IMP::display::SurfaceMeshGeometry class"""
1386 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1388 def __init__(self, vertices, faces):
1389 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1390 this = _IMP_display.new_SurfaceMeshGeometry(vertices, faces)
1392 self.this.append(this)
1396 def get_vertexes(self):
1397 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1398 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1401 def get_faces(self):
1402 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1403 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1406 def get_version_info(self):
1407 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1408 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1412 """__str__(SurfaceMeshGeometry self) -> std::string"""
1413 return _IMP_display.SurfaceMeshGeometry___str__(self)
1417 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1418 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1423 return _object_cast_to_SurfaceMeshGeometry(o)
1425 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1426 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1428 class PlaneGeometry(Geometry):
1429 """Proxy of C++ IMP::display::PlaneGeometry class"""
1430 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1432 def __init__(self, loc, box):
1433 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1434 this = _IMP_display.new_PlaneGeometry(loc, box)
1436 self.this.append(this)
1440 def get_version_info(self):
1441 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1442 return _IMP_display.PlaneGeometry_get_version_info(self)
1446 """__str__(PlaneGeometry self) -> std::string"""
1447 return _IMP_display.PlaneGeometry___str__(self)
1451 """__repr__(PlaneGeometry self) -> std::string"""
1452 return _IMP_display.PlaneGeometry___repr__(self)
1457 return _object_cast_to_PlaneGeometry(o)
1459 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1460 PlaneGeometry_swigregister(PlaneGeometry)
1462 class IsosurfaceGeometry(SurfaceMeshGeometry):
1463 """Proxy of C++ IMP::display::IsosurfaceGeometry class"""
1464 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1466 def __init__(self, *args):
1468 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1469 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1471 this = _IMP_display.new_IsosurfaceGeometry(*args)
1473 self.this.append(this)
1478 """__str__(IsosurfaceGeometry self) -> std::string"""
1479 return _IMP_display.IsosurfaceGeometry___str__(self)
1483 """__repr__(IsosurfaceGeometry self) -> std::string"""
1484 return _IMP_display.IsosurfaceGeometry___repr__(self)
1489 return _object_cast_to_IsosurfaceGeometry(o)
1491 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1492 __del__ =
lambda self:
None
1493 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1494 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1496 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1497 """Proxy of C++ IMP::display::SkinSurfaceGeometry class"""
1498 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1500 def __init__(self, balls):
1501 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1502 this = _IMP_display.new_SkinSurfaceGeometry(balls)
1504 self.this.append(this)
1509 """__str__(SkinSurfaceGeometry self) -> std::string"""
1510 return _IMP_display.SkinSurfaceGeometry___str__(self)
1514 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1515 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1520 return _object_cast_to_SkinSurfaceGeometry(o)
1522 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1523 __del__ =
lambda self:
None
1524 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1525 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1527 class GeometryProcessor(object):
1528 """Proxy of C++ IMP::display::GeometryProcessor class"""
1529 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1530 __repr__ = _swig_repr
1533 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1534 this = _IMP_display.new_GeometryProcessor()
1536 self.this.append(this)
1539 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1540 GeometryProcessor_swigregister(GeometryProcessor)
1543 """Proxy of C++ IMP::display::Writer class"""
1544 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1546 def __init__(self, name):
1547 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1548 if self.__class__ == Writer:
1552 this = _IMP_display.new_Writer(_self, name)
1554 self.this.append(this)
1558 if self.__class__ != Writer:
1559 _director_objects.register(self)
1563 __swig_destroy__ = _IMP_display.delete_Writer
1564 __del__ =
lambda self:
None
1566 def set_frame(self, i):
1567 """set_frame(Writer self, unsigned int i)"""
1568 return _IMP_display.Writer_set_frame(self, i)
1571 def get_frame(self):
1572 """get_frame(Writer self) -> int"""
1573 return _IMP_display.Writer_get_frame(self)
1578 add_geometry(Writer self, Geometry g)
1579 add_geometry(Writer self, IMP::display::Geometries const & g)
1581 return _IMP_display.Writer_add_geometry(self, *args)
1585 """do_close(Writer self)"""
1586 return _IMP_display.Writer_do_close(self)
1590 """do_open(Writer self)"""
1591 return _IMP_display.Writer_do_open(self)
1594 def do_set_frame(self):
1595 """do_set_frame(Writer self)"""
1596 return _IMP_display.Writer_do_set_frame(self)
1600 """__str__(Writer self) -> std::string"""
1601 return _IMP_display.Writer___str__(self)
1605 """__repr__(Writer self) -> std::string"""
1606 return _IMP_display.Writer___repr__(self)
1611 return _object_cast_to_Writer(o)
1614 def get_type_name(self):
1615 return self.__class__.__name__
1616 def do_show(self, out):
1618 def get_version_info(self):
1619 if"IMP::display" ==
"IMP":
1620 return VersionInfo(self.__module__,
1627 return _object_cast_to_Writer(o)
1629 def __disown__(self):
1631 _IMP_display.disown_Writer(self)
1632 return weakref_proxy(self)
1634 def handle_sphere(self, arg0, arg1, arg2):
1635 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1636 return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1639 def handle_cylinder(self, arg0, arg1, arg2):
1640 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1641 return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1644 def handle_point(self, arg0, arg1, arg2):
1645 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1646 return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1649 def handle_segment(self, arg0, arg1, arg2):
1650 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1651 return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1654 def handle_polygon(self, arg0, arg1, arg2):
1655 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1656 return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1659 def handle_triangle(self, arg0, arg1, arg2):
1660 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1661 return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1664 def handle_surface_mesh(self, arg0, arg1, arg2):
1665 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1666 return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1669 def handle_label(self, arg0, arg1, arg2):
1670 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1671 return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1674 def handle_ellipsoid(self, arg0, arg1, arg2):
1675 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1676 return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1679 def handle_bounding_box(self, arg0, arg1, arg2):
1680 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1681 return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1684 def handle_anything(self, arg0, arg1, arg2):
1685 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1686 return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1689 def do_destroy(self):
1690 """do_destroy(Writer self)"""
1691 return _IMP_display.Writer_do_destroy(self)
1693 Writer_swigregister = _IMP_display.Writer_swigregister
1694 Writer_swigregister(Writer)
1696 class TextWriter(Writer):
1697 """Proxy of C++ IMP::display::TextWriter class"""
1698 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1701 """open(TextWriter self)"""
1702 return _IMP_display.TextWriter_open(self)
1705 def get_stream(self):
1706 """get_stream(TextWriter self) -> _ostream"""
1707 return _IMP_display.TextWriter_get_stream(self)
1710 def do_set_frame(self):
1711 """do_set_frame(TextWriter self)"""
1712 return _IMP_display.TextWriter_do_set_frame(self)
1715 def __init__(self, *args):
1717 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1718 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1720 if self.__class__ == TextWriter:
1724 this = _IMP_display.new_TextWriter(_self, *args)
1726 self.this.append(this)
1730 if self.__class__ != TextWriter:
1731 _director_objects.register(self)
1736 def get_current_file_name(self):
1737 """get_current_file_name(TextWriter self) -> std::string"""
1738 return _IMP_display.TextWriter_get_current_file_name(self)
1740 __swig_destroy__ = _IMP_display.delete_TextWriter
1741 __del__ =
lambda self:
None
1744 """__str__(TextWriter self) -> std::string"""
1745 return _IMP_display.TextWriter___str__(self)
1749 """__repr__(TextWriter self) -> std::string"""
1750 return _IMP_display.TextWriter___repr__(self)
1755 return _object_cast_to_TextWriter(o)
1758 def get_type_name(self):
1759 return self.__class__.__name__
1760 def do_show(self, out):
1762 def get_version_info(self):
1763 if"IMP::display" ==
"IMP":
1764 return VersionInfo(self.__module__,
1771 return _object_cast_to_TextWriter(o)
1773 def __disown__(self):
1775 _IMP_display.disown_TextWriter(self)
1776 return weakref_proxy(self)
1778 def handle_sphere(self, arg0, arg1, arg2):
1779 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1780 return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1783 def handle_cylinder(self, arg0, arg1, arg2):
1784 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1785 return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1788 def handle_point(self, arg0, arg1, arg2):
1789 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1790 return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1793 def handle_segment(self, arg0, arg1, arg2):
1794 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1795 return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1798 def handle_polygon(self, arg0, arg1, arg2):
1799 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1800 return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1803 def handle_triangle(self, arg0, arg1, arg2):
1804 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1805 return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1808 def handle_surface_mesh(self, arg0, arg1, arg2):
1809 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1810 return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1813 def handle_label(self, arg0, arg1, arg2):
1814 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1815 return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1818 def handle_ellipsoid(self, arg0, arg1, arg2):
1819 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1820 return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1823 def handle_bounding_box(self, arg0, arg1, arg2):
1824 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1825 return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1828 def handle_anything(self, arg0, arg1, arg2):
1829 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1830 return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1833 def do_destroy(self):
1834 """do_destroy(TextWriter self)"""
1835 return _IMP_display.TextWriter_do_destroy(self)
1839 """do_close(TextWriter self)"""
1840 return _IMP_display.TextWriter_do_close(self)
1844 """do_open(TextWriter self)"""
1845 return _IMP_display.TextWriter_do_open(self)
1847 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1848 TextWriter_swigregister(TextWriter)
1852 """create_writer(std::string filename) -> Writer"""
1853 return _IMP_display.create_writer(filename)
1854 class WriterAdaptor(IMP._InputAdaptor):
1855 """Proxy of C++ IMP::display::WriterAdaptor class"""
1856 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1858 def __init__(self, *args):
1860 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1861 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1863 this = _IMP_display.new_WriterAdaptor(*args)
1865 self.this.append(this)
1869 def get_writer(self):
1870 """get_writer(WriterAdaptor self) -> Writer"""
1871 return _IMP_display.WriterAdaptor_get_writer(self)
1874 def show(self, *args):
1876 show(WriterAdaptor self, _ostream out)
1877 show(WriterAdaptor self)
1879 return _IMP_display.WriterAdaptor_show(self, *args)
1881 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1882 __del__ =
lambda self:
None
1885 """__str__(WriterAdaptor self) -> std::string"""
1886 return _IMP_display.WriterAdaptor___str__(self)
1890 """__repr__(WriterAdaptor self) -> std::string"""
1891 return _IMP_display.WriterAdaptor___repr__(self)
1893 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1894 WriterAdaptor_swigregister(WriterAdaptor)
1897 """Proxy of C++ IMP::display::Colored class"""
1898 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1900 def set_color(self, c):
1901 """set_color(Colored self, Color c)"""
1902 return _IMP_display.Colored_set_color(self, c)
1905 def get_color(self):
1906 """get_color(Colored self) -> Color"""
1907 return _IMP_display.Colored_get_color(self)
1910 def get_color_keys():
1911 """get_color_keys() -> IMP::FloatKeys const &"""
1912 return _IMP_display.Colored_get_color_keys()
1914 get_color_keys = staticmethod(get_color_keys)
1916 def __init__(self, *args):
1918 __init__(IMP::display::Colored self) -> Colored
1919 __init__(IMP::display::Colored self, Model m, ParticleIndex id) -> Colored
1920 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1922 this = _IMP_display.new_Colored(*args)
1924 self.this.append(this)
1928 def get_is_setup(*args):
1930 get_is_setup(Model m, ParticleIndex pi) -> bool
1931 get_is_setup(_ParticleAdaptor p) -> bool
1933 return _IMP_display.Colored_get_is_setup(*args)
1935 get_is_setup = staticmethod(get_is_setup)
1937 def show(self, *args):
1939 show(Colored self, _ostream out)
1942 return _IMP_display.Colored_show(self, *args)
1945 def setup_particle(*args):
1947 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1948 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1950 return _IMP_display.Colored_setup_particle(*args)
1952 setup_particle = staticmethod(setup_particle)
1954 def add_attribute(self, *args):
1956 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1957 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1958 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1959 add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1960 add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1961 add_attribute(Colored self, StringKey a0, IMP::String a1)
1962 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1963 add_attribute(Colored self, ObjectKey a0, Object a1)
1965 return _IMP_display.Colored_add_attribute(self, *args)
1968 def get_value(self, *args):
1970 get_value(Colored self, FloatKey a0) -> IMP::Float
1971 get_value(Colored self, IntKey a0) -> IMP::Int
1972 get_value(Colored self, FloatsKey a0) -> IMP::Floats
1973 get_value(Colored self, IntsKey a0) -> IMP::Ints
1974 get_value(Colored self, StringKey a0) -> IMP::String
1975 get_value(Colored self, ParticleIndexKey a0) -> Particle
1976 get_value(Colored self, ObjectKey a0) -> Object
1978 return _IMP_display.Colored_get_value(self, *args)
1981 def set_value(self, *args):
1983 set_value(Colored self, FloatKey a0, IMP::Float a1)
1984 set_value(Colored self, IntKey a0, IMP::Int a1)
1985 set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1986 set_value(Colored self, IntsKey a0, IMP::Ints a1)
1987 set_value(Colored self, StringKey a0, IMP::String a1)
1988 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1989 set_value(Colored self, ObjectKey a0, Object a1)
1991 return _IMP_display.Colored_set_value(self, *args)
1994 def remove_attribute(self, *args):
1996 remove_attribute(Colored self, FloatKey a0)
1997 remove_attribute(Colored self, IntKey a0)
1998 remove_attribute(Colored self, FloatsKey a0)
1999 remove_attribute(Colored self, IntsKey a0)
2000 remove_attribute(Colored self, StringKey a0)
2001 remove_attribute(Colored self, ParticleIndexKey a0)
2002 remove_attribute(Colored self, ObjectKey a0)
2004 return _IMP_display.Colored_remove_attribute(self, *args)
2007 def has_attribute(self, *args):
2009 has_attribute(Colored self, FloatKey a0) -> bool
2010 has_attribute(Colored self, IntKey a0) -> bool
2011 has_attribute(Colored self, FloatsKey a0) -> bool
2012 has_attribute(Colored self, IntsKey a0) -> bool
2013 has_attribute(Colored self, StringKey a0) -> bool
2014 has_attribute(Colored self, ParticleIndexKey a0) -> bool
2015 has_attribute(Colored self, ObjectKey a0) -> bool
2017 return _IMP_display.Colored_has_attribute(self, *args)
2020 def get_derivative(self, a0):
2021 """get_derivative(Colored self, FloatKey a0) -> double"""
2022 return _IMP_display.Colored_get_derivative(self, a0)
2026 """get_name(Colored self) -> std::string"""
2027 return _IMP_display.Colored_get_name(self)
2030 def clear_caches(self):
2031 """clear_caches(Colored self)"""
2032 return _IMP_display.Colored_clear_caches(self)
2035 def set_name(self, a0):
2036 """set_name(Colored self, std::string a0)"""
2037 return _IMP_display.Colored_set_name(self, a0)
2041 """set_check_level(Colored self, IMP::CheckLevel a0)"""
2042 return _IMP_display.Colored_set_check_level(self, a0)
2045 def add_to_derivative(self, a0, a1, a2):
2046 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2047 return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
2050 def set_is_optimized(self, a0, a1):
2051 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
2052 return _IMP_display.Colored_set_is_optimized(self, a0, a1)
2055 def get_is_optimized(self, a0):
2056 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
2057 return _IMP_display.Colored_get_is_optimized(self, a0)
2061 """get_check_level(Colored self) -> IMP::CheckLevel"""
2062 return _IMP_display.Colored_get_check_level(self)
2065 def __eq__(self, *args):
2067 __eq__(Colored self, Colored o) -> bool
2068 __eq__(Colored self, Particle d) -> bool
2070 return _IMP_display.Colored___eq__(self, *args)
2073 def __ne__(self, *args):
2075 __ne__(Colored self, Colored o) -> bool
2076 __ne__(Colored self, Particle d) -> bool
2078 return _IMP_display.Colored___ne__(self, *args)
2081 def __le__(self, *args):
2083 __le__(Colored self, Colored o) -> bool
2084 __le__(Colored self, Particle d) -> bool
2086 return _IMP_display.Colored___le__(self, *args)
2089 def __lt__(self, *args):
2091 __lt__(Colored self, Colored o) -> bool
2092 __lt__(Colored self, Particle d) -> bool
2094 return _IMP_display.Colored___lt__(self, *args)
2097 def __ge__(self, *args):
2099 __ge__(Colored self, Colored o) -> bool
2100 __ge__(Colored self, Particle d) -> bool
2102 return _IMP_display.Colored___ge__(self, *args)
2105 def __gt__(self, *args):
2107 __gt__(Colored self, Colored o) -> bool
2108 __gt__(Colored self, Particle d) -> bool
2110 return _IMP_display.Colored___gt__(self, *args)
2114 """__hash__(Colored self) -> std::size_t"""
2115 return _IMP_display.Colored___hash__(self)
2119 """__str__(Colored self) -> std::string"""
2120 return _IMP_display.Colored___str__(self)
2124 """__repr__(Colored self) -> std::string"""
2125 return _IMP_display.Colored___repr__(self)
2127 __swig_destroy__ = _IMP_display.delete_Colored
2128 __del__ =
lambda self:
None
2129 Colored_swigregister = _IMP_display.Colored_swigregister
2130 Colored_swigregister(Colored)
2132 def Colored_get_color_keys():
2133 """Colored_get_color_keys() -> IMP::FloatKeys const &"""
2134 return _IMP_display.Colored_get_color_keys()
2136 def Colored_get_is_setup(*args):
2138 get_is_setup(Model m, ParticleIndex pi) -> bool
2139 Colored_get_is_setup(_ParticleAdaptor p) -> bool
2141 return _IMP_display.Colored_get_is_setup(*args)
2143 def Colored_setup_particle(*args):
2145 setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
2146 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
2148 return _IMP_display.Colored_setup_particle(*args)
2151 def __lshift__(out, n):
2152 """__lshift__(_ostream out, Colored n) -> _ostream"""
2153 return _IMP_display.__lshift__(out, n)
2154 class FilterGeometry(GeometryProcessor, Geometry):
2155 """Proxy of C++ IMP::display::FilterGeometry class"""
2156 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2158 def __init__(self, p):
2159 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
2160 this = _IMP_display.new_FilterGeometry(p)
2162 self.this.append(this)
2168 add_geometry(FilterGeometry self, Geometry g)
2169 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
2171 return _IMP_display.FilterGeometry_add_geometry(self, *args)
2174 def get_version_info(self):
2175 """get_version_info(FilterGeometry self) -> VersionInfo"""
2176 return _IMP_display.FilterGeometry_get_version_info(self)
2180 """__str__(FilterGeometry self) -> std::string"""
2181 return _IMP_display.FilterGeometry___str__(self)
2185 """__repr__(FilterGeometry self) -> std::string"""
2186 return _IMP_display.FilterGeometry___repr__(self)
2191 return _object_cast_to_FilterGeometry(o)
2193 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
2194 FilterGeometry_swigregister(FilterGeometry)
2197 """Proxy of C++ IMP::display::WriteOptimizerState class"""
2198 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2200 def __init__(self, m, w):
2201 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
2202 this = _IMP_display.new_WriteOptimizerState(m, w)
2204 self.this.append(this)
2209 """write(WriteOptimizerState self, WriterAdaptor w)"""
2210 return _IMP_display.WriteOptimizerState_write(self, w)
2213 def remove_geometry(self, d):
2214 """remove_geometry(WriteOptimizerState self, Geometry d)"""
2215 return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
2218 def remove_geometries(self, d):
2219 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
2220 return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
2223 def set_geometries(self, ps):
2224 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
2225 return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
2228 def set_geometries_order(self, objs):
2229 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2230 return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
2234 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
2235 return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
2239 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
2240 return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
2243 def clear_geometries(self):
2244 """clear_geometries(WriteOptimizerState self)"""
2245 return _IMP_display.WriteOptimizerState_clear_geometries(self)
2248 def get_number_of_geometries(self):
2249 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
2250 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
2253 def get_has_geometries(self):
2254 """get_has_geometries(WriteOptimizerState self) -> bool"""
2255 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
2258 def get_geometry(self, i):
2259 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
2260 return _IMP_display.WriteOptimizerState_get_geometry(self, i)
2263 def get_geometries(self):
2264 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
2265 return _IMP_display.WriteOptimizerState_get_geometries(self)
2268 def reserve_geometries(self, sz):
2269 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
2270 return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
2273 def get_version_info(self):
2274 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
2275 return _IMP_display.WriteOptimizerState_get_version_info(self)
2279 """__str__(WriteOptimizerState self) -> std::string"""
2280 return _IMP_display.WriteOptimizerState___str__(self)
2284 """__repr__(WriteOptimizerState self) -> std::string"""
2285 return _IMP_display.WriteOptimizerState___repr__(self)
2290 return _object_cast_to_WriteOptimizerState(o)
2292 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
2293 WriteOptimizerState_swigregister(WriteOptimizerState)
2295 class SingletonGeometry(Geometry):
2296 """Proxy of C++ IMP::display::SingletonGeometry class"""
2297 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2299 def __init__(self, p):
2300 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
2301 this = _IMP_display.new_SingletonGeometry(p)
2303 self.this.append(this)
2307 def get_particle(self):
2308 """get_particle(SingletonGeometry self) -> Particle"""
2309 return _IMP_display.SingletonGeometry_get_particle(self)
2311 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
2312 __del__ =
lambda self:
None
2315 """__str__(SingletonGeometry self) -> std::string"""
2316 return _IMP_display.SingletonGeometry___str__(self)
2320 """__repr__(SingletonGeometry self) -> std::string"""
2321 return _IMP_display.SingletonGeometry___repr__(self)
2326 return _object_cast_to_SingletonGeometry(o)
2328 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
2329 SingletonGeometry_swigregister(SingletonGeometry)
2331 class SingletonsGeometry(Geometry):
2332 """Proxy of C++ IMP::display::SingletonsGeometry class"""
2333 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2335 def __init__(self, *args):
2337 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
2338 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
2340 this = _IMP_display.new_SingletonsGeometry(*args)
2342 self.this.append(this)
2346 def get_container(self):
2347 """get_container(SingletonsGeometry self) -> SingletonContainer"""
2348 return _IMP_display.SingletonsGeometry_get_container(self)
2350 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
2351 __del__ =
lambda self:
None
2354 """__str__(SingletonsGeometry self) -> std::string"""
2355 return _IMP_display.SingletonsGeometry___str__(self)
2359 """__repr__(SingletonsGeometry self) -> std::string"""
2360 return _IMP_display.SingletonsGeometry___repr__(self)
2365 return _object_cast_to_SingletonsGeometry(o)
2367 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
2368 SingletonsGeometry_swigregister(SingletonsGeometry)
2370 class PairGeometry(Geometry):
2371 """Proxy of C++ IMP::display::PairGeometry class"""
2372 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2374 def __init__(self, pp):
2375 """__init__(IMP::display::PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2376 this = _IMP_display.new_PairGeometry(pp)
2378 self.this.append(this)
2382 def get_particle_pair(self):
2383 """get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2384 return _IMP_display.PairGeometry_get_particle_pair(self)
2386 __swig_destroy__ = _IMP_display.delete_PairGeometry
2387 __del__ =
lambda self:
None
2390 """__str__(PairGeometry self) -> std::string"""
2391 return _IMP_display.PairGeometry___str__(self)
2395 """__repr__(PairGeometry self) -> std::string"""
2396 return _IMP_display.PairGeometry___repr__(self)
2401 return _object_cast_to_PairGeometry(o)
2403 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
2404 PairGeometry_swigregister(PairGeometry)
2406 class PairsGeometry(Geometry):
2407 """Proxy of C++ IMP::display::PairsGeometry 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, *args):
2412 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2413 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
2415 this = _IMP_display.new_PairsGeometry(*args)
2417 self.this.append(this)
2421 def get_container(self):
2422 """get_container(PairsGeometry self) -> PairContainer"""
2423 return _IMP_display.PairsGeometry_get_container(self)
2425 __swig_destroy__ = _IMP_display.delete_PairsGeometry
2426 __del__ =
lambda self:
None
2429 """__str__(PairsGeometry self) -> std::string"""
2430 return _IMP_display.PairsGeometry___str__(self)
2434 """__repr__(PairsGeometry self) -> std::string"""
2435 return _IMP_display.PairsGeometry___repr__(self)
2440 return _object_cast_to_PairsGeometry(o)
2442 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
2443 PairsGeometry_swigregister(PairsGeometry)
2445 class PymolWriter(TextWriter):
2446 """Proxy of C++ IMP::display::PymolWriter class"""
2447 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2449 def __init__(self, *args):
2451 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2452 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2453 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2455 this = _IMP_display.new_PymolWriter(*args)
2457 self.this.append(this)
2461 def get_version_info(self):
2462 """get_version_info(PymolWriter self) -> VersionInfo"""
2463 return _IMP_display.PymolWriter_get_version_info(self)
2467 """__str__(PymolWriter self) -> std::string"""
2468 return _IMP_display.PymolWriter___str__(self)
2472 """__repr__(PymolWriter self) -> std::string"""
2473 return _IMP_display.PymolWriter___repr__(self)
2478 return _object_cast_to_PymolWriter(o)
2480 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2481 PymolWriter_swigregister(PymolWriter)
2483 class RestraintGeometry(Geometry):
2484 """Proxy of C++ IMP::display::RestraintGeometry class"""
2485 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2487 def __init__(self, p):
2488 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2489 this = _IMP_display.new_RestraintGeometry(p)
2491 self.this.append(this)
2495 def get_restraint(self):
2496 """get_restraint(RestraintGeometry self) -> Restraint"""
2497 return _IMP_display.RestraintGeometry_get_restraint(self)
2500 def get_version_info(self):
2501 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2502 return _IMP_display.RestraintGeometry_get_version_info(self)
2506 """__str__(RestraintGeometry self) -> std::string"""
2507 return _IMP_display.RestraintGeometry___str__(self)
2511 """__repr__(RestraintGeometry self) -> std::string"""
2512 return _IMP_display.RestraintGeometry___repr__(self)
2517 return _object_cast_to_RestraintGeometry(o)
2519 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2520 RestraintGeometry_swigregister(RestraintGeometry)
2522 class RestraintSetGeometry(Geometry):
2523 """Proxy of C++ IMP::display::RestraintSetGeometry class"""
2524 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2526 def __init__(self, p):
2527 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2528 this = _IMP_display.new_RestraintSetGeometry(p)
2530 self.this.append(this)
2534 def get_restraint_set(self):
2535 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2536 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2539 def get_version_info(self):
2540 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2541 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2545 """__str__(RestraintSetGeometry self) -> std::string"""
2546 return _IMP_display.RestraintSetGeometry___str__(self)
2550 """__repr__(RestraintSetGeometry self) -> std::string"""
2551 return _IMP_display.RestraintSetGeometry___repr__(self)
2556 return _object_cast_to_RestraintSetGeometry(o)
2558 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2559 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2563 PivyWriter= _pivy.get_writer(Writer)
2564 _object_types.append(
'PivyWriter')
2568 """get_module_version() -> std::string const"""
2569 return _IMP_display.get_module_version()
2572 """get_example_path(std::string fname) -> std::string"""
2573 return _IMP_display.get_example_path(fname)
2576 """get_data_path(std::string fname) -> std::string"""
2577 return _IMP_display.get_data_path(fname)
2579 from .
import _version_check
CheckLevel get_check_level()
Get the current audit mode.
Color get_rgb_color(double f)
Return the color for f from the RGB color map.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
double get_linear_color_map_value(double min, double max, double value)
Color get_interpolated_rgb(const Color &a, const Color &b, double f)
Return a color interpolated between a and b in RGB space.
Color get_hot_color(double f)
Return the color for f from the hot color map.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Common base class for heavy weight IMP objects.
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
Color get_display_color(unsigned int i)
Version and module information for Objects.
Writer * create_writer(std::string filename)
Color get_gnuplot_color(double f)
Return colors using the gnuplot default color map.
Interface to specialized Particle types (e.g. atoms)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Shared optimizer state that is invoked upon commitment of new coordinates.
Color get_gray_color(double f)
Return the a grayscale value for f.
Color get_jet_color(double f)
Return the color for f from the jet color map.
std::string get_module_version()
Return the version of this module, as a string.
void add_geometry(RMF::FileHandle file, display::Geometry *r)
Add a single geometry to the file.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.