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