IMP logo
IMP Reference Guide  2.12.0
The Integrative Modeling Platform
rmf/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.10
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 # This wrapper is part of IMP,
8 # Copyright 2007-2019 IMP Inventors. All rights reserved.
9 
10 from __future__ import print_function, division, absolute_import
11 
12 
13 
14 
15 from sys import version_info as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17  def swig_import_helper():
18  import importlib
19  pkg = __name__.rpartition('.')[0]
20  mname = '.'.join((pkg, '_IMP_rmf')).lstrip('.')
21  try:
22  return importlib.import_module(mname)
23  except ImportError:
24  return importlib.import_module('_IMP_rmf')
25  _IMP_rmf = swig_import_helper()
26  del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28  def swig_import_helper():
29  from os.path import dirname
30  import imp
31  fp = None
32  try:
33  fp, pathname, description = imp.find_module('_IMP_rmf', [dirname(__file__)])
34  except ImportError:
35  import _IMP_rmf
36  return _IMP_rmf
37  if fp is not None:
38  try:
39  _mod = imp.load_module('_IMP_rmf', fp, pathname, description)
40  finally:
41  fp.close()
42  return _mod
43  _IMP_rmf = swig_import_helper()
44  del swig_import_helper
45 else:
46  import _IMP_rmf
47 del _swig_python_version_info
48 try:
49  _swig_property = property
50 except NameError:
51  pass # Python < 2.2 doesn't have 'property'.
52 
53 try:
54  import builtins as __builtin__
55 except ImportError:
56  import __builtin__
57 
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59  if (name == "thisown"):
60  return self.this.own(value)
61  if (name == "this"):
62  if type(value).__name__ == 'SwigPyObject':
63  self.__dict__[name] = value
64  return
65  method = class_type.__swig_setmethods__.get(name, None)
66  if method:
67  return method(self, value)
68  if (not static):
69  object.__setattr__(self, name, value)
70  else:
71  raise AttributeError("You cannot add attributes to %s" % self)
72 
73 
74 def _swig_setattr(self, class_type, name, value):
75  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
76 
77 
78 def _swig_getattr(self, class_type, name):
79  if (name == "thisown"):
80  return self.this.own()
81  method = class_type.__swig_getmethods__.get(name, None)
82  if method:
83  return method(self)
84  raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
85 
86 
87 def _swig_repr(self):
88  try:
89  strthis = "proxy of " + self.this.__repr__()
90  except __builtin__.Exception:
91  strthis = ""
92  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
93 
94 
95 def _swig_setattr_nondynamic_method(set):
96  def set_attr(self, name, value):
97  if (name == "thisown"):
98  return self.this.own(value)
99  if hasattr(self, name) or (name == "this"):
100  set(self, name, value)
101  else:
102  raise AttributeError("You cannot add attributes to %s" % self)
103  return set_attr
104 
105 
106 try:
107  import weakref
108  weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110  weakref_proxy = lambda x: x
111 
112 
113 class IMP_RMF_SwigPyIterator(object):
114  """Proxy of C++ swig::IMP_RMF_SwigPyIterator class."""
115 
116  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
117 
118  def __init__(self, *args, **kwargs):
119  raise AttributeError("No constructor defined - class is abstract")
120  __repr__ = _swig_repr
121  __swig_destroy__ = _IMP_rmf.delete_IMP_RMF_SwigPyIterator
122  __del__ = lambda self: None
123 
124  def value(self):
125  """value(IMP_RMF_SwigPyIterator self) -> PyObject *"""
126  return _IMP_rmf.IMP_RMF_SwigPyIterator_value(self)
127 
128 
129  def incr(self, n=1):
130  """
131  incr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator
132  incr(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator
133  """
134  return _IMP_rmf.IMP_RMF_SwigPyIterator_incr(self, n)
135 
136 
137  def decr(self, n=1):
138  """
139  decr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator
140  decr(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator
141  """
142  return _IMP_rmf.IMP_RMF_SwigPyIterator_decr(self, n)
143 
144 
145  def distance(self, x):
146  """distance(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t"""
147  return _IMP_rmf.IMP_RMF_SwigPyIterator_distance(self, x)
148 
149 
150  def equal(self, x):
151  """equal(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
152  return _IMP_rmf.IMP_RMF_SwigPyIterator_equal(self, x)
153 
154 
155  def copy(self):
156  """copy(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator"""
157  return _IMP_rmf.IMP_RMF_SwigPyIterator_copy(self)
158 
159 
160  def next(self):
161  """next(IMP_RMF_SwigPyIterator self) -> PyObject *"""
162  return _IMP_rmf.IMP_RMF_SwigPyIterator_next(self)
163 
164 
165  def __next__(self):
166  """__next__(IMP_RMF_SwigPyIterator self) -> PyObject *"""
167  return _IMP_rmf.IMP_RMF_SwigPyIterator___next__(self)
168 
169 
170  def previous(self):
171  """previous(IMP_RMF_SwigPyIterator self) -> PyObject *"""
172  return _IMP_rmf.IMP_RMF_SwigPyIterator_previous(self)
173 
174 
175  def advance(self, n):
176  """advance(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
177  return _IMP_rmf.IMP_RMF_SwigPyIterator_advance(self, n)
178 
179 
180  def __eq__(self, x):
181  """__eq__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
182  return _IMP_rmf.IMP_RMF_SwigPyIterator___eq__(self, x)
183 
184 
185  def __ne__(self, x):
186  """__ne__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
187  return _IMP_rmf.IMP_RMF_SwigPyIterator___ne__(self, x)
188 
189 
190  def __iadd__(self, n):
191  """__iadd__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
192  return _IMP_rmf.IMP_RMF_SwigPyIterator___iadd__(self, n)
193 
194 
195  def __isub__(self, n):
196  """__isub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
197  return _IMP_rmf.IMP_RMF_SwigPyIterator___isub__(self, n)
198 
199 
200  def __add__(self, n):
201  """__add__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
202  return _IMP_rmf.IMP_RMF_SwigPyIterator___add__(self, n)
203 
204 
205  def __sub__(self, *args):
206  """
207  __sub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator
208  __sub__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t
209  """
210  return _IMP_rmf.IMP_RMF_SwigPyIterator___sub__(self, *args)
211 
212  def __iter__(self):
213  return self
214 IMP_RMF_SwigPyIterator_swigregister = _IMP_rmf.IMP_RMF_SwigPyIterator_swigregister
215 IMP_RMF_SwigPyIterator_swigregister(IMP_RMF_SwigPyIterator)
216 
217 
218 _value_types=[]
219 _object_types=[]
220 _raii_types=[]
221 _plural_types=[]
222 
223 IMP_DEBUG = _IMP_rmf.IMP_DEBUG
224 IMP_RELEASE = _IMP_rmf.IMP_RELEASE
225 IMP_SILENT = _IMP_rmf.IMP_SILENT
226 IMP_PROGRESS = _IMP_rmf.IMP_PROGRESS
227 IMP_TERSE = _IMP_rmf.IMP_TERSE
228 IMP_VERBOSE = _IMP_rmf.IMP_VERBOSE
229 IMP_MEMORY = _IMP_rmf.IMP_MEMORY
230 IMP_NONE = _IMP_rmf.IMP_NONE
231 IMP_USAGE = _IMP_rmf.IMP_USAGE
232 IMP_INTERNAL = _IMP_rmf.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_rmf.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_rmf.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rmf.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_rmf.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_NUMPY = _IMP_rmf.IMP_KERNEL_HAS_NUMPY
239 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_rmf.IMP_KERNEL_HAS_GPERFTOOLS
240 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
241 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
242 IMPKERNEL_SHOW_WARNINGS = _IMP_rmf.IMPKERNEL_SHOW_WARNINGS
243 
244 import sys
245 class _DirectorObjects(object):
246  """@internal Simple class to keep references to director objects
247  to prevent premature deletion."""
248  def __init__(self):
249  self._objects = []
250  def register(self, obj):
251  """Take a reference to a director object; will only work for
252  refcounted C++ classes"""
253  if hasattr(obj, 'get_ref_count'):
254  self._objects.append(obj)
255  def cleanup(self):
256  """Only drop our reference and allow cleanup by Python if no other
257  Python references exist (we hold 3 references: one in self._objects,
258  one in x, and one in the argument list for getrefcount) *and* no
259  other C++ references exist (the Python object always holds one)"""
260  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
261  or x.get_ref_count() > 1]
262 # Do in two steps so the references are kept until the end of the
263 # function (deleting references may trigger a fresh call to this method)
264  self._objects = objs
265  def get_object_count(self):
266  """Get number of director objects (useful for testing only)"""
267  return len(self._objects)
268 _director_objects = _DirectorObjects()
269 
270 class _ostream(object):
271  """Proxy of C++ std::ostream class."""
272 
273  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
274 
275  def __init__(self, *args, **kwargs):
276  raise AttributeError("No constructor defined")
277  __repr__ = _swig_repr
278 
279  def write(self, osa_buf):
280  """write(_ostream self, char const * osa_buf)"""
281  return _IMP_rmf._ostream_write(self, osa_buf)
282 
283 _ostream_swigregister = _IMP_rmf._ostream_swigregister
284 _ostream_swigregister(_ostream)
285 
286 IMP_COMPILER_HAS_OVERRIDE = _IMP_rmf.IMP_COMPILER_HAS_OVERRIDE
287 IMP_COMPILER_HAS_FINAL = _IMP_rmf.IMP_COMPILER_HAS_FINAL
288 IMP_HAS_NOEXCEPT = _IMP_rmf.IMP_HAS_NOEXCEPT
289 IMP_C_OPEN_BINARY = _IMP_rmf.IMP_C_OPEN_BINARY
290 import IMP
291 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM
292 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
293 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM
294 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM
295 IMP_CGAL_HAS_NUMPY = _IMP_rmf.IMP_CGAL_HAS_NUMPY
296 IMPCGAL_SHOW_WARNINGS = _IMP_rmf.IMPCGAL_SHOW_WARNINGS
297 import IMP.cgal
298 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL
299 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
300 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
301 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM
302 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM
303 IMP_ALGEBRA_HAS_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_CGAL
304 IMP_ALGEBRA_HAS_NUMPY = _IMP_rmf.IMP_ALGEBRA_HAS_NUMPY
305 IMP_ALGEBRA_HAS_ANN = _IMP_rmf.IMP_ALGEBRA_HAS_ANN
306 IMPALGEBRA_SHOW_WARNINGS = _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS
307 import IMP.algebra
308 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL
309 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
310 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
311 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM
312 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM
313 IMP_DISPLAY_HAS_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_CGAL
314 IMP_DISPLAY_HAS_NUMPY = _IMP_rmf.IMP_DISPLAY_HAS_NUMPY
315 IMPDISPLAY_SHOW_WARNINGS = _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS
316 import IMP.display
317 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
318 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
319 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
320 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
321 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
322 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL
323 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5
324 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_NUMPY
325 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
326 import IMP.score_functor
327 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
328 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
330 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
331 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
332 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
333 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
334 IMP_CORE_HAS_HDF5 = _IMP_rmf.IMP_CORE_HAS_HDF5
335 IMP_CORE_HAS_NUMPY = _IMP_rmf.IMP_CORE_HAS_NUMPY
336 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
337 import IMP.core
338 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
339 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
340 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
341 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
342 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
343 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
344 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
345 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
346 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
347 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
348 IMP_CONTAINER_HAS_HDF5 = _IMP_rmf.IMP_CONTAINER_HAS_HDF5
349 IMP_CONTAINER_HAS_NUMPY = _IMP_rmf.IMP_CONTAINER_HAS_NUMPY
350 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_rmf.IMP_CONTAINER_HAS_PYTHON_IHM
351 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_rmf.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
352 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_rmf.IMP_CONTAINER_HAS_ROBIN_MAP
353 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
354 import IMP.container
355 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
356 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
357 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
358 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
359 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
360 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
361 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
362 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
363 IMP_ATOM_HAS_HDF5 = _IMP_rmf.IMP_ATOM_HAS_HDF5
364 IMP_ATOM_HAS_NUMPY = _IMP_rmf.IMP_ATOM_HAS_NUMPY
365 IMP_ATOM_HAS_PYTHON_IHM = _IMP_rmf.IMP_ATOM_HAS_PYTHON_IHM
366 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
367 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
368 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
369 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
370 IMP_CHAIN_TYPE_INDEX = _IMP_rmf.IMP_CHAIN_TYPE_INDEX
371 import IMP.atom
372 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
373 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
374 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
375 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
376 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
377 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
378 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
379 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
380 IMP_RMF_HAS_HDF5 = _IMP_rmf.IMP_RMF_HAS_HDF5
381 IMP_RMF_HAS_NUMPY = _IMP_rmf.IMP_RMF_HAS_NUMPY
382 IMP_RMF_HAS_PYTHON_IHM = _IMP_rmf.IMP_RMF_HAS_PYTHON_IHM
383 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
384 import RMF
385 
386 _object_types.append("SaveOptimizerState")
387 
388 
389 def _object_cast_to_SaveOptimizerState(o):
390  """_object_cast_to_SaveOptimizerState(Object o) -> SaveOptimizerState"""
391  return _IMP_rmf._object_cast_to_SaveOptimizerState(o)
392 
393 _object_types.append("LoadLink")
394 
395 
396 def _object_cast_to_LoadLink(o):
397  """_object_cast_to_LoadLink(Object o) -> LoadLink"""
398  return _IMP_rmf._object_cast_to_LoadLink(o)
399 
400 _object_types.append("SaveLink")
401 
402 
403 def _object_cast_to_SaveLink(o):
404  """_object_cast_to_SaveLink(Object o) -> SaveLink"""
405  return _IMP_rmf._object_cast_to_SaveLink(o)
406 
407 _object_types.append("HierarchySaveLink")
408 
409 
410 def _object_cast_to_HierarchySaveLink(o):
411  """_object_cast_to_HierarchySaveLink(Object o) -> HierarchySaveLink"""
412  return _IMP_rmf._object_cast_to_HierarchySaveLink(o)
413 
414 _object_types.append("HierarchyLoadLink")
415 
416 
417 def _object_cast_to_HierarchyLoadLink(o):
418  """_object_cast_to_HierarchyLoadLink(Object o) -> HierarchyLoadLink"""
419  return _IMP_rmf._object_cast_to_HierarchyLoadLink(o)
420 class LoadLink(IMP.Object):
421  """Proxy of C++ IMP::rmf::LoadLink class."""
422 
423  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
424 
425  def do_load(self, fh):
426  """do_load(LoadLink self, FileConstHandle fh)"""
427  return _IMP_rmf.LoadLink_do_load(self, fh)
428 
429 
430  def __init__(self, name):
431  """__init__(IMP::rmf::LoadLink self, std::string name) -> LoadLink"""
432  if self.__class__ == LoadLink:
433  _self = None
434  else:
435  _self = self
436  this = _IMP_rmf.new_LoadLink(_self, name)
437  try:
438  self.this.append(this)
439  except __builtin__.Exception:
440  self.this = this
441 
442  if self.__class__ != LoadLink:
443  _director_objects.register(self)
444 
445 
446 
447 
448  def load(self, fh):
449  """load(LoadLink self, FileConstHandle fh)"""
450  return _IMP_rmf.LoadLink_load(self, fh)
451 
452  __swig_destroy__ = _IMP_rmf.delete_LoadLink
453  __del__ = lambda self: None
454 
455  def __str__(self):
456  """__str__(LoadLink self) -> std::string"""
457  return _IMP_rmf.LoadLink___str__(self)
458 
459 
460  def __repr__(self):
461  """__repr__(LoadLink self) -> std::string"""
462  return _IMP_rmf.LoadLink___repr__(self)
463 
464 
465  @staticmethod
466  def get_from(o):
467  return _object_cast_to_LoadLink(o)
468 
469 
470  def get_type_name(self):
471  return self.__class__.__name__
472  def do_show(self, out):
473  pass
474  def get_version_info(self):
475  if"IMP::rmf" == "IMP":
476  return VersionInfo(self.__module__,
477  __import__(self.__module__).get_module_version())
478  else:
479  return IMP.VersionInfo(self.__module__,
480  __import__(self.__module__).get_module_version())
481  @staticmethod
482  def get_from(o):
483  return _object_cast_to_LoadLink(o)
484 
485  def __disown__(self):
486  self.this.disown()
487  _IMP_rmf.disown_LoadLink(self)
488  return weakref_proxy(self)
489 
490  def do_destroy(self):
491  """do_destroy(LoadLink self)"""
492  return _IMP_rmf.LoadLink_do_destroy(self)
493 
494 LoadLink_swigregister = _IMP_rmf.LoadLink_swigregister
495 LoadLink_swigregister(LoadLink)
496 
497 class SaveLink(IMP.Object):
498  """Proxy of C++ IMP::rmf::SaveLink class."""
499 
500  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
501 
502  def do_save(self, hf):
503  """do_save(SaveLink self, FileHandle hf)"""
504  return _IMP_rmf.SaveLink_do_save(self, hf)
505 
506 
507  def __init__(self, name):
508  """__init__(IMP::rmf::SaveLink self, std::string name) -> SaveLink"""
509  if self.__class__ == SaveLink:
510  _self = None
511  else:
512  _self = self
513  this = _IMP_rmf.new_SaveLink(_self, name)
514  try:
515  self.this.append(this)
516  except __builtin__.Exception:
517  self.this = this
518 
519  if self.__class__ != SaveLink:
520  _director_objects.register(self)
521 
522 
523 
524 
525  def save(self, fh):
526  """save(SaveLink self, FileHandle fh)"""
527  return _IMP_rmf.SaveLink_save(self, fh)
528 
529  __swig_destroy__ = _IMP_rmf.delete_SaveLink
530  __del__ = lambda self: None
531 
532  def __str__(self):
533  """__str__(SaveLink self) -> std::string"""
534  return _IMP_rmf.SaveLink___str__(self)
535 
536 
537  def __repr__(self):
538  """__repr__(SaveLink self) -> std::string"""
539  return _IMP_rmf.SaveLink___repr__(self)
540 
541 
542  @staticmethod
543  def get_from(o):
544  return _object_cast_to_SaveLink(o)
545 
546 
547  def get_type_name(self):
548  return self.__class__.__name__
549  def do_show(self, out):
550  pass
551  def get_version_info(self):
552  if"IMP::rmf" == "IMP":
553  return VersionInfo(self.__module__,
554  __import__(self.__module__).get_module_version())
555  else:
556  return IMP.VersionInfo(self.__module__,
557  __import__(self.__module__).get_module_version())
558  @staticmethod
559  def get_from(o):
560  return _object_cast_to_SaveLink(o)
561 
562  def __disown__(self):
563  self.this.disown()
564  _IMP_rmf.disown_SaveLink(self)
565  return weakref_proxy(self)
566 
567  def do_destroy(self):
568  """do_destroy(SaveLink self)"""
569  return _IMP_rmf.SaveLink_do_destroy(self)
570 
571 SaveLink_swigregister = _IMP_rmf.SaveLink_swigregister
572 SaveLink_swigregister(SaveLink)
573 
574 
575 def add_hierarchies(*args):
576  """
577  add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
578  add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
579  """
580  return _IMP_rmf.add_hierarchies(*args)
581 
582 def add_hierarchy(fh, hs):
583  """add_hierarchy(FileHandle fh, Hierarchy hs)"""
584  return _IMP_rmf.add_hierarchy(fh, hs)
585 
586 def create_hierarchies(fh, m):
587  """create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
588  return _IMP_rmf.create_hierarchies(fh, m)
589 
590 def link_hierarchies(fh, hs):
591  """link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
592  return _IMP_rmf.link_hierarchies(fh, hs)
593 
594 def add_restraints(*args):
595  """
596  add_restraints(FileHandle fh, IMP::Restraints const & hs)
597  add_restraints(NodeHandle fh, IMP::Restraints const & hs)
598  """
599  return _IMP_rmf.add_restraints(*args)
600 
601 def add_restraint(fh, hs):
602  """add_restraint(FileHandle fh, Restraint hs)"""
603  return _IMP_rmf.add_restraint(fh, hs)
604 
605 def create_restraints(fh, m):
606  """create_restraints(FileConstHandle fh, Model m) -> IMP::Restraints"""
607  return _IMP_rmf.create_restraints(fh, m)
608 
609 def link_restraints(fh, hs):
610  """link_restraints(FileConstHandle fh, IMP::Restraints const & hs)"""
611  return _IMP_rmf.link_restraints(fh, hs)
612 
613 def add_restraints_as_bonds(fh, rs):
614  """add_restraints_as_bonds(FileHandle fh, IMP::Restraints const & rs)"""
615  return _IMP_rmf.add_restraints_as_bonds(fh, rs)
616 
617 def set_maximum_number_of_terms(fh, num):
618  """set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
619  return _IMP_rmf.set_maximum_number_of_terms(fh, num)
620 
621 def add_particles(*args):
622  """
623  add_particles(FileHandle fh, IMP::ParticlesTemp const & hs)
624  add_particles(NodeHandle fh, IMP::ParticlesTemp const & hs)
625  """
626  return _IMP_rmf.add_particles(*args)
627 
628 def add_particle(fh, hs):
629  """add_particle(FileHandle fh, Particle hs)"""
630  return _IMP_rmf.add_particle(fh, hs)
631 
632 def create_particles(fh, m):
633  """create_particles(FileConstHandle fh, Model m) -> IMP::ParticlesTemp"""
634  return _IMP_rmf.create_particles(fh, m)
635 
636 def link_particles(fh, hs):
637  """link_particles(FileConstHandle fh, IMP::ParticlesTemp const & hs)"""
638  return _IMP_rmf.link_particles(fh, hs)
639 
640 def add_geometries(*args):
641  """
642  add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
643  add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
644  """
645  return _IMP_rmf.add_geometries(*args)
646 
647 def add_static_geometries(parent, r):
648  """add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
649  return _IMP_rmf.add_static_geometries(parent, r)
650 
651 def add_geometry(file, r):
652  """add_geometry(FileHandle file, Geometry r)"""
653  return _IMP_rmf.add_geometry(file, r)
654 
655 def create_geometries(parent):
656  """create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
657  return _IMP_rmf.create_geometries(parent)
658 
659 def link_geometries(parent, r):
660  """link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
661  return _IMP_rmf.link_geometries(parent, r)
662 
663 def set_association(nh, o, overwrite=False):
664  """
665  set_association(NodeConstHandle nh, Object o, bool overwrite=False)
666  set_association(NodeConstHandle nh, Object o)
667  """
668  return _IMP_rmf.set_association(nh, o, overwrite)
669 
670 def get_node_from_association(*args):
671  """
672  get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
673  get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
674  """
675  return _IMP_rmf.get_node_from_association(*args)
676 
677 def get_has_associated_node(nh, oi):
678  """get_has_associated_node(FileConstHandle nh, Object oi) -> bool"""
679  return _IMP_rmf.get_has_associated_node(nh, oi)
680 class SaveOptimizerState(IMP.OptimizerState):
681  """Proxy of C++ IMP::rmf::SaveOptimizerState class."""
682 
683  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
684 
685  def __init__(self, m, fh):
686  """__init__(IMP::rmf::SaveOptimizerState self, Model m, FileHandle fh) -> SaveOptimizerState"""
687  this = _IMP_rmf.new_SaveOptimizerState(m, fh)
688  try:
689  self.this.append(this)
690  except __builtin__.Exception:
691  self.this = this
692 
693  def remove_hierarchy(self, d):
694  """remove_hierarchy(SaveOptimizerState self, Particle d)"""
695  return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, d)
696 
697 
698  def remove_hierarchies(self, d):
699  """remove_hierarchies(SaveOptimizerState self, IMP::Particles const & d)"""
700  return _IMP_rmf.SaveOptimizerState_remove_hierarchies(self, d)
701 
702 
703  def set_hierarchies(self, ps):
704  """set_hierarchies(SaveOptimizerState self, IMP::Particles const & ps)"""
705  return _IMP_rmf.SaveOptimizerState_set_hierarchies(self, ps)
706 
707 
708  def set_hierarchies_order(self, objs):
709  """set_hierarchies_order(SaveOptimizerState self, IMP::Particles const & objs)"""
710  return _IMP_rmf.SaveOptimizerState_set_hierarchies_order(self, objs)
711 
712 
713  def add_hierarchy(self, obj):
714  """add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
715  return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, obj)
716 
717 
718  def add_hierarchies(self, objs):
719  """add_hierarchies(SaveOptimizerState self, IMP::Particles const & objs)"""
720  return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, objs)
721 
722 
723  def clear_hierarchies(self):
724  """clear_hierarchies(SaveOptimizerState self)"""
725  return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
726 
727 
728  def get_number_of_hierarchies(self):
729  """get_number_of_hierarchies(SaveOptimizerState self) -> unsigned int"""
730  return _IMP_rmf.SaveOptimizerState_get_number_of_hierarchies(self)
731 
732 
733  def get_has_hierarchies(self):
734  """get_has_hierarchies(SaveOptimizerState self) -> bool"""
735  return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
736 
737 
738  def get_hierarchy(self, i):
739  """get_hierarchy(SaveOptimizerState self, unsigned int i) -> Particle"""
740  return _IMP_rmf.SaveOptimizerState_get_hierarchy(self, i)
741 
742 
743  def get_hierarchies(self):
744  """get_hierarchies(SaveOptimizerState self) -> IMP::Particles"""
745  return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
746 
747 
748  def reserve_hierarchies(self, sz):
749  """reserve_hierarchies(SaveOptimizerState self, unsigned int sz)"""
750  return _IMP_rmf.SaveOptimizerState_reserve_hierarchies(self, sz)
751 
752 
753  def remove_restraint(self, d):
754  """remove_restraint(SaveOptimizerState self, Restraint d)"""
755  return _IMP_rmf.SaveOptimizerState_remove_restraint(self, d)
756 
757 
758  def remove_restraints(self, d):
759  """remove_restraints(SaveOptimizerState self, IMP::Restraints const & d)"""
760  return _IMP_rmf.SaveOptimizerState_remove_restraints(self, d)
761 
762 
763  def set_restraints(self, ps):
764  """set_restraints(SaveOptimizerState self, IMP::Restraints const & ps)"""
765  return _IMP_rmf.SaveOptimizerState_set_restraints(self, ps)
766 
767 
768  def set_restraints_order(self, objs):
769  """set_restraints_order(SaveOptimizerState self, IMP::Restraints const & objs)"""
770  return _IMP_rmf.SaveOptimizerState_set_restraints_order(self, objs)
771 
772 
773  def add_restraint(self, obj):
774  """add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
775  return _IMP_rmf.SaveOptimizerState_add_restraint(self, obj)
776 
777 
778  def add_restraints(self, objs):
779  """add_restraints(SaveOptimizerState self, IMP::Restraints const & objs)"""
780  return _IMP_rmf.SaveOptimizerState_add_restraints(self, objs)
781 
782 
783  def clear_restraints(self):
784  """clear_restraints(SaveOptimizerState self)"""
785  return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
786 
787 
788  def get_number_of_restraints(self):
789  """get_number_of_restraints(SaveOptimizerState self) -> unsigned int"""
790  return _IMP_rmf.SaveOptimizerState_get_number_of_restraints(self)
791 
792 
793  def get_has_restraints(self):
794  """get_has_restraints(SaveOptimizerState self) -> bool"""
795  return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
796 
797 
798  def get_restraint(self, i):
799  """get_restraint(SaveOptimizerState self, unsigned int i) -> Restraint"""
800  return _IMP_rmf.SaveOptimizerState_get_restraint(self, i)
801 
802 
803  def get_restraints(self):
804  """get_restraints(SaveOptimizerState self) -> IMP::Restraints"""
805  return _IMP_rmf.SaveOptimizerState_get_restraints(self)
806 
807 
808  def reserve_restraints(self, sz):
809  """reserve_restraints(SaveOptimizerState self, unsigned int sz)"""
810  return _IMP_rmf.SaveOptimizerState_reserve_restraints(self, sz)
811 
812 
813  def remove_particle(self, d):
814  """remove_particle(SaveOptimizerState self, Particle d)"""
815  return _IMP_rmf.SaveOptimizerState_remove_particle(self, d)
816 
817 
818  def remove_particles(self, d):
819  """remove_particles(SaveOptimizerState self, IMP::Particles const & d)"""
820  return _IMP_rmf.SaveOptimizerState_remove_particles(self, d)
821 
822 
823  def set_particles(self, ps):
824  """set_particles(SaveOptimizerState self, IMP::Particles const & ps)"""
825  return _IMP_rmf.SaveOptimizerState_set_particles(self, ps)
826 
827 
828  def set_particles_order(self, objs):
829  """set_particles_order(SaveOptimizerState self, IMP::Particles const & objs)"""
830  return _IMP_rmf.SaveOptimizerState_set_particles_order(self, objs)
831 
832 
833  def add_particle(self, obj):
834  """add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
835  return _IMP_rmf.SaveOptimizerState_add_particle(self, obj)
836 
837 
838  def add_particles(self, objs):
839  """add_particles(SaveOptimizerState self, IMP::Particles const & objs)"""
840  return _IMP_rmf.SaveOptimizerState_add_particles(self, objs)
841 
842 
843  def clear_particles(self):
844  """clear_particles(SaveOptimizerState self)"""
845  return _IMP_rmf.SaveOptimizerState_clear_particles(self)
846 
847 
848  def get_number_of_particles(self):
849  """get_number_of_particles(SaveOptimizerState self) -> unsigned int"""
850  return _IMP_rmf.SaveOptimizerState_get_number_of_particles(self)
851 
852 
853  def get_has_particles(self):
854  """get_has_particles(SaveOptimizerState self) -> bool"""
855  return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
856 
857 
858  def get_particle(self, i):
859  """get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
860  return _IMP_rmf.SaveOptimizerState_get_particle(self, i)
861 
862 
863  def get_particles(self):
864  """get_particles(SaveOptimizerState self) -> IMP::Particles"""
865  return _IMP_rmf.SaveOptimizerState_get_particles(self)
866 
867 
868  def reserve_particles(self, sz):
869  """reserve_particles(SaveOptimizerState self, unsigned int sz)"""
870  return _IMP_rmf.SaveOptimizerState_reserve_particles(self, sz)
871 
872 
873  def remove_geometry(self, d):
874  """remove_geometry(SaveOptimizerState self, Geometry d)"""
875  return _IMP_rmf.SaveOptimizerState_remove_geometry(self, d)
876 
877 
878  def remove_geometries(self, d):
879  """remove_geometries(SaveOptimizerState self, IMP::display::Geometries const & d)"""
880  return _IMP_rmf.SaveOptimizerState_remove_geometries(self, d)
881 
882 
883  def set_geometries(self, ps):
884  """set_geometries(SaveOptimizerState self, IMP::display::Geometries const & ps)"""
885  return _IMP_rmf.SaveOptimizerState_set_geometries(self, ps)
886 
887 
888  def set_geometries_order(self, objs):
889  """set_geometries_order(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
890  return _IMP_rmf.SaveOptimizerState_set_geometries_order(self, objs)
891 
892 
893  def add_geometry(self, obj):
894  """add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
895  return _IMP_rmf.SaveOptimizerState_add_geometry(self, obj)
896 
897 
898  def add_geometries(self, objs):
899  """add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
900  return _IMP_rmf.SaveOptimizerState_add_geometries(self, objs)
901 
902 
903  def clear_geometries(self):
904  """clear_geometries(SaveOptimizerState self)"""
905  return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
906 
907 
908  def get_number_of_geometries(self):
909  """get_number_of_geometries(SaveOptimizerState self) -> unsigned int"""
910  return _IMP_rmf.SaveOptimizerState_get_number_of_geometries(self)
911 
912 
913  def get_has_geometries(self):
914  """get_has_geometries(SaveOptimizerState self) -> bool"""
915  return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
916 
917 
918  def get_geometry(self, i):
919  """get_geometry(SaveOptimizerState self, unsigned int i) -> Geometry"""
920  return _IMP_rmf.SaveOptimizerState_get_geometry(self, i)
921 
922 
923  def get_geometries(self):
924  """get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
925  return _IMP_rmf.SaveOptimizerState_get_geometries(self)
926 
927 
928  def reserve_geometries(self, sz):
929  """reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
930  return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, sz)
931 
932 
933  def set_simulator(self, sim):
934  """set_simulator(SaveOptimizerState self, Simulator sim)"""
935  return _IMP_rmf.SaveOptimizerState_set_simulator(self, sim)
936 
937 
938  def update_always(self, *args):
939  """
940  update_always(SaveOptimizerState self, std::string name)
941  update_always(SaveOptimizerState self)
942  """
943  return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
944 
945 
946  def do_update(self, call_num):
947  """do_update(SaveOptimizerState self, unsigned int call_num)"""
948  return _IMP_rmf.SaveOptimizerState_do_update(self, call_num)
949 
950 
951  def get_version_info(self):
952  """get_version_info(SaveOptimizerState self) -> VersionInfo"""
953  return _IMP_rmf.SaveOptimizerState_get_version_info(self)
954 
955 
956  def __str__(self):
957  """__str__(SaveOptimizerState self) -> std::string"""
958  return _IMP_rmf.SaveOptimizerState___str__(self)
959 
960 
961  def __repr__(self):
962  """__repr__(SaveOptimizerState self) -> std::string"""
963  return _IMP_rmf.SaveOptimizerState___repr__(self)
964 
965 
966  @staticmethod
967  def get_from(o):
968  return _object_cast_to_SaveOptimizerState(o)
969 
970 SaveOptimizerState_swigregister = _IMP_rmf.SaveOptimizerState_swigregister
971 SaveOptimizerState_swigregister(SaveOptimizerState)
972 
973 
974 def load_frame(file, frame):
975  """load_frame(FileConstHandle file, FrameID frame)"""
976  return _IMP_rmf.load_frame(file, frame)
977 
978 def save_frame(*args):
979  """
980  save_frame(FileHandle file, std::string name) -> FrameID
981  save_frame(FileHandle file) -> FrameID
982  """
983  return _IMP_rmf.save_frame(*args)
984 class _ParticleSaveLink(SaveLink):
985  """Proxy of C++ IMP::rmf::SimpleSaveLink<(IMP::Particle)> class."""
986 
987  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
988 
989  def __init__(self, *args, **kwargs):
990  raise AttributeError("No constructor defined - class is abstract")
991  __repr__ = _swig_repr
992 
993  def add(self, parent, os):
994  """add(_ParticleSaveLink self, NodeHandle parent, IMP::Vector< Pointer< IMP::Particle > > const & os)"""
995  return _IMP_rmf._ParticleSaveLink_add(self, parent, os)
996 
997  __swig_destroy__ = _IMP_rmf.delete__ParticleSaveLink
998  __del__ = lambda self: None
999 _ParticleSaveLink_swigregister = _IMP_rmf._ParticleSaveLink_swigregister
1000 _ParticleSaveLink_swigregister(_ParticleSaveLink)
1001 
1002 class _ParticleLoadLink(LoadLink):
1003  """Proxy of C++ IMP::rmf::SimpleLoadLink<(IMP::Particle)> class."""
1004 
1005  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1006 
1007  def __init__(self, *args, **kwargs):
1008  raise AttributeError("No constructor defined - class is abstract")
1009  __repr__ = _swig_repr
1010 
1011  def create(self, *args):
1012  """
1013  create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::Vector< Pointer< IMP::Particle > >
1014  create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::Vector< Pointer< IMP::Particle > >
1015  """
1016  return _IMP_rmf._ParticleLoadLink_create(self, *args)
1017 
1018 
1019  def link(self, rt, ps):
1020  """link(_ParticleLoadLink self, NodeConstHandle rt, IMP::Vector< Pointer< IMP::Particle > > const & ps)"""
1021  return _IMP_rmf._ParticleLoadLink_link(self, rt, ps)
1022 
1023  __swig_destroy__ = _IMP_rmf.delete__ParticleLoadLink
1024  __del__ = lambda self: None
1025 _ParticleLoadLink_swigregister = _IMP_rmf._ParticleLoadLink_swigregister
1026 _ParticleLoadLink_swigregister(_ParticleLoadLink)
1027 
1028 class HierarchyLoadLink(_ParticleLoadLink):
1029  """Proxy of C++ IMP::rmf::HierarchyLoadLink class."""
1030 
1031  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1032 
1033  def __init__(self, fh):
1034  """__init__(IMP::rmf::HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
1035  this = _IMP_rmf.new_HierarchyLoadLink(fh)
1036  try:
1037  self.this.append(this)
1038  except __builtin__.Exception:
1039  self.this = this
1040 
1041  def get_name():
1042  """get_name() -> char const *"""
1043  return _IMP_rmf.HierarchyLoadLink_get_name()
1044 
1045  get_name = staticmethod(get_name)
1046 
1047  def get_version_info(self):
1048  """get_version_info(HierarchyLoadLink self) -> VersionInfo"""
1049  return _IMP_rmf.HierarchyLoadLink_get_version_info(self)
1050 
1051 
1052  def __str__(self):
1053  """__str__(HierarchyLoadLink self) -> std::string"""
1054  return _IMP_rmf.HierarchyLoadLink___str__(self)
1055 
1056 
1057  def __repr__(self):
1058  """__repr__(HierarchyLoadLink self) -> std::string"""
1059  return _IMP_rmf.HierarchyLoadLink___repr__(self)
1060 
1061 
1062  @staticmethod
1063  def get_from(o):
1064  return _object_cast_to_HierarchyLoadLink(o)
1065 
1066 HierarchyLoadLink_swigregister = _IMP_rmf.HierarchyLoadLink_swigregister
1067 HierarchyLoadLink_swigregister(HierarchyLoadLink)
1068 
1069 def HierarchyLoadLink_get_name():
1070  """HierarchyLoadLink_get_name() -> char const *"""
1071  return _IMP_rmf.HierarchyLoadLink_get_name()
1072 
1073 class HierarchySaveLink(_ParticleSaveLink):
1074  """Proxy of C++ IMP::rmf::HierarchySaveLink class."""
1075 
1076  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1077 
1078  def __init__(self, fh):
1079  """__init__(IMP::rmf::HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
1080  this = _IMP_rmf.new_HierarchySaveLink(fh)
1081  try:
1082  self.this.append(this)
1083  except __builtin__.Exception:
1084  self.this = this
1085 
1086  def get_name():
1087  """get_name() -> char const *"""
1088  return _IMP_rmf.HierarchySaveLink_get_name()
1089 
1090  get_name = staticmethod(get_name)
1091 
1092  def get_version_info(self):
1093  """get_version_info(HierarchySaveLink self) -> VersionInfo"""
1094  return _IMP_rmf.HierarchySaveLink_get_version_info(self)
1095 
1096 
1097  def __str__(self):
1098  """__str__(HierarchySaveLink self) -> std::string"""
1099  return _IMP_rmf.HierarchySaveLink___str__(self)
1100 
1101 
1102  def __repr__(self):
1103  """__repr__(HierarchySaveLink self) -> std::string"""
1104  return _IMP_rmf.HierarchySaveLink___repr__(self)
1105 
1106 
1107  @staticmethod
1108  def get_from(o):
1109  return _object_cast_to_HierarchySaveLink(o)
1110 
1111 HierarchySaveLink_swigregister = _IMP_rmf.HierarchySaveLink_swigregister
1112 HierarchySaveLink_swigregister(HierarchySaveLink)
1113 
1114 def HierarchySaveLink_get_name():
1115  """HierarchySaveLink_get_name() -> char const *"""
1116  return _IMP_rmf.HierarchySaveLink_get_name()
1117 
1118 
1119 suffixes = [".rmf", ".rmfz"]
1120 
1121 
1122 def get_module_version():
1123  """get_module_version() -> std::string const"""
1124  return _IMP_rmf.get_module_version()
1125 
1126 def get_example_path(fname):
1127  """get_example_path(std::string fname) -> std::string"""
1128  return _IMP_rmf.get_example_path(fname)
1129 
1130 def get_data_path(fname):
1131  """get_data_path(std::string fname) -> std::string"""
1132  return _IMP_rmf.get_data_path(fname)
1133 
1134 from . import _version_check
1135 _version_check.check_version(get_module_version())
1136 __version__ = get_module_version()
1137 
1138 
1139 
void link_particles(RMF::FileConstHandle fh, const ParticlesTemp &hs)
display::Geometries create_geometries(RMF::FileConstHandle parent)
Create geometry objects for the geometry nodes found in the file.
ParticlesTemp create_particles(RMF::FileConstHandle fh, Model *m)
atom::Hierarchies create_hierarchies(RMF::FileConstHandle fh, Model *m)
RMF::FrameID save_frame(RMF::FileHandle file, std::string name="")
Save the current state of the linked objects as a new RMF frame.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
Various classes to hold sets of particles.
void add_restraints_as_bonds(RMF::FileHandle fh, const Restraints &rs)
Add a list of restraints to the file as (static) bonds.
Make CGAL functionality available to IMP.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
void link_restraints(RMF::FileConstHandle fh, const Restraints &hs)
void add_particle(RMF::FileHandle fh, Particle *hs)
void add_hierarchies(RMF::FileHandle fh, const atom::Hierarchies &hs)
Composable functors to implement scores via compile-time composition.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_restraint(RMF::FileHandle fh, Restraint *hs)
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
Common base class for heavy weight IMP objects.
Definition: Object.h:106
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
void link_geometries(RMF::FileConstHandle parent, const display::GeometriesTemp &r)
Link the passed geometry objects to corresponding ones in the file.
Version and module information for Objects.
Definition: VersionInfo.h:28
void load_frame(RMF::FileConstHandle file, RMF::FrameID frame)
Load the given RMF frame into the state of the linked objects.
Particle * get_particle() const
Returns the particle decorated by this decorator.
Definition: Decorator.h:171
void set_maximum_number_of_terms(RMF::FileHandle fh, unsigned int num)
Limit the number of restraint terms.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Restraints create_restraints(RMF::FileConstHandle fh, Model *m)
Shared optimizer state that is invoked upon commitment of new coordinates.
void link_hierarchies(RMF::FileConstHandle fh, const atom::Hierarchies &hs)
void add_geometry(RMF::FileHandle file, display::Geometry *r)
Add a single geometry to the file.
void add_static_geometries(RMF::FileHandle parent, const display::GeometriesTemp &r)
Add geometries, assuming they do not move between frames.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.