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

dxplugin.C File Reference

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

Go to the source code of this file.

Compounds

struct  dx_t

Defines

#define THISPLUGIN   plugin
#define LINESIZE   2040

Functions

char * dxgets (char *s, int n, FILE *stream)
void * open_dx_read (const char *filepath, const char *filetype, int *natoms)
int read_dx_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_binary_dx_data (dx_t *dx, int set, float *datablock)
int read_dx_data (void *v, int set, float *datablock, float *colorblock)
void close_dx_read (void *v)
void * open_dx_write (const char *filepath, const char *filetype, int natoms)
void close_dx_write (void *v)
int write_dx_data (void *v, molfile_volumetric_t *metadata, float *datablock, float *colorblock)
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 dxplugin


Define Documentation

#define LINESIZE   2040
 

Definition at line 83 of file dxplugin.C.

Referenced by open_dx_read, and read_dx_data.

#define THISPLUGIN   plugin
 

Definition at line 80 of file dxplugin.C.


Function Documentation

void close_dx_read void *    v [static]
 

Definition at line 331 of file dxplugin.C.

References dx_t::fd, and dx_t::vol.

Referenced by VMDPLUGIN_init.

void close_dx_write void *    v [static]
 

Definition at line 352 of file dxplugin.C.

Referenced by VMDPLUGIN_init.

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

Definition at line 94 of file dxplugin.C.

Referenced by open_dx_read, and read_dx_data.

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

Definition at line 114 of file dxplugin.C.

References molfile_volumetric_t::dataname, dxgets, dx_t::fd, molfile_volumetric_t::has_color, dx_t::isBinary, LINESIZE, MOLFILE_NUMATOMS_NONE, dx_t::nsets, molfile_volumetric_t::origin, dx_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.

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

Definition at line 340 of file dxplugin.C.

Referenced by VMDPLUGIN_init.

int read_binary_dx_data dx_t   dx,
int    set,
float *    datablock
[static]
 

Definition at line 228 of file dxplugin.C.

References dx_t::fd, MOLFILE_ERROR, dx_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by read_dx_data.

int read_dx_data void *    v,
int    set,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 255 of file dxplugin.C.

References molfile_volumetric_t::dataname, dxgets, dx_t::fd, dx_t::isBinary, LINESIZE, MOLFILE_ERROR, read_binary_dx_data, dx_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

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

Definition at line 219 of file dxplugin.C.

References dx_t::nsets, and dx_t::vol.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 485 of file dxplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 457 of file dxplugin.C.

References close_dx_read, close_dx_write, molfile_plugin_t::close_file_read, molfile_plugin_t::close_file_write, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, open_dx_read, open_dx_write, molfile_plugin_t::open_file_read, molfile_plugin_t::open_file_write, read_dx_data, read_dx_metadata, molfile_plugin_t::read_volumetric_data, molfile_plugin_t::read_volumetric_metadata, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, VMDPLUGIN_THREADUNSAFE, write_dx_data, and molfile_plugin_t::write_volumetric_data.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 480 of file dxplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.

int write_dx_data void *    v,
molfile_volumetric_t   metadata,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 373 of file dxplugin.C.

References molfile_volumetric_t::dataname, molfile_volumetric_t::origin, 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.


Variable Documentation

molfile_plugin_t dxplugin [static]
 

Definition at line 455 of file dxplugin.C.


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