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

spiderplugin.C File Reference

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

Go to the source code of this file.

Compounds

struct  spider_t

Defines

#define LINESIZE   85

Functions

void * open_spider_read (const char *filepath, const char *filetype, int *natoms)
int read_spider_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_spider_data (void *v, int set, float *datablock, float *colorblock)
void close_spider_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 44 of file spiderplugin.C.


Function Documentation

void close_spider_read void *    v [static]
 

Definition at line 290 of file spiderplugin.C.

References spider_t::fd, and spider_t::vol.

Referenced by VMDPLUGIN_init.

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

Definition at line 78 of file spiderplugin.C.

References spider_t::av, spider_t::byteswap, molfile_volumetric_t::dataname, spider_t::fd, spider_t::fmax, spider_t::fmin, spider_t::gamma, molfile_volumetric_t::has_color, spider_t::headbyt, spider_t::headrec, spider_t::iangle, spider_t::iform, spider_t::imami, spider_t::inuse, spider_t::maxim, MOLFILE_NUMATOMS_NONE, spider_t::nlabel, spider_t::nrow, spider_t::nsam, spider_t::nsets, spider_t::nslice, spider_t::nstack, molfile_volumetric_t::origin, spider_t::phi, spider_t::reclen, spider_t::scale, spider_t::sig, swap4_aligned, spider_t::theta, spider_t::vol, molfile_volumetric_t::xaxis, spider_t::xoffset, molfile_volumetric_t::xsize, molfile_volumetric_t::yaxis, spider_t::yoffset, molfile_volumetric_t::ysize, molfile_volumetric_t::zaxis, spider_t::zoffset, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

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

Definition at line 268 of file spiderplugin.C.

References spider_t::byteswap, spider_t::fd, swap4_aligned, spider_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

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

Definition at line 259 of file spiderplugin.C.

References spider_t::nsets, and spider_t::vol.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 327 of file spiderplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 304 of file spiderplugin.C.

References molfile_plugin_t::close_file_read, close_spider_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_spider_read, read_spider_data, read_spider_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 322 of file spiderplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 302 of file spiderplugin.C.


Generated on Sun Oct 6 03:07:30 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002