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

dsn6plugin.C File Reference

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

Go to the source code of this file.

Compounds

struct  dsn6_t

Defines

#define M_PI   3.14159265358979323846

Functions

void * open_dsn6_read (const char *filepath, const char *filetype, int *natoms)
int read_dsn6_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_dsn6_data (void *v, int set, float *datablock, float *colorblock)
void close_dsn6_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 M_PI   3.14159265358979323846
 

Definition at line 54 of file dsn6plugin.C.

Referenced by open_dsn6_read.


Function Documentation

void close_dsn6_read void *    v [static]
 

Definition at line 278 of file dsn6plugin.C.

References dsn6_t::fd, and dsn6_t::vol.

Referenced by VMDPLUGIN_init.

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

Definition at line 68 of file dsn6plugin.C.

References molfile_volumetric_t::dataname, dsn6_t::fd, molfile_volumetric_t::has_color, M_PI, MOLFILE_NUMATOMS_NONE, dsn6_t::nsets, molfile_volumetric_t::origin, dsn6_t::plus, dsn6_t::prod, swap2_aligned, dsn6_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_dsn6_data void *    v,
int    set,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 187 of file dsn6plugin.C.

References dsn6_t::fd, MOLFILE_ERROR, dsn6_t::plus, dsn6_t::prod, swap2_unaligned, dsn6_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

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

Definition at line 178 of file dsn6plugin.C.

References dsn6_t::nsets, and dsn6_t::vol.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 315 of file dsn6plugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 292 of file dsn6plugin.C.

References close_dsn6_read, molfile_plugin_t::close_file_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, open_dsn6_read, molfile_plugin_t::open_file_read, read_dsn6_data, read_dsn6_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 310 of file dsn6plugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 290 of file dsn6plugin.C.


Generated on Thu Dec 12 03:09:47 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002