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