IMP logo
IMP Reference Guide  develop.d36d3deffb,2026/11/09
The Integrative Modeling Platform
display/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.5.1
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 __eq__(self, o):
511  r"""__eq__(Color self, Color o) -> bool"""
512  return _IMP_display.Color___eq__(self, o)
513 
514  def __ne__(self, o):
515  r"""__ne__(Color self, Color o) -> bool"""
516  return _IMP_display.Color___ne__(self, o)
517 
518  def __lt__(self, o):
519  r"""__lt__(Color self, Color o) -> bool"""
520  return _IMP_display.Color___lt__(self, o)
521 
522  def __gt__(self, o):
523  r"""__gt__(Color self, Color o) -> bool"""
524  return _IMP_display.Color___gt__(self, o)
525 
526  def __ge__(self, o):
527  r"""__ge__(Color self, Color o) -> bool"""
528  return _IMP_display.Color___ge__(self, o)
529 
530  def __le__(self, o):
531  r"""__le__(Color self, Color o) -> bool"""
532  return _IMP_display.Color___le__(self, o)
533 
534  def __str__(self):
535  r"""__str__(Color self) -> std::string"""
536  return _IMP_display.Color___str__(self)
537 
538  def __repr__(self):
539  r"""__repr__(Color self) -> std::string"""
540  return _IMP_display.Color___repr__(self)
541 
542  def _get_as_binary(self):
543  r"""_get_as_binary(Color self) -> PyObject *"""
544  return _IMP_display.Color__get_as_binary(self)
545 
546  def _set_from_binary(self, p):
547  r"""_set_from_binary(Color self, PyObject * p)"""
548  return _IMP_display.Color__set_from_binary(self, p)
549 
550  def __getstate__(self):
551  p = self._get_as_binary()
552  if len(self.__dict__) > 1:
553  d = self.__dict__.copy()
554  del d['this']
555  p = (d, p)
556  return p
557 
558  def __setstate__(self, p):
559  if not hasattr(self, 'this'):
560  self.__init__()
561  if isinstance(p, tuple):
562  d, p = p
563  self.__dict__.update(d)
564  return self._set_from_binary(p)
565 
566 
567 # Register Color in _IMP_display:
568 _IMP_display.Color_swigregister(Color)
569 
570 def get_display_color(i):
571  r"""get_display_color(unsigned int i) -> Color"""
572  return _IMP_display.get_display_color(i)
573 
574 def get_interpolated_rgb(a, b, f):
575  r"""get_interpolated_rgb(Color a, Color b, double f) -> Color"""
576  return _IMP_display.get_interpolated_rgb(a, b, f)
577 
578 def get_linear_color_map_value(min, max, value):
579  r"""get_linear_color_map_value(double min, double max, double value) -> double"""
580  return _IMP_display.get_linear_color_map_value(min, max, value)
581 
582 def get_jet_color(f):
583  r"""get_jet_color(double f) -> Color"""
584  return _IMP_display.get_jet_color(f)
585 
586 def get_hot_color(f):
587  r"""get_hot_color(double f) -> Color"""
588  return _IMP_display.get_hot_color(f)
589 
590 def get_rgb_color(f):
591  r"""get_rgb_color(double f) -> Color"""
592  return _IMP_display.get_rgb_color(f)
593 
594 def get_gray_color(f):
595  r"""get_gray_color(double f) -> Color"""
596  return _IMP_display.get_gray_color(f)
597 
598 def get_gnuplot_color(f):
599  r"""get_gnuplot_color(double f) -> Color"""
600  return _IMP_display.get_gnuplot_color(f)
601 class Geometry(IMP.Object):
602  r"""Proxy of C++ IMP::display::Geometry class."""
603 
604  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
605 
606  def __init__(self, *args):
607  r"""
608  __init__(Geometry self, std::string name) -> Geometry
609  __init__(Geometry self, Color c, std::string name) -> Geometry
610  """
611  if self.__class__ == Geometry:
612  _self = None
613  else:
614  _self = self
615  _IMP_display.Geometry_swiginit(self, _IMP_display.new_Geometry(_self, *args))
616 
617  if self.__class__ != Geometry:
618  _director_objects.register(self)
619 
620 
621 
622 
623  def get_color(self):
624  r"""get_color(Geometry self) -> Color"""
625  return _IMP_display.Geometry_get_color(self)
626 
627  def get_has_color(self):
628  r"""get_has_color(Geometry self) -> bool"""
629  return _IMP_display.Geometry_get_has_color(self)
630 
631  def set_has_color(self, tf):
632  r"""set_has_color(Geometry self, bool tf)"""
633  return _IMP_display.Geometry_set_has_color(self, tf)
634 
635  def set_color(self, c):
636  r"""set_color(Geometry self, Color c)"""
637  return _IMP_display.Geometry_set_color(self, c)
638 
639  def get_components(self):
640  r"""get_components(Geometry self) -> IMP::display::Geometries"""
641  return _IMP_display.Geometry_get_components(self)
642  __swig_destroy__ = _IMP_display.delete_Geometry
643 
644  def __str__(self):
645  r"""__str__(Geometry self) -> std::string"""
646  return _IMP_display.Geometry___str__(self)
647 
648  def __repr__(self):
649  r"""__repr__(Geometry self) -> std::string"""
650  return _IMP_display.Geometry___repr__(self)
651 
652  @staticmethod
653  def get_from(o):
654  return _object_cast_to_Geometry(o)
655 
656 
657  def do_show(self, out):
658  pass
659 
660  @staticmethod
661  def get_from(o):
662  return _object_cast_to_Geometry(o)
663 
664  def __disown__(self):
665  self.this.disown()
666  _IMP_display.disown_Geometry(self)
667  return weakref.proxy(self)
668 
669  def do_destroy(self):
670  r"""do_destroy(Geometry self)"""
671  return _IMP_display.Geometry_do_destroy(self)
672 
673 # Register Geometry in _IMP_display:
674 _IMP_display.Geometry_swigregister(Geometry)
675 class GeometrySet(Geometry):
676  r"""Proxy of C++ IMP::display::GeometrySet class."""
677 
678  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
679 
680  def __init__(self, *args):
681  r"""
682  __init__(GeometrySet self, IMP::display::Geometries const & v) -> GeometrySet
683  __init__(GeometrySet self, IMP::display::Geometries const & v, Color c) -> GeometrySet
684  __init__(GeometrySet self, IMP::display::Geometries const & v, std::string const n) -> GeometrySet
685  __init__(GeometrySet self, IMP::display::Geometries const & v, Color c, std::string n) -> GeometrySet
686  """
687  _IMP_display.GeometrySet_swiginit(self, _IMP_display.new_GeometrySet(*args))
688 
689  def get_geometry(self):
690  r"""get_geometry(GeometrySet self) -> IMP::display::Geometries"""
691  return _IMP_display.GeometrySet_get_geometry(self)
692 
693  def get_version_info(self):
694  r"""get_version_info(GeometrySet self) -> VersionInfo"""
695  return _IMP_display.GeometrySet_get_version_info(self)
696  __swig_destroy__ = _IMP_display.delete_GeometrySet
697 
698  def __str__(self):
699  r"""__str__(GeometrySet self) -> std::string"""
700  return _IMP_display.GeometrySet___str__(self)
701 
702  def __repr__(self):
703  r"""__repr__(GeometrySet self) -> std::string"""
704  return _IMP_display.GeometrySet___repr__(self)
705 
706  @staticmethod
707  def get_from(o):
708  return _object_cast_to_GeometrySet(o)
709 
710 
711 # Register GeometrySet in _IMP_display:
712 _IMP_display.GeometrySet_swigregister(GeometrySet)
713 class SphereGeometry(Geometry):
714  r"""Proxy of C++ IMP::display::SphereGeometry class."""
715 
716  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
717 
718  def __init__(self, *args):
719  r"""
720  __init__(SphereGeometry self, Sphere3D v) -> SphereGeometry
721  __init__(SphereGeometry self, Sphere3D v, Color c) -> SphereGeometry
722  __init__(SphereGeometry self, Sphere3D v, std::string const n) -> SphereGeometry
723  __init__(SphereGeometry self, Sphere3D v, Color c, std::string n) -> SphereGeometry
724  """
725  _IMP_display.SphereGeometry_swiginit(self, _IMP_display.new_SphereGeometry(*args))
726 
727  def get_geometry(self):
728  r"""get_geometry(SphereGeometry self) -> Sphere3D"""
729  return _IMP_display.SphereGeometry_get_geometry(self)
730 
731  def set_geometry(self, v):
732  r"""set_geometry(SphereGeometry self, Sphere3D v)"""
733  return _IMP_display.SphereGeometry_set_geometry(self, v)
734 
735  def get_version_info(self):
736  r"""get_version_info(SphereGeometry self) -> VersionInfo"""
737  return _IMP_display.SphereGeometry_get_version_info(self)
738  __swig_destroy__ = _IMP_display.delete_SphereGeometry
739 
740  def __str__(self):
741  r"""__str__(SphereGeometry self) -> std::string"""
742  return _IMP_display.SphereGeometry___str__(self)
743 
744  def __repr__(self):
745  r"""__repr__(SphereGeometry self) -> std::string"""
746  return _IMP_display.SphereGeometry___repr__(self)
747 
748  @staticmethod
749  def get_from(o):
750  return _object_cast_to_SphereGeometry(o)
751 
752 
753 # Register SphereGeometry in _IMP_display:
754 _IMP_display.SphereGeometry_swigregister(SphereGeometry)
755 class CylinderGeometry(Geometry):
756  r"""Proxy of C++ IMP::display::CylinderGeometry class."""
757 
758  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
759 
760  def __init__(self, *args):
761  r"""
762  __init__(CylinderGeometry self, Cylinder3D v) -> CylinderGeometry
763  __init__(CylinderGeometry self, Cylinder3D v, Color c) -> CylinderGeometry
764  __init__(CylinderGeometry self, Cylinder3D v, std::string const n) -> CylinderGeometry
765  __init__(CylinderGeometry self, Cylinder3D v, Color c, std::string n) -> CylinderGeometry
766  """
767  _IMP_display.CylinderGeometry_swiginit(self, _IMP_display.new_CylinderGeometry(*args))
768 
769  def get_geometry(self):
770  r"""get_geometry(CylinderGeometry self) -> Cylinder3D"""
771  return _IMP_display.CylinderGeometry_get_geometry(self)
772 
773  def set_geometry(self, v):
774  r"""set_geometry(CylinderGeometry self, Cylinder3D v)"""
775  return _IMP_display.CylinderGeometry_set_geometry(self, v)
776 
777  def get_version_info(self):
778  r"""get_version_info(CylinderGeometry self) -> VersionInfo"""
779  return _IMP_display.CylinderGeometry_get_version_info(self)
780  __swig_destroy__ = _IMP_display.delete_CylinderGeometry
781 
782  def __str__(self):
783  r"""__str__(CylinderGeometry self) -> std::string"""
784  return _IMP_display.CylinderGeometry___str__(self)
785 
786  def __repr__(self):
787  r"""__repr__(CylinderGeometry self) -> std::string"""
788  return _IMP_display.CylinderGeometry___repr__(self)
789 
790  @staticmethod
791  def get_from(o):
792  return _object_cast_to_CylinderGeometry(o)
793 
794 
795 # Register CylinderGeometry in _IMP_display:
796 _IMP_display.CylinderGeometry_swigregister(CylinderGeometry)
797 class EllipsoidGeometry(Geometry):
798  r"""Proxy of C++ IMP::display::EllipsoidGeometry class."""
799 
800  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
801 
802  def __init__(self, *args):
803  r"""
804  __init__(EllipsoidGeometry self, Ellipsoid3D v) -> EllipsoidGeometry
805  __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c) -> EllipsoidGeometry
806  __init__(EllipsoidGeometry self, Ellipsoid3D v, std::string const n) -> EllipsoidGeometry
807  __init__(EllipsoidGeometry self, Ellipsoid3D v, Color c, std::string n) -> EllipsoidGeometry
808  """
809  _IMP_display.EllipsoidGeometry_swiginit(self, _IMP_display.new_EllipsoidGeometry(*args))
810 
811  def get_geometry(self):
812  r"""get_geometry(EllipsoidGeometry self) -> Ellipsoid3D"""
813  return _IMP_display.EllipsoidGeometry_get_geometry(self)
814 
815  def set_geometry(self, v):
816  r"""set_geometry(EllipsoidGeometry self, Ellipsoid3D v)"""
817  return _IMP_display.EllipsoidGeometry_set_geometry(self, v)
818 
819  def get_version_info(self):
820  r"""get_version_info(EllipsoidGeometry self) -> VersionInfo"""
821  return _IMP_display.EllipsoidGeometry_get_version_info(self)
822  __swig_destroy__ = _IMP_display.delete_EllipsoidGeometry
823 
824  def __str__(self):
825  r"""__str__(EllipsoidGeometry self) -> std::string"""
826  return _IMP_display.EllipsoidGeometry___str__(self)
827 
828  def __repr__(self):
829  r"""__repr__(EllipsoidGeometry self) -> std::string"""
830  return _IMP_display.EllipsoidGeometry___repr__(self)
831 
832  @staticmethod
833  def get_from(o):
834  return _object_cast_to_EllipsoidGeometry(o)
835 
836 
837 # Register EllipsoidGeometry in _IMP_display:
838 _IMP_display.EllipsoidGeometry_swigregister(EllipsoidGeometry)
839 class PointGeometry(Geometry):
840  r"""Proxy of C++ IMP::display::PointGeometry class."""
841 
842  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
843 
844  def __init__(self, *args):
845  r"""
846  __init__(PointGeometry self, Vector3D v) -> PointGeometry
847  __init__(PointGeometry self, Vector3D v, Color c) -> PointGeometry
848  __init__(PointGeometry self, Vector3D v, std::string const n) -> PointGeometry
849  __init__(PointGeometry self, Vector3D v, Color c, std::string n) -> PointGeometry
850  """
851  _IMP_display.PointGeometry_swiginit(self, _IMP_display.new_PointGeometry(*args))
852 
853  def get_geometry(self):
854  r"""get_geometry(PointGeometry self) -> Vector3D"""
855  return _IMP_display.PointGeometry_get_geometry(self)
856 
857  def set_geometry(self, v):
858  r"""set_geometry(PointGeometry self, Vector3D v)"""
859  return _IMP_display.PointGeometry_set_geometry(self, v)
860 
861  def get_version_info(self):
862  r"""get_version_info(PointGeometry self) -> VersionInfo"""
863  return _IMP_display.PointGeometry_get_version_info(self)
864  __swig_destroy__ = _IMP_display.delete_PointGeometry
865 
866  def __str__(self):
867  r"""__str__(PointGeometry self) -> std::string"""
868  return _IMP_display.PointGeometry___str__(self)
869 
870  def __repr__(self):
871  r"""__repr__(PointGeometry self) -> std::string"""
872  return _IMP_display.PointGeometry___repr__(self)
873 
874  @staticmethod
875  def get_from(o):
876  return _object_cast_to_PointGeometry(o)
877 
878 
879 # Register PointGeometry in _IMP_display:
880 _IMP_display.PointGeometry_swigregister(PointGeometry)
881 class SegmentGeometry(Geometry):
882  r"""Proxy of C++ IMP::display::SegmentGeometry class."""
883 
884  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
885 
886  def __init__(self, *args):
887  r"""
888  __init__(SegmentGeometry self, Segment3D v) -> SegmentGeometry
889  __init__(SegmentGeometry self, Segment3D v, Color c) -> SegmentGeometry
890  __init__(SegmentGeometry self, Segment3D v, std::string const n) -> SegmentGeometry
891  __init__(SegmentGeometry self, Segment3D v, Color c, std::string n) -> SegmentGeometry
892  """
893  _IMP_display.SegmentGeometry_swiginit(self, _IMP_display.new_SegmentGeometry(*args))
894 
895  def get_geometry(self):
896  r"""get_geometry(SegmentGeometry self) -> Segment3D"""
897  return _IMP_display.SegmentGeometry_get_geometry(self)
898 
899  def set_geometry(self, v):
900  r"""set_geometry(SegmentGeometry self, Segment3D v)"""
901  return _IMP_display.SegmentGeometry_set_geometry(self, v)
902 
903  def get_version_info(self):
904  r"""get_version_info(SegmentGeometry self) -> VersionInfo"""
905  return _IMP_display.SegmentGeometry_get_version_info(self)
906  __swig_destroy__ = _IMP_display.delete_SegmentGeometry
907 
908  def __str__(self):
909  r"""__str__(SegmentGeometry self) -> std::string"""
910  return _IMP_display.SegmentGeometry___str__(self)
911 
912  def __repr__(self):
913  r"""__repr__(SegmentGeometry self) -> std::string"""
914  return _IMP_display.SegmentGeometry___repr__(self)
915 
916  @staticmethod
917  def get_from(o):
918  return _object_cast_to_SegmentGeometry(o)
919 
920 
921 # Register SegmentGeometry in _IMP_display:
922 _IMP_display.SegmentGeometry_swigregister(SegmentGeometry)
923 class PolygonGeometry(Geometry):
924  r"""Proxy of C++ IMP::display::PolygonGeometry class."""
925 
926  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
927 
928  def __init__(self, *args):
929  r"""
930  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v) -> PolygonGeometry
931  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c) -> PolygonGeometry
932  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, std::string const n) -> PolygonGeometry
933  __init__(PolygonGeometry self, IMP::algebra::Vector3Ds const & v, Color c, std::string n) -> PolygonGeometry
934  """
935  _IMP_display.PolygonGeometry_swiginit(self, _IMP_display.new_PolygonGeometry(*args))
936 
937  def get_geometry(self):
938  r"""get_geometry(PolygonGeometry self) -> IMP::algebra::Vector3Ds const &"""
939  return _IMP_display.PolygonGeometry_get_geometry(self)
940 
941  def set_geometry(self, v):
942  r"""set_geometry(PolygonGeometry self, IMP::algebra::Vector3Ds const & v)"""
943  return _IMP_display.PolygonGeometry_set_geometry(self, v)
944 
945  def get_version_info(self):
946  r"""get_version_info(PolygonGeometry self) -> VersionInfo"""
947  return _IMP_display.PolygonGeometry_get_version_info(self)
948  __swig_destroy__ = _IMP_display.delete_PolygonGeometry
949 
950  def __str__(self):
951  r"""__str__(PolygonGeometry self) -> std::string"""
952  return _IMP_display.PolygonGeometry___str__(self)
953 
954  def __repr__(self):
955  r"""__repr__(PolygonGeometry self) -> std::string"""
956  return _IMP_display.PolygonGeometry___repr__(self)
957 
958  @staticmethod
959  def get_from(o):
960  return _object_cast_to_PolygonGeometry(o)
961 
962 
963 # Register PolygonGeometry in _IMP_display:
964 _IMP_display.PolygonGeometry_swigregister(PolygonGeometry)
965 class TriangleGeometry(Geometry):
966  r"""Proxy of C++ IMP::display::TriangleGeometry class."""
967 
968  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
969 
970  def __init__(self, *args):
971  r"""
972  __init__(TriangleGeometry self, Triangle3D v) -> TriangleGeometry
973  __init__(TriangleGeometry self, Triangle3D v, Color c) -> TriangleGeometry
974  __init__(TriangleGeometry self, Triangle3D v, std::string const n) -> TriangleGeometry
975  __init__(TriangleGeometry self, Triangle3D v, Color c, std::string n) -> TriangleGeometry
976  """
977  _IMP_display.TriangleGeometry_swiginit(self, _IMP_display.new_TriangleGeometry(*args))
978 
979  def get_geometry(self):
980  r"""get_geometry(TriangleGeometry self) -> Triangle3D"""
981  return _IMP_display.TriangleGeometry_get_geometry(self)
982 
983  def set_geometry(self, v):
984  r"""set_geometry(TriangleGeometry self, Triangle3D v)"""
985  return _IMP_display.TriangleGeometry_set_geometry(self, v)
986 
987  def get_version_info(self):
988  r"""get_version_info(TriangleGeometry self) -> VersionInfo"""
989  return _IMP_display.TriangleGeometry_get_version_info(self)
990  __swig_destroy__ = _IMP_display.delete_TriangleGeometry
991 
992  def __str__(self):
993  r"""__str__(TriangleGeometry self) -> std::string"""
994  return _IMP_display.TriangleGeometry___str__(self)
995 
996  def __repr__(self):
997  r"""__repr__(TriangleGeometry self) -> std::string"""
998  return _IMP_display.TriangleGeometry___repr__(self)
999 
1000  @staticmethod
1001  def get_from(o):
1002  return _object_cast_to_TriangleGeometry(o)
1003 
1004 
1005 # Register TriangleGeometry in _IMP_display:
1006 _IMP_display.TriangleGeometry_swigregister(TriangleGeometry)
1007 class BoundingBoxGeometry(Geometry):
1008  r"""Proxy of C++ IMP::display::BoundingBoxGeometry class."""
1009 
1010  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1011 
1012  def __init__(self, *args):
1013  r"""
1014  __init__(BoundingBoxGeometry self, BoundingBox3D v) -> BoundingBoxGeometry
1015  __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c) -> BoundingBoxGeometry
1016  __init__(BoundingBoxGeometry self, BoundingBox3D v, std::string const n) -> BoundingBoxGeometry
1017  __init__(BoundingBoxGeometry self, BoundingBox3D v, Color c, std::string n) -> BoundingBoxGeometry
1018  """
1019  _IMP_display.BoundingBoxGeometry_swiginit(self, _IMP_display.new_BoundingBoxGeometry(*args))
1020 
1021  def get_geometry(self):
1022  r"""get_geometry(BoundingBoxGeometry self) -> BoundingBox3D"""
1023  return _IMP_display.BoundingBoxGeometry_get_geometry(self)
1024 
1025  def set_geometry(self, v):
1026  r"""set_geometry(BoundingBoxGeometry self, BoundingBox3D v)"""
1027  return _IMP_display.BoundingBoxGeometry_set_geometry(self, v)
1028 
1029  def get_version_info(self):
1030  r"""get_version_info(BoundingBoxGeometry self) -> VersionInfo"""
1031  return _IMP_display.BoundingBoxGeometry_get_version_info(self)
1032  __swig_destroy__ = _IMP_display.delete_BoundingBoxGeometry
1033 
1034  def __str__(self):
1035  r"""__str__(BoundingBoxGeometry self) -> std::string"""
1036  return _IMP_display.BoundingBoxGeometry___str__(self)
1037 
1038  def __repr__(self):
1039  r"""__repr__(BoundingBoxGeometry self) -> std::string"""
1040  return _IMP_display.BoundingBoxGeometry___repr__(self)
1041 
1042  @staticmethod
1043  def get_from(o):
1044  return _object_cast_to_BoundingBoxGeometry(o)
1045 
1046 
1047 # Register BoundingBoxGeometry in _IMP_display:
1048 _IMP_display.BoundingBoxGeometry_swigregister(BoundingBoxGeometry)
1049 class ReferenceFrameGeometry(Geometry):
1050  r"""Proxy of C++ IMP::display::ReferenceFrameGeometry class."""
1051 
1052  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1053 
1054  def __init__(self, *args):
1055  r"""
1056  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v) -> ReferenceFrameGeometry
1057  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c) -> ReferenceFrameGeometry
1058  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, std::string const n) -> ReferenceFrameGeometry
1059  __init__(ReferenceFrameGeometry self, ReferenceFrame3D v, Color c, std::string n) -> ReferenceFrameGeometry
1060  """
1061  _IMP_display.ReferenceFrameGeometry_swiginit(self, _IMP_display.new_ReferenceFrameGeometry(*args))
1062 
1063  def get_geometry(self):
1064  r"""get_geometry(ReferenceFrameGeometry self) -> ReferenceFrame3D"""
1065  return _IMP_display.ReferenceFrameGeometry_get_geometry(self)
1066 
1067  def set_geometry(self, v):
1068  r"""set_geometry(ReferenceFrameGeometry self, ReferenceFrame3D v)"""
1069  return _IMP_display.ReferenceFrameGeometry_set_geometry(self, v)
1070 
1071  def get_version_info(self):
1072  r"""get_version_info(ReferenceFrameGeometry self) -> VersionInfo"""
1073  return _IMP_display.ReferenceFrameGeometry_get_version_info(self)
1074  __swig_destroy__ = _IMP_display.delete_ReferenceFrameGeometry
1075 
1076  def __str__(self):
1077  r"""__str__(ReferenceFrameGeometry self) -> std::string"""
1078  return _IMP_display.ReferenceFrameGeometry___str__(self)
1079 
1080  def __repr__(self):
1081  r"""__repr__(ReferenceFrameGeometry self) -> std::string"""
1082  return _IMP_display.ReferenceFrameGeometry___repr__(self)
1083 
1084  @staticmethod
1085  def get_from(o):
1086  return _object_cast_to_ReferenceFrameGeometry(o)
1087 
1088 
1089 # Register ReferenceFrameGeometry in _IMP_display:
1090 _IMP_display.ReferenceFrameGeometry_swigregister(ReferenceFrameGeometry)
1091 
1092 def create_geometry(*args):
1093  r"""
1094  create_geometry(Sphere3D t, std::string name="algebra::Sphere3D"+"%1%") -> SphereGeometry
1095  create_geometry(Cylinder3D t, std::string name="algebra::Cylinder3D"+"%1%") -> CylinderGeometry
1096  create_geometry(Ellipsoid3D t, std::string name="algebra::Ellipsoid3D"+"%1%") -> EllipsoidGeometry
1097  create_geometry(Vector3D t, std::string name="algebra::Vector3D"+"%1%") -> PointGeometry
1098  create_geometry(Segment3D t, std::string name="algebra::Segment3D"+"%1%") -> SegmentGeometry
1099  create_geometry(IMP::algebra::Vector3Ds const & t, std::string name="algebra::Vector3Ds"+"%1%") -> PolygonGeometry
1100  create_geometry(Triangle3D t, std::string name="algebra::Triangle3D"+"%1%") -> TriangleGeometry
1101  create_geometry(BoundingBox3D t, std::string name="algebra::BoundingBoxD<3>"+"%1%") -> BoundingBoxGeometry
1102  create_geometry(ReferenceFrame3D t, std::string name="algebra::ReferenceFrame3D"+"%1%") -> ReferenceFrameGeometry
1103  """
1104  return _IMP_display.create_geometry(*args)
1105 class LabelGeometry(Geometry):
1106  r"""Proxy of C++ IMP::display::LabelGeometry class."""
1107 
1108  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1109 
1110  def __init__(self, *args):
1111  r"""
1112  __init__(LabelGeometry self, Sphere3D loc, std::string text) -> LabelGeometry
1113  __init__(LabelGeometry self, Vector3D loc, std::string text) -> LabelGeometry
1114  """
1115  _IMP_display.LabelGeometry_swiginit(self, _IMP_display.new_LabelGeometry(*args))
1116 
1117  def get_text(self):
1118  r"""get_text(LabelGeometry self) -> std::string"""
1119  return _IMP_display.LabelGeometry_get_text(self)
1120 
1121  def get_location(self):
1122  r"""get_location(LabelGeometry self) -> Sphere3D"""
1123  return _IMP_display.LabelGeometry_get_location(self)
1124 
1125  def get_version_info(self):
1126  r"""get_version_info(LabelGeometry self) -> VersionInfo"""
1127  return _IMP_display.LabelGeometry_get_version_info(self)
1128  __swig_destroy__ = _IMP_display.delete_LabelGeometry
1129 
1130  def __str__(self):
1131  r"""__str__(LabelGeometry self) -> std::string"""
1132  return _IMP_display.LabelGeometry___str__(self)
1133 
1134  def __repr__(self):
1135  r"""__repr__(LabelGeometry self) -> std::string"""
1136  return _IMP_display.LabelGeometry___repr__(self)
1137 
1138  @staticmethod
1139  def get_from(o):
1140  return _object_cast_to_LabelGeometry(o)
1141 
1142 
1143 # Register LabelGeometry in _IMP_display:
1144 _IMP_display.LabelGeometry_swigregister(LabelGeometry)
1145 class SurfaceMeshGeometry(Geometry):
1146  r"""Proxy of C++ IMP::display::SurfaceMeshGeometry class."""
1147 
1148  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1149 
1150  def __init__(self, vertices, faces):
1151  r"""__init__(SurfaceMeshGeometry self, IMP::algebra::Vector3Ds const & vertices, IMP::Ints const & faces) -> SurfaceMeshGeometry"""
1152  _IMP_display.SurfaceMeshGeometry_swiginit(self, _IMP_display.new_SurfaceMeshGeometry(vertices, faces))
1153 
1154  def get_vertexes(self):
1155  r"""get_vertexes(SurfaceMeshGeometry self) -> IMP::algebra::Vector3Ds const &"""
1156  return _IMP_display.SurfaceMeshGeometry_get_vertexes(self)
1157 
1158  def get_faces(self):
1159  r"""get_faces(SurfaceMeshGeometry self) -> IMP::Ints const &"""
1160  return _IMP_display.SurfaceMeshGeometry_get_faces(self)
1161 
1162  def get_version_info(self):
1163  r"""get_version_info(SurfaceMeshGeometry self) -> VersionInfo"""
1164  return _IMP_display.SurfaceMeshGeometry_get_version_info(self)
1165  __swig_destroy__ = _IMP_display.delete_SurfaceMeshGeometry
1166 
1167  def __str__(self):
1168  r"""__str__(SurfaceMeshGeometry self) -> std::string"""
1169  return _IMP_display.SurfaceMeshGeometry___str__(self)
1170 
1171  def __repr__(self):
1172  r"""__repr__(SurfaceMeshGeometry self) -> std::string"""
1173  return _IMP_display.SurfaceMeshGeometry___repr__(self)
1174 
1175  @staticmethod
1176  def get_from(o):
1177  return _object_cast_to_SurfaceMeshGeometry(o)
1178 
1179 
1180 # Register SurfaceMeshGeometry in _IMP_display:
1181 _IMP_display.SurfaceMeshGeometry_swigregister(SurfaceMeshGeometry)
1182 class PlaneGeometry(Geometry):
1183  r"""Proxy of C++ IMP::display::PlaneGeometry class."""
1184 
1185  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1186 
1187  def __init__(self, loc, box):
1188  r"""__init__(PlaneGeometry self, Plane3D loc, BoundingBox3D box) -> PlaneGeometry"""
1189  _IMP_display.PlaneGeometry_swiginit(self, _IMP_display.new_PlaneGeometry(loc, box))
1190 
1191  def get_version_info(self):
1192  r"""get_version_info(PlaneGeometry self) -> VersionInfo"""
1193  return _IMP_display.PlaneGeometry_get_version_info(self)
1194  __swig_destroy__ = _IMP_display.delete_PlaneGeometry
1195 
1196  def __str__(self):
1197  r"""__str__(PlaneGeometry self) -> std::string"""
1198  return _IMP_display.PlaneGeometry___str__(self)
1199 
1200  def __repr__(self):
1201  r"""__repr__(PlaneGeometry self) -> std::string"""
1202  return _IMP_display.PlaneGeometry___repr__(self)
1203 
1204  @staticmethod
1205  def get_from(o):
1206  return _object_cast_to_PlaneGeometry(o)
1207 
1208 
1209 # Register PlaneGeometry in _IMP_display:
1210 _IMP_display.PlaneGeometry_swigregister(PlaneGeometry)
1211 class IsosurfaceGeometry(SurfaceMeshGeometry):
1212  r"""Proxy of C++ IMP::display::IsosurfaceGeometry class."""
1213 
1214  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1215 
1216  def __init__(self, *args):
1217  r"""
1218  __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1219  __init__(IsosurfaceGeometry self, IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > > const & grid, double iso) -> IsosurfaceGeometry
1220  """
1221  _IMP_display.IsosurfaceGeometry_swiginit(self, _IMP_display.new_IsosurfaceGeometry(*args))
1222 
1223  def __str__(self):
1224  r"""__str__(IsosurfaceGeometry self) -> std::string"""
1225  return _IMP_display.IsosurfaceGeometry___str__(self)
1226 
1227  def __repr__(self):
1228  r"""__repr__(IsosurfaceGeometry self) -> std::string"""
1229  return _IMP_display.IsosurfaceGeometry___repr__(self)
1230 
1231  @staticmethod
1232  def get_from(o):
1233  return _object_cast_to_IsosurfaceGeometry(o)
1234 
1235  __swig_destroy__ = _IMP_display.delete_IsosurfaceGeometry
1236 
1237 # Register IsosurfaceGeometry in _IMP_display:
1238 _IMP_display.IsosurfaceGeometry_swigregister(IsosurfaceGeometry)
1239 class SkinSurfaceGeometry(SurfaceMeshGeometry):
1240  r"""Proxy of C++ IMP::display::SkinSurfaceGeometry class."""
1241 
1242  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1243 
1244  def __init__(self, balls):
1245  r"""__init__(SkinSurfaceGeometry self, IMP::algebra::Sphere3Ds const & balls) -> SkinSurfaceGeometry"""
1246  _IMP_display.SkinSurfaceGeometry_swiginit(self, _IMP_display.new_SkinSurfaceGeometry(balls))
1247 
1248  def __str__(self):
1249  r"""__str__(SkinSurfaceGeometry self) -> std::string"""
1250  return _IMP_display.SkinSurfaceGeometry___str__(self)
1251 
1252  def __repr__(self):
1253  r"""__repr__(SkinSurfaceGeometry self) -> std::string"""
1254  return _IMP_display.SkinSurfaceGeometry___repr__(self)
1255 
1256  @staticmethod
1257  def get_from(o):
1258  return _object_cast_to_SkinSurfaceGeometry(o)
1259 
1260  __swig_destroy__ = _IMP_display.delete_SkinSurfaceGeometry
1261 
1262 # Register SkinSurfaceGeometry in _IMP_display:
1263 _IMP_display.SkinSurfaceGeometry_swigregister(SkinSurfaceGeometry)
1264 class GeometryProcessor(object):
1265  r"""Proxy of C++ IMP::display::GeometryProcessor class."""
1266 
1267  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1268  __repr__ = _swig_repr
1269 
1270  def __init__(self):
1271  r"""__init__(GeometryProcessor self) -> GeometryProcessor"""
1272  _IMP_display.GeometryProcessor_swiginit(self, _IMP_display.new_GeometryProcessor())
1273 
1274 # Register GeometryProcessor in _IMP_display:
1275 _IMP_display.GeometryProcessor_swigregister(GeometryProcessor)
1276 class Writer(GeometryProcessor, IMP.Object):
1277  r"""Proxy of C++ IMP::display::Writer class."""
1278 
1279  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1280 
1281  def __init__(self, name):
1282  r"""__init__(Writer self, std::string name) -> Writer"""
1283  if self.__class__ == Writer:
1284  _self = None
1285  else:
1286  _self = self
1287  _IMP_display.Writer_swiginit(self, _IMP_display.new_Writer(_self, name))
1288 
1289  if self.__class__ != Writer:
1290  _director_objects.register(self)
1291 
1292 
1293 
1294  __swig_destroy__ = _IMP_display.delete_Writer
1295 
1296  def set_frame(self, i):
1297  r"""set_frame(Writer self, unsigned int i)"""
1298  return _IMP_display.Writer_set_frame(self, i)
1299 
1300  def get_frame(self):
1301  r"""get_frame(Writer self) -> int"""
1302  return _IMP_display.Writer_get_frame(self)
1303 
1304  def add_geometry(self, *args):
1305  r"""
1306  add_geometry(Writer self, Geometry g)
1307  add_geometry(Writer self, IMP::display::Geometries const & g)
1308  """
1309  return _IMP_display.Writer_add_geometry(self, *args)
1310 
1311  def do_close(self):
1312  r"""do_close(Writer self)"""
1313  return _IMP_display.Writer_do_close(self)
1314 
1315  def do_open(self):
1316  r"""do_open(Writer self)"""
1317  return _IMP_display.Writer_do_open(self)
1318 
1319  def do_set_frame(self):
1320  r"""do_set_frame(Writer self)"""
1321  return _IMP_display.Writer_do_set_frame(self)
1322 
1323  def __str__(self):
1324  r"""__str__(Writer self) -> std::string"""
1325  return _IMP_display.Writer___str__(self)
1326 
1327  def __repr__(self):
1328  r"""__repr__(Writer self) -> std::string"""
1329  return _IMP_display.Writer___repr__(self)
1330 
1331  @staticmethod
1332  def get_from(o):
1333  return _object_cast_to_Writer(o)
1334 
1335 
1336  def do_show(self, out):
1337  pass
1338 
1339  @staticmethod
1340  def get_from(o):
1341  return _object_cast_to_Writer(o)
1342 
1343  def __disown__(self):
1344  self.this.disown()
1345  _IMP_display.disown_Writer(self)
1346  return weakref.proxy(self)
1347 
1348  def handle_sphere(self, arg0, arg1, arg2):
1349  r"""handle_sphere(Writer self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1350  return _IMP_display.Writer_handle_sphere(self, arg0, arg1, arg2)
1351 
1352  def handle_cylinder(self, arg0, arg1, arg2):
1353  r"""handle_cylinder(Writer self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1354  return _IMP_display.Writer_handle_cylinder(self, arg0, arg1, arg2)
1355 
1356  def handle_point(self, arg0, arg1, arg2):
1357  r"""handle_point(Writer self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1358  return _IMP_display.Writer_handle_point(self, arg0, arg1, arg2)
1359 
1360  def handle_segment(self, arg0, arg1, arg2):
1361  r"""handle_segment(Writer self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1362  return _IMP_display.Writer_handle_segment(self, arg0, arg1, arg2)
1363 
1364  def handle_polygon(self, arg0, arg1, arg2):
1365  r"""handle_polygon(Writer self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1366  return _IMP_display.Writer_handle_polygon(self, arg0, arg1, arg2)
1367 
1368  def handle_triangle(self, arg0, arg1, arg2):
1369  r"""handle_triangle(Writer self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1370  return _IMP_display.Writer_handle_triangle(self, arg0, arg1, arg2)
1371 
1372  def handle_surface_mesh(self, arg0, arg1, arg2):
1373  r"""handle_surface_mesh(Writer self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1374  return _IMP_display.Writer_handle_surface_mesh(self, arg0, arg1, arg2)
1375 
1376  def handle_label(self, arg0, arg1, arg2):
1377  r"""handle_label(Writer self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1378  return _IMP_display.Writer_handle_label(self, arg0, arg1, arg2)
1379 
1380  def handle_ellipsoid(self, arg0, arg1, arg2):
1381  r"""handle_ellipsoid(Writer self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1382  return _IMP_display.Writer_handle_ellipsoid(self, arg0, arg1, arg2)
1383 
1384  def handle_bounding_box(self, arg0, arg1, arg2):
1385  r"""handle_bounding_box(Writer self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1386  return _IMP_display.Writer_handle_bounding_box(self, arg0, arg1, arg2)
1387 
1388  def handle_anything(self, arg0, arg1, arg2):
1389  r"""handle_anything(Writer self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1390  return _IMP_display.Writer_handle_anything(self, arg0, arg1, arg2)
1391 
1392  def do_destroy(self):
1393  r"""do_destroy(Writer self)"""
1394  return _IMP_display.Writer_do_destroy(self)
1395 
1396 # Register Writer in _IMP_display:
1397 _IMP_display.Writer_swigregister(Writer)
1398 class TextWriter(Writer):
1399  r"""Proxy of C++ IMP::display::TextWriter class."""
1400 
1401  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1402 
1403  def open(self):
1404  r"""open(TextWriter self)"""
1405  return _IMP_display.TextWriter_open(self)
1406 
1407  def get_stream(self):
1408  r"""get_stream(TextWriter self) -> _ostream"""
1409  return _IMP_display.TextWriter_get_stream(self)
1410 
1411  def do_set_frame(self):
1412  r"""do_set_frame(TextWriter self)"""
1413  return _IMP_display.TextWriter_do_set_frame(self)
1414 
1415  def __init__(self, *args):
1416  r"""
1417  __init__(TextWriter self, TextOutput fn) -> TextWriter
1418  __init__(TextWriter self, std::string name) -> TextWriter
1419  """
1420  if self.__class__ == TextWriter:
1421  _self = None
1422  else:
1423  _self = self
1424  _IMP_display.TextWriter_swiginit(self, _IMP_display.new_TextWriter(_self, *args))
1425 
1426  if self.__class__ != TextWriter:
1427  _director_objects.register(self)
1428 
1429 
1430 
1431 
1432  def get_current_file_name(self):
1433  r"""get_current_file_name(TextWriter self) -> std::string"""
1434  return _IMP_display.TextWriter_get_current_file_name(self)
1435  __swig_destroy__ = _IMP_display.delete_TextWriter
1436 
1437  def __str__(self):
1438  r"""__str__(TextWriter self) -> std::string"""
1439  return _IMP_display.TextWriter___str__(self)
1440 
1441  def __repr__(self):
1442  r"""__repr__(TextWriter self) -> std::string"""
1443  return _IMP_display.TextWriter___repr__(self)
1444 
1445  @staticmethod
1446  def get_from(o):
1447  return _object_cast_to_TextWriter(o)
1448 
1449 
1450  def do_show(self, out):
1451  pass
1452 
1453  @staticmethod
1454  def get_from(o):
1455  return _object_cast_to_TextWriter(o)
1456 
1457  def __disown__(self):
1458  self.this.disown()
1459  _IMP_display.disown_TextWriter(self)
1460  return weakref.proxy(self)
1461 
1462  def handle_sphere(self, arg0, arg1, arg2):
1463  r"""handle_sphere(TextWriter self, SphereGeometry arg0, Color arg1, std::string arg2) -> bool"""
1464  return _IMP_display.TextWriter_handle_sphere(self, arg0, arg1, arg2)
1465 
1466  def handle_cylinder(self, arg0, arg1, arg2):
1467  r"""handle_cylinder(TextWriter self, CylinderGeometry arg0, Color arg1, std::string arg2) -> bool"""
1468  return _IMP_display.TextWriter_handle_cylinder(self, arg0, arg1, arg2)
1469 
1470  def handle_point(self, arg0, arg1, arg2):
1471  r"""handle_point(TextWriter self, PointGeometry arg0, Color arg1, std::string arg2) -> bool"""
1472  return _IMP_display.TextWriter_handle_point(self, arg0, arg1, arg2)
1473 
1474  def handle_segment(self, arg0, arg1, arg2):
1475  r"""handle_segment(TextWriter self, SegmentGeometry arg0, Color arg1, std::string arg2) -> bool"""
1476  return _IMP_display.TextWriter_handle_segment(self, arg0, arg1, arg2)
1477 
1478  def handle_polygon(self, arg0, arg1, arg2):
1479  r"""handle_polygon(TextWriter self, PolygonGeometry arg0, Color arg1, std::string arg2) -> bool"""
1480  return _IMP_display.TextWriter_handle_polygon(self, arg0, arg1, arg2)
1481 
1482  def handle_triangle(self, arg0, arg1, arg2):
1483  r"""handle_triangle(TextWriter self, TriangleGeometry arg0, Color arg1, std::string arg2) -> bool"""
1484  return _IMP_display.TextWriter_handle_triangle(self, arg0, arg1, arg2)
1485 
1486  def handle_surface_mesh(self, arg0, arg1, arg2):
1487  r"""handle_surface_mesh(TextWriter self, SurfaceMeshGeometry arg0, Color arg1, std::string arg2) -> bool"""
1488  return _IMP_display.TextWriter_handle_surface_mesh(self, arg0, arg1, arg2)
1489 
1490  def handle_label(self, arg0, arg1, arg2):
1491  r"""handle_label(TextWriter self, LabelGeometry arg0, Color arg1, std::string arg2) -> bool"""
1492  return _IMP_display.TextWriter_handle_label(self, arg0, arg1, arg2)
1493 
1494  def handle_ellipsoid(self, arg0, arg1, arg2):
1495  r"""handle_ellipsoid(TextWriter self, EllipsoidGeometry arg0, Color arg1, std::string arg2) -> bool"""
1496  return _IMP_display.TextWriter_handle_ellipsoid(self, arg0, arg1, arg2)
1497 
1498  def handle_bounding_box(self, arg0, arg1, arg2):
1499  r"""handle_bounding_box(TextWriter self, BoundingBoxGeometry arg0, Color arg1, std::string arg2) -> bool"""
1500  return _IMP_display.TextWriter_handle_bounding_box(self, arg0, arg1, arg2)
1501 
1502  def handle_anything(self, arg0, arg1, arg2):
1503  r"""handle_anything(TextWriter self, Geometry arg0, Color arg1, std::string arg2) -> bool"""
1504  return _IMP_display.TextWriter_handle_anything(self, arg0, arg1, arg2)
1505 
1506  def do_destroy(self):
1507  r"""do_destroy(TextWriter self)"""
1508  return _IMP_display.TextWriter_do_destroy(self)
1509 
1510  def do_close(self):
1511  r"""do_close(TextWriter self)"""
1512  return _IMP_display.TextWriter_do_close(self)
1513 
1514  def do_open(self):
1515  r"""do_open(TextWriter self)"""
1516  return _IMP_display.TextWriter_do_open(self)
1517 
1518 # Register TextWriter in _IMP_display:
1519 _IMP_display.TextWriter_swigregister(TextWriter)
1520 
1521 def create_writer(filename):
1522  r"""create_writer(std::string filename) -> Writer"""
1523  return _IMP_display.create_writer(filename)
1524 class WriterAdaptor(IMP._InputAdaptor):
1525  r"""Proxy of C++ IMP::display::WriterAdaptor class."""
1526 
1527  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1528 
1529  def __init__(self, *args):
1530  r"""
1531  __init__(WriterAdaptor self, std::string name) -> WriterAdaptor
1532  __init__(WriterAdaptor self, Writer w) -> WriterAdaptor
1533  """
1534  _IMP_display.WriterAdaptor_swiginit(self, _IMP_display.new_WriterAdaptor(*args))
1535 
1536  def get_writer(self):
1537  r"""get_writer(WriterAdaptor self) -> Writer"""
1538  return _IMP_display.WriterAdaptor_get_writer(self)
1539 
1540  def show(self, *args):
1541  r"""show(WriterAdaptor self, _ostream out=std::cout)"""
1542  return _IMP_display.WriterAdaptor_show(self, *args)
1543  __swig_destroy__ = _IMP_display.delete_WriterAdaptor
1544 
1545  def __str__(self):
1546  r"""__str__(WriterAdaptor self) -> std::string"""
1547  return _IMP_display.WriterAdaptor___str__(self)
1548 
1549  def __repr__(self):
1550  r"""__repr__(WriterAdaptor self) -> std::string"""
1551  return _IMP_display.WriterAdaptor___repr__(self)
1552 
1553 # Register WriterAdaptor in _IMP_display:
1554 _IMP_display.WriterAdaptor_swigregister(WriterAdaptor)
1555 class Colored(IMP.Decorator):
1556  r"""Proxy of C++ IMP::display::Colored class."""
1557 
1558  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1559 
1560  def set_color(self, c):
1561  r"""set_color(Colored self, Color c)"""
1562  return _IMP_display.Colored_set_color(self, c)
1563 
1564  def get_color(self):
1565  r"""get_color(Colored self) -> Color"""
1566  return _IMP_display.Colored_get_color(self)
1567 
1568  @staticmethod
1569  def get_color_keys():
1570  r"""get_color_keys() -> IMP::FloatKeys const &"""
1571  return _IMP_display.Colored_get_color_keys()
1572 
1573  def __init__(self, *args):
1574  r"""
1575  __init__(Colored self) -> Colored
1576  __init__(Colored self, Model m, ParticleIndex id) -> Colored
1577  __init__(Colored self, _ParticleAdaptor d) -> Colored
1578  """
1579  _IMP_display.Colored_swiginit(self, _IMP_display.new_Colored(*args))
1580 
1581  @staticmethod
1582  def get_is_setup(*args):
1583  r"""
1584  get_is_setup(Model m, ParticleIndex pi) -> bool
1585  get_is_setup(_ParticleAdaptor p) -> bool
1586  """
1587  return _IMP_display.Colored_get_is_setup(*args)
1588 
1589  def show(self, *args):
1590  r"""show(Colored self, _ostream out=std::cout)"""
1591  return _IMP_display.Colored_show(self, *args)
1592 
1593  @staticmethod
1594  def setup_particle(*args):
1595  r"""
1596  setup_particle(Model m, ParticleIndex pi, Color color) -> Colored
1597  setup_particle(_ParticleAdaptor pa, Color color) -> Colored
1598  """
1599  return _IMP_display.Colored_setup_particle(*args)
1600 
1601  def add_attribute(self, *args):
1602  r"""
1603  add_attribute(Colored self, FloatKey k, IMP::Float v, bool opt)
1604  add_attribute(Colored self, FloatKey a0, IMP::Float a1)
1605  add_attribute(Colored self, IntKey a0, IMP::Int a1)
1606  add_attribute(Colored self, FloatsKey a0, IMP::Floats a1)
1607  add_attribute(Colored self, IntsKey a0, IMP::Ints a1)
1608  add_attribute(Colored self, StringKey a0, IMP::String a1)
1609  add_attribute(Colored self, ParticleIndexKey a0, Particle a1)
1610  add_attribute(Colored self, ObjectKey a0, Object a1)
1611  add_attribute(Colored self, SparseFloatKey a0, IMP::Float a1)
1612  add_attribute(Colored self, SparseIntKey a0, IMP::Int a1)
1613  add_attribute(Colored self, SparseStringKey a0, IMP::String a1)
1614  add_attribute(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1615  """
1616  return _IMP_display.Colored_add_attribute(self, *args)
1617 
1618  def get_value(self, *args):
1619  r"""
1620  get_value(Colored self, FloatKey a0) -> IMP::Float
1621  get_value(Colored self, IntKey a0) -> IMP::Int
1622  get_value(Colored self, FloatsKey a0) -> IMP::Floats
1623  get_value(Colored self, IntsKey a0) -> IMP::Ints
1624  get_value(Colored self, StringKey a0) -> IMP::String
1625  get_value(Colored self, ParticleIndexKey a0) -> Particle
1626  get_value(Colored self, ObjectKey a0) -> Object
1627  get_value(Colored self, SparseFloatKey a0) -> IMP::Float
1628  get_value(Colored self, SparseIntKey a0) -> IMP::Int
1629  get_value(Colored self, SparseStringKey a0) -> IMP::String
1630  get_value(Colored self, SparseParticleIndexKey a0) -> ParticleIndex
1631  """
1632  return _IMP_display.Colored_get_value(self, *args)
1633 
1634  def set_value(self, *args):
1635  r"""
1636  set_value(Colored self, FloatKey a0, IMP::Float a1)
1637  set_value(Colored self, IntKey a0, IMP::Int a1)
1638  set_value(Colored self, FloatsKey a0, IMP::Floats a1)
1639  set_value(Colored self, IntsKey a0, IMP::Ints a1)
1640  set_value(Colored self, StringKey a0, IMP::String a1)
1641  set_value(Colored self, ParticleIndexKey a0, Particle a1)
1642  set_value(Colored self, ObjectKey a0, Object a1)
1643  set_value(Colored self, SparseFloatKey a0, IMP::Float a1)
1644  set_value(Colored self, SparseIntKey a0, IMP::Int a1)
1645  set_value(Colored self, SparseStringKey a0, IMP::String a1)
1646  set_value(Colored self, SparseParticleIndexKey a0, ParticleIndex a1)
1647  """
1648  return _IMP_display.Colored_set_value(self, *args)
1649 
1650  def remove_attribute(self, *args):
1651  r"""
1652  remove_attribute(Colored self, FloatKey a0)
1653  remove_attribute(Colored self, IntKey a0)
1654  remove_attribute(Colored self, FloatsKey a0)
1655  remove_attribute(Colored self, IntsKey a0)
1656  remove_attribute(Colored self, StringKey a0)
1657  remove_attribute(Colored self, ParticleIndexKey a0)
1658  remove_attribute(Colored self, ObjectKey a0)
1659  remove_attribute(Colored self, SparseFloatKey a0)
1660  remove_attribute(Colored self, SparseIntKey a0)
1661  remove_attribute(Colored self, SparseStringKey a0)
1662  remove_attribute(Colored self, SparseParticleIndexKey a0)
1663  """
1664  return _IMP_display.Colored_remove_attribute(self, *args)
1665 
1666  def has_attribute(self, *args):
1667  r"""
1668  has_attribute(Colored self, FloatKey a0) -> bool
1669  has_attribute(Colored self, IntKey a0) -> bool
1670  has_attribute(Colored self, FloatsKey a0) -> bool
1671  has_attribute(Colored self, IntsKey a0) -> bool
1672  has_attribute(Colored self, StringKey a0) -> bool
1673  has_attribute(Colored self, ParticleIndexKey a0) -> bool
1674  has_attribute(Colored self, ObjectKey a0) -> bool
1675  has_attribute(Colored self, SparseFloatKey a0) -> bool
1676  has_attribute(Colored self, SparseIntKey a0) -> bool
1677  has_attribute(Colored self, SparseStringKey a0) -> bool
1678  has_attribute(Colored self, SparseParticleIndexKey a0) -> bool
1679  """
1680  return _IMP_display.Colored_has_attribute(self, *args)
1681 
1682  def get_derivative(self, a0):
1683  r"""get_derivative(Colored self, FloatKey a0) -> double"""
1684  return _IMP_display.Colored_get_derivative(self, a0)
1685 
1686  def get_name(self):
1687  r"""get_name(Colored self) -> std::string"""
1688  return _IMP_display.Colored_get_name(self)
1689 
1690  def clear_caches(self):
1691  r"""clear_caches(Colored self)"""
1692  return _IMP_display.Colored_clear_caches(self)
1693 
1694  def set_name(self, a0):
1695  r"""set_name(Colored self, std::string a0)"""
1696  return _IMP_display.Colored_set_name(self, a0)
1697 
1698  def set_check_level(self, a0):
1699  r"""set_check_level(Colored self, IMP::CheckLevel a0)"""
1700  return _IMP_display.Colored_set_check_level(self, a0)
1701 
1702  def add_to_derivative(self, a0, a1, a2):
1703  r"""add_to_derivative(Colored self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1704  return _IMP_display.Colored_add_to_derivative(self, a0, a1, a2)
1705 
1706  def set_is_optimized(self, a0, a1):
1707  r"""set_is_optimized(Colored self, FloatKey a0, bool a1)"""
1708  return _IMP_display.Colored_set_is_optimized(self, a0, a1)
1709 
1710  def get_is_optimized(self, a0):
1711  r"""get_is_optimized(Colored self, FloatKey a0) -> bool"""
1712  return _IMP_display.Colored_get_is_optimized(self, a0)
1713 
1714  def get_check_level(self):
1715  r"""get_check_level(Colored self) -> IMP::CheckLevel"""
1716  return _IMP_display.Colored_get_check_level(self)
1717 
1718  def __eq__(self, *args):
1719  r"""
1720  __eq__(Colored self, Colored o) -> bool
1721  __eq__(Colored self, Particle d) -> bool
1722  """
1723  return _IMP_display.Colored___eq__(self, *args)
1724 
1725  def __ne__(self, *args):
1726  r"""
1727  __ne__(Colored self, Colored o) -> bool
1728  __ne__(Colored self, Particle d) -> bool
1729  """
1730  return _IMP_display.Colored___ne__(self, *args)
1731 
1732  def __le__(self, *args):
1733  r"""
1734  __le__(Colored self, Colored o) -> bool
1735  __le__(Colored self, Particle d) -> bool
1736  """
1737  return _IMP_display.Colored___le__(self, *args)
1738 
1739  def __lt__(self, *args):
1740  r"""
1741  __lt__(Colored self, Colored o) -> bool
1742  __lt__(Colored self, Particle d) -> bool
1743  """
1744  return _IMP_display.Colored___lt__(self, *args)
1745 
1746  def __ge__(self, *args):
1747  r"""
1748  __ge__(Colored self, Colored o) -> bool
1749  __ge__(Colored self, Particle d) -> bool
1750  """
1751  return _IMP_display.Colored___ge__(self, *args)
1752 
1753  def __gt__(self, *args):
1754  r"""
1755  __gt__(Colored self, Colored o) -> bool
1756  __gt__(Colored self, Particle d) -> bool
1757  """
1758  return _IMP_display.Colored___gt__(self, *args)
1759 
1760  def __hash__(self):
1761  r"""__hash__(Colored self) -> std::size_t"""
1762  return _IMP_display.Colored___hash__(self)
1763 
1764  def __str__(self):
1765  r"""__str__(Colored self) -> std::string"""
1766  return _IMP_display.Colored___str__(self)
1767 
1768  def __repr__(self):
1769  r"""__repr__(Colored self) -> std::string"""
1770  return _IMP_display.Colored___repr__(self)
1771 
1772  def _get_as_binary(self):
1773  r"""_get_as_binary(Colored self) -> PyObject *"""
1774  return _IMP_display.Colored__get_as_binary(self)
1775 
1776  def _set_from_binary(self, p):
1777  r"""_set_from_binary(Colored self, PyObject * p)"""
1778  return _IMP_display.Colored__set_from_binary(self, p)
1779 
1780  def __getstate__(self):
1781  p = self._get_as_binary()
1782  if len(self.__dict__) > 1:
1783  d = self.__dict__.copy()
1784  del d['this']
1785  p = (d, p)
1786  return p
1787 
1788  def __setstate__(self, p):
1789  if not hasattr(self, 'this'):
1790  self.__init__()
1791  if isinstance(p, tuple):
1792  d, p = p
1793  self.__dict__.update(d)
1794  return self._set_from_binary(p)
1795 
1796  __swig_destroy__ = _IMP_display.delete_Colored
1797 
1798 # Register Colored in _IMP_display:
1799 _IMP_display.Colored_swigregister(Colored)
1800 
1801 def __lshift__(out, n):
1802  r"""__lshift__(_ostream out, Colored n) -> _ostream"""
1803  return _IMP_display.__lshift__(out, n)
1804 class FilterGeometry(GeometryProcessor, Geometry):
1805  r"""Proxy of C++ IMP::display::FilterGeometry class."""
1806 
1807  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1808 
1809  def __init__(self, p):
1810  r"""__init__(FilterGeometry self, Plane3D p) -> FilterGeometry"""
1811  _IMP_display.FilterGeometry_swiginit(self, _IMP_display.new_FilterGeometry(p))
1812 
1813  def add_geometry(self, *args):
1814  r"""
1815  add_geometry(FilterGeometry self, Geometry g)
1816  add_geometry(FilterGeometry self, IMP::display::Geometries const & g)
1817  """
1818  return _IMP_display.FilterGeometry_add_geometry(self, *args)
1819 
1820  def get_version_info(self):
1821  r"""get_version_info(FilterGeometry self) -> VersionInfo"""
1822  return _IMP_display.FilterGeometry_get_version_info(self)
1823  __swig_destroy__ = _IMP_display.delete_FilterGeometry
1824 
1825  def __str__(self):
1826  r"""__str__(FilterGeometry self) -> std::string"""
1827  return _IMP_display.FilterGeometry___str__(self)
1828 
1829  def __repr__(self):
1830  r"""__repr__(FilterGeometry self) -> std::string"""
1831  return _IMP_display.FilterGeometry___repr__(self)
1832 
1833  @staticmethod
1834  def get_from(o):
1835  return _object_cast_to_FilterGeometry(o)
1836 
1837 
1838 # Register FilterGeometry in _IMP_display:
1839 _IMP_display.FilterGeometry_swigregister(FilterGeometry)
1840 class WriteOptimizerState(IMP.OptimizerState):
1841  r"""Proxy of C++ IMP::display::WriteOptimizerState class."""
1842 
1843  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1844 
1845  def __init__(self, m, w):
1846  r"""__init__(WriteOptimizerState self, Model m, WriterAdaptor w) -> WriteOptimizerState"""
1847  _IMP_display.WriteOptimizerState_swiginit(self, _IMP_display.new_WriteOptimizerState(m, w))
1848 
1849  def write(self, w):
1850  r"""write(WriteOptimizerState self, WriterAdaptor w)"""
1851  return _IMP_display.WriteOptimizerState_write(self, w)
1852  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)
1853  def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
1854  def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
1855  geometries = property(__get_geometries, __set_geometries, __del_geometries, doc="List of ##ucnames")
1856 
1857  def remove_geometry(self, d):
1858  r"""remove_geometry(WriteOptimizerState self, Geometry d)"""
1859  return _IMP_display.WriteOptimizerState_remove_geometry(self, d)
1860 
1861  def _python_index_geometry(self, d, start, stop):
1862  r"""_python_index_geometry(WriteOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1863  return _IMP_display.WriteOptimizerState__python_index_geometry(self, d, start, stop)
1864 
1865  def remove_geometries(self, d):
1866  r"""remove_geometries(WriteOptimizerState self, IMP::display::Geometries const & d)"""
1867  return _IMP_display.WriteOptimizerState_remove_geometries(self, d)
1868 
1869  def set_geometries(self, ps):
1870  r"""set_geometries(WriteOptimizerState self, IMP::display::Geometries const & ps)"""
1871  return _IMP_display.WriteOptimizerState_set_geometries(self, ps)
1872 
1873  def set_geometries_order(self, objs):
1874  r"""set_geometries_order(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1875  return _IMP_display.WriteOptimizerState_set_geometries_order(self, objs)
1876 
1877  def add_geometry(self, obj):
1878  r"""add_geometry(WriteOptimizerState self, Geometry obj) -> unsigned int"""
1879  return _IMP_display.WriteOptimizerState_add_geometry(self, obj)
1880 
1881  def add_geometries(self, objs):
1882  r"""add_geometries(WriteOptimizerState self, IMP::display::Geometries const & objs)"""
1883  return _IMP_display.WriteOptimizerState_add_geometries(self, objs)
1884 
1885  def clear_geometries(self):
1886  r"""clear_geometries(WriteOptimizerState self)"""
1887  return _IMP_display.WriteOptimizerState_clear_geometries(self)
1888 
1889  def get_number_of_geometries(self):
1890  r"""get_number_of_geometries(WriteOptimizerState self) -> unsigned int"""
1891  return _IMP_display.WriteOptimizerState_get_number_of_geometries(self)
1892 
1893  def get_has_geometries(self):
1894  r"""get_has_geometries(WriteOptimizerState self) -> bool"""
1895  return _IMP_display.WriteOptimizerState_get_has_geometries(self)
1896 
1897  def get_geometry(self, i):
1898  r"""get_geometry(WriteOptimizerState self, unsigned int i) -> Geometry"""
1899  return _IMP_display.WriteOptimizerState_get_geometry(self, i)
1900 
1901  def get_geometries(self):
1902  r"""get_geometries(WriteOptimizerState self) -> IMP::display::Geometries"""
1903  return _IMP_display.WriteOptimizerState_get_geometries(self)
1904 
1905  def erase_geometry(self, i):
1906  r"""erase_geometry(WriteOptimizerState self, unsigned int i)"""
1907  return _IMP_display.WriteOptimizerState_erase_geometry(self, i)
1908 
1909  def reserve_geometries(self, sz):
1910  r"""reserve_geometries(WriteOptimizerState self, unsigned int sz)"""
1911  return _IMP_display.WriteOptimizerState_reserve_geometries(self, sz)
1912 
1913  def get_version_info(self):
1914  r"""get_version_info(WriteOptimizerState self) -> VersionInfo"""
1915  return _IMP_display.WriteOptimizerState_get_version_info(self)
1916  __swig_destroy__ = _IMP_display.delete_WriteOptimizerState
1917 
1918  def __str__(self):
1919  r"""__str__(WriteOptimizerState self) -> std::string"""
1920  return _IMP_display.WriteOptimizerState___str__(self)
1921 
1922  def __repr__(self):
1923  r"""__repr__(WriteOptimizerState self) -> std::string"""
1924  return _IMP_display.WriteOptimizerState___repr__(self)
1925 
1926  @staticmethod
1927  def get_from(o):
1928  return _object_cast_to_WriteOptimizerState(o)
1929 
1930 
1931  def _get_jax(self, state_index):
1932  """No JAX implementation, but this OptimizerState should work
1933  correctly if JAX arrays are copied back to IMP.Model"""
1934  return None
1935 
1936 
1937 # Register WriteOptimizerState in _IMP_display:
1938 _IMP_display.WriteOptimizerState_swigregister(WriteOptimizerState)
1939 class SingletonGeometry(Geometry):
1940  r"""Proxy of C++ IMP::display::SingletonGeometry class."""
1941 
1942  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1943 
1944  def __init__(self, p):
1945  r"""__init__(SingletonGeometry self, Particle p) -> SingletonGeometry"""
1946  _IMP_display.SingletonGeometry_swiginit(self, _IMP_display.new_SingletonGeometry(p))
1947 
1948  def get_particle(self):
1949  r"""get_particle(SingletonGeometry self) -> Particle"""
1950  return _IMP_display.SingletonGeometry_get_particle(self)
1951  __swig_destroy__ = _IMP_display.delete_SingletonGeometry
1952 
1953  def __str__(self):
1954  r"""__str__(SingletonGeometry self) -> std::string"""
1955  return _IMP_display.SingletonGeometry___str__(self)
1956 
1957  def __repr__(self):
1958  r"""__repr__(SingletonGeometry self) -> std::string"""
1959  return _IMP_display.SingletonGeometry___repr__(self)
1960 
1961  @staticmethod
1962  def get_from(o):
1963  return _object_cast_to_SingletonGeometry(o)
1964 
1965 
1966 # Register SingletonGeometry in _IMP_display:
1967 _IMP_display.SingletonGeometry_swigregister(SingletonGeometry)
1968 class SingletonsGeometry(Geometry):
1969  r"""Proxy of C++ IMP::display::SingletonsGeometry class."""
1970 
1971  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1972 
1973  def __init__(self, *args):
1974  r"""
1975  __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc, Color c) -> SingletonsGeometry
1976  __init__(SingletonsGeometry self, _SingletonContainerAdaptor pc) -> SingletonsGeometry
1977  """
1978  _IMP_display.SingletonsGeometry_swiginit(self, _IMP_display.new_SingletonsGeometry(*args))
1979 
1980  def get_container(self):
1981  r"""get_container(SingletonsGeometry self) -> SingletonContainer"""
1982  return _IMP_display.SingletonsGeometry_get_container(self)
1983  __swig_destroy__ = _IMP_display.delete_SingletonsGeometry
1984 
1985  def __str__(self):
1986  r"""__str__(SingletonsGeometry self) -> std::string"""
1987  return _IMP_display.SingletonsGeometry___str__(self)
1988 
1989  def __repr__(self):
1990  r"""__repr__(SingletonsGeometry self) -> std::string"""
1991  return _IMP_display.SingletonsGeometry___repr__(self)
1992 
1993  @staticmethod
1994  def get_from(o):
1995  return _object_cast_to_SingletonsGeometry(o)
1996 
1997 
1998 # Register SingletonsGeometry in _IMP_display:
1999 _IMP_display.SingletonsGeometry_swigregister(SingletonsGeometry)
2000 class PairGeometry(Geometry):
2001  r"""Proxy of C++ IMP::display::PairGeometry class."""
2002 
2003  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2004 
2005  def __init__(self, pp):
2006  r"""__init__(PairGeometry self, IMP::ParticlePair const & pp) -> PairGeometry"""
2007  _IMP_display.PairGeometry_swiginit(self, _IMP_display.new_PairGeometry(pp))
2008 
2009  def get_particle_pair(self):
2010  r"""get_particle_pair(PairGeometry self) -> IMP::ParticlePair"""
2011  return _IMP_display.PairGeometry_get_particle_pair(self)
2012  __swig_destroy__ = _IMP_display.delete_PairGeometry
2013 
2014  def __str__(self):
2015  r"""__str__(PairGeometry self) -> std::string"""
2016  return _IMP_display.PairGeometry___str__(self)
2017 
2018  def __repr__(self):
2019  r"""__repr__(PairGeometry self) -> std::string"""
2020  return _IMP_display.PairGeometry___repr__(self)
2021 
2022  @staticmethod
2023  def get_from(o):
2024  return _object_cast_to_PairGeometry(o)
2025 
2026 
2027 # Register PairGeometry in _IMP_display:
2028 _IMP_display.PairGeometry_swigregister(PairGeometry)
2029 class PairsGeometry(Geometry):
2030  r"""Proxy of C++ IMP::display::PairsGeometry class."""
2031 
2032  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2033 
2034  def __init__(self, *args):
2035  r"""
2036  __init__(PairsGeometry self, PairContainer pc, Color c) -> PairsGeometry
2037  __init__(PairsGeometry self, PairContainer pc) -> PairsGeometry
2038  """
2039  _IMP_display.PairsGeometry_swiginit(self, _IMP_display.new_PairsGeometry(*args))
2040 
2041  def get_container(self):
2042  r"""get_container(PairsGeometry self) -> PairContainer"""
2043  return _IMP_display.PairsGeometry_get_container(self)
2044  __swig_destroy__ = _IMP_display.delete_PairsGeometry
2045 
2046  def __str__(self):
2047  r"""__str__(PairsGeometry self) -> std::string"""
2048  return _IMP_display.PairsGeometry___str__(self)
2049 
2050  def __repr__(self):
2051  r"""__repr__(PairsGeometry self) -> std::string"""
2052  return _IMP_display.PairsGeometry___repr__(self)
2053 
2054  @staticmethod
2055  def get_from(o):
2056  return _object_cast_to_PairsGeometry(o)
2057 
2058 
2059 # Register PairsGeometry in _IMP_display:
2060 _IMP_display.PairsGeometry_swigregister(PairsGeometry)
2061 class PymolWriter(TextWriter):
2062  r"""Proxy of C++ IMP::display::PymolWriter class."""
2063 
2064  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2065 
2066  def __init__(self, *args):
2067  r"""
2068  __init__(PymolWriter self, TextOutput of) -> PymolWriter
2069  __init__(PymolWriter self, std::string name) -> PymolWriter
2070  __init__(PymolWriter self, char const * name) -> PymolWriter
2071  """
2072  _IMP_display.PymolWriter_swiginit(self, _IMP_display.new_PymolWriter(*args))
2073 
2074  def get_version_info(self):
2075  r"""get_version_info(PymolWriter self) -> VersionInfo"""
2076  return _IMP_display.PymolWriter_get_version_info(self)
2077  __swig_destroy__ = _IMP_display.delete_PymolWriter
2078 
2079  def __str__(self):
2080  r"""__str__(PymolWriter self) -> std::string"""
2081  return _IMP_display.PymolWriter___str__(self)
2082 
2083  def __repr__(self):
2084  r"""__repr__(PymolWriter self) -> std::string"""
2085  return _IMP_display.PymolWriter___repr__(self)
2086 
2087  @staticmethod
2088  def get_from(o):
2089  return _object_cast_to_PymolWriter(o)
2090 
2091 
2092 # Register PymolWriter in _IMP_display:
2093 _IMP_display.PymolWriter_swigregister(PymolWriter)
2094 class RestraintGeometry(Geometry):
2095  r"""Proxy of C++ IMP::display::RestraintGeometry class."""
2096 
2097  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2098 
2099  def __init__(self, p):
2100  r"""__init__(RestraintGeometry self, Restraint p) -> RestraintGeometry"""
2101  _IMP_display.RestraintGeometry_swiginit(self, _IMP_display.new_RestraintGeometry(p))
2102 
2103  def get_restraint(self):
2104  r"""get_restraint(RestraintGeometry self) -> Restraint"""
2105  return _IMP_display.RestraintGeometry_get_restraint(self)
2106 
2107  def get_version_info(self):
2108  r"""get_version_info(RestraintGeometry self) -> VersionInfo"""
2109  return _IMP_display.RestraintGeometry_get_version_info(self)
2110  __swig_destroy__ = _IMP_display.delete_RestraintGeometry
2111 
2112  def __str__(self):
2113  r"""__str__(RestraintGeometry self) -> std::string"""
2114  return _IMP_display.RestraintGeometry___str__(self)
2115 
2116  def __repr__(self):
2117  r"""__repr__(RestraintGeometry self) -> std::string"""
2118  return _IMP_display.RestraintGeometry___repr__(self)
2119 
2120  @staticmethod
2121  def get_from(o):
2122  return _object_cast_to_RestraintGeometry(o)
2123 
2124 
2125 # Register RestraintGeometry in _IMP_display:
2126 _IMP_display.RestraintGeometry_swigregister(RestraintGeometry)
2127 class RestraintSetGeometry(Geometry):
2128  r"""Proxy of C++ IMP::display::RestraintSetGeometry class."""
2129 
2130  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2131 
2132  def __init__(self, p):
2133  r"""__init__(RestraintSetGeometry self, RestraintSet p) -> RestraintSetGeometry"""
2134  _IMP_display.RestraintSetGeometry_swiginit(self, _IMP_display.new_RestraintSetGeometry(p))
2135 
2136  def get_restraint_set(self):
2137  r"""get_restraint_set(RestraintSetGeometry self) -> RestraintSet"""
2138  return _IMP_display.RestraintSetGeometry_get_restraint_set(self)
2139 
2140  def get_version_info(self):
2141  r"""get_version_info(RestraintSetGeometry self) -> VersionInfo"""
2142  return _IMP_display.RestraintSetGeometry_get_version_info(self)
2143  __swig_destroy__ = _IMP_display.delete_RestraintSetGeometry
2144 
2145  def __str__(self):
2146  r"""__str__(RestraintSetGeometry self) -> std::string"""
2147  return _IMP_display.RestraintSetGeometry___str__(self)
2148 
2149  def __repr__(self):
2150  r"""__repr__(RestraintSetGeometry self) -> std::string"""
2151  return _IMP_display.RestraintSetGeometry___repr__(self)
2152 
2153  @staticmethod
2154  def get_from(o):
2155  return _object_cast_to_RestraintSetGeometry(o)
2156 
2157 
2158 # Register RestraintSetGeometry in _IMP_display:
2159 _IMP_display.RestraintSetGeometry_swigregister(RestraintSetGeometry)
2160 
2161 from . import _pivy
2162 PivyWriter= _pivy.get_writer(Writer)
2163 _object_types.append('PivyWriter')
2164 
2165 
2166 def get_module_name():
2167  r"""get_module_name() -> std::string const"""
2168  return _IMP_display.get_module_name()
2169 
2170 def get_module_version():
2171  r"""get_module_version() -> std::string const"""
2172  return _IMP_display.get_module_version()
2173 
2174 def get_example_path(fname):
2175  r"""get_example_path(std::string fname) -> std::string"""
2176  return _IMP_display.get_example_path(fname)
2177 
2178 def get_data_path(fname):
2179  r"""get_data_path(std::string fname) -> std::string"""
2180  return _IMP_display.get_data_path(fname)
2181 
2182 from . import _version_check
2183 _version_check.check_version(get_module_version())
2184 __version__ = get_module_version()
2185 
2186 
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