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