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