#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_pagealigned_timesteps () const |
int | can_read_timesteps () const |
int | can_read_graphics () const |
int | can_read_volumetric () const |
int | can_read_metadata () const |
int | can_read_qm () const |
int | can_read_qm_timestep () |
int | can_read_angles () |
int | can_read_timestep_metadata () |
int | can_read_qm_timestep_metadata () |
int | can_write_structure () const |
int | can_write_bonds () const |
int | can_write_timesteps () const |
int | can_write_angles () |
int | can_write_volumetric () 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... | |
int | read_timestep_pagealign_size (void) |
Query the molfile plugin to determine whether or not memory allocations used for atomic coordinates and PBC unit cell information need to be aligned to a particular virtual memory or filesystem page size boundary to facilitate kernel-bypass unbuffered I/O, e.g., as used by jsplugin. This API should be called prior to the first call to read a timestep. The required page alignment size (in bytes) is returned to the caller. If this API has not been called, then the molfile plugin should revert to standard kernel-buffered I/O and suffer the associated performance loss. If a page-aligned allocation is not required for the file being read, the plugin will return an alignment size of 1. On error, a value of -1 will be returned. More... | |
Timestep * | next (Molecule *m, int ts_pagealign_sz=1) |
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 | read_qm_data (Molecule *) |
Read QM data 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) |
int | write_volumetric (Molecule *, int set) |
Write volumetric data. More... |
Definition at line 42 of file MolFilePlugin.h.
|
Definition at line 55 of file MolFilePlugin.C. References NULL. |
|
Definition at line 68 of file MolFilePlugin.C. |
|
Definition at line 76 of file MolFilePlugin.h. References NULL. Referenced by read_optional_structure, and read_structure. |
|
Definition at line 62 of file MolFilePlugin.h. References NULL. Referenced by read_optional_structure, and read_structure. |
|
Definition at line 71 of file MolFilePlugin.h. References NULL. Referenced by init_read, VMDApp::molecule_load, and read_rawgraphics. |
|
Definition at line 73 of file MolFilePlugin.h. References NULL. Referenced by init_read, and VMDApp::molecule_load. |
|
Definition at line 63 of file MolFilePlugin.h. References NULL. Referenced by CoorPluginData::CoorPluginData, VMDApp::molecule_load, and read_timestep_pagealign_size. |
|
Definition at line 74 of file MolFilePlugin.h. References NULL. Referenced by init_read, and VMDApp::molecule_load. |
|
Definition at line 75 of file MolFilePlugin.h. References NULL. Referenced by VMDApp::molecule_load, and next. |
|
Definition at line 78 of file MolFilePlugin.h. References NULL. Referenced by next. |
|
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 77 of file MolFilePlugin.h. References NULL. Referenced by next. |
|
Definition at line 70 of file MolFilePlugin.h. References NULL. Referenced by init_read, VMDApp::molecule_load, next, and skip. |
|
Definition at line 72 of file MolFilePlugin.h. References NULL. Referenced by init_read, and VMDApp::molecule_load. |
|
Definition at line 83 of file MolFilePlugin.h. References NULL. Referenced by write_structure. |
|
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 84 of file MolFilePlugin.h. References NULL. Referenced by init_write, and VMDApp::molecule_savetrajectory. |
|
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 684 of file MolFilePlugin.C. References can_read_graphics, can_read_metadata, can_read_qm, can_read_structure, can_read_timesteps, can_read_volumetric, NULL, and stringdup. Referenced by VMDApp::molecule_load. |
|
Definition at line 989 of file MolFilePlugin.C. References can_write_structure, can_write_timesteps, can_write_volumetric, natoms, NULL, and stringdup. Referenced by VMDApp::molecule_savetrajectory, and write_file. |
|
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 90 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 1651 of file MolFilePlugin.C. References NULL, Molecule::record_database, and Molecule::record_remarks. Referenced by VMDApp::molecule_load. |
|
|
Read QM data into molecule. Return 0 on success.
Definition at line 1667 of file MolFilePlugin.C. References QMData::geometry, QMData::init_basis, QMData::init_electrons, QMData::memory, BaseMolecule::nAtoms, QMData::nproc, BaseMolecule::qm_data, QMSTATUS_FILE_TRUNCATED, QMSTATUS_OPT_CONV, QMSTATUS_OPT_NOT_CONV, QMSTATUS_SCF_NOT_CONV, QMSTATUS_UNKNOWN, QMData::runtitle, QMData::runtype, RUNTYPE_DYNAMICS, RUNTYPE_ENERGY, RUNTYPE_GRADIENT, RUNTYPE_HESSIAN, RUNTYPE_MEX, RUNTYPE_OPTIMIZE, RUNTYPE_PROPERTIES, RUNTYPE_SADPOINT, RUNTYPE_SURFACE, RUNTYPE_UNKNOWN, SAFESTRNCPY, QMData::scftype, SCFTYPE_FF, SCFTYPE_GVB, SCFTYPE_MCSCF, SCFTYPE_NONE, SCFTYPE_RHF, SCFTYPE_ROHF, SCFTYPE_UHF, SCFTYPE_UNKNOWN, QMData::set_angular_momenta, QMData::set_carthessian, QMData::set_imagmodes, QMData::set_intensities, QMData::set_inthessian, QMData::set_normalmodes, QMData::set_wavenumbers, QMData::status, and QMData::version_string. Referenced by VMDApp::molecule_load. |
|
Read raw graphics data into the given molecule.
Definition at line 1431 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, size, and MoleculeGraphics::use_color. Referenced by VMDApp::molecule_load. |
|
|
Query the molfile plugin to determine whether or not memory allocations used for atomic coordinates and PBC unit cell information need to be aligned to a particular virtual memory or filesystem page size boundary to facilitate kernel-bypass unbuffered I/O, e.g., as used by jsplugin. This API should be called prior to the first call to read a timestep. The required page alignment size (in bytes) is returned to the caller. If this API has not been called, then the molfile plugin should revert to standard kernel-buffered I/O and suffer the associated performance loss. If a page-aligned allocation is not required for the file being read, the plugin will return an alignment size of 1. On error, a value of -1 will be returned.
Definition at line 697 of file MolFilePlugin.C. References can_read_pagealigned_timesteps, and NULL. Referenced by CoorPluginData::CoorPluginData, and 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 1526 of file MolFilePlugin.C. References BaseMolecule::add_volume_data, n, NULL, size, and stringdup. Referenced by VMDApp::molecule_load. |
|
override the number of atoms in each step; this is needed for CRD files :-(.
Definition at line 680 of file MolFilePlugin.C. References n. Referenced by CoorPluginData::CoorPluginData. |
|
skip over a step; return 0 on success.
Definition at line 969 of file MolFilePlugin.C. References can_read_timesteps. Referenced by CoorPluginData::next. |
|
|
Definition at line 1367 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. |
|
Write volumetric data.
Definition at line 1895 of file MolFilePlugin.C. References VolumetricData::data, BaseMolecule::get_volume_data, n, VolumetricData::name, NULL, BaseMolecule::num_volume_data, VolumetricData::origin, VolumetricData::xaxis, VolumetricData::xsize, VolumetricData::yaxis, VolumetricData::ysize, VolumetricData::zaxis, and VolumetricData::zsize. Referenced by VMDApp::molecule_savetrajectory, and write_file. |