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

vtkplugin.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  vtk_t

Defines

#define THISPLUGIN   plugin
#define LINESIZE   2040

Functions

char * vtkgets (char *s, int n, FILE *stream)
int vtkgetstrcmp (char *s, int n, FILE *stream, const char *cmpstr)
void * open_vtk_read (const char *filepath, const char *filetype, int *natoms)
int read_vtk_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_vtk_data (void *v, int set, float *datablock, float *colorblock)
void close_vtk_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 vtkplugin


Define Documentation

#define LINESIZE   2040
 

Definition at line 69 of file vtkplugin.C.

Referenced by open_vtk_read.

#define THISPLUGIN   plugin
 

Definition at line 66 of file vtkplugin.C.


Function Documentation

void close_vtk_read void *    v [static]
 

Definition at line 402 of file vtkplugin.C.

References vtk_t::fd, and vtk_t::vol.

Referenced by VMDPLUGIN_init.

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

Definition at line 111 of file vtkplugin.C.

References molfile_volumetric_t::dataname, vtk_t::fd, molfile_volumetric_t::has_color, molfile_volumetric_t::has_gradient, molfile_volumetric_t::has_scalar, molfile_volumetric_t::has_variance, vtk_t::isBinary, LINESIZE, MOLFILE_NUMATOMS_NONE, vtk_t::nsets, molfile_volumetric_t::origin, vtk_t::title, vtk_t::vol, vtkgets, vtkgetstrcmp, 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_vtk_data void *    v,
int    set,
float *    datablock,
float *    colorblock
[static]
 

Definition at line 267 of file vtkplugin.C.

References molfile_volumetric_t::dataname, vtk_t::fd, vtk_t::isBinary, MOLFILE_ERROR, vtk_t::vol, molfile_volumetric_t::xsize, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize.

Referenced by VMDPLUGIN_init.

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

Definition at line 257 of file vtkplugin.C.

References vtk_t::nsets, and vtk_t::vol.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 443 of file vtkplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 417 of file vtkplugin.C.

References molfile_plugin_t::close_file_read, close_vtk_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_vtk_read, molfile_plugin_t::read_volumetric_data, molfile_plugin_t::read_volumetric_data_ex, molfile_plugin_t::read_volumetric_metadata, read_vtk_data, read_vtk_metadata, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADUNSAFE.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 438 of file vtkplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.

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

Definition at line 81 of file vtkplugin.C.

Referenced by open_vtk_read, and vtkgetstrcmp.

int vtkgetstrcmp char *    s,
int    n,
FILE *    stream,
const char *    cmpstr
[static]
 

Definition at line 101 of file vtkplugin.C.

References vtkgets.

Referenced by open_vtk_read.


Variable Documentation

molfile_plugin_t vtkplugin [static]
 

Definition at line 415 of file vtkplugin.C.


Generated on Tue Jan 21 02:56:33 2020 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002