IMP logo
IMP Reference Guide  develop.345e71cb9a,2026/08/10
The Integrative Modeling Platform
display/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.5.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2026 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 import typing
15 import _IMP_display
16 
17 import builtins as __builtin__
18 
19 def _swig_repr(self):
20  try:
21  strthis = "proxy of " + self.this.__repr__()
22  except __builtin__.Exception:
23  strthis = ""
24  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
25 
26 
27 def _swig_setattr_nondynamic_instance_variable(set):
28  def set_instance_attr(self, name, value):
29  if name == "this":
30  set(self, name, value)
31  elif name == "thisown":
32  self.this.own(value)
33  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
34  set(self, name, value)
35  else:
36  raise AttributeError("You cannot add instance attributes to %s" % self)
37  return set_instance_attr
38 
39 
40 def _swig_setattr_nondynamic_class_variable(set):
41  def set_class_attr(cls, name, value):
42  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
43  set(cls, name, value)
44  else:
45  raise AttributeError("You cannot add class attributes to %s" % cls)
46  return set_class_attr
47 
48 
49 class _SwigNonDynamicMeta(type):
50  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
51  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
52 
53 
54 import weakref
55 
56 class IMP_DISPLAY_SwigPyIterator(object):
57  r"""Proxy of C++ swig::IMP_DISPLAY_SwigPyIterator class."""
58 
59  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
60 
61  def __init__(self, *args, **kwargs):
62  raise AttributeError("No constructor defined - class is abstract")
63  __repr__ = _swig_repr
64  __swig_destroy__ = _IMP_display.delete_IMP_DISPLAY_SwigPyIterator
65 
66  def value(self):
67  r"""value(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
68  return _IMP_display.IMP_DISPLAY_SwigPyIterator_value(self)
69 
70  def incr(self, n=1):
71  r"""incr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
72  return _IMP_display.IMP_DISPLAY_SwigPyIterator_incr(self, n)
73 
74  def decr(self, n=1):
75  r"""decr(IMP_DISPLAY_SwigPyIterator self, size_t n=1) -> IMP_DISPLAY_SwigPyIterator"""
76  return _IMP_display.IMP_DISPLAY_SwigPyIterator_decr(self, n)
77 
78  def distance(self, x):
79  r"""distance(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t"""
80  return _IMP_display.IMP_DISPLAY_SwigPyIterator_distance(self, x)
81 
82  def equal(self, x):
83  r"""equal(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
84  return _IMP_display.IMP_DISPLAY_SwigPyIterator_equal(self, x)
85 
86  def copy(self):
87  r"""copy(IMP_DISPLAY_SwigPyIterator self) -> IMP_DISPLAY_SwigPyIterator"""
88  return _IMP_display.IMP_DISPLAY_SwigPyIterator_copy(self)
89 
90  def __next__(self):
91  r"""__next__(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
92  return _IMP_display.IMP_DISPLAY_SwigPyIterator___next__(self)
93 
94  def previous(self):
95  r"""previous(IMP_DISPLAY_SwigPyIterator self) -> PyObject *"""
96  return _IMP_display.IMP_DISPLAY_SwigPyIterator_previous(self)
97 
98  def advance(self, n):
99  r"""advance(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
100  return _IMP_display.IMP_DISPLAY_SwigPyIterator_advance(self, n)
101 
102  def __eq__(self, x):
103  r"""__eq__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
104  return _IMP_display.IMP_DISPLAY_SwigPyIterator___eq__(self, x)
105 
106  def __ne__(self, x):
107  r"""__ne__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> bool"""
108  return _IMP_display.IMP_DISPLAY_SwigPyIterator___ne__(self, x)
109 
110  def __iadd__(self, n):
111  r"""__iadd__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
112  return _IMP_display.IMP_DISPLAY_SwigPyIterator___iadd__(self, n)
113 
114  def __isub__(self, n):
115  r"""__isub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
116  return _IMP_display.IMP_DISPLAY_SwigPyIterator___isub__(self, n)
117 
118  def __add__(self, n):
119  r"""__add__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator"""
120  return _IMP_display.IMP_DISPLAY_SwigPyIterator___add__(self, n)
121 
122  def __sub__(self, *args):
123  r"""
124  __sub__(IMP_DISPLAY_SwigPyIterator self, ptrdiff_t n) -> IMP_DISPLAY_SwigPyIterator
125  __sub__(IMP_DISPLAY_SwigPyIterator self, IMP_DISPLAY_SwigPyIterator x) -> ptrdiff_t
126  """
127  return _IMP_display.IMP_DISPLAY_SwigPyIterator___sub__(self, *args)
128  def __iter__(self):
129  return self
130 
131 # Register IMP_DISPLAY_SwigPyIterator in _IMP_display:
132 _IMP_display.IMP_DISPLAY_SwigPyIterator_swigregister(IMP_DISPLAY_SwigPyIterator)
133 
134 _value_types=[]
135 _object_types=[]
136 _raii_types=[]
137 _plural_types=[]
138 
139 IMP_DEBUG = _IMP_display.IMP_DEBUG
140 
141 IMP_RELEASE = _IMP_display.IMP_RELEASE
142 
143 IMP_SILENT = _IMP_display.IMP_SILENT
144 
145 IMP_PROGRESS = _IMP_display.IMP_PROGRESS
146 
147 IMP_TERSE = _IMP_display.IMP_TERSE
148 
149 IMP_VERBOSE = _IMP_display.IMP_VERBOSE
150 
151 IMP_MEMORY = _IMP_display.IMP_MEMORY
152 
153 IMP_NONE = _IMP_display.IMP_NONE
154 
155 IMP_USAGE = _IMP_display.IMP_USAGE
156 
157 IMP_INTERNAL = _IMP_display.IMP_INTERNAL
158 
159 IMP_KERNEL_HAS_LOG4CXX = _IMP_display.IMP_KERNEL_HAS_LOG4CXX
160 
161 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_display.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
162 
163 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_display.IMP_COMPILER_HAS_DEBUG_VECTOR
164 
165 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_display.IMP_COMPILER_HAS_RANDOM_SHUFFLE
166 
167 IMP_COMPILER_HAS_THREE_WAY = _IMP_display.IMP_COMPILER_HAS_THREE_WAY
168 
169 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_display.IMP_KERNEL_HAS_BOOST_RANDOM
170 
171 IMP_KERNEL_HAS_NUMPY = _IMP_display.IMP_KERNEL_HAS_NUMPY
172 
173 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_display.IMP_KERNEL_HAS_BOOST_SYSTEM
174 
175 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_display.IMP_KERNEL_HAS_GPERFTOOLS
176 
177 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
178 
179 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_display.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
180 
181 IMPKERNEL_SHOW_WARNINGS = _IMP_display.IMPKERNEL_SHOW_WARNINGS
182 
183 
184 import sys
185 class _DirectorObjects:
186  """@internal Simple class to keep references to director objects
187  to prevent premature deletion."""
188  def __init__(self):
189  self._objects = []
190  def register(self, obj):
191  """Take a reference to a director object; will only work for
192  refcounted C++ classes"""
193  if hasattr(obj, 'get_ref_count'):
194  self._objects.append(obj)
195  def cleanup(self):
196  """Only drop our reference and allow cleanup by Python if no other
197  Python references exist (we hold 3 references: one in self._objects,
198  one in x, and one in the argument list for getrefcount) *and* no
199  other C++ references exist (the Python object always holds one)"""
200  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
201  or x.get_ref_count() > 1]
202 # Do in two steps so the references are kept until the end of the
203 # function (deleting references may trigger a fresh call to this method)
204  self._objects = objs
205  def get_object_count(self):
206  """Get number of director objects (useful for testing only)"""
207  return len(self._objects)
208 _director_objects = _DirectorObjects()
209 
210 class _ostream(object):
211  r"""Proxy of C++ std::ostream class."""
212 
213  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
214 
215  def __init__(self, *args, **kwargs):
216  raise AttributeError("No constructor defined")
217  __repr__ = _swig_repr
218 
219  def write(self, osa_buf):
220  r"""write(_ostream self, char const * osa_buf)"""
221  return _IMP_display._ostream_write(self, osa_buf)
222 
223 # Register _ostream in _IMP_display:
224 _IMP_display._ostream_swigregister(_ostream)
225 IMP_C_OPEN_BINARY = _IMP_display.IMP_C_OPEN_BINARY
226 
227 import IMP
228 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_CGAL_HAS_BOOST_FILESYSTEM
229 
230 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
231 
232 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_display.IMP_CGAL_HAS_BOOST_RANDOM
233 
234 IMP_CGAL_HAS_NUMPY = _IMP_display.IMP_CGAL_HAS_NUMPY
235 
236 IMPCGAL_SHOW_WARNINGS = _IMP_display.IMPCGAL_SHOW_WARNINGS
237 
238 import IMP.cgal
239 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_display.IMP_ALGEBRA_HAS_IMP_CGAL
240 
241 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
242 
243 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
244 
245 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_display.IMP_ALGEBRA_HAS_BOOST_RANDOM
246 
247 IMP_ALGEBRA_HAS_CGAL = _IMP_display.IMP_ALGEBRA_HAS_CGAL
248 
249 IMP_ALGEBRA_HAS_NUMPY = _IMP_display.IMP_ALGEBRA_HAS_NUMPY
250 
251 IMP_ALGEBRA_HAS_ANN = _IMP_display.IMP_ALGEBRA_HAS_ANN
252 
253 IMPALGEBRA_SHOW_WARNINGS = _IMP_display.IMPALGEBRA_SHOW_WARNINGS
254 
255 import IMP.algebra
256 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_display.IMP_DISPLAY_HAS_IMP_CGAL
257 
258 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_display.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
259 
260 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_display.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
261 
262 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_display.IMP_DISPLAY_HAS_BOOST_RANDOM
263 
264 IMP_DISPLAY_HAS_CGAL = _IMP_display.IMP_DISPLAY_HAS_CGAL
265 
266 IMP_DISPLAY_HAS_NUMPY = _IMP_display.IMP_DISPLAY_HAS_NUMPY
267 
268 IMPDISPLAY_SHOW_WARNINGS = _IMP_display.IMPDISPLAY_SHOW_WARNINGS
269 
270 
271 _object_types.append("Writer")
272 
273 
274 def _object_cast_to_Writer(o):
275  r"""_object_cast_to_Writer(Object o) -> Writer"""
276  return _IMP_display._object_cast_to_Writer(o)
277 
278 _object_types.append("TextWriter")
279 
280 
281 def _object_cast_to_TextWriter(o):
282  r"""_object_cast_to_TextWriter(Object o) -> TextWriter"""
283  return _IMP_display._object_cast_to_TextWriter(o)
284 
285 _object_types.append("Geometry")
286 
287 
288 def _object_cast_to_Geometry(o):
289  r"""_object_cast_to_Geometry(Object o) -> Geometry"""
290  return _IMP_display._object_cast_to_Geometry(o)
291 
292 _object_types.append("SingletonGeometry")
293 
294 
295 def _object_cast_to_SingletonGeometry(o):
296  r"""_object_cast_to_SingletonGeometry(Object o) -> SingletonGeometry"""
297  return _IMP_display._object_cast_to_SingletonGeometry(o)
298 
299 _object_types.append("PairGeometry")
300 
301 
302 def _object_cast_to_PairGeometry(o):
303  r"""_object_cast_to_PairGeometry(Object o) -> PairGeometry"""
304  return _IMP_display._object_cast_to_PairGeometry(o)
305 
306 _object_types.append("SingletonsGeometry")
307 
308 
309 def _object_cast_to_SingletonsGeometry(o):
310  r"""_object_cast_to_SingletonsGeometry(Object o) -> SingletonsGeometry"""
311  return _IMP_display._object_cast_to_SingletonsGeometry(o)
312 
313 _object_types.append("PairsGeometry")
314 
315 
316 def _object_cast_to_PairsGeometry(o):
317  r"""_object_cast_to_PairsGeometry(Object o) -> PairsGeometry"""
318  return _IMP_display._object_cast_to_PairsGeometry(o)
319 
320 _object_types.append("PymolWriter")
321 
322 
323 def _object_cast_to_PymolWriter(o):
324  r"""_object_cast_to_PymolWriter(Object o) -> PymolWriter"""
325  return _IMP_display._object_cast_to_PymolWriter(o)
326 
327 _object_types.append("SphereGeometry")
328 
329 
330 def _object_cast_to_SphereGeometry(o):
331  r"""_object_cast_to_SphereGeometry(Object o) -> SphereGeometry"""
332  return _IMP_display._object_cast_to_SphereGeometry(o)
333 
334 _object_types.append("CylinderGeometry")
335 
336 
337 def _object_cast_to_CylinderGeometry(o):
338  r"""_object_cast_to_CylinderGeometry(Object o) -> CylinderGeometry"""
339  return _IMP_display._object_cast_to_CylinderGeometry(o)
340 
341 _object_types.append("EllipsoidGeometry")
342 
343 
344 def _object_cast_to_EllipsoidGeometry(o):
345  r"""_object_cast_to_EllipsoidGeometry(Object o) -> EllipsoidGeometry"""
346  return _IMP_display._object_cast_to_EllipsoidGeometry(o)
347 
348 _object_types.append("PointGeometry")
349 
350 
351 def _object_cast_to_PointGeometry(o):
352  r"""_object_cast_to_PointGeometry(Object o) -> PointGeometry"""
353  return _IMP_display._object_cast_to_PointGeometry(o)
354 
355 _object_types.append("SegmentGeometry")
356 
357 
358 def _object_cast_to_SegmentGeometry(o):
359  r"""_object_cast_to_SegmentGeometry(Object o) -> SegmentGeometry"""
360  return _IMP_display._object_cast_to_SegmentGeometry(o)
361 
362 _object_types.append("PolygonGeometry")
363 
364 
365 def _object_cast_to_PolygonGeometry(o):
366  r"""_object_cast_to_PolygonGeometry(Object o) -> PolygonGeometry"""
367  return _IMP_display._object_cast_to_PolygonGeometry(o)
368 
369 _object_types.append("ReferenceFrameGeometry")
370 
371 
372 def _object_cast_to_ReferenceFrameGeometry(o):
373  r"""_object_cast_to_ReferenceFrameGeometry(Object o) -> ReferenceFrameGeometry"""
374  return _IMP_display._object_cast_to_ReferenceFrameGeometry(o)
375 
376 _object_types.append("BoundingBoxGeometry")
377 
378 
379 def _object_cast_to_BoundingBoxGeometry(o):
380  r"""_object_cast_to_BoundingBoxGeometry(Object o) -> BoundingBoxGeometry"""
381  return _IMP_display._object_cast_to_BoundingBoxGeometry(o)
382 
383 _object_types.append("LabelGeometry")
384 
385 
386 def _object_cast_to_LabelGeometry(o):
387  r"""_object_cast_to_LabelGeometry(Object o) -> LabelGeometry"""
388  return _IMP_display._object_cast_to_LabelGeometry(o)
389 
390 _object_types.append("RestraintGeometry")
391 
392 
393 def _object_cast_to_RestraintGeometry(o):
394  r"""_object_cast_to_RestraintGeometry(Object o) -> RestraintGeometry"""
395  return _IMP_display._object_cast_to_RestraintGeometry(o)
396 
397 _object_types.append("RestraintSetGeometry")
398 
399 
400 def _object_cast_to_RestraintSetGeometry(o):
401  r"""_object_cast_to_RestraintSetGeometry(Object o) -> RestraintSetGeometry"""
402  return _IMP_display._object_cast_to_RestraintSetGeometry(o)
403 
404 _object_types.append("GeometrySet")
405 
406 
407 def _object_cast_to_GeometrySet(o):
408  r"""_object_cast_to_GeometrySet(Object o) -> GeometrySet"""
409  return _IMP_display._object_cast_to_GeometrySet(o)
410 
411 def Coloreds(l=[]):
412  return [Colored(x) for x in l]
413 _plural_types.append("Coloreds")
414 
415 
416 _value_types.append("Colored")
417 
418 
419 Colors=list
420 _plural_types.append("Colors")
421 _value_types.append("Color")
422 
423 
424 WriterAdaptors=list
425 _plural_types.append("WriterAdaptors")
426 _value_types.append("WriterAdaptor")
427 
428 
429 _object_types.append("FilterGeometry")
430 
431 
432 def _object_cast_to_FilterGeometry(o):
433  r"""_object_cast_to_FilterGeometry(Object o) -> FilterGeometry"""
434  return _IMP_display._object_cast_to_FilterGeometry(o)
435 
436 _object_types.append("WriteOptimizerState")
437 
438 
439 def _object_cast_to_WriteOptimizerState(o):
440  r"""_object_cast_to_WriteOptimizerState(Object o) -> WriteOptimizerState"""
441  return _IMP_display._object_cast_to_WriteOptimizerState(o)
442 
443 _object_types.append("TriangleGeometry")
444 
445 
446 def _object_cast_to_TriangleGeometry(o):
447  r"""_object_cast_to_TriangleGeometry(Object o) -> TriangleGeometry"""
448  return _IMP_display._object_cast_to_TriangleGeometry(o)
449 
450 _object_types.append("SurfaceMeshGeometry")
451 
452 
453 def _object_cast_to_SurfaceMeshGeometry(o):
454  r"""_object_cast_to_SurfaceMeshGeometry(Object o) -> SurfaceMeshGeometry"""
455  return _IMP_display._object_cast_to_SurfaceMeshGeometry(o)
456 
457 _object_types.append("PlaneGeometry")
458 
459 
460 def _object_cast_to_PlaneGeometry(o):
461  r"""_object_cast_to_PlaneGeometry(Object o) -> PlaneGeometry"""
462  return _IMP_display._object_cast_to_PlaneGeometry(o)
463 
464 _object_types.append("IsosurfaceGeometry")
465 
466 
467 def _object_cast_to_IsosurfaceGeometry(o):
468  r"""_object_cast_to_IsosurfaceGeometry(Object o) -> IsosurfaceGeometry"""
469  return _IMP_display._object_cast_to_IsosurfaceGeometry(o)
470 
471 _object_types.append("SkinSurfaceGeometry")
472 
473 
474 def _object_cast_to_SkinSurfaceGeometry(o):
475  r"""_object_cast_to_SkinSurfaceGeometry(Object o) -> SkinSurfaceGeometry"""
476  return _IMP_display._object_cast_to_SkinSurfaceGeometry(o)
477 class Color(IMP._Value):
478  r"""Proxy of C++ IMP::display::Color class."""
479 
480  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
481 
482  def __init__(self, *args):
483  r"""
484  __init__(Color self, Color arg2) -> Color
485  __init__(Color self) -> Color
486  __init__(Color self, double r, double g, double b) -> Color
487  """
488  _IMP_display.Color_swiginit(self, _IMP_display.new_Color(*args))
489  __swig_destroy__ = _IMP_display.delete_Color
490 
491  def get_red(self):
492  r"""get_red(Color self) -> double"""
493  return _IMP_display.Color_get_red(self)
494 
495  def get_green(self):
496  r"""get_green(Color self) -> double"""
497  return _IMP_display.Color_get_green(self)
498 
499  def get_blue(self):
500  r"""get_blue(Color self) -> double"""
501  return _IMP_display.Color_get_blue(self)
502 
503  def show(self, *args):
504  r"""
505  show(Color self, _ostream out, std::string delim)
506  show(Color self, _ostream out=std::cout)
507  """
508  return _IMP_display.Color_show(self, *args)
509 
510  def __cmp__(self, o):
511  r"""__cmp__(Color self, Color o) -> int"""
512  return _IMP_display.Color___cmp__(self, o)
513 
514  def __eq__(self, o):
515  r"""__eq__(Color self, Color o) -> bool"""
516  return _IMP_display.Color___eq__(self, o)
517 
518  def __ne__(self, o):
519  r"""__ne__(Color self, Color o) -> bool"""
520  return _IMP_display.Color___ne__(self, o)
521 
522  def __lt__(self, o):
523  r"""__lt__(Color self, Color o) -> bool"""
524  return _IMP_display.Color___lt__(self, o)
525 
526  def __gt__(self, o):
527  r"""__gt__(Color self, Color o) -> bool"""
528  return _IMP_display.Color___gt__(self, o)
529 
530  def __ge__(self, o):
531  r"""__ge__(Color self, Color o) -> bool"""
532  return _IMP_display.Color___ge__(self, o)
533 
534  def __le__(self, o):
535  r"""__le__(Color self, Color o) -> bool"""
536  return _IMP_display.Color___le__(self, o)
537 
538  def __str__(self):
539  r"""__str__(Color self) -> std::string"""
540  return _IMP_display.Color___str__(self)
541 
542  def __repr__(self):
543  r"""__repr__(Color self) -> std::string"""
544  return _IMP_display.Color___repr__(self)
545 
546  def _get_as_binary(self):
547  r"""_get_as_binary(Color self) -> PyObject *"""
548  return _IMP_display.Color__get_as_binary(self)
549 
550  def _set_from_binary(self, p):
551  r"""_set_from_binary(Color self, PyObject * p)"""
552  return _IMP_display.Color__set_from_binary(self, p)
553 
554  def __getstate__(self):
555  p = self._get_as_binary()
556  if len(self.__dict__) > 1:
557  d = self.__dict__.copy()
558  del d['this']
559  p = (d, p)
560  return p
561 
562  def __setstate__(self, p):
563  if not hasattr(self, 'this'):
564  self.__init__()
565  if isinstance(p, tuple):
566  d, p = p
567  self.__dict__.update(d)
568  return self._set_from_binary(p)
569 
570 
571 # Register Color in _IMP_display:
572 _IMP_display.Color_swigregister(Color)
573 
574 def get_display_color(i):
575  r"""get_display_color(unsigned int i) -> Color"""
576  return _IMP_display.get_display_color(i)
577 
578 def get_interpolated_rgb(a, b, f):
579  r"""get_interpolated_rgb(Color a, Color b, double f) -> Color"""
580  return _IMP_display.get_interpolated_rgb(a, b, f)
581 
582 def get_linear_color_map_value(min, max, value):
583  r"""get_linear_color_map_value(double min, double max, double value) -> double"""
584  return _IMP_display.get_linear_color_map_value(min, max, value)
585 
586 def get_jet_color(f):
587  r"""get_jet_color(double f) -> Color"""
588  return _IMP_display.get_jet_color(f)
589 
590 def get_hot_color(f):
591  r"""get_hot_color(double f) -> Color"""
592  return _IMP_display.get_hot_color(f)
593 
594 def get_rgb_color(f):
595  r"""get_rgb_color(double f) -> Color"""
596  return _IMP_display.get_rgb_color(f)
597 
598 def get_gray_color(f):
599  r"""get_gray_color(double f) -> Color"""
600  return _IMP_display.get_gray_color(f)
601 
602 def get_gnuplot_color(f):
603  r"""get_gnuplot_color(double f) -> Color"""
604  return _IMP_display.get_gnuplot_color(f)
605 class Geometry(IMP.Object):
606  r"""Proxy of C++ IMP::display::Geometry class."""
607 
608  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
609 
610  def __init__(self, *args):
611  r"""
612  __init__(Geometry self, std::string name) -> Geometry
613  __init__(Geometry self, Color c, std::string name) -> Geometry
614  """
615  if self.__class__ == Geometry:
616  _self = None
617  else:
618  _self = self
619  _IMP_display.Geometry_swiginit(self, _IMP_display.new_Geometry(_self, *args))
620 
621  if self.__class__ != Geometry:
622  _director_objects.register(self)
623 
624 
625 
626 
627  def get_color(self):
628  r"""get_color(Geometry self) -> Color"""
629  return _IMP_display.Geometry_get_color(self)
630 
631  def get_has_color(self):
632  r"""get_has_color(Geometry self) -> bool"""
633  return _IMP_display.Geometry_get_has_color(self)
634 
635  def set_has_color(self, tf):
636  r"""set_has_color(Geometry self, bool tf)"""
637  return _IMP_display.Geometry_set_has_color(self, tf)
638 
639  def set_color(self, c):
640  r"""set_color(Geometry self, Color c)"""
641  return _IMP_display.Geometry_set_color(self, c)
642 
643  def get_components(self):
644  r"""get_components(Geometry self) -> IMP::display::Geometries"""
645  return _IMP_display.Geometry_get_components(self)
646  __swig_destroy__ = _IMP_display.delete_Geometry
647 
648  def __str__(self):
649  r"""__str__(Geometry self) -> std::string"""
650  return _IMP_display.Geometry___str__(self)
651 
652  def __repr__(self):
653  r"""__repr__(Geometry self) -> std::string"""
654  return _IMP_display.Geometry___repr__(self)
655 
656  @staticmethod
657  def get_from(o):
658  return _object_cast_to_Geometry(o)
659 
660 
661  def do_show(self, out):
662  pass
663 
664  @staticmethod
665  def get_from(o):
666  return _object_cast_to_Geometry(o)
667 
668  def __disown__(self):
669  self.this.disown()
670  _IMP_display.disown_Geometry(self)
671  return weakref.proxy(self)
672 
673  def do_destroy(self):
674  r"""do_destroy(Geometry self)"""
675  return _IMP_display.Geometry_do_destroy(self)
676 
677 # Register Geometry in _IMP_display:
678 _IMP_display.Geometry_swigregister(Geometry)
679 class GeometrySet(Geometry):
680  r"""Proxy of C++ IMP::display::GeometrySet class."""
681 
682  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
683 
684  def __init__(self, *args):
685  r"""
686  __init__(GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
687  __init__(GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
688  __init__(GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
689  __init__(GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
690  """
691  _IMP_display.GeometrySet_swiginit(self, _IMP_display.new_GeometrySet(*args))
692 
693  def get_geometry(self):
694  r"""get_geometry(GeometrySet self) -> IMP::display::Geometries"""
695  return _IMP_display.GeometrySet_get_geometry(self)
696 
697  def get_version_info(self):
698  r"""get_version_info(GeometrySet self) -> VersionInfo"""
699  return _IMP_display.GeometrySet_get_version_info(self)
700  __swig_destroy__ = _IMP_display.delete_GeometrySet
701 
702  def __str__(self):
703  r"""__str__(GeometrySet self) -> std::string"""
704  return _IMP_display.GeometrySet___str__(self)
705 
706  def __repr__(self):
707  r"""__repr__(GeometrySet self) -> std::string"""
708  return _IMP_display.GeometrySet___repr__(self)
709 
710  @staticmethod
711  def get_from(o):
712  return _object_cast_to_GeometrySet(o)
713 
714 
715 # Register GeometrySet in _IMP_display:
716 _IMP_display.GeometrySet_swigregister(GeometrySet)
717 class SphereGeometry(Geometry):
718  r"""Proxy of C++ IMP::display::SphereGeometry class."""
719 
720  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
721 
722  def __init__(self, *args):
723  r"""
724  __init__(SphereGeometry self, Sphere3D v) -> SphereGeometry
725  __init__(SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
726  __init__(SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
727  __init__(SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
728  """
729  _IMP_display.SphereGeometry_swiginit(self, _IMP_display.new_SphereGeometry(*args))
730 
731  def get_geometry(self):
732  r"""get_geometry(SphereGeometry self) -> Sphere3D"""
733  return _IMP_display.SphereGeometry_get_geometry(self)
734 
735  def set_geometry(self, v):
736  r"""set_geometry(SphereGeometry self, Sphere3D v)"""
737  return _IMP_display.SphereGeometry_set_geometry(self, v)
738 
739  def get_version_info(self):
740  r"""get_version_info(SphereGeometry self) -> VersionInfo"""
741  return _IMP_display.SphereGeometry_get_version_info(self)
742  __swig_destroy__ = _IMP_display.delete_SphereGeometry
743 
744  def __str__(self):
745  r"""__str__(SphereGeometry self) -> std::string"""
746  return _IMP_display.SphereGeometry___str__(self)
747 
748  def __repr__(self):
749  r"""__repr__(SphereGeometry self) -> std::string"""
750  return _IMP_display.SphereGeometry___repr__(self)
751 
752  @staticmethod
753  def get_from(o):
754  return _object_cast_to_SphereGeometry(o)
755 
756 
757 # Register SphereGeometry in _IMP_display:
758 _IMP_display.SphereGeometry_swigregister(SphereGeometry)
759 class CylinderGeometry(Geometry):
760  r"""Proxy of C++ IMP::display::CylinderGeometry class."""
761 
762  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
763 
764  def __init__(self, *args):
765  r"""
766  __init__(CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
767  __init__(CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
768  __init__(CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
769  __init__(CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
770  """
771  _IMP_display.CylinderGeometry_swiginit(self, _IMP_display.new_CylinderGeometry(*args))
772 
773  def get_geometry(self):
774  r"""get_geometry(CylinderGeometry self) -> Cylinder3D"""
775  return _IMP_display.CylinderGeometry_get_geometry(self)
776 
777  def set_geometry(self, v):
778  r"""set_geometry(CylinderGeometry self, Cylinder3D v)"""
779  return _IMP_display.CylinderGeometry_set_geometry(self, v)
780 
781  def get_version_info(self):
782  r"""get_version_info(CylinderGeometry self) -> VersionInfo"""
783  return _IMP_display.CylinderGeometry_get_version_info(self)
784  __swig_destroy__ = _IMP_display.delete_CylinderGeometry
785 
786  def __str__(self):
787  r"""__str__(CylinderGeometry self) -> std::string"""
788  return _IMP_display.CylinderGeometry___str__(self)
789 
790  def __repr__(self):
791  r"""__repr__(CylinderGeometry self) -> std::string"""
792  return _IMP_display.CylinderGeometry___repr__(self)
793 
794  @staticmethod
795  def get_from(o):
796  return _object_cast_to_CylinderGeometry(o)
797 
798 
799 # Register CylinderGeometry in _IMP_display:
800 _IMP_display.CylinderGeometry_swigregister(CylinderGeometry)
801 class EllipsoidGeometry(Geometry):
802  r"""Proxy of C++ IMP::display::EllipsoidGeometry class."""
803 
804  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
805 
806  def __init__(self, *args):
807  r"""
808  __init__(EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
809  __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
810  __init__(EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
811  __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
812  """
813  _IMP_display.EllipsoidGeometry_swiginit(self, _IMP_display.new_EllipsoidGeometry(*args))
814 
815  def get_geometry(self):
816  r"""get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
817  return _IMP_display.EllipsoidGeometry_get_geometry(self)
818 
819  def set_geometry(self, v):
820  r"""set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
821  return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
822 
823  def get_version_info(self):
824  r"""get_version_info(EllipsoidGeometry self) -> VersionInfo"""
825  return _IMP_display.EllipsoidGeometry_get_version_info(self)
826  __swig_destroy__ = _IMP_display.delete_EllipsoidGeometry
827 
828  def __str__(self):
829  r"""__str__(EllipsoidGeometry self) -> std::string"""
830  return _IMP_display.EllipsoidGeometry___str__(self)
831 
832  def __repr__(self):
833  r"""__repr__(EllipsoidGeometry self) -> std::string"""
834  return _IMP_display.EllipsoidGeometry___repr__(self)
835 
836  @staticmethod
837  def get_from(o):
838  return _object_cast_to_EllipsoidGeometry(o)
839 
840 
841 # Register EllipsoidGeometry in _IMP_display:
842 _IMP_display.EllipsoidGeometry_swigregister(EllipsoidGeometry)
843 class PointGeometry(Geometry):
844  r"""Proxy of C++ IMP::display::PointGeometry class."""
845 
846  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
847 
848  def __init__(self, *args):
849  r"""
850  __init__(PointGeometry self, Vector3D v) -> PointGeometry
851  __init__(PointGeometry self, Vector3D v, Color c) -> PointGeometry
852  __init__(PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
853  __init__(PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
854  """
855  _IMP_display.PointGeometry_swiginit(self, _IMP_display.new_PointGeometry(*args))
856 
857  def get_geometry(self):
858  r"""get_geometry(PointGeometry self) -> Vector3D"""
859  return _IMP_display.PointGeometry_get_geometry(self)
860 
861  def set_geometry(self, v):
862  r"""set_geometry(PointGeometry self, Vector3D v)"""
863  return _IMP_display.PointGeometry_set_geometry(self, v)
864 
865  def get_version_info(self):
866  r"""get_version_info(PointGeometry self) -> VersionInfo"""
867  return _IMP_display.PointGeometry_get_version_info(self)
868  __swig_destroy__ = _IMP_display.delete_PointGeometry
869 
870  def __str__(self):
871  r"""__str__(PointGeometry self) -> std::string"""
872  return _IMP_display.PointGeometry___str__(self)
873 
874  def __repr__(self):
875  r"""__repr__(PointGeometry self) -> std::string"""
876  return _IMP_display.PointGeometry___repr__(self)
877 
878  @staticmethod
879  def get_from(o):
880  return _object_cast_to_PointGeometry(o)
881 
882 
883 # Register PointGeometry in _IMP_display:
884 _IMP_display.PointGeometry_swigregister(PointGeometry)
885 class SegmentGeometry(Geometry):
886  r"""Proxy of C++ IMP::display::SegmentGeometry class."""
887 
888  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
889 
890  def __init__(self, *args):
891  r"""
892  __init__(SegmentGeometry self, Segment3D v) -> SegmentGeometry
893  __init__(SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
894  __init__(SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
895  __init__(SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
896  """
897  _IMP_display.SegmentGeometry_swiginit(self, _IMP_display.new_SegmentGeometry(*args))
898 
899  def get_geometry(self):
900  r"""get_geometry(SegmentGeometry self) -> Segment3D"""
901  return _IMP_display.SegmentGeometry_get_geometry(self)
902 
903  def set_geometry(self, v):
904  r"""set_geometry(SegmentGeometry self, Segment3D v)"""
905  return _IMP_display.SegmentGeometry_set_geometry(self, v)
906 
907  def get_version_info(self):
908  r"""get_version_info(SegmentGeometry self) -> VersionInfo"""
909  return _IMP_display.SegmentGeometry_get_version_info(self)
910  __swig_destroy__ = _IMP_display.delete_SegmentGeometry
911 
912  def __str__(self):
913  r"""__str__(SegmentGeometry self) -> std::string"""
914  return _IMP_display.SegmentGeometry___str__(self)
915 
916  def __repr__(self):
917  r"""__repr__(SegmentGeometry self) -> std::string"""
918  return _IMP_display.SegmentGeometry___repr__(self)
919 
920  @staticmethod
921  def get_from(o):
922  return _object_cast_to_SegmentGeometry(o)
923 
924 
925 # Register SegmentGeometry in _IMP_display:
926 _IMP_display.SegmentGeometry_swigregister(SegmentGeometry)
927 class PolygonGeometry(Geometry):
928  r"""Proxy of C++ IMP::display::PolygonGeometry class."""
929 
930  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
931 
932  def __init__(self, *args):
933  r"""
934  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
935  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
936  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
937  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
938  """
939  _IMP_display.PolygonGeometry_swiginit(self, _IMP_display.new_PolygonGeometry(*args))
940 
941  def get_geometry(self):
942  r"""get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
943  return _IMP_display.PolygonGeometry_get_geometry(self)
944 
945  def set_geometry(self, v):
946  r"""set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
947  return _IMP_display.PolygonGeometry_set_geometry(self, v)
948 
949  def get_version_info(self):
950  r"""get_version_info(PolygonGeometry self) -> VersionInfo"""
951  return _IMP_display.PolygonGeometry_get_version_info(self)
952  __swig_destroy__ = _IMP_display.delete_PolygonGeometry
953 
954  def __str__(self):
955  r"""__str__(PolygonGeometry self) -> std::string"""
956  return _IMP_display.PolygonGeometry___str__(self)
957 
958  def __repr__(self):
959  r"""__repr__(PolygonGeometry self) -> std::string"""
960  return _IMP_display.PolygonGeometry___repr__(self)
961 
962  @staticmethod
963  def get_from(o):
964  return _object_cast_to_PolygonGeometry(o)
965 
966 
967 # Register PolygonGeometry in _IMP_display:
968 _IMP_display.PolygonGeometry_swigregister(PolygonGeometry)
969 class TriangleGeometry(Geometry):
970  r"""Proxy of C++ IMP::display::TriangleGeometry class."""
971 
972  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
973 
974  def __init__(self, *args):
975  r"""
976  __init__(TriangleGeometry self, Triangle3D v) -> TriangleGeometry
977  __init__(TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
978  __init__(TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
979  __init__(TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
980  """
981  _IMP_display.TriangleGeometry_swiginit(self, _IMP_display.new_TriangleGeometry(*args))
982 
983  def get_geometry(self):
984  r"""get_geometry(TriangleGeometry self) -> Triangle3D"""
985  return _IMP_display.TriangleGeometry_get_geometry(self)
986 
987  def set_geometry(self, v):
988  r"""set_geometry(TriangleGeometry self, Triangle3D v)"""
989  return _IMP_display.TriangleGeometry_set_geometry(self, v)
990 
991  def get_version_info(self):
992  r"""get_version_info(TriangleGeometry self) -> VersionInfo"""
993  return _IMP_display.TriangleGeometry_get_version_info(self)
994  __swig_destroy__ = _IMP_display.delete_TriangleGeometry
995 
996  def __str__(self):
997  r"""__str__(TriangleGeometry self) -> std::string"""
998  return _IMP_display.TriangleGeometry___str__(self)
999 
1000  def __repr__(self):
1001  r"""__repr__(TriangleGeometry self) -> std::string"""
1002  return _IMP_display.TriangleGeometry___repr__(self)
1003 
1004  @staticmethod
1005  def get_from(o):
1006  return _object_cast_to_TriangleGeometry(o)
1007 
1008 
1009 # Register TriangleGeometry in _IMP_display:
1010 _IMP_display.TriangleGeometry_swigregister(TriangleGeometry)
1011 class BoundingBoxGeometry(Geometry):
1012  r"""Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1013 
1014  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1015 
1016  def __init__(self, *args):
1017  r"""
1018  __init__(BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1019  __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1020  __init__(BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1021  __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1022  """
1023  _IMP_display.BoundingBoxGeometry_swiginit(self, _IMP_display.new_BoundingBoxGeometry(*args))
1024 
1025  def get_geometry(self):
1026  r"""get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1027  return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1028 
1029  def set_geometry(self, v):
1030  r"""set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1031  return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1032 
1033  def get_version_info(self):
1034  r"""get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1035  return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1036  __swig_destroy__ = _IMP_display.delete_BoundingBoxGeometry
1037 
1038  def __str__(self):
1039  r"""__str__(BoundingBoxGeometry self) -> std::string"""
1040  return _IMP_display.BoundingBoxGeometry___str__(self)
1041 
1042  def __repr__(self):
1043  r"""__repr__(BoundingBoxGeometry self) -> std::string"""
1044  return _IMP_display.BoundingBoxGeometry___repr__(self)
1045 
1046  @staticmethod
1047  def get_from(o):
1048  return _object_cast_to_BoundingBoxGeometry(o)
1049 
1050 
1051 # Register BoundingBoxGeometry in _IMP_display:
1052 _IMP_display.BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1053 class ReferenceFrameGeometry(Geometry):
1054  r"""Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1055 
1056  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1057 
1058  def __init__(self, *args):
1059  r"""
1060  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1061  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1062  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1063  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1064  """
1065  _IMP_display.ReferenceFrameGeometry_swiginit(self, _IMP_display.new_ReferenceFrameGeometry(*args))
1066 
1067  def get_geometry(self):
1068  r"""get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1069  return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1070 
1071  def set_geometry(self, v):
1072  r"""set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1073  return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1074 
1075  def get_version_info(self):
1076  r"""get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1077  return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1078  __swig_destroy__ = _IMP_display.delete_ReferenceFrameGeometry
1079 
1080  def __str__(self):
1081  r"""__str__(ReferenceFrameGeometry self) -> std::string"""
1082  return _IMP_display.ReferenceFrameGeometry___str__(self)
1083 
1084  def __repr__(self):
1085  r"""__repr__(ReferenceFrameGeometry self) -> std::string"""
1086  return _IMP_display.ReferenceFrameGeometry___repr__(self)
1087 
1088  @staticmethod
1089  def get_from(o):
1090  return _object_cast_to_ReferenceFrameGeometry(o)
1091 
1092 
1093 # Register ReferenceFrameGeometry in _IMP_display:
1094 _IMP_display.ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1095 
1096 def create_geometry(*args):
1097  r"""
1098  create_geometry(Sphere3D t, std::string name="algebra::Sphere3D"+"%1%") -> SphereGeometry
1099  create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D"+"%1%") -> CylinderGeometry
1100  create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D"+"%1%") -> EllipsoidGeometry
1101  create_geometry(Vector3D t, std::string name="algebra::Vector3D"+"%1%") -> PointGeometry
1102  create_geometry(Segment3D t, std::string name="algebra::Segment3D"+"%1%") -> SegmentGeometry
1103  create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds"+"%1%") -> PolygonGeometry
1104  create_geometry(Triangle3D t, std::string name="algebra::Triangle3D"+"%1%") -> TriangleGeometry
1105  create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>"+"%1%") -> BoundingBoxGeometry
1106  create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D"+"%1%") -> ReferenceFrameGeometry
1107  """
1108  return _IMP_display.create_geometry(*args)
1109 class LabelGeometry(Geometry):
1110  r"""Proxy of C++ IMP::display::LabelGeometry class."""
1111 
1112  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1113 
1114  def __init__(self, *args):
1115  r"""
1116  __init__(LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1117  __init__(LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1118  """
1119  _IMP_display.LabelGeometry_swiginit(self, _IMP_display.new_LabelGeometry(*args))
1120 
1121  def get_text(self):
1122  r"""get_text(LabelGeometry self) -> std::string"""
1123  return _IMP_display.LabelGeometry_get_text(self)
1124 
1125  def get_location(self):
1126  r"""get_location(LabelGeometry self) -> Sphere3D"""
1127  return _IMP_display.LabelGeometry_get_location(self)
1128 
1129  def get_version_info(self):
1130  r"""get_version_info(LabelGeometry self) -> VersionInfo"""
1131  return _IMP_display.LabelGeometry_get_version_info(self)
1132  __swig_destroy__ = _IMP_display.delete_LabelGeometry
1133 
1134  def __str__(self):
1135  r"""__str__(LabelGeometry self) -> std::string"""
1136  return _IMP_display.LabelGeometry___str__(self)
1137 
1138  def __repr__(self):
1139  r"""__repr__(LabelGeometry self) -> std::string"""
1140  return _IMP_display.LabelGeometry___repr__(self)
1141 
1142  @staticmethod
1143  def get_from(o):
1144  return _object_cast_to_LabelGeometry(o)
1145 
1146 
1147 # Register LabelGeometry in _IMP_display:
1148 _IMP_display.LabelGeometry_swigregister(LabelGeometry)
1149 class SurfaceMeshGeometry(Geometry):
1150  r"""Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1151 
1152  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1153 
1154  def __init__(self, vertices, faces):
1155  r"""__init__(SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1156  _IMP_display.SurfaceMeshGeometry_swiginit(self, _IMP_display.new_SurfaceMeshGeometry(vertices, faces))
1157 
1158  def get_vertexes(self):
1159  r"""get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1160  return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1161 
1162  def get_faces(self):
1163  r"""get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1164  return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1165 
1166  def get_version_info(self):
1167  r"""get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1168  return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1169  __swig_destroy__ = _IMP_display.delete_SurfaceMeshGeometry
1170 
1171  def __str__(self):
1172  r"""__str__(SurfaceMeshGeometry self) -> std::string"""
1173  return _IMP_display.SurfaceMeshGeometry___str__(self)
1174 
1175  def __repr__(self):
1176  r"""__repr__(SurfaceMeshGeometry self) -> std::string"""
1177  return _IMP_display.SurfaceMeshGeometry___repr__(self)
1178 
1179  @staticmethod
1180  def get_from(o):
1181  return _object_cast_to_SurfaceMeshGeometry(o)
1182 
1183 
1184 # Register SurfaceMeshGeometry in _IMP_display:
1185 _IMP_display.SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1186 class PlaneGeometry(Geometry):
1187  r"""Proxy of C++ IMP::display::PlaneGeometry class."""
1188 
1189  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1190 
1191  def __init__(self, loc, box):
1192  r"""__init__(PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1193  _IMP_display.PlaneGeometry_swiginit(self, _IMP_display.new_PlaneGeometry(loc, box))
1194 
1195  def get_version_info(self):
1196  r"""get_version_info(PlaneGeometry self) -> VersionInfo"""
1197  return _IMP_display.PlaneGeometry_get_version_info(self)
1198  __swig_destroy__ = _IMP_display.delete_PlaneGeometry
1199 
1200  def __str__(self):
1201  r"""__str__(PlaneGeometry self) -> std::string"""
1202  return _IMP_display.PlaneGeometry___str__(self)
1203 
1204  def __repr__(self):
1205  r"""__repr__(PlaneGeometry self) -> std::string"""
1206  return _IMP_display.PlaneGeometry___repr__(self)
1207 
1208  @staticmethod
1209  def get_from(o):
1210  return _object_cast_to_PlaneGeometry(o)
1211 
1212 
1213 # Register PlaneGeometry in _IMP_display:
1214 _IMP_display.PlaneGeometry_swigregister(PlaneGeometry)
1215 class IsosurfaceGeometry(SurfaceMeshGeometry):
1216  r"""Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1217 
1218  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1219 
1220  def __init__(self, *args):
1221  r"""
1222  __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1223  __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1224  """
1225  _IMP_display.IsosurfaceGeometry_swiginit(self, _IMP_display.new_IsosurfaceGeometry(*args))
1226 
1227  def __str__(self):
1228  r"""__str__(IsosurfaceGeometry self) -> std::string"""
1229  return _IMP_display.IsosurfaceGeometry___str__(self)
1230 
1231  def __repr__(self):
1232  r"""__repr__(IsosurfaceGeometry self) -> std::string"""
1233  return _IMP_display.IsosurfaceGeometry___repr__(self)
1234 
1235  @staticmethod
1236  def get_from(o):
1237  return _object_cast_to_IsosurfaceGeometry(o)
1238 
1239  __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1240 
1241 # Register IsosurfaceGeometry in _IMP_display:
1242 _IMP_display.IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1243 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1244  r"""Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1245 
1246  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1247 
1248  def __init__(self, balls):
1249  r"""__init__(SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1250  _IMP_display.SkinSurfaceGeometry_swiginit(self, _IMP_display.new_SkinSurfaceGeometry(balls))
1251 
1252  def __str__(self):
1253  r"""__str__(SkinSurfaceGeometry self) -> std::string"""
1254  return _IMP_display.SkinSurfaceGeometry___str__(self)
1255 
1256  def __repr__(self):
1257  r"""__repr__(SkinSurfaceGeometry self) -> std::string"""
1258  return _IMP_display.SkinSurfaceGeometry___repr__(self)
1259 
1260  @staticmethod
1261  def get_from(o):
1262  return _object_cast_to_SkinSurfaceGeometry(o)
1263 
1264  __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1265 
1266 # Register SkinSurfaceGeometry in _IMP_display:
1267 _IMP_display.SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1268 class GeometryProcessor(object):
1269  r"""Proxy of C++ IMP::display::GeometryProcessor class."""
1270 
1271  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1272  __repr__ = _swig_repr
1273 
1274  def __init__(self):
1275  r"""__init__(GeometryProcessor self) -> GeometryProcessor"""
1276  _IMP_display.GeometryProcessor_swiginit(self, _IMP_display.new_GeometryProcessor())
1277 
1278 # Register GeometryProcessor in _IMP_display:
1279 _IMP_display.GeometryProcessor_swigregister(GeometryProcessor)
1280 class Writer(GeometryProcessor, IMP.Object):
1281  r"""Proxy of C++ IMP::display::Writer class."""
1282 
1283  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1284 
1285  def __init__(self, name):
1286  r"""__init__(Writer self, std::string name) -> Writer"""
1287  if self.__class__ == Writer:
1288  _self = None
1289  else:
1290  _self = self
1291  _IMP_display.Writer_swiginit(self, _IMP_display.new_Writer(_self, name))
1292 
1293  if self.__class__ != Writer:
1294  _director_objects.register(self)
1295 
1296 
1297 
1298  __swig_destroy__ = _IMP_display.delete_Writer
1299 
1300  def set_frame(self, i):
1301  r"""set_frame(Writer self, unsigned int i)"""
1302  return _IMP_display.Writer_set_frame(self, i)
1303 
1304  def get_frame(self):
1305  r"""get_frame(Writer self) -> int"""
1306  return _IMP_display.Writer_get_frame(self)
1307 
1308  def add_geometry(self, *args):
1309  r"""
1310  add_geometry(Writer self, Geometry g)
1311  add_geometry(Writer self, IMP::display::Geometries const & g)
1312  """
1313  return _IMP_display.Writer_add_geometry(self, *args)
1314 
1315  def do_close(self):
1316  r"""do_close(Writer self)"""
1317  return _IMP_display.Writer_do_close(self)
1318 
1319  def do_open(self):
1320  r"""do_open(Writer self)"""
1321  return _IMP_display.Writer_do_open(self)
1322 
1323  def do_set_frame(self):
1324  r"""do_set_frame(Writer self)"""
1325  return _IMP_display.Writer_do_set_frame(self)
1326 
1327  def __str__(self):
1328  r"""__str__(Writer self) -> std::string"""
1329  return _IMP_display.Writer___str__(self)
1330 
1331  def __repr__(self):
1332  r"""__repr__(Writer self) -> std::string"""
1333  return _IMP_display.Writer___repr__(self)
1334 
1335  @staticmethod
1336  def get_from(o):
1337  return _object_cast_to_Writer(o)
1338 
1339 
1340  def do_show(self, out):
1341  pass
1342 
1343  @staticmethod
1344  def get_from(o):
1345  return _object_cast_to_Writer(o)
1346 
1347  def __disown__(self):
1348  self.this.disown()
1349  _IMP_display.disown_Writer(self)
1350  return weakref.proxy(self)
1351 
1352  def handle_sphere(self, arg0, arg1, arg2):
1353  r"""handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1354  return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1355 
1356  def handle_cylinder(self, arg0, arg1, arg2):
1357  r"""handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1358  return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1359 
1360  def handle_point(self, arg0, arg1, arg2):
1361  r"""handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1362  return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1363 
1364  def handle_segment(self, arg0, arg1, arg2):
1365  r"""handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1366  return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1367 
1368  def handle_polygon(self, arg0, arg1, arg2):
1369  r"""handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1370  return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1371 
1372  def handle_triangle(self, arg0, arg1, arg2):
1373  r"""handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1374  return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1375 
1376  def handle_surface_mesh(self, arg0, arg1, arg2):
1377  r"""handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1378  return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1379 
1380  def handle_label(self, arg0, arg1, arg2):
1381  r"""handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1382  return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1383 
1384  def handle_ellipsoid(self, arg0, arg1, arg2):
1385  r"""handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1386  return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1387 
1388  def handle_bounding_box(self, arg0, arg1, arg2):
1389  r"""handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1390  return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1391 
1392  def handle_anything(self, arg0, arg1, arg2):
1393  r"""handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1394  return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1395 
1396  def do_destroy(self):
1397  r"""do_destroy(Writer self)"""
1398  return _IMP_display.Writer_do_destroy(self)
1399 
1400 # Register Writer in _IMP_display:
1401 _IMP_display.Writer_swigregister(Writer)
1402 class TextWriter(Writer):
1403  r"""Proxy of C++ IMP::display::TextWriter class."""
1404 
1405  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1406 
1407  def open(self):
1408  r"""open(TextWriter self)"""
1409  return _IMP_display.TextWriter_open(self)
1410 
1411  def get_stream(self):
1412  r"""get_stream(TextWriter self) -> _ostream"""
1413  return _IMP_display.TextWriter_get_stream(self)
1414 
1415  def do_set_frame(self):
1416  r"""do_set_frame(TextWriter self)"""
1417  return _IMP_display.TextWriter_do_set_frame(self)
1418 
1419  def __init__(self, *args):
1420  r"""
1421  __init__(TextWriter self, TextOutput fn) -> TextWriter
1422  __init__(TextWriter self, std::string name) -> TextWriter
1423  """
1424  if self.__class__ == TextWriter:
1425  _self = None
1426  else:
1427  _self = self
1428  _IMP_display.TextWriter_swiginit(self, _IMP_display.new_TextWriter(_self, *args))
1429 
1430  if self.__class__ != TextWriter:
1431  _director_objects.register(self)
1432 
1433 
1434 
1435 
1436  def get_current_file_name(self):
1437  r"""get_current_file_name(TextWriter self) -> std::string"""
1438  return _IMP_display.TextWriter_get_current_file_name(self)
1439  __swig_destroy__ = _IMP_display.delete_TextWriter
1440 
1441  def __str__(self):
1442  r"""__str__(TextWriter self) -> std::string"""
1443  return _IMP_display.TextWriter___str__(self)
1444 
1445  def __repr__(self):
1446  r"""__repr__(TextWriter self) -> std::string"""
1447  return _IMP_display.TextWriter___repr__(self)
1448 
1449  @staticmethod
1450  def get_from(o):
1451  return _object_cast_to_TextWriter(o)
1452 
1453 
1454  def do_show(self, out):
1455  pass
1456 
1457  @staticmethod
1458  def get_from(o):
1459  return _object_cast_to_TextWriter(o)
1460 
1461  def __disown__(self):
1462  self.this.disown()
1463  _IMP_display.disown_TextWriter(self)
1464  return weakref.proxy(self)
1465 
1466  def handle_sphere(self, arg0, arg1, arg2):
1467  r"""handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1468  return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1469 
1470  def handle_cylinder(self, arg0, arg1, arg2):
1471  r"""handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1472  return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1473 
1474  def handle_point(self, arg0, arg1, arg2):
1475  r"""handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1476  return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1477 
1478  def handle_segment(self, arg0, arg1, arg2):
1479  r"""handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1480  return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1481 
1482  def handle_polygon(self, arg0, arg1, arg2):
1483  r"""handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1484  return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1485 
1486  def handle_triangle(self, arg0, arg1, arg2):
1487  r"""handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1488  return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1489 
1490  def handle_surface_mesh(self, arg0, arg1, arg2):
1491  r"""handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1492  return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1493 
1494  def handle_label(self, arg0, arg1, arg2):
1495  r"""handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1496  return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1497 
1498  def handle_ellipsoid(self, arg0, arg1, arg2):
1499  r"""handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1500  return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1501 
1502  def handle_bounding_box(self, arg0, arg1, arg2):
1503  r"""handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1504  return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1505 
1506  def handle_anything(self, arg0, arg1, arg2):
1507  r"""handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1508  return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1509 
1510  def do_destroy(self):
1511  r"""do_destroy(TextWriter self)"""
1512  return _IMP_display.TextWriter_do_destroy(self)
1513 
1514  def do_close(self):
1515  r"""do_close(TextWriter self)"""
1516  return _IMP_display.TextWriter_do_close(self)
1517 
1518  def do_open(self):
1519  r"""do_open(TextWriter self)"""
1520  return _IMP_display.TextWriter_do_open(self)
1521 
1522 # Register TextWriter in _IMP_display:
1523 _IMP_display.TextWriter_swigregister(TextWriter)
1524 
1525 def create_writer(filename):
1526  r"""create_writer(std::string filename) -> Writer"""
1527  return _IMP_display.create_writer(filename)
1528 class WriterAdaptor(IMP._InputAdaptor):
1529  r"""Proxy of C++ IMP::display::WriterAdaptor class."""
1530 
1531  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1532 
1533  def __init__(self, *args):
1534  r"""
1535  __init__(WriterAdaptor self, std::string name) -> WriterAdaptor
1536  __init__(WriterAdaptor self, Writer w) -> WriterAdaptor
1537  """
1538  _IMP_display.WriterAdaptor_swiginit(self, _IMP_display.new_WriterAdaptor(*args))
1539 
1540  def get_writer(self):
1541  r"""get_writer(WriterAdaptor self) -> Writer"""
1542  return _IMP_display.WriterAdaptor_get_writer(self)
1543 
1544  def show(self, *args):
1545  r"""show(WriterAdaptor self, _ostream out=std::cout)"""
1546  return _IMP_display.WriterAdaptor_show(self, *args)
1547  __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1548 
1549  def __str__(self):
1550  r"""__str__(WriterAdaptor self) -> std::string"""
1551  return _IMP_display.WriterAdaptor___str__(self)
1552 
1553  def __repr__(self):
1554  r"""__repr__(WriterAdaptor self) -> std::string"""
1555  return _IMP_display.WriterAdaptor___repr__(self)
1556 
1557 # Register WriterAdaptor in _IMP_display:
1558 _IMP_display.WriterAdaptor_swigregister(WriterAdaptor)
1559 class Colored(IMP.Decorator):
1560  r"""Proxy of C++ IMP::display::Colored class."""
1561 
1562  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1563 
1564  def set_color(self, c):
1565  r"""set_color(Colored self, Color c)"""
1566  return _IMP_display.Colored_set_color(self, c)
1567 
1568  def get_color(self):
1569  r"""get_color(Colored self) -> Color"""
1570  return _IMP_display.Colored_get_color(self)
1571 
1572  @staticmethod
1573  def get_color_keys():
1574  r"""get_color_keys() -> IMP::FloatKeys const &"""
1575  return _IMP_display.Colored_get_color_keys()
1576 
1577  def __init__(self, *args):
1578  r"""
1579  __init__(Colored self) -> Colored
1580  __init__(Colored self, Model m, ParticleIndex id) -> Colored
1581  __init__(Colored self, _ParticleAdaptor d) -> Colored
1582  """
1583  _IMP_display.Colored_swiginit(self, _IMP_display.new_Colored(*args))
1584 
1585  @staticmethod
1586  def get_is_setup(*args):
1587  r"""
1588  get_is_setup(Model m, ParticleIndex pi) -> bool
1589  get_is_setup(_ParticleAdaptor p) -> bool
1590  """
1591  return _IMP_display.Colored_get_is_setup(*args)
1592 
1593  def show(self, *args):
1594  r"""show(Colored self, _ostream out=std::cout)"""
1595  return _IMP_display.Colored_show(self, *args)
1596 
1597  @staticmethod
1598  def setup_particle(*args):
1599  r"""
1600  setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1601  setup_particle(_ParticleAdaptor pa, Color color) -> Colored
1602  """
1603  return _IMP_display.Colored_setup_particle(*args)
1604 
1605  def add_attribute(self, *args):
1606  r"""
1607  add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1608  add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1609  add_attribute(Colored self, IntKey a0, IMP::Int a1)
1610  add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1611  add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1612  add_attribute(Colored self, StringKey a0, IMP::String a1)
1613  add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1614  add_attribute(Colored self, ObjectKey a0, Object a1)
1615  add_attribute(Colored self, SparseFloatKey a0, IMP::Float a1)
1616  add_attribute(Colored self, SparseIntKey a0, IMP::Int a1)
1617  add_attribute(Colored self, SparseStringKey a0, IMP::String a1)
1618  add_attribute(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1619  """
1620  return _IMP_display.Colored_add_attribute(self, *args)
1621 
1622  def get_value(self, *args):
1623  r"""
1624  get_value(Colored self, FloatKey a0) -> IMP::Float
1625  get_value(Colored self, IntKey a0) -> IMP::Int
1626  get_value(Colored self, FloatsKey a0) -> IMP::Floats
1627  get_value(Colored self, IntsKey a0) -> IMP::Ints
1628  get_value(Colored self, StringKey a0) -> IMP::String
1629  get_value(Colored self, ParticleIndexKey a0) -> Particle
1630  get_value(Colored self, ObjectKey a0) -> Object
1631  get_value(Colored self, SparseFloatKey a0) -> IMP::Float
1632  get_value(Colored self, SparseIntKey a0) -> IMP::Int
1633  get_value(Colored self, SparseStringKey a0) -> IMP::String
1634  get_value(Colored self, SparseParticleIndexKey a0) -> ParticleIndex
1635  """
1636  return _IMP_display.Colored_get_value(self, *args)
1637 
1638  def set_value(self, *args):
1639  r"""
1640  set_value(Colored self, FloatKey a0, IMP::Float a1)
1641  set_value(Colored self, IntKey a0, IMP::Int a1)
1642  set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1643  set_value(Colored self, IntsKey a0, IMP::Ints a1)
1644  set_value(Colored self, StringKey a0, IMP::String a1)
1645  set_value(Colored self, ParticleIndexKey a0, Particle a1)
1646  set_value(Colored self, ObjectKey a0, Object a1)
1647  set_value(Colored self, SparseFloatKey a0, IMP::Float a1)
1648  set_value(Colored self, SparseIntKey a0, IMP::Int a1)
1649  set_value(Colored self, SparseStringKey a0, IMP::String a1)
1650  set_value(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1651  """
1652  return _IMP_display.Colored_set_value(self, *args)
1653 
1654  def remove_attribute(self, *args):
1655  r"""
1656  remove_attribute(Colored self, FloatKey a0)
1657  remove_attribute(Colored self, IntKey a0)
1658  remove_attribute(Colored self, FloatsKey a0)
1659  remove_attribute(Colored self, IntsKey a0)
1660  remove_attribute(Colored self, StringKey a0)
1661  remove_attribute(Colored self, ParticleIndexKey a0)
1662  remove_attribute(Colored self, ObjectKey a0)
1663  remove_attribute(Colored self, SparseFloatKey a0)
1664  remove_attribute(Colored self, SparseIntKey a0)
1665  remove_attribute(Colored self, SparseStringKey a0)
1666  remove_attribute(Colored self, SparseParticleIndexKey a0)
1667  """
1668  return _IMP_display.Colored_remove_attribute(self, *args)
1669 
1670  def has_attribute(self, *args):
1671  r"""
1672  has_attribute(Colored self, FloatKey a0) -> bool
1673  has_attribute(Colored self, IntKey a0) -> bool
1674  has_attribute(Colored self, FloatsKey a0) -> bool
1675  has_attribute(Colored self, IntsKey a0) -> bool
1676  has_attribute(Colored self, StringKey a0) -> bool
1677  has_attribute(Colored self, ParticleIndexKey a0) -> bool
1678  has_attribute(Colored self, ObjectKey a0) -> bool
1679  has_attribute(Colored self, SparseFloatKey a0) -> bool
1680  has_attribute(Colored self, SparseIntKey a0) -> bool
1681  has_attribute(Colored self, SparseStringKey a0) -> bool
1682  has_attribute(Colored self, SparseParticleIndexKey a0) -> bool
1683  """
1684  return _IMP_display.Colored_has_attribute(self, *args)
1685 
1686  def get_derivative(self, a0):
1687  r"""get_derivative(Colored self, FloatKey a0) -> double"""
1688  return _IMP_display.Colored_get_derivative(self, a0)
1689 
1690  def get_name(self):
1691  r"""get_name(Colored self) -> std::string"""
1692  return _IMP_display.Colored_get_name(self)
1693 
1694  def clear_caches(self):
1695  r"""clear_caches(Colored self)"""
1696  return _IMP_display.Colored_clear_caches(self)
1697 
1698  def set_name(self, a0):
1699  r"""set_name(Colored self, std::string a0)"""
1700  return _IMP_display.Colored_set_name(self, a0)
1701 
1702  def set_check_level(self, a0):
1703  r"""set_check_level(Colored self, IMP::CheckLevel a0)"""
1704  return _IMP_display.Colored_set_check_level(self, a0)
1705 
1706  def add_to_derivative(self, a0, a1, a2):
1707  r"""add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1708  return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1709 
1710  def set_is_optimized(self, a0, a1):
1711  r"""set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1712  return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1713 
1714  def get_is_optimized(self, a0):
1715  r"""get_is_optimized(Colored self, FloatKey a0) -> bool"""
1716  return _IMP_display.Colored_get_is_optimized(self, a0)
1717 
1718  def get_check_level(self):
1719  r"""get_check_level(Colored self) -> IMP::CheckLevel"""
1720  return _IMP_display.Colored_get_check_level(self)
1721 
1722  def __eq__(self, *args):
1723  r"""
1724  __eq__(Colored self, Colored o) -> bool
1725  __eq__(Colored self, Particle d) -> bool
1726  """
1727  return _IMP_display.Colored___eq__(self, *args)
1728 
1729  def __ne__(self, *args):
1730  r"""
1731  __ne__(Colored self, Colored o) -> bool
1732  __ne__(Colored self, Particle d) -> bool
1733  """
1734  return _IMP_display.Colored___ne__(self, *args)
1735 
1736  def __le__(self, *args):
1737  r"""
1738  __le__(Colored self, Colored o) -> bool
1739  __le__(Colored self, Particle d) -> bool
1740  """
1741  return _IMP_display.Colored___le__(self, *args)
1742 
1743  def __lt__(self, *args):
1744  r"""
1745  __lt__(Colored self, Colored o) -> bool
1746  __lt__(Colored self, Particle d) -> bool
1747  """
1748  return _IMP_display.Colored___lt__(self, *args)
1749 
1750  def __ge__(self, *args):
1751  r"""
1752  __ge__(Colored self, Colored o) -> bool
1753  __ge__(Colored self, Particle d) -> bool
1754  """
1755  return _IMP_display.Colored___ge__(self, *args)
1756 
1757  def __gt__(self, *args):
1758  r"""
1759  __gt__(Colored self, Colored o) -> bool
1760  __gt__(Colored self, Particle d) -> bool
1761  """
1762  return _IMP_display.Colored___gt__(self, *args)
1763 
1764  def __hash__(self):
1765  r"""__hash__(Colored self) -> std::size_t"""
1766  return _IMP_display.Colored___hash__(self)
1767 
1768  def __str__(self):
1769  r"""__str__(Colored self) -> std::string"""
1770  return _IMP_display.Colored___str__(self)
1771 
1772  def __repr__(self):
1773  r"""__repr__(Colored self) -> std::string"""
1774  return _IMP_display.Colored___repr__(self)
1775 
1776  def _get_as_binary(self):
1777  r"""_get_as_binary(Colored self) -> PyObject *"""
1778  return _IMP_display.Colored__get_as_binary(self)
1779 
1780  def _set_from_binary(self, p):
1781  r"""_set_from_binary(Colored self, PyObject * p)"""
1782  return _IMP_display.Colored__set_from_binary(self, p)
1783 
1784  def __getstate__(self):
1785  p = self._get_as_binary()
1786  if len(self.__dict__) > 1:
1787  d = self.__dict__.copy()
1788  del d['this']
1789  p = (d, p)
1790  return p
1791 
1792  def __setstate__(self, p):
1793  if not hasattr(self, 'this'):
1794  self.__init__()
1795  if isinstance(p, tuple):
1796  d, p = p
1797  self.__dict__.update(d)
1798  return self._set_from_binary(p)
1799 
1800  __swig_destroy__ = _IMP_display.delete_Colored
1801 
1802 # Register Colored in _IMP_display:
1803 _IMP_display.Colored_swigregister(Colored)
1804 
1805 def __lshift__(out, n):
1806  r"""__lshift__(_ostream out, Colored n) -> _ostream"""
1807  return _IMP_display.__lshift__(out, n)
1808 class FilterGeometry(GeometryProcessor, Geometry):
1809  r"""Proxy of C++ IMP::display::FilterGeometry class."""
1810 
1811  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1812 
1813  def __init__(self, p):
1814  r"""__init__(FilterGeometry self, Plane3D p) -> FilterGeometry"""
1815  _IMP_display.FilterGeometry_swiginit(self, _IMP_display.new_FilterGeometry(p))
1816 
1817  def add_geometry(self, *args):
1818  r"""
1819  add_geometry(FilterGeometry self, Geometry g)
1820  add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1821  """
1822  return _IMP_display.FilterGeometry_add_geometry(self, *args)
1823 
1824  def get_version_info(self):
1825  r"""get_version_info(FilterGeometry self) -> VersionInfo"""
1826  return _IMP_display.FilterGeometry_get_version_info(self)
1827  __swig_destroy__ = _IMP_display.delete_FilterGeometry
1828 
1829  def __str__(self):
1830  r"""__str__(FilterGeometry self) -> std::string"""
1831  return _IMP_display.FilterGeometry___str__(self)
1832 
1833  def __repr__(self):
1834  r"""__repr__(FilterGeometry self) -> std::string"""
1835  return _IMP_display.FilterGeometry___repr__(self)
1836 
1837  @staticmethod
1838  def get_from(o):
1839  return _object_cast_to_FilterGeometry(o)
1840 
1841 
1842 # Register FilterGeometry in _IMP_display:
1843 _IMP_display.FilterGeometry_swigregister(FilterGeometry)
1844 class WriteOptimizerState(IMP.OptimizerState):
1845  r"""Proxy of C++ IMP::display::WriteOptimizerState class."""
1846 
1847  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1848 
1849  def __init__(self, m, w):
1850  r"""__init__(WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1851  _IMP_display.WriteOptimizerState_swiginit(self, _IMP_display.new_WriteOptimizerState(m, w))
1852 
1853  def write(self, w):
1854  r"""write(WriteOptimizerState self, WriterAdaptor w)"""
1855  return _IMP_display.WriteOptimizerState_write(self, w)
1856  def __get_geometries(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_geometries, getfunc=self.get_geometry, erasefunc=self.erase_geometry, appendfunc=self.add_geometry, extendfunc=self.add_geometries, clearfunc=self.clear_geometries, indexfunc=self._python_index_geometry)
1857  def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
1858  def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
1859  geometries = property(__get_geometries, __set_geometries, __del_geometries, doc="List of ##ucnames")
1860 
1861  def remove_geometry(self, d):
1862  r"""remove_geometry(WriteOptimizerState self, Geometry d)"""
1863  return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
1864 
1865  def _python_index_geometry(self, d, start, stop):
1866  r"""_python_index_geometry(WriteOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1867  return _IMP_display.WriteOptimizerState__python_index_geometry(self, d, start, stop)
1868 
1869  def remove_geometries(self, d):
1870  r"""remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1871  return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
1872 
1873  def set_geometries(self, ps):
1874  r"""set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1875  return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
1876 
1877  def set_geometries_order(self, objs):
1878  r"""set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1879  return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
1880 
1881  def add_geometry(self, obj):
1882  r"""add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1883  return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
1884 
1885  def add_geometries(self, objs):
1886  r"""add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1887  return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
1888 
1889  def clear_geometries(self):
1890  r"""clear_geometries(WriteOptimizerState self)"""
1891  return _IMP_display.WriteOptimizerState_clear_geometries(self)
1892 
1893  def get_number_of_geometries(self):
1894  r"""get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1895  return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1896 
1897  def get_has_geometries(self):
1898  r"""get_has_geometries(WriteOptimizerState self) -> bool"""
1899  return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1900 
1901  def get_geometry(self, i):
1902  r"""get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1903  return _IMP_display.WriteOptimizerState_get_geometry(self, i)
1904 
1905  def get_geometries(self):
1906  r"""get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1907  return _IMP_display.WriteOptimizerState_get_geometries(self)
1908 
1909  def erase_geometry(self, i):
1910  r"""erase_geometry(WriteOptimizerState self, unsigned int i)"""
1911  return _IMP_display.WriteOptimizerState_erase_geometry(self, i)
1912 
1913  def reserve_geometries(self, sz):
1914  r"""reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1915  return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
1916 
1917  def get_version_info(self):
1918  r"""get_version_info(WriteOptimizerState self) -> VersionInfo"""
1919  return _IMP_display.WriteOptimizerState_get_version_info(self)
1920  __swig_destroy__ = _IMP_display.delete_WriteOptimizerState
1921 
1922  def __str__(self):
1923  r"""__str__(WriteOptimizerState self) -> std::string"""
1924  return _IMP_display.WriteOptimizerState___str__(self)
1925 
1926  def __repr__(self):
1927  r"""__repr__(WriteOptimizerState self) -> std::string"""
1928  return _IMP_display.WriteOptimizerState___repr__(self)
1929 
1930  @staticmethod
1931  def get_from(o):
1932  return _object_cast_to_WriteOptimizerState(o)
1933 
1934 
1935  def _get_jax(self, state_index):
1936  """No JAX implementation, but this OptimizerState should work
1937  correctly if JAX arrays are copied back to IMP.Model"""
1938  return None
1939 
1940 
1941 # Register WriteOptimizerState in _IMP_display:
1942 _IMP_display.WriteOptimizerState_swigregister(WriteOptimizerState)
1943 class SingletonGeometry(Geometry):
1944  r"""Proxy of C++ IMP::display::SingletonGeometry class."""
1945 
1946  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1947 
1948  def __init__(self, p):
1949  r"""__init__(SingletonGeometry self, Particle p) -> SingletonGeometry"""
1950  _IMP_display.SingletonGeometry_swiginit(self, _IMP_display.new_SingletonGeometry(p))
1951 
1952  def get_particle(self):
1953  r"""get_particle(SingletonGeometry self) -> Particle"""
1954  return _IMP_display.SingletonGeometry_get_particle(self)
1955  __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1956 
1957  def __str__(self):
1958  r"""__str__(SingletonGeometry self) -> std::string"""
1959  return _IMP_display.SingletonGeometry___str__(self)
1960 
1961  def __repr__(self):
1962  r"""__repr__(SingletonGeometry self) -> std::string"""
1963  return _IMP_display.SingletonGeometry___repr__(self)
1964 
1965  @staticmethod
1966  def get_from(o):
1967  return _object_cast_to_SingletonGeometry(o)
1968 
1969 
1970 # Register SingletonGeometry in _IMP_display:
1971 _IMP_display.SingletonGeometry_swigregister(SingletonGeometry)
1972 class SingletonsGeometry(Geometry):
1973  r"""Proxy of C++ IMP::display::SingletonsGeometry class."""
1974 
1975  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1976 
1977  def __init__(self, *args):
1978  r"""
1979  __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
1980  __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
1981  """
1982  _IMP_display.SingletonsGeometry_swiginit(self, _IMP_display.new_SingletonsGeometry(*args))
1983 
1984  def get_container(self):
1985  r"""get_container(SingletonsGeometry self) -> SingletonContainer"""
1986  return _IMP_display.SingletonsGeometry_get_container(self)
1987  __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
1988 
1989  def __str__(self):
1990  r"""__str__(SingletonsGeometry self) -> std::string"""
1991  return _IMP_display.SingletonsGeometry___str__(self)
1992 
1993  def __repr__(self):
1994  r"""__repr__(SingletonsGeometry self) -> std::string"""
1995  return _IMP_display.SingletonsGeometry___repr__(self)
1996 
1997  @staticmethod
1998  def get_from(o):
1999  return _object_cast_to_SingletonsGeometry(o)
2000 
2001 
2002 # Register SingletonsGeometry in _IMP_display:
2003 _IMP_display.SingletonsGeometry_swigregister(SingletonsGeometry)
2004 class PairGeometry(Geometry):
2005  r"""Proxy of C++ IMP::display::PairGeometry class."""
2006 
2007  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2008 
2009  def __init__(self, pp):
2010  r"""__init__(PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2011  _IMP_display.PairGeometry_swiginit(self, _IMP_display.new_PairGeometry(pp))
2012 
2013  def get_particle_pair(self):
2014  r"""get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2015  return _IMP_display.PairGeometry_get_particle_pair(self)
2016  __swig_destroy__ = _IMP_display.delete_PairGeometry
2017 
2018  def __str__(self):
2019  r"""__str__(PairGeometry self) -> std::string"""
2020  return _IMP_display.PairGeometry___str__(self)
2021 
2022  def __repr__(self):
2023  r"""__repr__(PairGeometry self) -> std::string"""
2024  return _IMP_display.PairGeometry___repr__(self)
2025 
2026  @staticmethod
2027  def get_from(o):
2028  return _object_cast_to_PairGeometry(o)
2029 
2030 
2031 # Register PairGeometry in _IMP_display:
2032 _IMP_display.PairGeometry_swigregister(PairGeometry)
2033 class PairsGeometry(Geometry):
2034  r"""Proxy of C++ IMP::display::PairsGeometry class."""
2035 
2036  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2037 
2038  def __init__(self, *args):
2039  r"""
2040  __init__(PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2041  __init__(PairsGeometry self, PairContainer pc) -> PairsGeometry
2042  """
2043  _IMP_display.PairsGeometry_swiginit(self, _IMP_display.new_PairsGeometry(*args))
2044 
2045  def get_container(self):
2046  r"""get_container(PairsGeometry self) -> PairContainer"""
2047  return _IMP_display.PairsGeometry_get_container(self)
2048  __swig_destroy__ = _IMP_display.delete_PairsGeometry
2049 
2050  def __str__(self):
2051  r"""__str__(PairsGeometry self) -> std::string"""
2052  return _IMP_display.PairsGeometry___str__(self)
2053 
2054  def __repr__(self):
2055  r"""__repr__(PairsGeometry self) -> std::string"""
2056  return _IMP_display.PairsGeometry___repr__(self)
2057 
2058  @staticmethod
2059  def get_from(o):
2060  return _object_cast_to_PairsGeometry(o)
2061 
2062 
2063 # Register PairsGeometry in _IMP_display:
2064 _IMP_display.PairsGeometry_swigregister(PairsGeometry)
2065 class PymolWriter(TextWriter):
2066  r"""Proxy of C++ IMP::display::PymolWriter class."""
2067 
2068  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2069 
2070  def __init__(self, *args):
2071  r"""
2072  __init__(PymolWriter self, TextOutput of) -> PymolWriter
2073  __init__(PymolWriter self, std::string name) -> PymolWriter
2074  __init__(PymolWriter self, char const * name) -> PymolWriter
2075  """
2076  _IMP_display.PymolWriter_swiginit(self, _IMP_display.new_PymolWriter(*args))
2077 
2078  def get_version_info(self):
2079  r"""get_version_info(PymolWriter self) -> VersionInfo"""
2080  return _IMP_display.PymolWriter_get_version_info(self)
2081  __swig_destroy__ = _IMP_display.delete_PymolWriter
2082 
2083  def __str__(self):
2084  r"""__str__(PymolWriter self) -> std::string"""
2085  return _IMP_display.PymolWriter___str__(self)
2086 
2087  def __repr__(self):
2088  r"""__repr__(PymolWriter self) -> std::string"""
2089  return _IMP_display.PymolWriter___repr__(self)
2090 
2091  @staticmethod
2092  def get_from(o):
2093  return _object_cast_to_PymolWriter(o)
2094 
2095 
2096 # Register PymolWriter in _IMP_display:
2097 _IMP_display.PymolWriter_swigregister(PymolWriter)
2098 class RestraintGeometry(Geometry):
2099  r"""Proxy of C++ IMP::display::RestraintGeometry class."""
2100 
2101  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2102 
2103  def __init__(self, p):
2104  r"""__init__(RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2105  _IMP_display.RestraintGeometry_swiginit(self, _IMP_display.new_RestraintGeometry(p))
2106 
2107  def get_restraint(self):
2108  r"""get_restraint(RestraintGeometry self) -> Restraint"""
2109  return _IMP_display.RestraintGeometry_get_restraint(self)
2110 
2111  def get_version_info(self):
2112  r"""get_version_info(RestraintGeometry self) -> VersionInfo"""
2113  return _IMP_display.RestraintGeometry_get_version_info(self)
2114  __swig_destroy__ = _IMP_display.delete_RestraintGeometry
2115 
2116  def __str__(self):
2117  r"""__str__(RestraintGeometry self) -> std::string"""
2118  return _IMP_display.RestraintGeometry___str__(self)
2119 
2120  def __repr__(self):
2121  r"""__repr__(RestraintGeometry self) -> std::string"""
2122  return _IMP_display.RestraintGeometry___repr__(self)
2123 
2124  @staticmethod
2125  def get_from(o):
2126  return _object_cast_to_RestraintGeometry(o)
2127 
2128 
2129 # Register RestraintGeometry in _IMP_display:
2130 _IMP_display.RestraintGeometry_swigregister(RestraintGeometry)
2131 class RestraintSetGeometry(Geometry):
2132  r"""Proxy of C++ IMP::display::RestraintSetGeometry class."""
2133 
2134  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2135 
2136  def __init__(self, p):
2137  r"""__init__(RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2138  _IMP_display.RestraintSetGeometry_swiginit(self, _IMP_display.new_RestraintSetGeometry(p))
2139 
2140  def get_restraint_set(self):
2141  r"""get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2142  return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2143 
2144  def get_version_info(self):
2145  r"""get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2146  return _IMP_display.RestraintSetGeometry_get_version_info(self)
2147  __swig_destroy__ = _IMP_display.delete_RestraintSetGeometry
2148 
2149  def __str__(self):
2150  r"""__str__(RestraintSetGeometry self) -> std::string"""
2151  return _IMP_display.RestraintSetGeometry___str__(self)
2152 
2153  def __repr__(self):
2154  r"""__repr__(RestraintSetGeometry self) -> std::string"""
2155  return _IMP_display.RestraintSetGeometry___repr__(self)
2156 
2157  @staticmethod
2158  def get_from(o):
2159  return _object_cast_to_RestraintSetGeometry(o)
2160 
2161 
2162 # Register RestraintSetGeometry in _IMP_display:
2163 _IMP_display.RestraintSetGeometry_swigregister(RestraintSetGeometry)
2164 
2165 from . import _pivy
2166 PivyWriter= _pivy.get_writer(Writer)
2167 _object_types.append('PivyWriter')
2168 
2169 
2170 def get_module_name():
2171  r"""get_module_name() -> std::string const"""
2172  return _IMP_display.get_module_name()
2173 
2174 def get_module_version():
2175  r"""get_module_version() -> std::string const"""
2176  return _IMP_display.get_module_version()
2177 
2178 def get_example_path(fname):
2179  r"""get_example_path(std::string fname) -> std::string"""
2180  return _IMP_display.get_example_path(fname)
2181 
2182 def get_data_path(fname):
2183  r"""get_data_path(std::string fname) -> std::string"""
2184  return _IMP_display.get_data_path(fname)
2185 
2186 from . import _version_check
2187 _version_check.check_version(get_module_version())
2188 __version__ = get_module_version()
2189 
2190 
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:80
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.
Definition: Color.h:151
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.
Definition: Object.h:111
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
Definition: Surface.h:191
Color get_display_color(unsigned int i)
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)
Definition: Decorator.h:119
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.
Definition: exception.h:72