#include <MolFilePlugin.h>
Public Methods | |
| MolFilePlugin (vmdplugin_t *p) | |
| virtual | ~MolFilePlugin () |
| const char * | name () const |
| const char * | prettyname () const |
| const char * | extension () const |
| int | can_read_structure () const |
| int | can_read_bonds () const |
| int | can_read_timesteps () const |
| int | can_read_graphics () const |
| int | can_read_volumetric () const |
| int | can_read_metadata () const |
| int | can_write_structure () const |
| int | can_write_bonds () const |
| int | can_write_timesteps () const |
| int | init_read (const char *file) |
| open file for reading; read natoms. Return 0 on success. More... | |
| int | natoms () const |
| Number of atoms in each timestep -1 if unknown (not in file). More... | |
| void | set_natoms (int) |
| override the number of atoms in each step; this is needed for CRD files :-(. More... | |
| int | read_structure (Molecule *m, int filebonds, int autobonds) |
| init mol, file bond determination auto bond determination return 0 on success. More... | |
| int | read_optional_structure (Molecule *m, int filebonds) |
| Read optional structure information into the molecule, but without initializing atoms. Sets all optional fields like radius and charge, as well as bonds, but only if the file explicitly contains it. If bonds are found then the molecular topology is recalculated as well. More... | |
| Timestep * | next (Molecule *m) |
| next timestep. More... | |
| int | skip (Molecule *m) |
| skip over a step; return 0 on success. More... | |
| int | read_rawgraphics (Molecule *, Scene *) |
| Read raw graphics data into the given molecule. More... | |
| int | read_volumetric (Molecule *, int nsets, const int *setids) |
| Read selected volumetric datasets into molecule. Return 0 on success. If nsets == -1 then all sets will be read. More... | |
| int | read_metadata (Molecule *) |
| Read file metadata into molecule. Return 0 on success. More... | |
| int | init_write (const char *file, int natoms) |
| int | write_structure (Molecule *, const int *sel) |
| if can_write_structure returns true, then write_structure must be called before the first invocation of write_timestep. If sel is non-NULL, it must point to an array of indices, one for each atom in Molecule or Timestep, indicating which atoms are to be written to the file. More... | |
| int | write_timestep (const Timestep *, const int *sel) |
Definition at line 42 of file MolFilePlugin.h.
|
|
Definition at line 54 of file MolFilePlugin.C. References NULL. |
|
|
Definition at line 69 of file MolFilePlugin.C. |
|
|
Definition at line 62 of file MolFilePlugin.h. References NULL. Referenced by read_optional_structure, and read_structure. |
|
|
Definition at line 64 of file MolFilePlugin.h. References NULL. Referenced by init_read, VMDApp::molecule_load, and read_rawgraphics. |
|
|
Definition at line 66 of file MolFilePlugin.h. References NULL. Referenced by init_read, and VMDApp::molecule_load. |
|
|
Definition at line 61 of file MolFilePlugin.h. References NULL. Referenced by init_read, VMDApp::molecule_load, read_optional_structure, and read_structure. |
|
|
Definition at line 63 of file MolFilePlugin.h. References NULL. Referenced by init_read, VMDApp::molecule_load, next, and skip. |
|
|
Definition at line 65 of file MolFilePlugin.h. References NULL. Referenced by init_read, and VMDApp::molecule_load. |
|
|
Definition at line 81 of file MolFilePlugin.h. References NULL. Referenced by write_structure. |
|
|
Definition at line 80 of file MolFilePlugin.h. References NULL. Referenced by CoorPluginData::CoorPluginData, init_write, and write_structure. |
|
|
Definition at line 82 of file MolFilePlugin.h. References NULL. Referenced by SaveTrajectoryFltkMenu::act_on_command, init_write, and write_timestep. |
|
|
Definition at line 59 of file MolFilePlugin.h. Referenced by SaveTrajectoryFltkMenu::act_on_command, and VMDApp::guess_filetype. |
|
|
open file for reading; read natoms. Return 0 on success.
Definition at line 687 of file MolFilePlugin.C. References can_read_graphics, can_read_metadata, can_read_structure, can_read_timesteps, can_read_volumetric, NULL, and stringdup. Referenced by VMDApp::molecule_load. |
|
||||||||||||
|
Definition at line 969 of file MolFilePlugin.C. References can_write_structure, can_write_timesteps, natoms, NULL, and stringdup. Referenced by VMDApp::molecule_savetrajectory. |
|
|
Definition at line 57 of file MolFilePlugin.h. Referenced by SaveTrajectoryFltkMenu::act_on_command, VMDApp::guess_filetype, and write_structure. |
|
|
Number of atoms in each timestep -1 if unknown (not in file).
Definition at line 93 of file MolFilePlugin.h. Referenced by CoorPluginData::CoorPluginData, init_write, and VMDApp::molecule_load. |
|
|
|
Definition at line 58 of file MolFilePlugin.h. |
|
|
Read file metadata into molecule. Return 0 on success.
Definition at line 1597 of file MolFilePlugin.C. References NULL, Molecule::record_database, and Molecule::record_remarks. Referenced by VMDApp::molecule_load. |
|
||||||||||||
|
||||||||||||
|
Read raw graphics data into the given molecule.
Definition at line 1421 of file MolFilePlugin.C. References MoleculeGraphics::add_cone, MoleculeGraphics::add_cylinder, MoleculeGraphics::add_line, MoleculeGraphics::add_point, MoleculeGraphics::add_sphere, MoleculeGraphics::add_text, MoleculeGraphics::add_triangle, MoleculeGraphics::add_tricolor, MoleculeGraphics::add_trinorm, can_read_graphics, data, DrawMolecule::moleculeGraphics, Scene::nearest_index, NULL, and MoleculeGraphics::use_color. Referenced by VMDApp::molecule_load. |
|
||||||||||||||||
|
||||||||||||||||
|
Read selected volumetric datasets into molecule. Return 0 on success. If nsets == -1 then all sets will be read.
Definition at line 1516 of file MolFilePlugin.C. References BaseMolecule::add_volume_data, NULL, and stringdup. Referenced by VMDApp::molecule_load. |
|
|
override the number of atoms in each step; this is needed for CRD files :-(.
Definition at line 683 of file MolFilePlugin.C. Referenced by CoorPluginData::CoorPluginData. |
|
|
skip over a step; return 0 on success.
Definition at line 949 of file MolFilePlugin.C. References can_read_timesteps. Referenced by CoorPluginData::next. |
|
||||||||||||
|
||||||||||||
|
Definition at line 1357 of file MolFilePlugin.C. References Timestep::a_length, Timestep::alpha, Timestep::b_length, Timestep::beta, Timestep::c_length, can_write_timesteps, Timestep::gamma, NULL, Timestep::num, Timestep::physical_time, Timestep::pos, and Timestep::vel. Referenced by CoorPluginData::next. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002