Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vaspparchgplugin.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "molfile_plugin.h"
#include "vaspplugin.h"

Go to the source code of this file.

Functions

void * open_vaspparchg_read (const char *filename, const char *filetype, int *natoms)
int read_vaspparchg_metadata (void *mydata, int *nvolsets, molfile_volumetric_t **metadata)
int read_vaspparchg_data (void *mydata, int set, float *datablock, float *colorblock)
void close_vaspparchg_read (void *mydata)
int VMDPLUGIN_init (void)
int VMDPLUGIN_register (void *v, vmdplugin_register_cb cb)
int VMDPLUGIN_fini (void)

Variables

molfile_plugin_t plugin


Function Documentation

void close_vaspparchg_read void *    mydata [static]
 

Definition at line 283 of file vaspparchgplugin.c.

References vasp_plugindata_free.

Referenced by VMDPLUGIN_init.

void* open_vaspparchg_read const char *    filename,
const char *    filetype,
int *    natoms
[static]
 

Definition at line 39 of file vaspparchgplugin.c.

References vasp_plugindata_t::cell, vasp_plugindata_t::eachatom, vasp_plugindata_t::file, vasp_plugindata_t::filename, MAXATOMTYPES, MOLFILE_NUMATOMS_UNKNOWN, vasp_plugindata_t::numatoms, vasp_plugindata_t::titleline, vasp_buildrotmat, vasp_plugindata_free, vasp_plugindata_malloc, and vasp_plugindata_t::version.

Referenced by VMDPLUGIN_init.

int read_vaspparchg_data void *    mydata,
int    set,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 202 of file vaspparchgplugin.c.

References vasp_plugindata_t::cell, molfile_volumetric_t::dataname, vasp_plugindata_t::file, vasp_plugindata_t::filename, MOLFILE_ERROR, vasp_plugindata_t::numatoms, vasp_plugindata_t::nvolsets, vasp_plugindata_t::version, vasp_plugindata_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

int read_vaspparchg_metadata void *    mydata,
int *    nvolsets,
molfile_volumetric_t **    metadata
[static]
 

Definition at line 134 of file vaspparchgplugin.c.

References vasp_plugindata_t::cell, molfile_volumetric_t::dataname, vasp_plugindata_t::file, vasp_plugindata_t::filename, molfile_volumetric_t::has_color, MOLFILE_ERROR, vasp_plugindata_t::nvolsets, molfile_volumetric_t::origin, vasp_plugindata_t::rotmat, vasp_plugindata_t::vol, molfile_volumetric_t::xaxis, molfile_volumetric_t::xsize, molfile_volumetric_t::yaxis, molfile_volumetric_t::ysize, molfile_volumetric_t::zaxis, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

int VMDPLUGIN_fini void   
 

Definition at line 316 of file vaspparchgplugin.c.

References VMDPLUGIN_SUCCESS.

int VMDPLUGIN_init void   
 

Definition at line 293 of file vaspparchgplugin.c.

References molfile_plugin_t::close_file_read, close_vaspparchg_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_vaspparchg_read, read_vaspparchg_data, read_vaspparchg_metadata, molfile_plugin_t::read_volumetric_data, molfile_plugin_t::read_volumetric_metadata, vmdplugin_ABIVERSION, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADUNSAFE.

int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 311 of file vaspparchgplugin.c.

References vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 291 of file vaspparchgplugin.c.


Generated on Sat Aug 15 03:07:15 2020 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002