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

mapplugin.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  gridmap_t

Defines

#define LINESIZE   85

Functions

char * mapgets (char *s, int n, FILE *stream)
void * open_map_read (const char *filepath, const char *filetype, int *natoms)
int read_map_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_map_data (void *v, int set, float *datablock, float *colorblock)
void close_map_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 35 of file mapplugin.C.

Referenced by open_map_read, and read_map_data.


Function Documentation

void close_map_read void *    v [static]
 

Definition at line 187 of file mapplugin.C.

References gridmap_t::fd, and gridmap_t::vol.

Referenced by VMDPLUGIN_init.

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

Definition at line 45 of file mapplugin.C.

Referenced by open_map_read, and read_map_data.

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

Definition at line 67 of file mapplugin.C.

References molfile_volumetric_t::dataname, gridmap_t::fd, molfile_volumetric_t::has_color, LINESIZE, mapgets, MOLFILE_NUMATOMS_NONE, gridmap_t::nsets, molfile_volumetric_t::origin, gridmap_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_map_data void *    v,
int    set,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 160 of file mapplugin.C.

References gridmap_t::fd, LINESIZE, mapgets, MOLFILE_ERROR, gridmap_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

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

Definition at line 151 of file mapplugin.C.

References gridmap_t::nsets, and gridmap_t::vol.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 224 of file mapplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 201 of file mapplugin.C.

References molfile_plugin_t::close_file_read, close_map_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_map_read, read_map_data, read_map_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 219 of file mapplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 199 of file mapplugin.C.


Generated on Sat Aug 15 03:07:12 2020 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002