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