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