Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

graspplugin.C File Reference

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

Go to the source code of this file.

Compounds

struct  grasp_t

Defines

#define TRASH   fread(trash, 4, 1, infile)

Functions

int is_little_endian (void)
void * open_file_read (const char *filepath, const char *filetype, int *natoms)
int read_rawgraphics (void *v, int *nelem, const molfile_graphics_t **data)
void close_file_read (void *v)
VMDPLUGIN_API int VMDPLUGIN_init (void)
VMDPLUGIN_API int VMDPLUGIN_fini (void)
VMDPLUGIN_API int VMDPLUGIN_register (void *v, vmdplugin_register_cb cb)

Variables

molfile_plugin_t plugin


Define Documentation

#define TRASH   fread(trash, 4, 1, infile)
 


Function Documentation

void close_file_read void *    v [static]
 

Definition at line 243 of file graspplugin.C.

References grasp_t::fd, and grasp_t::graphics.

Referenced by VMDPLUGIN_register.

int is_little_endian void    [static]
 

Definition at line 30 of file graspplugin.C.

Referenced by read_rawgraphics.

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

Definition at line 40 of file graspplugin.C.

References grasp_t::fd, and grasp_t::graphics.

Referenced by VMDPLUGIN_register.

int read_rawgraphics void *    v,
int *    nelem,
const molfile_graphics_t **    data
[static]
 

Definition at line 55 of file graspplugin.C.

References molfile_graphics_t::data, grasp_t::fd, grasp_t::graphics, is_little_endian, MOLFILE_ERROR, MOLFILE_NORMS, MOLFILE_SUCCESS, MOLFILE_TRINORM, swap2_aligned, swap4_aligned, and molfile_graphics_t::type.

Referenced by VMDPLUGIN_register.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 267 of file graspplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 266 of file graspplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 268 of file graspplugin.C.

References close_file_read, molfile_plugin_t::close_file_read, open_file_read, molfile_plugin_t::open_file_read, read_rawgraphics, molfile_plugin_t::read_rawgraphics, VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Initial value:

 {
  vmdplugin_ABIVERSION,               
  MOLFILE_PLUGIN_TYPE,                
  "grasp",                            
  "GRASP",                            
  "Justin Gullingsrud, John Stone",   
  0,                                  
  5,                                  
  VMDPLUGIN_THREADSAFE,               
  "srf,grasp"                         
}

Definition at line 254 of file graspplugin.C.


Generated on Wed Mar 22 13:15:33 2006 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002