#include "molfile_plugin.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Compounds | |
struct | pqrdata |
Defines | |
#define | PQR_RECORD_LENGTH 80 |
Enumerations | |
enum | { PQR_REMARK, PQR_ATOM, PQR_UNKNOWN, PQR_END, PQR_EOF, PQR_ERROR, PQR_CRYST1 } |
Functions | |
int | read_pqr_record (FILE *f, char *retStr) |
void | get_pqr_cryst1 (const char *record, float *alpha, float *beta, float *gamma, float *a, float *b, float *c) |
int | get_pqr_fields (char *record, char *name, char *resname, char *chain, char *segname, char *resid, float *x, float *y, float *z, float *charge, float *radius) |
int | get_pqr_coordinates (char *record, float *x, float *y, float *z) |
float | get_atom_radius (molfile_atom_t *atom) |
int | write_pqr_atom (FILE *fd, int index, const molfile_atom_t *atom, float x, float y, float z) |
void * | open_pqr_read (const char *filepath, const char *filetype, int *natoms) |
int | read_pqr_structure (void *mydata, int *optflags, molfile_atom_t *atoms) |
int | read_pqr_timestep (void *v, int natoms, molfile_timestep_t *ts) |
void | close_pqr_read (void *v) |
void * | open_pqr_write (const char *path, const char *filetype, int natoms) |
int | write_pqr_structure (void *v, int optflags, const molfile_atom_t *atoms) |
void | write_pqr_cryst1 (FILE *fd, const molfile_timestep_t *ts) |
int | write_pqr_timestep (void *v, const molfile_timestep_t *ts) |
void | close_pqr_write (void *v) |
VMDPLUGIN_API int | VMDPLUGIN_init () |
VMDPLUGIN_API int | VMDPLUGIN_register (void *v, vmdplugin_register_cb cb) |
VMDPLUGIN_API int | VMDPLUGIN_fini () |
Variables | |
molfile_plugin_t | plugin |
|
Definition at line 31 of file pqrplugin.c. Referenced by get_pqr_cryst1, open_pqr_read, read_pqr_record, read_pqr_structure, and read_pqr_timestep. |
|
Definition at line 34 of file pqrplugin.c. |
|
Definition at line 332 of file pqrplugin.c. References pqrdata::fd. Referenced by VMDPLUGIN_init. |
|
Definition at line 412 of file pqrplugin.c. References pqrdata::atomlist, and pqrdata::fd. Referenced by VMDPLUGIN_init. |
|
Definition at line 160 of file pqrplugin.c. References molfile_atom_t::name, name, and molfile_atom_t::type. Referenced by write_pqr_structure. |
|
Definition at line 149 of file pqrplugin.c. Referenced by read_pqr_timestep. |
|
Definition at line 98 of file pqrplugin.c. References PQR_RECORD_LENGTH. Referenced by read_pqr_timestep. |
|
Definition at line 123 of file pqrplugin.c. References name. Referenced by read_pqr_structure. |
|
Definition at line 194 of file pqrplugin.c. References pqrdata::fd, pqrdata::natoms, PQR_ATOM, PQR_END, PQR_EOF, PQR_ERROR, PQR_RECORD_LENGTH, and read_pqr_record. Referenced by VMDPLUGIN_init. |
|
Definition at line 341 of file pqrplugin.c. References pqrdata::atomlist, pqrdata::fd, and pqrdata::natoms. Referenced by VMDPLUGIN_init. |
|
Definition at line 41 of file pqrplugin.c. References PQR_ATOM, PQR_CRYST1, PQR_END, PQR_EOF, PQR_ERROR, PQR_RECORD_LENGTH, and PQR_UNKNOWN. Referenced by open_pqr_read, read_pqr_structure, and read_pqr_timestep. |
|
Definition at line 234 of file pqrplugin.c. References molfile_atom_t::chain, molfile_atom_t::charge, pqrdata::fd, get_pqr_fields, MOLFILE_CHARGE, MOLFILE_ERROR, MOLFILE_RADIUS, molfile_atom_t::name, pqrdata::natoms, PQR_ATOM, PQR_END, PQR_EOF, PQR_ERROR, PQR_RECORD_LENGTH, molfile_atom_t::radius, read_pqr_record, molfile_atom_t::resid, molfile_atom_t::resname, molfile_atom_t::segid, and molfile_atom_t::type. Referenced by VMDPLUGIN_init. |
|
Definition at line 280 of file pqrplugin.c. References molfile_timestep_t::A, molfile_timestep_t::alpha, molfile_timestep_t::B, molfile_timestep_t::beta, molfile_timestep_t::C, molfile_timestep_t::coords, pqrdata::fd, molfile_timestep_t::gamma, get_pqr_coordinates, get_pqr_cryst1, MOLFILE_EOF, MOLFILE_ERROR, pqrdata::natoms, PQR_ATOM, PQR_CRYST1, PQR_END, PQR_EOF, PQR_ERROR, PQR_RECORD_LENGTH, and read_pqr_record. Referenced by VMDPLUGIN_init. |
|
Definition at line 452 of file pqrplugin.c. References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS. |
|
|
Definition at line 447 of file pqrplugin.c. References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS. |
|
Definition at line 172 of file pqrplugin.c. References molfile_atom_t::charge, molfile_atom_t::name, molfile_atom_t::radius, molfile_atom_t::resid, and molfile_atom_t::resname. Referenced by write_pqr_timestep. |
|
Definition at line 381 of file pqrplugin.c. References molfile_timestep_t::A, molfile_timestep_t::alpha, molfile_timestep_t::B, molfile_timestep_t::beta, molfile_timestep_t::C, and molfile_timestep_t::gamma. Referenced by write_pqr_timestep. |
|
Definition at line 358 of file pqrplugin.c. References pqrdata::atomlist, molfile_atom_t::charge, get_atom_radius, MOLFILE_CHARGE, MOLFILE_RADIUS, pqrdata::natoms, and molfile_atom_t::radius. Referenced by VMDPLUGIN_init. |
|
Definition at line 386 of file pqrplugin.c. References pqrdata::atomlist, molfile_timestep_t::coords, pqrdata::fd, MOLFILE_ERROR, pqrdata::natoms, write_pqr_atom, and write_pqr_cryst1. Referenced by VMDPLUGIN_init. |
|
Definition at line 423 of file pqrplugin.c. |