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

plyplugin.C File Reference

#include <stdio.h>
#include <math.h>
#include <string.h>
#include "molfile_plugin.h"
#include "endianswap.h"
#include "ply.h"
#include "ply.c"

Go to the source code of this file.

Compounds

struct  Face
struct  ply_t
 plugin data handle. More...

struct  Vertex

Typedefs

typedef Vertex Vertex
typedef Face Face

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

PlyProperty vert_props []
PlyProperty face_props []
molfile_plugin_t plugin


Typedef Documentation

typedef struct Face Face
 

typedef struct Vertex Vertex
 


Function Documentation

void close_file_read void *    v [static]
 

Definition at line 264 of file plyplugin.C.

References ply_t::fd, and ply_t::graphics.

Referenced by VMDPLUGIN_init.

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

Definition at line 73 of file plyplugin.C.

References ply_t::fd, and ply_t::graphics.

Referenced by VMDPLUGIN_init.

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

Definition at line 90 of file plyplugin.C.

References Vertex::b, molfile_graphics_t::data, PlyFile::elems, equal_strings, ply_t::fd, free_ply, Vertex::g, get_element_ply, get_other_element_ply, get_other_properties_ply, ply_t::graphics, ply_t::has_normals, MOLFILE_ERROR, MOLFILE_TRIANGLE, PlyProperty::name, PlyElement::nprops, PlyFile::num_elem_types, Face::nverts, ply_t::per_vertex_color, PlyElement::props, Vertex::r, read_ply, setup_element_read_ply, setup_property_ply, molfile_graphics_t::type, Face::verts, Vertex::x, Vertex::y, and Vertex::z.

Referenced by VMDPLUGIN_init.

VMDPLUGIN_API int VMDPLUGIN_fini void   
 

Definition at line 301 of file plyplugin.C.

References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS.

VMDPLUGIN_API int VMDPLUGIN_init void   
 

Definition at line 279 of file plyplugin.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 296 of file plyplugin.C.

References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

PlyProperty face_props[]
 

Initial value:

 { 
  {"vertex_indices", Int32, Int32, offsetof(Face,verts),
   1, Uint8, Uint8, offsetof(Face,nverts)},
  {"vertex_index", Int32, Int32, offsetof(Face,verts),
   1, Uint8, Uint8, offsetof(Face,nverts)},
}

Definition at line 54 of file plyplugin.C.

molfile_plugin_t plugin [static]
 

Definition at line 277 of file plyplugin.C.

PlyProperty vert_props[]
 

Initial value:

 { 
  {"x", Float32, Float32, offsetof(Vertex,x), 0, 0, 0, 0},
  {"y", Float32, Float32, offsetof(Vertex,y), 0, 0, 0, 0},
  {"z", Float32, Float32, offsetof(Vertex,z), 0, 0, 0, 0},
  {"r", Float32, Float32, offsetof(Vertex,r), 0, 0, 0, 0},
  {"g", Float32, Float32, offsetof(Vertex,g), 0, 0, 0, 0},
  {"b", Float32, Float32, offsetof(Vertex,b), 0, 0, 0, 0},
  {"nx", Float32, Float32, offsetof(Vertex,nx), 0, 0, 0, 0},
  {"ny", Float32, Float32, offsetof(Vertex,ny), 0, 0, 0, 0},
  {"nz", Float32, Float32, offsetof(Vertex,nz), 0, 0, 0, 0},
}

Definition at line 42 of file plyplugin.C.


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