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

offplugin.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.

Defines

#define BUFFLEN   1024

Functions

void * open_file_read (const char *filepath, const char *filetype, int *natoms)
char * nextNoncommentLine (char *buff, int bufflen, FILE *f)
void calcNormals (float vert[9], float norm[9])
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_register (void *v, vmdplugin_register_cb cb)
VMDPLUGIN_API int VMDPLUGIN_fini (void)

Variables

molfile_plugin_t plugin


Define Documentation

#define BUFFLEN   1024
 

Definition at line 29 of file offplugin.C.

Referenced by read_rawgraphics.


Function Documentation

void calcNormals float    vert[9],
float    norm[9]
[static]
 

Definition at line 54 of file offplugin.C.

Referenced by read_rawgraphics.

void close_file_read void *    v [static]
 

Definition at line 282 of file offplugin.C.

Referenced by VMDPLUGIN_init.

char* nextNoncommentLine char *    buff,
int    bufflen,
FILE *    f
[static]
 

Definition at line 45 of file offplugin.C.

Referenced by read_rawgraphics.

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

Definition at line 31 of file offplugin.C.

Referenced by VMDPLUGIN_init.

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

Definition at line 71 of file offplugin.C.

References BUFFLEN, calcNormals, molfile_graphics_t::data, MOLFILE_COLOR, MOLFILE_ERROR, MOLFILE_NORMS, MOLFILE_TRIANGLE, MOLFILE_TRICOLOR, nextNoncommentLine, and molfile_graphics_t::type.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 314 of file offplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 292 of file offplugin.C.

References close_file_read, molfile_plugin_t::close_file_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, open_file_read, molfile_plugin_t::open_file_read, read_rawgraphics, molfile_plugin_t::read_rawgraphics, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADSAFE.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 309 of file offplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 290 of file offplugin.C.


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