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

amiraplugin.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  am_t

Defines

#define BUFSZ   1024

Functions

char * get_next_noncomment_line (char *buf, int bufsz, FILE *f)
long find_data_offset (FILE *f)
int amira_readvar_int (am_t *am, char *varname, int *val)
int amira_readvar_float (am_t *am, char *varname, float *val)
int amira_check_trimesh (am_t *am)
void * open_file_read (const char *filepath, const char *filetype, int *natoms)
void close_file_read (void *v)
int read_volumetric_metadata (void *v, int *nsets, molfile_volumetric_t **metadata)
int read_volumetric_data (void *v, int set, float *datablock, float *colorblock)
int read_rawgraphics (void *v, int *nelem, const molfile_graphics_t **data)
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 BUFSZ   1024
 

Definition at line 40 of file amiraplugin.C.

Referenced by find_data_offset, and open_file_read.


Function Documentation

int amira_check_trimesh am_t   am [static]
 

Definition at line 114 of file amiraplugin.C.

References amira_readvar_int, am_t::hastrimesh, am_t::headerbuf, am_t::ntriangles, and am_t::nvertices.

Referenced by open_file_read.

int amira_readvar_float am_t   am,
char *    varname,
float *    val
[static]
 

Definition at line 100 of file amiraplugin.C.

References am_t::headerbuf.

int amira_readvar_int am_t   am,
char *    varname,
int *    val
[static]
 

Definition at line 86 of file amiraplugin.C.

References am_t::headerbuf.

Referenced by amira_check_trimesh.

void close_file_read void *    v [static]
 

Definition at line 214 of file amiraplugin.C.

References am_t::f, and am_t::vol.

Referenced by VMDPLUGIN_init.

long find_data_offset FILE *    f [static]
 

Definition at line 69 of file amiraplugin.C.

References BUFSZ.

Referenced by open_file_read.

char* get_next_noncomment_line char *    buf,
int    bufsz,
FILE *    f
[static]
 

Definition at line 61 of file amiraplugin.C.

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

Definition at line 134 of file amiraplugin.C.

References amira_check_trimesh, BUFSZ, am_t::dataoffset, am_t::f, find_data_offset, am_t::hastrimesh, am_t::headerbuf, am_t::isbinary, am_t::islittleendian, am_t::nsets, and am_t::vol.

Referenced by VMDPLUGIN_init.

int read_rawgraphics void *    v,
int *    nelem,
const molfile_graphics_t **    data
[static]
 

Definition at line 241 of file amiraplugin.C.

References BUFFLEN, calcNormals, molfile_graphics_t::data, MOLFILE_COLOR, MOLFILE_ERROR, MOLFILE_NORMS, MOLFILE_TRIANGLE, MOLFILE_TRICOLOR, nextNoncommentLine, and molfile_graphics_t::type.

Referenced by VMDPLUGIN_init.

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

Definition at line 234 of file amiraplugin.C.

References MOLFILE_ERROR.

Referenced by VMDPLUGIN_init.

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

Definition at line 224 of file amiraplugin.C.

References am_t::nsets, and am_t::vol.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 487 of file amiraplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 463 of file amiraplugin.C.

References close_file_read, molfile_plugin_t::close_file_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, open_file_read, molfile_plugin_t::open_file_read, read_rawgraphics, molfile_plugin_t::read_rawgraphics, read_volumetric_data, molfile_plugin_t::read_volumetric_data, read_volumetric_metadata, 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 482 of file amiraplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 461 of file amiraplugin.C.


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