11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_display', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_display', fp, pathname, description)
28 _IMP_display = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
53 def _swig_getattr(self,class_type,name):
54 if (name ==
"thisown"):
return self.this.own()
55 method = class_type.__swig_getmethods__.get(name,
None)
56 if method:
return method(self)
57 raise AttributeError(name)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
72 def _swig_setattr_nondynamic_method(set):
73 def set_attr(self,name,value):
74 if (name ==
"thisown"):
return self.this.own(value)
75 if hasattr(self,name)
or (name ==
"this"):
78 raise AttributeError(
"You cannot add attributes to %s" % self)
84 weakref_proxy = weakref.proxy
86 weakref_proxy =
lambda x: x
89 class IMP_DISPLAY_SwigPyIterator(object):
90 """Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class"""
91 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
92 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
94 __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
95 __del__ =
lambda self :
None;
97 """value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
98 return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
102 incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
103 incr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
105 return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
109 decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator
110 decr(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator
112 return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
114 def distance(self, *args):
115 """distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
116 return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, *args)
118 def equal(self, *args):
119 """equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
120 return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, *args)
123 """copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
124 return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
127 """next(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
128 return _IMP_display.IMP_DISPLAY_SwigPyIterator_next(self)
131 """__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
132 return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
135 """previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
136 return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
138 def advance(self, *args):
139 """advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
140 return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, *args)
142 def __eq__(self, *args):
143 """__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
144 return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, *args)
146 def __ne__(self, *args):
147 """__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
148 return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, *args)
150 def __iadd__(self, *args):
151 """__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
152 return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, *args)
154 def __isub__(self, *args):
155 """__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
156 return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, *args)
158 def __add__(self, *args):
159 """__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
160 return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, *args)
162 def __sub__(self, *args):
164 __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
165 __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
167 return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
169 def __iter__(self):
return self
170 IMP_DISPLAY_SwigPyIterator_swigregister = _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister
171 IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
178 IMP_DEBUG = _IMP_display.IMP_DEBUG
179 IMP_RELEASE = _IMP_display.IMP_RELEASE
180 IMP_SILENT = _IMP_display.IMP_SILENT
181 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
182 IMP_TERSE = _IMP_display.IMP_TERSE
183 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
184 IMP_MEMORY = _IMP_display.IMP_MEMORY
185 IMP_NONE = _IMP_display.IMP_NONE
186 IMP_USAGE = _IMP_display.IMP_USAGE
187 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_display.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_display.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_display.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_display.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_display.IMPBASE_SHOW_WARNINGS
197 class _DirectorObjects(object):
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 """Proxy of C++ std::ostream class"""
224 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
225 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
226 __repr__ = _swig_repr
227 def write(self, *args):
228 """write(_ostream self, char const * osa_buf)"""
229 return _IMP_display._ostream_write(self, *args)
231 _ostream_swigregister = _IMP_display._ostream_swigregister
232 _ostream_swigregister(_ostream)
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_display.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_display.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_display.IMP_HAS_NOEXCEPT
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_display.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_display.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_display.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_display.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
268 _object_types.append(
"Writer")
271 def _object_cast_to_Writer(*args):
272 """_object_cast_to_Writer(Object o) -> Writer"""
273 return _IMP_display._object_cast_to_Writer(*args)
274 _object_types.append(
"TextWriter")
277 def _object_cast_to_TextWriter(*args):
278 """_object_cast_to_TextWriter(Object o) -> TextWriter"""
279 return _IMP_display._object_cast_to_TextWriter(*args)
280 _object_types.append(
"Geometry")
283 def _object_cast_to_Geometry(*args):
284 """_object_cast_to_Geometry(Object o) -> Geometry"""
285 return _IMP_display._object_cast_to_Geometry(*args)
286 _object_types.append(
"SingletonGeometry")
289 def _object_cast_to_SingletonGeometry(*args):
290 """_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
291 return _IMP_display._object_cast_to_SingletonGeometry(*args)
292 _object_types.append(
"PairGeometry")
295 def _object_cast_to_PairGeometry(*args):
296 """_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
297 return _IMP_display._object_cast_to_PairGeometry(*args)
298 _object_types.append(
"SingletonsGeometry")
301 def _object_cast_to_SingletonsGeometry(*args):
302 """_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
303 return _IMP_display._object_cast_to_SingletonsGeometry(*args)
304 _object_types.append(
"PairsGeometry")
307 def _object_cast_to_PairsGeometry(*args):
308 """_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
309 return _IMP_display._object_cast_to_PairsGeometry(*args)
310 _object_types.append(
"ChimeraWriter")
313 def _object_cast_to_ChimeraWriter(*args):
314 """_object_cast_to_ChimeraWriter(Object o) -> ChimeraWriter"""
315 return _IMP_display._object_cast_to_ChimeraWriter(*args)
316 _object_types.append(
"PymolWriter")
319 def _object_cast_to_PymolWriter(*args):
320 """_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
321 return _IMP_display._object_cast_to_PymolWriter(*args)
322 _object_types.append(
"SphereGeometry")
325 def _object_cast_to_SphereGeometry(*args):
326 """_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
327 return _IMP_display._object_cast_to_SphereGeometry(*args)
328 _object_types.append(
"CylinderGeometry")
331 def _object_cast_to_CylinderGeometry(*args):
332 """_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
333 return _IMP_display._object_cast_to_CylinderGeometry(*args)
334 _object_types.append(
"EllipsoidGeometry")
337 def _object_cast_to_EllipsoidGeometry(*args):
338 """_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
339 return _IMP_display._object_cast_to_EllipsoidGeometry(*args)
340 _object_types.append(
"PointGeometry")
343 def _object_cast_to_PointGeometry(*args):
344 """_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
345 return _IMP_display._object_cast_to_PointGeometry(*args)
346 _object_types.append(
"SegmentGeometry")
349 def _object_cast_to_SegmentGeometry(*args):
350 """_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
351 return _IMP_display._object_cast_to_SegmentGeometry(*args)
352 _object_types.append(
"PolygonGeometry")
355 def _object_cast_to_PolygonGeometry(*args):
356 """_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
357 return _IMP_display._object_cast_to_PolygonGeometry(*args)
358 _object_types.append(
"ReferenceFrameGeometry")
361 def _object_cast_to_ReferenceFrameGeometry(*args):
362 """_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
363 return _IMP_display._object_cast_to_ReferenceFrameGeometry(*args)
364 _object_types.append(
"BoundingBoxGeometry")
367 def _object_cast_to_BoundingBoxGeometry(*args):
368 """_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
369 return _IMP_display._object_cast_to_BoundingBoxGeometry(*args)
370 _object_types.append(
"LabelGeometry")
373 def _object_cast_to_LabelGeometry(*args):
374 """_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
375 return _IMP_display._object_cast_to_LabelGeometry(*args)
376 _object_types.append(
"RestraintGeometry")
379 def _object_cast_to_RestraintGeometry(*args):
380 """_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
381 return _IMP_display._object_cast_to_RestraintGeometry(*args)
382 _object_types.append(
"RestraintSetGeometry")
385 def _object_cast_to_RestraintSetGeometry(*args):
386 """_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
387 return _IMP_display._object_cast_to_RestraintSetGeometry(*args)
388 _object_types.append(
"GeometrySet")
391 def _object_cast_to_GeometrySet(*args):
392 """_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
393 return _IMP_display._object_cast_to_GeometrySet(*args)
395 return [Colored(x)
for x
in l]
396 _plural_types.append(
"Coloreds")
398 _value_types.append(
"Colored")
401 _plural_types.append(
"Colors")
402 _value_types.append(
"Color")
405 _plural_types.append(
"WriterAdaptors")
406 _value_types.append(
"WriterAdaptor")
408 _object_types.append(
"FilterGeometry")
411 def _object_cast_to_FilterGeometry(*args):
412 """_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
413 return _IMP_display._object_cast_to_FilterGeometry(*args)
414 _object_types.append(
"WriteOptimizerState")
417 def _object_cast_to_WriteOptimizerState(*args):
418 """_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
419 return _IMP_display._object_cast_to_WriteOptimizerState(*args)
420 _object_types.append(
"TriangleGeometry")
423 def _object_cast_to_TriangleGeometry(*args):
424 """_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
425 return _IMP_display._object_cast_to_TriangleGeometry(*args)
426 _object_types.append(
"SurfaceMeshGeometry")
429 def _object_cast_to_SurfaceMeshGeometry(*args):
430 """_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
431 return _IMP_display._object_cast_to_SurfaceMeshGeometry(*args)
432 _object_types.append(
"PlaneGeometry")
435 def _object_cast_to_PlaneGeometry(*args):
436 """_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
437 return _IMP_display._object_cast_to_PlaneGeometry(*args)
438 _object_types.append(
"IsosurfaceGeometry")
441 def _object_cast_to_IsosurfaceGeometry(*args):
442 """_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
443 return _IMP_display._object_cast_to_IsosurfaceGeometry(*args)
444 _object_types.append(
"SkinSurfaceGeometry")
447 def _object_cast_to_SkinSurfaceGeometry(*args):
448 """_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
449 return _IMP_display._object_cast_to_SkinSurfaceGeometry(*args)
450 class Color(IMP.base._Value):
451 """Proxy of C++ IMP::display::Color class"""
452 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
453 def __init__(self, *args):
455 __init__(IMP::display::Color self) -> Color
456 __init__(IMP::display::Color self, double r, double g, double b) -> Color
458 this = _IMP_display.new_Color(*args)
459 try: self.this.append(this)
460 except: self.this = this
461 __swig_destroy__ = _IMP_display.delete_Color
462 __del__ =
lambda self :
None;
464 """get_red(Color self) -> double"""
465 return _IMP_display.Color_get_red(self)
468 """get_green(Color self) -> double"""
469 return _IMP_display.Color_get_green(self)
472 """get_blue(Color self) -> double"""
473 return _IMP_display.Color_get_blue(self)
475 def show(self, *args):
477 show(Color self, _ostream out, std::string delim)
478 show(Color self, _ostream out=std::cout)
481 return _IMP_display.Color_show(self, *args)
483 def __cmp__(self, *args):
484 """__cmp__(Color self, Color o) -> int"""
485 return _IMP_display.Color___cmp__(self, *args)
487 def __eq__(self, *args):
488 """__eq__(Color self, Color o) -> bool"""
489 return _IMP_display.Color___eq__(self, *args)
491 def __ne__(self, *args):
492 """__ne__(Color self, Color o) -> bool"""
493 return _IMP_display.Color___ne__(self, *args)
495 def __lt__(self, *args):
496 """__lt__(Color self, Color o) -> bool"""
497 return _IMP_display.Color___lt__(self, *args)
499 def __gt__(self, *args):
500 """__gt__(Color self, Color o) -> bool"""
501 return _IMP_display.Color___gt__(self, *args)
503 def __ge__(self, *args):
504 """__ge__(Color self, Color o) -> bool"""
505 return _IMP_display.Color___ge__(self, *args)
507 def __le__(self, *args):
508 """__le__(Color self, Color o) -> bool"""
509 return _IMP_display.Color___le__(self, *args)
512 """__str__(Color self) -> std::string"""
513 return _IMP_display.Color___str__(self)
516 """__repr__(Color self) -> std::string"""
517 return _IMP_display.Color___repr__(self)
519 Color_swigregister = _IMP_display.Color_swigregister
520 Color_swigregister(Color)
524 """get_display_color(unsigned int i) -> Color"""
525 return _IMP_display.get_display_color(*args)
528 """get_interpolated_rgb(Color a, Color b, double f) -> Color"""
529 return _IMP_display.get_interpolated_rgb(*args)
532 """get_linear_color_map_value(double min, double max, double value) -> double"""
533 return _IMP_display.get_linear_color_map_value(*args)
536 """get_jet_color(double f) -> Color"""
537 return _IMP_display.get_jet_color(*args)
540 """get_hot_color(double f) -> Color"""
541 return _IMP_display.get_hot_color(*args)
544 """get_rgb_color(double f) -> Color"""
545 return _IMP_display.get_rgb_color(*args)
548 """get_gray_color(double f) -> Color"""
549 return _IMP_display.get_gray_color(*args)
552 """get_gnuplot_color(double f) -> Color"""
553 return _IMP_display.get_gnuplot_color(*args)
555 """Proxy of C++ IMP::display::Geometry class"""
556 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
557 def __init__(self, *args):
559 __init__(IMP::display::Geometry self, std::string name) -> Geometry
560 __init__(IMP::display::Geometry self, Color c, std::string name) -> Geometry
562 if self.__class__ == Geometry:
566 this = _IMP_display.new_Geometry(_self, *args)
567 try: self.this.append(this)
568 except: self.this = this
569 if self.__class__ != Geometry:
571 IMP.base._director_objects.register(self)
576 """get_color(Geometry self) -> Color"""
577 return _IMP_display.Geometry_get_color(self)
579 def get_has_color(self):
580 """get_has_color(Geometry self) -> bool"""
581 return _IMP_display.Geometry_get_has_color(self)
583 def set_has_color(self, *args):
584 """set_has_color(Geometry self, bool tf)"""
585 return _IMP_display.Geometry_set_has_color(self, *args)
587 def set_color(self, *args):
588 """set_color(Geometry self, Color c)"""
589 return _IMP_display.Geometry_set_color(self, *args)
591 def get_components(self):
592 """get_components(Geometry self) -> IMP::display::Geometries"""
593 return _IMP_display.Geometry_get_components(self)
595 __swig_destroy__ = _IMP_display.delete_Geometry
596 __del__ =
lambda self :
None;
598 """__str__(Geometry self) -> std::string"""
599 return _IMP_display.Geometry___str__(self)
602 """__repr__(Geometry self) -> std::string"""
603 return _IMP_display.Geometry___repr__(self)
606 return _object_cast_to_Geometry(o)
607 get_from = staticmethod(get_from)
609 def get_type_name(self):
610 return self.__class__.__name__
611 def do_show(self, out):
613 def get_version_info(self):
614 if"IMP::display" ==
"IMP":
615 return VersionInfo(
"python",
"0")
617 return IMP.VersionInfo(
"python",
"0")
619 return _object_cast_to_Geometry(o)
620 get_from = staticmethod(get_from)
622 def __disown__(self):
624 _IMP_display.disown_Geometry(self)
625 return weakref_proxy(self)
626 def do_destroy(self):
627 """do_destroy(Geometry self)"""
628 return _IMP_display.Geometry_do_destroy(self)
630 Geometry_swigregister = _IMP_display.Geometry_swigregister
631 Geometry_swigregister(Geometry)
633 class GeometrySet(Geometry):
634 """Proxy of C++ IMP::display::GeometrySet class"""
635 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
636 def __init__(self, *args):
638 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
639 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
640 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
641 __init__(IMP::display::GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
643 this = _IMP_display.new_GeometrySet(*args)
644 try: self.this.append(this)
645 except: self.this = this
646 def get_geometry(self):
647 """get_geometry(GeometrySet self) -> IMP::display::Geometries"""
648 return _IMP_display.GeometrySet_get_geometry(self)
650 def get_version_info(self):
651 """get_version_info(GeometrySet self) -> VersionInfo"""
652 return _IMP_display.GeometrySet_get_version_info(self)
655 """__str__(GeometrySet self) -> std::string"""
656 return _IMP_display.GeometrySet___str__(self)
659 """__repr__(GeometrySet self) -> std::string"""
660 return _IMP_display.GeometrySet___repr__(self)
663 return _object_cast_to_GeometrySet(o)
664 get_from = staticmethod(get_from)
666 GeometrySet_swigregister = _IMP_display.GeometrySet_swigregister
667 GeometrySet_swigregister(GeometrySet)
669 class SphereGeometry(Geometry):
670 """Proxy of C++ IMP::display::SphereGeometry class"""
671 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
672 def __init__(self, *args):
674 __init__(IMP::display::SphereGeometry self, Sphere3D v) -> SphereGeometry
675 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
676 __init__(IMP::display::SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
677 __init__(IMP::display::SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
679 this = _IMP_display.new_SphereGeometry(*args)
680 try: self.this.append(this)
681 except: self.this = this
682 def get_geometry(self):
683 """get_geometry(SphereGeometry self) -> Sphere3D"""
684 return _IMP_display.SphereGeometry_get_geometry(self)
686 def set_geometry(self, *args):
687 """set_geometry(SphereGeometry self, Sphere3D v)"""
688 return _IMP_display.SphereGeometry_set_geometry(self, *args)
690 def get_version_info(self):
691 """get_version_info(SphereGeometry self) -> VersionInfo"""
692 return _IMP_display.SphereGeometry_get_version_info(self)
695 """__str__(SphereGeometry self) -> std::string"""
696 return _IMP_display.SphereGeometry___str__(self)
699 """__repr__(SphereGeometry self) -> std::string"""
700 return _IMP_display.SphereGeometry___repr__(self)
703 return _object_cast_to_SphereGeometry(o)
704 get_from = staticmethod(get_from)
706 SphereGeometry_swigregister = _IMP_display.SphereGeometry_swigregister
707 SphereGeometry_swigregister(SphereGeometry)
709 class CylinderGeometry(Geometry):
710 """Proxy of C++ IMP::display::CylinderGeometry class"""
711 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
712 def __init__(self, *args):
714 __init__(IMP::display::CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
715 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
716 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
717 __init__(IMP::display::CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
719 this = _IMP_display.new_CylinderGeometry(*args)
720 try: self.this.append(this)
721 except: self.this = this
722 def get_geometry(self):
723 """get_geometry(CylinderGeometry self) -> Cylinder3D"""
724 return _IMP_display.CylinderGeometry_get_geometry(self)
726 def set_geometry(self, *args):
727 """set_geometry(CylinderGeometry self, Cylinder3D v)"""
728 return _IMP_display.CylinderGeometry_set_geometry(self, *args)
730 def get_version_info(self):
731 """get_version_info(CylinderGeometry self) -> VersionInfo"""
732 return _IMP_display.CylinderGeometry_get_version_info(self)
735 """__str__(CylinderGeometry self) -> std::string"""
736 return _IMP_display.CylinderGeometry___str__(self)
739 """__repr__(CylinderGeometry self) -> std::string"""
740 return _IMP_display.CylinderGeometry___repr__(self)
743 return _object_cast_to_CylinderGeometry(o)
744 get_from = staticmethod(get_from)
746 CylinderGeometry_swigregister = _IMP_display.CylinderGeometry_swigregister
747 CylinderGeometry_swigregister(CylinderGeometry)
749 class EllipsoidGeometry(Geometry):
750 """Proxy of C++ IMP::display::EllipsoidGeometry class"""
751 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
752 def __init__(self, *args):
754 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
755 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
756 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
757 __init__(IMP::display::EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
759 this = _IMP_display.new_EllipsoidGeometry(*args)
760 try: self.this.append(this)
761 except: self.this = this
762 def get_geometry(self):
763 """get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
764 return _IMP_display.EllipsoidGeometry_get_geometry(self)
766 def set_geometry(self, *args):
767 """set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
768 return _IMP_display.EllipsoidGeometry_set_geometry(self, *args)
770 def get_version_info(self):
771 """get_version_info(EllipsoidGeometry self) -> VersionInfo"""
772 return _IMP_display.EllipsoidGeometry_get_version_info(self)
775 """__str__(EllipsoidGeometry self) -> std::string"""
776 return _IMP_display.EllipsoidGeometry___str__(self)
779 """__repr__(EllipsoidGeometry self) -> std::string"""
780 return _IMP_display.EllipsoidGeometry___repr__(self)
783 return _object_cast_to_EllipsoidGeometry(o)
784 get_from = staticmethod(get_from)
786 EllipsoidGeometry_swigregister = _IMP_display.EllipsoidGeometry_swigregister
787 EllipsoidGeometry_swigregister(EllipsoidGeometry)
789 class PointGeometry(Geometry):
790 """Proxy of C++ IMP::display::PointGeometry class"""
791 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
792 def __init__(self, *args):
794 __init__(IMP::display::PointGeometry self, Vector3D v) -> PointGeometry
795 __init__(IMP::display::PointGeometry self, Vector3D v, Color c) -> PointGeometry
796 __init__(IMP::display::PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
797 __init__(IMP::display::PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
799 this = _IMP_display.new_PointGeometry(*args)
800 try: self.this.append(this)
801 except: self.this = this
802 def get_geometry(self):
803 """get_geometry(PointGeometry self) -> Vector3D"""
804 return _IMP_display.PointGeometry_get_geometry(self)
806 def set_geometry(self, *args):
807 """set_geometry(PointGeometry self, Vector3D v)"""
808 return _IMP_display.PointGeometry_set_geometry(self, *args)
810 def get_version_info(self):
811 """get_version_info(PointGeometry self) -> VersionInfo"""
812 return _IMP_display.PointGeometry_get_version_info(self)
815 """__str__(PointGeometry self) -> std::string"""
816 return _IMP_display.PointGeometry___str__(self)
819 """__repr__(PointGeometry self) -> std::string"""
820 return _IMP_display.PointGeometry___repr__(self)
823 return _object_cast_to_PointGeometry(o)
824 get_from = staticmethod(get_from)
826 PointGeometry_swigregister = _IMP_display.PointGeometry_swigregister
827 PointGeometry_swigregister(PointGeometry)
829 class SegmentGeometry(Geometry):
830 """Proxy of C++ IMP::display::SegmentGeometry class"""
831 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
832 def __init__(self, *args):
834 __init__(IMP::display::SegmentGeometry self, Segment3D v) -> SegmentGeometry
835 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
836 __init__(IMP::display::SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
837 __init__(IMP::display::SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
839 this = _IMP_display.new_SegmentGeometry(*args)
840 try: self.this.append(this)
841 except: self.this = this
842 def get_geometry(self):
843 """get_geometry(SegmentGeometry self) -> Segment3D"""
844 return _IMP_display.SegmentGeometry_get_geometry(self)
846 def set_geometry(self, *args):
847 """set_geometry(SegmentGeometry self, Segment3D v)"""
848 return _IMP_display.SegmentGeometry_set_geometry(self, *args)
850 def get_version_info(self):
851 """get_version_info(SegmentGeometry self) -> VersionInfo"""
852 return _IMP_display.SegmentGeometry_get_version_info(self)
855 """__str__(SegmentGeometry self) -> std::string"""
856 return _IMP_display.SegmentGeometry___str__(self)
859 """__repr__(SegmentGeometry self) -> std::string"""
860 return _IMP_display.SegmentGeometry___repr__(self)
863 return _object_cast_to_SegmentGeometry(o)
864 get_from = staticmethod(get_from)
866 SegmentGeometry_swigregister = _IMP_display.SegmentGeometry_swigregister
867 SegmentGeometry_swigregister(SegmentGeometry)
869 class PolygonGeometry(Geometry):
870 """Proxy of C++ IMP::display::PolygonGeometry class"""
871 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
872 def __init__(self, *args):
874 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
875 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
876 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
877 __init__(IMP::display::PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
879 this = _IMP_display.new_PolygonGeometry(*args)
880 try: self.this.append(this)
881 except: self.this = this
882 def get_geometry(self):
883 """get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
884 return _IMP_display.PolygonGeometry_get_geometry(self)
886 def set_geometry(self, *args):
887 """set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
888 return _IMP_display.PolygonGeometry_set_geometry(self, *args)
890 def get_version_info(self):
891 """get_version_info(PolygonGeometry self) -> VersionInfo"""
892 return _IMP_display.PolygonGeometry_get_version_info(self)
895 """__str__(PolygonGeometry self) -> std::string"""
896 return _IMP_display.PolygonGeometry___str__(self)
899 """__repr__(PolygonGeometry self) -> std::string"""
900 return _IMP_display.PolygonGeometry___repr__(self)
903 return _object_cast_to_PolygonGeometry(o)
904 get_from = staticmethod(get_from)
906 PolygonGeometry_swigregister = _IMP_display.PolygonGeometry_swigregister
907 PolygonGeometry_swigregister(PolygonGeometry)
909 class TriangleGeometry(Geometry):
910 """Proxy of C++ IMP::display::TriangleGeometry class"""
911 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
912 def __init__(self, *args):
914 __init__(IMP::display::TriangleGeometry self, Triangle3D v) -> TriangleGeometry
915 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
916 __init__(IMP::display::TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
917 __init__(IMP::display::TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
919 this = _IMP_display.new_TriangleGeometry(*args)
920 try: self.this.append(this)
921 except: self.this = this
922 def get_geometry(self):
923 """get_geometry(TriangleGeometry self) -> Triangle3D"""
924 return _IMP_display.TriangleGeometry_get_geometry(self)
926 def set_geometry(self, *args):
927 """set_geometry(TriangleGeometry self, Triangle3D v)"""
928 return _IMP_display.TriangleGeometry_set_geometry(self, *args)
930 def get_version_info(self):
931 """get_version_info(TriangleGeometry self) -> VersionInfo"""
932 return _IMP_display.TriangleGeometry_get_version_info(self)
935 """__str__(TriangleGeometry self) -> std::string"""
936 return _IMP_display.TriangleGeometry___str__(self)
939 """__repr__(TriangleGeometry self) -> std::string"""
940 return _IMP_display.TriangleGeometry___repr__(self)
943 return _object_cast_to_TriangleGeometry(o)
944 get_from = staticmethod(get_from)
946 TriangleGeometry_swigregister = _IMP_display.TriangleGeometry_swigregister
947 TriangleGeometry_swigregister(TriangleGeometry)
949 class BoundingBoxGeometry(Geometry):
950 """Proxy of C++ IMP::display::BoundingBoxGeometry class"""
951 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
952 def __init__(self, *args):
954 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
955 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
956 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
957 __init__(IMP::display::BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
959 this = _IMP_display.new_BoundingBoxGeometry(*args)
960 try: self.this.append(this)
961 except: self.this = this
962 def get_geometry(self):
963 """get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
964 return _IMP_display.BoundingBoxGeometry_get_geometry(self)
966 def set_geometry(self, *args):
967 """set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
968 return _IMP_display.BoundingBoxGeometry_set_geometry(self, *args)
970 def get_version_info(self):
971 """get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
972 return _IMP_display.BoundingBoxGeometry_get_version_info(self)
975 """__str__(BoundingBoxGeometry self) -> std::string"""
976 return _IMP_display.BoundingBoxGeometry___str__(self)
979 """__repr__(BoundingBoxGeometry self) -> std::string"""
980 return _IMP_display.BoundingBoxGeometry___repr__(self)
983 return _object_cast_to_BoundingBoxGeometry(o)
984 get_from = staticmethod(get_from)
986 BoundingBoxGeometry_swigregister = _IMP_display.BoundingBoxGeometry_swigregister
987 BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
989 class ReferenceFrameGeometry(Geometry):
990 """Proxy of C++ IMP::display::ReferenceFrameGeometry class"""
991 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
992 def __init__(self, *args):
994 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
995 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
996 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
997 __init__(IMP::display::ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
999 this = _IMP_display.new_ReferenceFrameGeometry(*args)
1000 try: self.this.append(this)
1001 except: self.this = this
1002 def get_geometry(self):
1003 """get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1004 return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1006 def set_geometry(self, *args):
1007 """set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1008 return _IMP_display.ReferenceFrameGeometry_set_geometry(self, *args)
1010 def get_version_info(self):
1011 """get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1012 return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1015 """__str__(ReferenceFrameGeometry self) -> std::string"""
1016 return _IMP_display.ReferenceFrameGeometry___str__(self)
1019 """__repr__(ReferenceFrameGeometry self) -> std::string"""
1020 return _IMP_display.ReferenceFrameGeometry___repr__(self)
1023 return _object_cast_to_ReferenceFrameGeometry(o)
1024 get_from = staticmethod(get_from)
1026 ReferenceFrameGeometry_swigregister = _IMP_display.ReferenceFrameGeometry_swigregister
1027 ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1032 create_geometry(Sphere3D t, std::string name="algebra::Sphere3D+%1%") -> SphereGeometry
1033 create_geometry(Sphere3D t) -> SphereGeometry
1034 create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D+%1%") -> CylinderGeometry
1035 create_geometry(Cylinder3D t) -> CylinderGeometry
1036 create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D+%1%") -> EllipsoidGeometry
1037 create_geometry(Ellipsoid3D t) -> EllipsoidGeometry
1038 create_geometry(Vector3D t, std::string name="algebra::Vector3D+%1%") -> PointGeometry
1039 create_geometry(Vector3D t) -> PointGeometry
1040 create_geometry(Segment3D t, std::string name="algebra::Segment3D+%1%") -> SegmentGeometry
1041 create_geometry(Segment3D t) -> SegmentGeometry
1042 create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds+%1%") -> PolygonGeometry
1043 create_geometry(IMP::algebra::Vector3Ds const & t) -> PolygonGeometry
1044 create_geometry(Triangle3D t, std::string name="algebra::Triangle3D+%1%") -> TriangleGeometry
1045 create_geometry(Triangle3D t) -> TriangleGeometry
1046 create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>+%1%") -> BoundingBoxGeometry
1047 create_geometry(BoundingBox3D t) -> BoundingBoxGeometry
1048 create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D+%1%") -> ReferenceFrameGeometry
1049 create_geometry(ReferenceFrame3D t) -> ReferenceFrameGeometry
1051 return _IMP_display.create_geometry(*args)
1052 class LabelGeometry(Geometry):
1053 """Proxy of C++ IMP::display::LabelGeometry class"""
1054 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1055 def __init__(self, *args):
1057 __init__(IMP::display::LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1058 __init__(IMP::display::LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1060 this = _IMP_display.new_LabelGeometry(*args)
1061 try: self.this.append(this)
1062 except: self.this = this
1064 """get_text(LabelGeometry self) -> std::string"""
1065 return _IMP_display.LabelGeometry_get_text(self)
1067 def get_location(self):
1068 """get_location(LabelGeometry self) -> Sphere3D"""
1069 return _IMP_display.LabelGeometry_get_location(self)
1071 def get_version_info(self):
1072 """get_version_info(LabelGeometry self) -> VersionInfo"""
1073 return _IMP_display.LabelGeometry_get_version_info(self)
1076 """__str__(LabelGeometry self) -> std::string"""
1077 return _IMP_display.LabelGeometry___str__(self)
1080 """__repr__(LabelGeometry self) -> std::string"""
1081 return _IMP_display.LabelGeometry___repr__(self)
1084 return _object_cast_to_LabelGeometry(o)
1085 get_from = staticmethod(get_from)
1087 LabelGeometry_swigregister = _IMP_display.LabelGeometry_swigregister
1088 LabelGeometry_swigregister(LabelGeometry)
1090 class SurfaceMeshGeometry(Geometry):
1091 """Proxy of C++ IMP::display::SurfaceMeshGeometry class"""
1092 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1093 def __init__(self, *args):
1094 """__init__(IMP::display::SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1095 this = _IMP_display.new_SurfaceMeshGeometry(*args)
1096 try: self.this.append(this)
1097 except: self.this = this
1098 def get_vertexes(self):
1099 """get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1100 return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1102 def get_faces(self):
1103 """get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1104 return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1106 def get_version_info(self):
1107 """get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1108 return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1111 """__str__(SurfaceMeshGeometry self) -> std::string"""
1112 return _IMP_display.SurfaceMeshGeometry___str__(self)
1115 """__repr__(SurfaceMeshGeometry self) -> std::string"""
1116 return _IMP_display.SurfaceMeshGeometry___repr__(self)
1119 return _object_cast_to_SurfaceMeshGeometry(o)
1120 get_from = staticmethod(get_from)
1122 SurfaceMeshGeometry_swigregister = _IMP_display.SurfaceMeshGeometry_swigregister
1123 SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1125 class PlaneGeometry(Geometry):
1126 """Proxy of C++ IMP::display::PlaneGeometry class"""
1127 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1128 def __init__(self, *args):
1129 """__init__(IMP::display::PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1130 this = _IMP_display.new_PlaneGeometry(*args)
1131 try: self.this.append(this)
1132 except: self.this = this
1133 def get_version_info(self):
1134 """get_version_info(PlaneGeometry self) -> VersionInfo"""
1135 return _IMP_display.PlaneGeometry_get_version_info(self)
1138 """__str__(PlaneGeometry self) -> std::string"""
1139 return _IMP_display.PlaneGeometry___str__(self)
1142 """__repr__(PlaneGeometry self) -> std::string"""
1143 return _IMP_display.PlaneGeometry___repr__(self)
1146 return _object_cast_to_PlaneGeometry(o)
1147 get_from = staticmethod(get_from)
1149 PlaneGeometry_swigregister = _IMP_display.PlaneGeometry_swigregister
1150 PlaneGeometry_swigregister(PlaneGeometry)
1152 class IsosurfaceGeometry(SurfaceMeshGeometry):
1153 """Proxy of C++ IMP::display::IsosurfaceGeometry class"""
1154 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1155 def __init__(self, *args):
1157 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid,
1158 double iso) -> IsosurfaceGeometry
1159 __init__(IMP::display::IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid,
1160 double iso) -> IsosurfaceGeometry
1162 this = _IMP_display.new_IsosurfaceGeometry(*args)
1163 try: self.this.append(this)
1164 except: self.this = this
1166 """__str__(IsosurfaceGeometry self) -> std::string"""
1167 return _IMP_display.IsosurfaceGeometry___str__(self)
1170 """__repr__(IsosurfaceGeometry self) -> std::string"""
1171 return _IMP_display.IsosurfaceGeometry___repr__(self)
1174 return _object_cast_to_IsosurfaceGeometry(o)
1175 get_from = staticmethod(get_from)
1177 __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1178 __del__ =
lambda self :
None;
1179 IsosurfaceGeometry_swigregister = _IMP_display.IsosurfaceGeometry_swigregister
1180 IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1182 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1183 """Proxy of C++ IMP::display::SkinSurfaceGeometry class"""
1184 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1185 def __init__(self, *args):
1186 """__init__(IMP::display::SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1187 this = _IMP_display.new_SkinSurfaceGeometry(*args)
1188 try: self.this.append(this)
1189 except: self.this = this
1191 """__str__(SkinSurfaceGeometry self) -> std::string"""
1192 return _IMP_display.SkinSurfaceGeometry___str__(self)
1195 """__repr__(SkinSurfaceGeometry self) -> std::string"""
1196 return _IMP_display.SkinSurfaceGeometry___repr__(self)
1199 return _object_cast_to_SkinSurfaceGeometry(o)
1200 get_from = staticmethod(get_from)
1202 __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1203 __del__ =
lambda self :
None;
1204 SkinSurfaceGeometry_swigregister = _IMP_display.SkinSurfaceGeometry_swigregister
1205 SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1207 class GeometryProcessor(object):
1208 """Proxy of C++ IMP::display::GeometryProcessor class"""
1209 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1210 __repr__ = _swig_repr
1212 """__init__(IMP::display::GeometryProcessor self) -> GeometryProcessor"""
1213 this = _IMP_display.new_GeometryProcessor()
1214 try: self.this.append(this)
1215 except: self.this = this
1216 GeometryProcessor_swigregister = _IMP_display.GeometryProcessor_swigregister
1217 GeometryProcessor_swigregister(GeometryProcessor)
1220 """Proxy of C++ IMP::display::Writer class"""
1221 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1222 def __init__(self, *args):
1223 """__init__(IMP::display::Writer self, std::string name) -> Writer"""
1224 if self.__class__ == Writer:
1228 this = _IMP_display.new_Writer(_self, *args)
1229 try: self.this.append(this)
1230 except: self.this = this
1231 if self.__class__ != Writer:
1233 IMP.base._director_objects.register(self)
1237 __swig_destroy__ = _IMP_display.delete_Writer
1238 __del__ =
lambda self :
None;
1239 def set_frame(self, *args):
1240 """set_frame(Writer self, unsigned int i)"""
1241 return _IMP_display.Writer_set_frame(self, *args)
1243 def get_frame(self):
1244 """get_frame(Writer self) -> int"""
1245 return _IMP_display.Writer_get_frame(self)
1247 def add_geometry(self, *args):
1249 add_geometry(Writer self, Geometry g)
1250 add_geometry(Writer self, IMP::display::Geometries const & g)
1252 return _IMP_display.Writer_add_geometry(self, *args)
1255 """do_close(Writer self)"""
1256 return _IMP_display.Writer_do_close(self)
1259 """do_open(Writer self)"""
1260 return _IMP_display.Writer_do_open(self)
1262 def do_set_frame(self):
1263 """do_set_frame(Writer self)"""
1264 return _IMP_display.Writer_do_set_frame(self)
1267 """__str__(Writer self) -> std::string"""
1268 return _IMP_display.Writer___str__(self)
1271 """__repr__(Writer self) -> std::string"""
1272 return _IMP_display.Writer___repr__(self)
1275 return _object_cast_to_Writer(o)
1276 get_from = staticmethod(get_from)
1278 def get_type_name(self):
1279 return self.__class__.__name__
1280 def do_show(self, out):
1282 def get_version_info(self):
1283 if"IMP::display" ==
"IMP":
1284 return VersionInfo(
"python",
"0")
1286 return IMP.VersionInfo(
"python",
"0")
1288 return _object_cast_to_Writer(o)
1289 get_from = staticmethod(get_from)
1291 def __disown__(self):
1293 _IMP_display.disown_Writer(self)
1294 return weakref_proxy(self)
1295 def handle_sphere(self, *args):
1296 """handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1297 return _IMP_display.Writer_handle_sphere(self, *args)
1299 def handle_cylinder(self, *args):
1300 """handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1301 return _IMP_display.Writer_handle_cylinder(self, *args)
1303 def handle_point(self, *args):
1304 """handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1305 return _IMP_display.Writer_handle_point(self, *args)
1307 def handle_segment(self, *args):
1308 """handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1309 return _IMP_display.Writer_handle_segment(self, *args)
1311 def handle_polygon(self, *args):
1312 """handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1313 return _IMP_display.Writer_handle_polygon(self, *args)
1315 def handle_triangle(self, *args):
1316 """handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1317 return _IMP_display.Writer_handle_triangle(self, *args)
1319 def handle_surface_mesh(self, *args):
1320 """handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1321 return _IMP_display.Writer_handle_surface_mesh(self, *args)
1323 def handle_label(self, *args):
1324 """handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1325 return _IMP_display.Writer_handle_label(self, *args)
1327 def handle_ellipsoid(self, *args):
1328 """handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1329 return _IMP_display.Writer_handle_ellipsoid(self, *args)
1331 def handle_bounding_box(self, *args):
1332 """handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1333 return _IMP_display.Writer_handle_bounding_box(self, *args)
1335 def handle_anything(self, *args):
1336 """handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1337 return _IMP_display.Writer_handle_anything(self, *args)
1339 def do_destroy(self):
1340 """do_destroy(Writer self)"""
1341 return _IMP_display.Writer_do_destroy(self)
1343 Writer_swigregister = _IMP_display.Writer_swigregister
1344 Writer_swigregister(Writer)
1346 class TextWriter(Writer):
1347 """Proxy of C++ IMP::display::TextWriter class"""
1348 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1350 """open(TextWriter self)"""
1351 return _IMP_display.TextWriter_open(self)
1353 def get_stream(self):
1354 """get_stream(TextWriter self) -> _ostream"""
1355 return _IMP_display.TextWriter_get_stream(self)
1357 def do_set_frame(self):
1358 """do_set_frame(TextWriter self)"""
1359 return _IMP_display.TextWriter_do_set_frame(self)
1361 def __init__(self, *args):
1363 __init__(IMP::display::TextWriter self, TextOutput fn) -> TextWriter
1364 __init__(IMP::display::TextWriter self, std::string name) -> TextWriter
1366 if self.__class__ == TextWriter:
1370 this = _IMP_display.new_TextWriter(_self, *args)
1371 try: self.this.append(this)
1372 except: self.this = this
1373 if self.__class__ != TextWriter:
1375 IMP.base._director_objects.register(self)
1379 def get_current_file_name(self):
1380 """get_current_file_name(TextWriter self) -> std::string"""
1381 return _IMP_display.TextWriter_get_current_file_name(self)
1383 __swig_destroy__ = _IMP_display.delete_TextWriter
1384 __del__ =
lambda self :
None;
1386 """__str__(TextWriter self) -> std::string"""
1387 return _IMP_display.TextWriter___str__(self)
1390 """__repr__(TextWriter self) -> std::string"""
1391 return _IMP_display.TextWriter___repr__(self)
1394 return _object_cast_to_TextWriter(o)
1395 get_from = staticmethod(get_from)
1397 def get_type_name(self):
1398 return self.__class__.__name__
1399 def do_show(self, out):
1401 def get_version_info(self):
1402 if"IMP::display" ==
"IMP":
1403 return VersionInfo(
"python",
"0")
1405 return IMP.VersionInfo(
"python",
"0")
1407 return _object_cast_to_TextWriter(o)
1408 get_from = staticmethod(get_from)
1410 def __disown__(self):
1412 _IMP_display.disown_TextWriter(self)
1413 return weakref_proxy(self)
1414 def handle_sphere(self, *args):
1415 """handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1416 return _IMP_display.TextWriter_handle_sphere(self, *args)
1418 def handle_cylinder(self, *args):
1419 """handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1420 return _IMP_display.TextWriter_handle_cylinder(self, *args)
1422 def handle_point(self, *args):
1423 """handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1424 return _IMP_display.TextWriter_handle_point(self, *args)
1426 def handle_segment(self, *args):
1427 """handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1428 return _IMP_display.TextWriter_handle_segment(self, *args)
1430 def handle_polygon(self, *args):
1431 """handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1432 return _IMP_display.TextWriter_handle_polygon(self, *args)
1434 def handle_triangle(self, *args):
1435 """handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1436 return _IMP_display.TextWriter_handle_triangle(self, *args)
1438 def handle_surface_mesh(self, *args):
1439 """handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1440 return _IMP_display.TextWriter_handle_surface_mesh(self, *args)
1442 def handle_label(self, *args):
1443 """handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1444 return _IMP_display.TextWriter_handle_label(self, *args)
1446 def handle_ellipsoid(self, *args):
1447 """handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1448 return _IMP_display.TextWriter_handle_ellipsoid(self, *args)
1450 def handle_bounding_box(self, *args):
1451 """handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1452 return _IMP_display.TextWriter_handle_bounding_box(self, *args)
1454 def handle_anything(self, *args):
1455 """handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1456 return _IMP_display.TextWriter_handle_anything(self, *args)
1458 def do_destroy(self):
1459 """do_destroy(TextWriter self)"""
1460 return _IMP_display.TextWriter_do_destroy(self)
1463 """do_close(TextWriter self)"""
1464 return _IMP_display.TextWriter_do_close(self)
1467 """do_open(TextWriter self)"""
1468 return _IMP_display.TextWriter_do_open(self)
1470 TextWriter_swigregister = _IMP_display.TextWriter_swigregister
1471 TextWriter_swigregister(TextWriter)
1475 """create_writer(std::string filename) -> Writer"""
1476 return _IMP_display.create_writer(*args)
1477 class WriterAdaptor(IMP.base._InputAdaptor):
1478 """Proxy of C++ IMP::display::WriterAdaptor class"""
1479 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1480 def __init__(self, *args):
1482 __init__(IMP::display::WriterAdaptor self, std::string name) -> WriterAdaptor
1483 __init__(IMP::display::WriterAdaptor self, Writer w) -> WriterAdaptor
1485 this = _IMP_display.new_WriterAdaptor(*args)
1486 try: self.this.append(this)
1487 except: self.this = this
1488 def get_writer(self):
1489 """get_writer(WriterAdaptor self) -> Writer"""
1490 return _IMP_display.WriterAdaptor_get_writer(self)
1492 def show(self, *args):
1494 show(WriterAdaptor self, _ostream out=std::cout)
1495 show(WriterAdaptor self)
1497 return _IMP_display.WriterAdaptor_show(self, *args)
1499 __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1500 __del__ =
lambda self :
None;
1502 """__str__(WriterAdaptor self) -> std::string"""
1503 return _IMP_display.WriterAdaptor___str__(self)
1506 """__repr__(WriterAdaptor self) -> std::string"""
1507 return _IMP_display.WriterAdaptor___repr__(self)
1509 WriterAdaptor_swigregister = _IMP_display.WriterAdaptor_swigregister
1510 WriterAdaptor_swigregister(WriterAdaptor)
1512 class ChimeraWriter(TextWriter):
1513 """Proxy of C++ IMP::display::ChimeraWriter class"""
1514 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1515 def __init__(self, *args):
1517 __init__(IMP::display::ChimeraWriter self, TextOutput of) -> ChimeraWriter
1518 __init__(IMP::display::ChimeraWriter self, std::string name) -> ChimeraWriter
1519 __init__(IMP::display::ChimeraWriter self, char const * name) -> ChimeraWriter
1521 this = _IMP_display.new_ChimeraWriter(*args)
1522 try: self.this.append(this)
1523 except: self.this = this
1524 def get_version_info(self):
1525 """get_version_info(ChimeraWriter self) -> VersionInfo"""
1526 return _IMP_display.ChimeraWriter_get_version_info(self)
1529 """__str__(ChimeraWriter self) -> std::string"""
1530 return _IMP_display.ChimeraWriter___str__(self)
1533 """__repr__(ChimeraWriter self) -> std::string"""
1534 return _IMP_display.ChimeraWriter___repr__(self)
1537 return _object_cast_to_ChimeraWriter(o)
1538 get_from = staticmethod(get_from)
1540 ChimeraWriter_swigregister = _IMP_display.ChimeraWriter_swigregister
1541 ChimeraWriter_swigregister(ChimeraWriter)
1544 """Proxy of C++ IMP::display::Colored class"""
1545 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1546 def set_color(self, *args):
1547 """set_color(Colored self, Color c)"""
1548 return _IMP_display.Colored_set_color(self, *args)
1550 def get_color(self):
1551 """get_color(Colored self) -> Color"""
1552 return _IMP_display.Colored_get_color(self)
1554 def get_color_keys():
1555 """get_color_keys() -> IMP::kernel::FloatKeys const &"""
1556 return _IMP_display.Colored_get_color_keys()
1558 get_color_keys = staticmethod(get_color_keys)
1559 def __init__(self, *args):
1561 __init__(IMP::display::Colored self) -> Colored
1562 __init__(IMP::display::Colored self, Model m, ::IMP::kernel::ParticleIndex id) -> Colored
1563 __init__(IMP::display::Colored self, _ParticleAdaptor d) -> Colored
1565 this = _IMP_display.new_Colored(*args)
1566 try: self.this.append(this)
1567 except: self.this = this
1568 def get_is_setup(*args):
1570 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1571 get_is_setup(_ParticleAdaptor p) -> bool
1573 return _IMP_display.Colored_get_is_setup(*args)
1575 get_is_setup = staticmethod(get_is_setup)
1576 def show(self, *args):
1578 show(Colored self, _ostream out=std::cout)
1581 return _IMP_display.Colored_show(self, *args)
1583 def setup_particle(*args):
1585 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Color color) -> Colored
1586 setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1588 return _IMP_display.Colored_setup_particle(*args)
1590 setup_particle = staticmethod(setup_particle)
1591 def add_attribute(self, *args):
1593 add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1594 add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1595 add_attribute(Colored self, IntKey a0, IMP::Int a1)
1596 add_attribute(Colored self, StringKey a0, IMP::String a1)
1597 add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1598 add_attribute(Colored self, ObjectKey a0, Object a1)
1600 return _IMP_display.Colored_add_attribute(self, *args)
1602 def get_value(self, *args):
1604 get_value(Colored self, FloatKey a0) -> IMP::Float
1605 get_value(Colored self, IntKey a0) -> IMP::Int
1606 get_value(Colored self, StringKey a0) -> IMP::String
1607 get_value(Colored self, ParticleIndexKey a0) -> Particle
1608 get_value(Colored self, ObjectKey a0) -> Object
1610 return _IMP_display.Colored_get_value(self, *args)
1612 def set_value(self, *args):
1614 set_value(Colored self, FloatKey a0, IMP::Float a1)
1615 set_value(Colored self, IntKey a0, IMP::Int a1)
1616 set_value(Colored self, StringKey a0, IMP::String a1)
1617 set_value(Colored self, ParticleIndexKey a0, Particle a1)
1618 set_value(Colored self, ObjectKey a0, Object a1)
1620 return _IMP_display.Colored_set_value(self, *args)
1622 def remove_attribute(self, *args):
1624 remove_attribute(Colored self, FloatKey a0)
1625 remove_attribute(Colored self, IntKey a0)
1626 remove_attribute(Colored self, StringKey a0)
1627 remove_attribute(Colored self, ParticleIndexKey a0)
1628 remove_attribute(Colored self, ObjectKey a0)
1630 return _IMP_display.Colored_remove_attribute(self, *args)
1632 def has_attribute(self, *args):
1634 has_attribute(Colored self, FloatKey a0) -> bool
1635 has_attribute(Colored self, IntKey a0) -> bool
1636 has_attribute(Colored self, StringKey a0) -> bool
1637 has_attribute(Colored self, ParticleIndexKey a0) -> bool
1638 has_attribute(Colored self, ObjectKey a0) -> bool
1640 return _IMP_display.Colored_has_attribute(self, *args)
1642 def get_derivative(self, *args):
1643 """get_derivative(Colored self, FloatKey a0) -> double"""
1644 return _IMP_display.Colored_get_derivative(self, *args)
1647 """get_name(Colored self) -> std::string"""
1648 return _IMP_display.Colored_get_name(self)
1650 def clear_caches(self):
1651 """clear_caches(Colored self)"""
1652 return _IMP_display.Colored_clear_caches(self)
1654 def set_name(self, *args):
1655 """set_name(Colored self, std::string a0)"""
1656 return _IMP_display.Colored_set_name(self, *args)
1659 """set_check_level(Colored self, IMP::base::CheckLevel a0)"""
1660 return _IMP_display.Colored_set_check_level(self, *args)
1662 def add_to_derivative(self, *args):
1663 """add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1664 return _IMP_display.Colored_add_to_derivative(self, *args)
1666 def set_is_optimized(self, *args):
1667 """set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1668 return _IMP_display.Colored_set_is_optimized(self, *args)
1670 def get_is_optimized(self, *args):
1671 """get_is_optimized(Colored self, FloatKey a0) -> bool"""
1672 return _IMP_display.Colored_get_is_optimized(self, *args)
1675 """get_check_level(Colored self) -> IMP::base::CheckLevel"""
1676 return _IMP_display.Colored_get_check_level(self)
1678 def __eq__(self, *args):
1680 __eq__(Colored self, Colored o) -> bool
1681 __eq__(Colored self, Particle d) -> bool
1683 return _IMP_display.Colored___eq__(self, *args)
1685 def __ne__(self, *args):
1687 __ne__(Colored self, Colored o) -> bool
1688 __ne__(Colored self, Particle d) -> bool
1690 return _IMP_display.Colored___ne__(self, *args)
1692 def __le__(self, *args):
1694 __le__(Colored self, Colored o) -> bool
1695 __le__(Colored self, Particle d) -> bool
1697 return _IMP_display.Colored___le__(self, *args)
1699 def __lt__(self, *args):
1701 __lt__(Colored self, Colored o) -> bool
1702 __lt__(Colored self, Particle d) -> bool
1704 return _IMP_display.Colored___lt__(self, *args)
1706 def __ge__(self, *args):
1708 __ge__(Colored self, Colored o) -> bool
1709 __ge__(Colored self, Particle d) -> bool
1711 return _IMP_display.Colored___ge__(self, *args)
1713 def __gt__(self, *args):
1715 __gt__(Colored self, Colored o) -> bool
1716 __gt__(Colored self, Particle d) -> bool
1718 return _IMP_display.Colored___gt__(self, *args)
1721 """__hash__(Colored self) -> std::size_t"""
1722 return _IMP_display.Colored___hash__(self)
1725 """__str__(Colored self) -> std::string"""
1726 return _IMP_display.Colored___str__(self)
1729 """__repr__(Colored self) -> std::string"""
1730 return _IMP_display.Colored___repr__(self)
1732 __swig_destroy__ = _IMP_display.delete_Colored
1733 __del__ =
lambda self :
None;
1734 Colored_swigregister = _IMP_display.Colored_swigregister
1735 Colored_swigregister(Colored)
1737 def Colored_get_color_keys():
1738 """Colored_get_color_keys() -> IMP::kernel::FloatKeys const &"""
1739 return _IMP_display.Colored_get_color_keys()
1741 def Colored_get_is_setup(*args):
1743 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1744 Colored_get_is_setup(_ParticleAdaptor p) -> bool
1746 return _IMP_display.Colored_get_is_setup(*args)
1748 def Colored_setup_particle(*args):
1750 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Color color) -> Colored
1751 Colored_setup_particle(_ParticleAdaptor decorator, Color color) -> Colored
1753 return _IMP_display.Colored_setup_particle(*args)
1756 def __lshift__(*args):
1757 """__lshift__(_ostream out, Colored n) -> _ostream"""
1758 return _IMP_display.__lshift__(*args)
1759 class FilterGeometry(GeometryProcessor,Geometry):
1760 """Proxy of C++ IMP::display::FilterGeometry class"""
1761 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1762 def __init__(self, *args):
1763 """__init__(IMP::display::FilterGeometry self, Plane3D p) -> FilterGeometry"""
1764 this = _IMP_display.new_FilterGeometry(*args)
1765 try: self.this.append(this)
1766 except: self.this = this
1767 def add_geometry(self, *args):
1769 add_geometry(FilterGeometry self, Geometry g)
1770 add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1772 return _IMP_display.FilterGeometry_add_geometry(self, *args)
1774 def get_version_info(self):
1775 """get_version_info(FilterGeometry self) -> VersionInfo"""
1776 return _IMP_display.FilterGeometry_get_version_info(self)
1779 """__str__(FilterGeometry self) -> std::string"""
1780 return _IMP_display.FilterGeometry___str__(self)
1783 """__repr__(FilterGeometry self) -> std::string"""
1784 return _IMP_display.FilterGeometry___repr__(self)
1787 return _object_cast_to_FilterGeometry(o)
1788 get_from = staticmethod(get_from)
1790 FilterGeometry_swigregister = _IMP_display.FilterGeometry_swigregister
1791 FilterGeometry_swigregister(FilterGeometry)
1794 """Proxy of C++ IMP::display::WriteOptimizerState class"""
1795 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1796 def __init__(self, *args):
1797 """__init__(IMP::display::WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1798 this = _IMP_display.new_WriteOptimizerState(*args)
1799 try: self.this.append(this)
1800 except: self.this = this
1801 def write(self, *args):
1802 """write(WriteOptimizerState self, WriterAdaptor w)"""
1803 return _IMP_display.WriteOptimizerState_write(self, *args)
1805 def remove_geometry(self, *args):
1806 """remove_geometry(WriteOptimizerState self, Geometry d)"""
1807 return _IMP_display.WriteOptimizerState_remove_geometry(self, *args)
1809 def remove_geometries(self, *args):
1810 """remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1811 return _IMP_display.WriteOptimizerState_remove_geometries(self, *args)
1813 def set_geometries(self, *args):
1814 """set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1815 return _IMP_display.WriteOptimizerState_set_geometries(self, *args)
1817 def set_geometries_order(self, *args):
1818 """set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1819 return _IMP_display.WriteOptimizerState_set_geometries_order(self, *args)
1821 def add_geometry(self, *args):
1822 """add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1823 return _IMP_display.WriteOptimizerState_add_geometry(self, *args)
1826 """add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1827 return _IMP_display.WriteOptimizerState_add_geometries(self, *args)
1829 def clear_geometries(self):
1830 """clear_geometries(WriteOptimizerState self)"""
1831 return _IMP_display.WriteOptimizerState_clear_geometries(self)
1833 def get_number_of_geometries(self):
1834 """get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1835 return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1837 def get_has_geometries(self):
1838 """get_has_geometries(WriteOptimizerState self) -> bool"""
1839 return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1841 def get_geometry(self, *args):
1842 """get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1843 return _IMP_display.WriteOptimizerState_get_geometry(self, *args)
1845 def get_geometries(self):
1846 """get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1847 return _IMP_display.WriteOptimizerState_get_geometries(self)
1849 def reserve_geometries(self, *args):
1850 """reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1851 return _IMP_display.WriteOptimizerState_reserve_geometries(self, *args)
1853 def get_version_info(self):
1854 """get_version_info(WriteOptimizerState self) -> VersionInfo"""
1855 return _IMP_display.WriteOptimizerState_get_version_info(self)
1858 """__str__(WriteOptimizerState self) -> std::string"""
1859 return _IMP_display.WriteOptimizerState___str__(self)
1862 """__repr__(WriteOptimizerState self) -> std::string"""
1863 return _IMP_display.WriteOptimizerState___repr__(self)
1866 return _object_cast_to_WriteOptimizerState(o)
1867 get_from = staticmethod(get_from)
1869 WriteOptimizerState_swigregister = _IMP_display.WriteOptimizerState_swigregister
1870 WriteOptimizerState_swigregister(WriteOptimizerState)
1872 class SingletonGeometry(Geometry):
1873 """Proxy of C++ IMP::display::SingletonGeometry class"""
1874 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1875 def __init__(self, *args):
1876 """__init__(IMP::display::SingletonGeometry self, Particle p) -> SingletonGeometry"""
1877 this = _IMP_display.new_SingletonGeometry(*args)
1878 try: self.this.append(this)
1879 except: self.this = this
1880 def get_particle(self):
1881 """get_particle(SingletonGeometry self) -> Particle"""
1882 return _IMP_display.SingletonGeometry_get_particle(self)
1884 __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1885 __del__ =
lambda self :
None;
1887 """__str__(SingletonGeometry self) -> std::string"""
1888 return _IMP_display.SingletonGeometry___str__(self)
1891 """__repr__(SingletonGeometry self) -> std::string"""
1892 return _IMP_display.SingletonGeometry___repr__(self)
1895 return _object_cast_to_SingletonGeometry(o)
1896 get_from = staticmethod(get_from)
1898 SingletonGeometry_swigregister = _IMP_display.SingletonGeometry_swigregister
1899 SingletonGeometry_swigregister(SingletonGeometry)
1901 class SingletonsGeometry(Geometry):
1902 """Proxy of C++ IMP::display::SingletonsGeometry class"""
1903 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1904 def __init__(self, *args):
1906 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
1907 __init__(IMP::display::SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
1909 this = _IMP_display.new_SingletonsGeometry(*args)
1910 try: self.this.append(this)
1911 except: self.this = this
1912 def get_container(self):
1913 """get_container(SingletonsGeometry self) -> SingletonContainer"""
1914 return _IMP_display.SingletonsGeometry_get_container(self)
1916 __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
1917 __del__ =
lambda self :
None;
1919 """__str__(SingletonsGeometry self) -> std::string"""
1920 return _IMP_display.SingletonsGeometry___str__(self)
1923 """__repr__(SingletonsGeometry self) -> std::string"""
1924 return _IMP_display.SingletonsGeometry___repr__(self)
1927 return _object_cast_to_SingletonsGeometry(o)
1928 get_from = staticmethod(get_from)
1930 SingletonsGeometry_swigregister = _IMP_display.SingletonsGeometry_swigregister
1931 SingletonsGeometry_swigregister(SingletonsGeometry)
1933 class PairGeometry(Geometry):
1934 """Proxy of C++ IMP::display::PairGeometry class"""
1935 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1936 def __init__(self, *args):
1937 """__init__(IMP::display::PairGeometry self, IMP::kernel::ParticlePair const & pp) -> PairGeometry"""
1938 this = _IMP_display.new_PairGeometry(*args)
1939 try: self.this.append(this)
1940 except: self.this = this
1941 def get_particle_pair(self):
1942 """get_particle_pair(PairGeometry self) -> IMP::kernel::ParticlePair"""
1943 return _IMP_display.PairGeometry_get_particle_pair(self)
1945 __swig_destroy__ = _IMP_display.delete_PairGeometry
1946 __del__ =
lambda self :
None;
1948 """__str__(PairGeometry self) -> std::string"""
1949 return _IMP_display.PairGeometry___str__(self)
1952 """__repr__(PairGeometry self) -> std::string"""
1953 return _IMP_display.PairGeometry___repr__(self)
1956 return _object_cast_to_PairGeometry(o)
1957 get_from = staticmethod(get_from)
1959 PairGeometry_swigregister = _IMP_display.PairGeometry_swigregister
1960 PairGeometry_swigregister(PairGeometry)
1962 class PairsGeometry(Geometry):
1963 """Proxy of C++ IMP::display::PairsGeometry class"""
1964 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1965 def __init__(self, *args):
1967 __init__(IMP::display::PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
1968 __init__(IMP::display::PairsGeometry self, PairContainer pc) -> PairsGeometry
1970 this = _IMP_display.new_PairsGeometry(*args)
1971 try: self.this.append(this)
1972 except: self.this = this
1973 def get_container(self):
1974 """get_container(PairsGeometry self) -> PairContainer"""
1975 return _IMP_display.PairsGeometry_get_container(self)
1977 __swig_destroy__ = _IMP_display.delete_PairsGeometry
1978 __del__ =
lambda self :
None;
1980 """__str__(PairsGeometry self) -> std::string"""
1981 return _IMP_display.PairsGeometry___str__(self)
1984 """__repr__(PairsGeometry self) -> std::string"""
1985 return _IMP_display.PairsGeometry___repr__(self)
1988 return _object_cast_to_PairsGeometry(o)
1989 get_from = staticmethod(get_from)
1991 PairsGeometry_swigregister = _IMP_display.PairsGeometry_swigregister
1992 PairsGeometry_swigregister(PairsGeometry)
1994 class PymolWriter(TextWriter):
1995 """Proxy of C++ IMP::display::PymolWriter class"""
1996 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1997 def __init__(self, *args):
1999 __init__(IMP::display::PymolWriter self, TextOutput of) -> PymolWriter
2000 __init__(IMP::display::PymolWriter self, std::string name) -> PymolWriter
2001 __init__(IMP::display::PymolWriter self, char const * name) -> PymolWriter
2003 this = _IMP_display.new_PymolWriter(*args)
2004 try: self.this.append(this)
2005 except: self.this = this
2006 def get_version_info(self):
2007 """get_version_info(PymolWriter self) -> VersionInfo"""
2008 return _IMP_display.PymolWriter_get_version_info(self)
2011 """__str__(PymolWriter self) -> std::string"""
2012 return _IMP_display.PymolWriter___str__(self)
2015 """__repr__(PymolWriter self) -> std::string"""
2016 return _IMP_display.PymolWriter___repr__(self)
2019 return _object_cast_to_PymolWriter(o)
2020 get_from = staticmethod(get_from)
2022 PymolWriter_swigregister = _IMP_display.PymolWriter_swigregister
2023 PymolWriter_swigregister(PymolWriter)
2025 class RestraintGeometry(Geometry):
2026 """Proxy of C++ IMP::display::RestraintGeometry class"""
2027 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2028 def __init__(self, *args):
2029 """__init__(IMP::display::RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2030 this = _IMP_display.new_RestraintGeometry(*args)
2031 try: self.this.append(this)
2032 except: self.this = this
2033 def get_restraint(self):
2034 """get_restraint(RestraintGeometry self) -> Restraint"""
2035 return _IMP_display.RestraintGeometry_get_restraint(self)
2037 def get_version_info(self):
2038 """get_version_info(RestraintGeometry self) -> VersionInfo"""
2039 return _IMP_display.RestraintGeometry_get_version_info(self)
2042 """__str__(RestraintGeometry self) -> std::string"""
2043 return _IMP_display.RestraintGeometry___str__(self)
2046 """__repr__(RestraintGeometry self) -> std::string"""
2047 return _IMP_display.RestraintGeometry___repr__(self)
2050 return _object_cast_to_RestraintGeometry(o)
2051 get_from = staticmethod(get_from)
2053 RestraintGeometry_swigregister = _IMP_display.RestraintGeometry_swigregister
2054 RestraintGeometry_swigregister(RestraintGeometry)
2056 class RestraintSetGeometry(Geometry):
2057 """Proxy of C++ IMP::display::RestraintSetGeometry class"""
2058 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2059 def __init__(self, *args):
2060 """__init__(IMP::display::RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2061 this = _IMP_display.new_RestraintSetGeometry(*args)
2062 try: self.this.append(this)
2063 except: self.this = this
2064 def get_restraint_set(self):
2065 """get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2066 return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2068 def get_version_info(self):
2069 """get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2070 return _IMP_display.RestraintSetGeometry_get_version_info(self)
2073 """__str__(RestraintSetGeometry self) -> std::string"""
2074 return _IMP_display.RestraintSetGeometry___str__(self)
2077 """__repr__(RestraintSetGeometry self) -> std::string"""
2078 return _IMP_display.RestraintSetGeometry___repr__(self)
2081 return _object_cast_to_RestraintSetGeometry(o)
2082 get_from = staticmethod(get_from)
2084 RestraintSetGeometry_swigregister = _IMP_display.RestraintSetGeometry_swigregister
2085 RestraintSetGeometry_swigregister(RestraintSetGeometry)
2088 PivyWriter= _pivy.get_writer(Writer)
2089 _object_types.append(
'PivyWriter')
2092 def get_module_version():
2093 """get_module_version() -> std::string const"""
2094 return _IMP_display.get_module_version()
2097 """get_example_path(std::string fname) -> std::string"""
2098 return _IMP_display.get_example_path(*args)
2101 """get_data_path(std::string fname) -> std::string"""
2102 return _IMP_display.get_data_path(*args)
2103 from .
import _version_check
2104 _version_check.check_version(get_module_version())
Shared optimizer state that is invoked upon commitment of new coordinates.
Color get_rgb_color(double f)
Return the color for f from the RGB color map.
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
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.
SphereGeometry * create_geometry(const algebra::Sphere3D &t, std::string name="algebra::Sphere3D"+"%1""%")
Base functionality and abstract base classes for representation, scoring and sampling.
Color get_display_color(unsigned int i)
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Writer * create_writer(std::string filename)
Common base class for heavy weight IMP objects.
Color get_gnuplot_color(double f)
Return colors using the gnuplot default color map.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
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_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
CheckLevel get_check_level()
Get the current audit mode.