11.07.2015 Views

VMD User's Guide

VMD User's Guide

VMD User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• cone(id, v1, v2, radius=1.0, resolution=6): Draw a cone with base at v1 and pointat v2. radius and resolution may optionally be specified with keyword arguments.• sphere(id, center=(0.0, 0.0, 0.0), radius=1.0, resolution=6): Draw a sphere.The sphere center, radius, and resolution may optionally be specied with keyword arguments.• text(id, pos, text, size=1.0): Draw text at the given position (specified by a tupleof three floats, using the string text. Size may optionally be specified using keyword arguments.• delete(id, index): Deletes the graphics primitive with the given index. Alternatively, ifthe string ’all’ is passed as the index, all graphics primitives will be deleted.• replace(id, index): Deletes the graphics primitive with the given index. The next graphicsprimitive added will go in the newly vacated position. Subsequent graphics primitives willresume at the end of the list.• info(ind, index): Returns a string describing the graphics primitive with the given index.If the index is invalid, an IndexError exception is raised.• listall(ind):Returns the indices of the valid graphics primitives in a list.9.5.6 imdPython operations available from the imd module, used to display and interact with a molecule ina molecular dynamics simulation.• connect(host, port): Connect to a simulation running on host host and listening forincoming connections on port port.• pause():If connected, cause the simulation to pause.• detach(): If connected, detach from the simulation. The simulation will continue to run,but no more frames will be received until a connection is re-established.• kill():If connected, terminate the simulation. The connection will also be abolished.• transfer(rate): Set/get how often the remote simulation sends coordinate frames to <strong>VMD</strong>.If rate is omitted or is negative, no action is taken and the current value is returned. A valueof 1 corresponds to every frame being sent; a value of 2 corresponds to every other frame,etc.• keep(rate): Set/get how often received coordinates frames are kept by <strong>VMD</strong> as part ofan animation. If rate is omitted or is negative, no action is taken and the current value isreturned. A value of 0 means no frames are saved. A value of 1 corresponds to every framebeing saved; a value of 2 corresponds to every other frame, etc.136

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!