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

phiplugin.C File Reference

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

Go to the source code of this file.

Compounds

struct  phi_t

Defines

#define LINESIZE   85

Functions

char * phigets (char *s, int n, FILE *stream)
void * open_phi_read (const char *filepath, const char *filetype, int *natoms)
int read_phi_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_phi_data (void *v, int set, float *datablock, float *colorblock)
void close_phi_read (void *v)
VMDPLUGIN_API int VMDPLUGIN_init (void)
VMDPLUGIN_API int VMDPLUGIN_register (void *v, vmdplugin_register_cb cb)
VMDPLUGIN_API int VMDPLUGIN_fini (void)

Variables

molfile_plugin_t plugin


Define Documentation

#define LINESIZE   85
 

Definition at line 46 of file phiplugin.C.

Referenced by open_phi_read, and read_phi_data.


Function Documentation

void close_phi_read void *    v [static]
 

Definition at line 223 of file phiplugin.C.

References phi_t::fd, and phi_t::vol.

Referenced by VMDPLUGIN_init.

void* open_phi_read const char *    filepath,
const char *    filetype,
int *    natoms
[static]
 

Definition at line 79 of file phiplugin.C.

References molfile_volumetric_t::dataname, phi_t::fd, molfile_volumetric_t::has_color, LINESIZE, MOLFILE_NUMATOMS_NONE, phi_t::ndata, phi_t::nsets, molfile_volumetric_t::origin, phigets, phi_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.

char* phigets char *    s,
int    n,
FILE *    stream
[static]
 

Definition at line 57 of file phiplugin.C.

Referenced by open_phi_read, and read_phi_data.

int read_phi_data void *    v,
int    set,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 179 of file phiplugin.C.

References phi_t::fd, LINESIZE, MOLFILE_ERROR, phi_t::ndata, and phigets.

Referenced by VMDPLUGIN_init.

int read_phi_metadata void *    v,
int *    nsets,
molfile_volumetric_t **    metadata
[static]
 

Definition at line 170 of file phiplugin.C.

References phi_t::nsets, and phi_t::vol.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 260 of file phiplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 237 of file phiplugin.C.

References molfile_plugin_t::close_file_read, close_phi_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_phi_read, read_phi_data, read_phi_metadata, molfile_plugin_t::read_volumetric_data, molfile_plugin_t::read_volumetric_metadata, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADSAFE.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 255 of file phiplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 235 of file phiplugin.C.


Generated on Tue Oct 15 03:09:22 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002