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