#include "largefiles.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "molfile_plugin.h"
#include "periodic_table.h"
Go to the source code of this file.
Compounds | |
struct | xsf_box |
struct | xsf_t |
Defines | |
#define | M_PI_2 1.57079632679489661922 |
Enumerations | |
enum | xsf_keyword_t { xsf_UNKNOWN = 0, xsf_COMMENT, xsf_BEGINFO, xsf_ENDINFO, xsf_BEG_2D_BLOCK, xsf_END_2D_BLOCK, xsf_BEG_2D_DATA, xsf_END_2D_DATA, xsf_BEG_3D_BLOCK, xsf_END_3D_BLOCK, xsf_BEG_3D_DATA, xsf_END_3D_DATA, xsf_BEG_3D_BAND, xsf_END_3D_BAND, xsf_ATOMS, xsf_ANIMSTEPS, xsf_BAND, xsf_MOLECULE, xsf_POLYMER, xsf_SLAB, xsf_CRYSTAL, xsf_PRIMVEC, xsf_CONVVEC, xsf_PRIMCOORD, xsf_CONVCOORD, xsf_NR_KEYWORDS } |
Functions | |
xsf_keyword_t | lookup_keyword (const char *word) |
int | xsf_readbox (xsf_box *box, float *x, float *y, float *z) |
void | xsf_buildrotmat (xsf_t *xsf, float *a, float *b) |
void | xsf_buildinvmat (xsf_t *xsf, float *a, float *b, float *c) |
void | eatline (FILE *fd) |
bool | xsf_read_cell (FILE *fd, float *a, float *b, float *c) |
void | close_xsf_read (void *v) |
void * | open_xsf_read (const char *filepath, const char *filetype, int *natoms) |
int | read_xsf_structure (void *v, int *optflags, molfile_atom_t *atoms) |
int | read_xsf_timestep (void *v, int natoms, molfile_timestep_t *ts) |
int | read_xsf_metadata (void *v, int *nvolsets, molfile_volumetric_t **metadata) |
int | read_xsf_data (void *v, int set, float *datablock, float *colorblock) |
VMDPLUGIN_API int | VMDPLUGIN_init (void) |
VMDPLUGIN_API int | VMDPLUGIN_register (void *v, vmdplugin_register_cb cb) |
VMDPLUGIN_API int | VMDPLUGIN_fini (void) |
Variables | |
const char * | xsf_symtab [] |
struct { | |
const char * name | |
xsf_keyword_t kw | |
} | xsf_aliases [] |
molfile_plugin_t | plugin |
|
Definition at line 29 of file xsfplugin.C. Referenced by xsf_readbox. |
|
Definition at line 48 of file xsfplugin.C. Referenced by lookup_keyword, and open_xsf_read. |
|
Definition at line 888 of file xsfplugin.C. References xsf_t::fd, xsf_t::file_name, and xsf_t::vol. Referenced by VMDPLUGIN_init. |
|
|
Definition at line 79 of file xsfplugin.C. References name, xsf_aliases, xsf_keyword_t, xsf_NR_KEYWORDS, xsf_symtab, and xsf_UNKNOWN. Referenced by open_xsf_read, read_xsf_structure, and read_xsf_timestep. |
|
|
Definition at line 842 of file xsfplugin.C. References molfile_volumetric_t::dataname, eatline, xsf_t::fd, MOLFILE_ERROR, xsf_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize. Referenced by VMDPLUGIN_init. |
|
Definition at line 833 of file xsfplugin.C. References xsf_t::nvolsets, and xsf_t::vol. Referenced by VMDPLUGIN_init. |
|
|
|
Definition at line 929 of file xsfplugin.C. References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS. |
|
|
Definition at line 924 of file xsfplugin.C. References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS. |
|
Definition at line 211 of file xsfplugin.C. References xsf_t::invmat. Referenced by read_xsf_structure, and read_xsf_timestep. |
|
Definition at line 181 of file xsfplugin.C. References xsf_t::rotmat. Referenced by open_xsf_read, read_xsf_structure, and read_xsf_timestep. |
|
Definition at line 237 of file xsfplugin.C. Referenced by open_xsf_read, read_xsf_structure, and read_xsf_timestep. |
|
Definition at line 136 of file xsfplugin.C. References xsf_box::A, xsf_box::alpha, xsf_box::B, xsf_box::beta, xsf_box::C, xsf_box::cell, xsf_box::gamma, and M_PI_2. Referenced by read_xsf_structure, and read_xsf_timestep. |
|
Definition at line 67 of file xsfplugin.C. Referenced by open_xsf_read. |
|
|
Definition at line 902 of file xsfplugin.C. |
|
Referenced by lookup_keyword. |
|
Initial value: { "(unknown keyword)", "#", "BEGIN_INFO", "END_INFO", "BEGIN_BLOCK_DATAGRID_2D", "END_BLOCK_DATAGRID_2D", "BEGIN_DATAGRID_2D", "END_DATAGRID_2D", "BEGIN_BLOCK_DATAGRID_3D", "END_BLOCK_DATAGRID_3D", "BEGIN_DATAGRID_3D", "END_DATAGRID_3D", "BEGIN_BLOCK_BANDGRID_3D", "END_BLOCK_BANDGRID_3D", "ATOMS", "ANIMSTEPS", "BAND", "MOLECULE", "POLYMER", "SLAB", "CRYSTAL", "PRIMVEC", "CONVVEC", "PRIMCOORD", "CONVCOORD" } Definition at line 34 of file xsfplugin.C. Referenced by lookup_keyword. |