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

avsplugin.C File Reference

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

Go to the source code of this file.

Compounds

struct  avsfield_t
struct  datasource_t

Defines

#define LINESIZE   256

Enumerations

enum  { NONE, ASCII, BINARY, UNFORMATTED }
enum  { UNIFORM, IRREGULAR, RECTILINEAR }
enum  { AVSFLOAT }

Functions

char * get_string (char *s, int n, FILE *stream)
int read_datasource (char *s, datasource_t *data)
void * open_avsfield_read (const char *filepath, const char *filetype, int *natoms)
int read_avsfield_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_avsfield_data (void *v, int set, float *datablock, float *colorblock)
void close_avsfield_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 LINESIZE   256
 

Definition at line 50 of file avsplugin.C.

Referenced by open_avsfield_read, and read_avsfield_data.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
NONE 
ASCII 
BINARY 
UNFORMATTED 

Definition at line 63 of file avsplugin.C.

anonymous enum
 

Enumeration values:
UNIFORM 
IRREGULAR 
RECTILINEAR 

Definition at line 64 of file avsplugin.C.

anonymous enum
 

Enumeration values:
AVSFLOAT 

Definition at line 65 of file avsplugin.C.


Function Documentation

void close_avsfield_read void *    v [static]
 

Definition at line 539 of file avsplugin.C.

References avsfield_t::data, and avsfield_t::vol.

Referenced by VMDPLUGIN_init.

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

Definition at line 71 of file avsplugin.C.

Referenced by open_avsfield_read.

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

Definition at line 178 of file avsplugin.C.

References avsfield_t::data, molfile_volumetric_t::dataname, get_string, molfile_volumetric_t::has_color, LINESIZE, MOLFILE_NUMATOMS_NONE, avsfield_t::nsets, datasource_t::offset, molfile_volumetric_t::origin, read_datasource, datasource_t::skip, datasource_t::stride, avsfield_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 read_avsfield_data void *    v,
int    set,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 476 of file avsplugin.C.

References avsfield_t::data, datasource_t::filename, LINESIZE, MOLFILE_ERROR, datasource_t::offset, datasource_t::skip, datasource_t::stride, avsfield_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

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

Definition at line 467 of file avsplugin.C.

References avsfield_t::nsets, and avsfield_t::vol.

Referenced by VMDPLUGIN_init.

int read_datasource char *    s,
datasource_t   data
[static]
 

Definition at line 84 of file avsplugin.C.

References ASCII, datasource_t::filename, datasource_t::filetype, NONE, datasource_t::offset, datasource_t::skip, and datasource_t::stride.

Referenced by open_avsfield_read.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 573 of file avsplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 554 of file avsplugin.C.

References close_avsfield_read, molfile_plugin_t::close_file_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, open_avsfield_read, molfile_plugin_t::open_file_read, read_avsfield_data, read_avsfield_metadata, molfile_plugin_t::read_volumetric_data, molfile_plugin_t::read_volumetric_metadata, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADUNSAFE.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 575 of file avsplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 552 of file avsplugin.C.


Generated on Fri Aug 14 03:05:32 2020 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002