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

stlplugin.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  graphics_list
struct  stl_t

Typedefs

typedef graphics_list molfile_graphics_list

Functions

void * open_file_read (const char *filepath, const char *filetype, int *natoms)
int read_rawgraphics (void *v, int *nelem, const molfile_graphics_t **data)
void close_file_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


Typedef Documentation

typedef struct graphics_list molfile_graphics_list
 


Function Documentation

void close_file_read void *    v [static]
 

Definition at line 223 of file stlplugin.C.

References stl_t::fd, and stl_t::graphics.

Referenced by VMDPLUGIN_init.

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

Definition at line 63 of file stlplugin.C.

References stl_t::fd, and stl_t::graphics.

Referenced by VMDPLUGIN_init.

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

Definition at line 80 of file stlplugin.C.

References molfile_graphics_t::data, stl_t::fd, graphics_list::gItem, stl_t::graphics, MOLFILE_ERROR, MOLFILE_TRIANGLE, graphics_list::next, and molfile_graphics_t::type.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 259 of file stlplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 237 of file stlplugin.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, vmdplugin_ABIVERSION, VMDPLUGIN_API, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADSAFE.

VMDPLUGIN_API int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 254 of file stlplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 235 of file stlplugin.C.


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