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