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