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

ply.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ply.h>

Go to the source code of this file.

Compounds

struct  RuleName

Defines

#define NO_OTHER_PROPS   -1
#define DONT_STORE_PROP   0
#define STORE_PROP   1
#define OTHER_PROP   0
#define NAMED_PROP   1
#define BIG_STRING   4096

Typedefs

typedef RuleName RuleName

Functions

int equal_strings (char *, char *)
PlyElementfind_element (PlyFile *, char *)
PlyPropertyfind_property (PlyElement *, char *, int *)
void write_scalar_type (FILE *, int)
char ** get_words (FILE *, int *, char **)
void write_binary_item (FILE *, int, unsigned int, double, int)
void write_ascii_item (FILE *, int, unsigned int, double, int)
void add_element (PlyFile *, char **, int)
void add_property (PlyFile *, char **, int)
void add_comment (PlyFile *, char *)
void add_obj_info (PlyFile *, char *)
void copy_property (PlyProperty *, PlyProperty *)
void store_item (char *, int, int, unsigned int, double)
void get_stored_item (void *, int, int *, unsigned int *, double *)
double get_item_value (char *, int)
void get_ascii_item (char *, int, int *, unsigned int *, double *)
void get_binary_item (FILE *, int, int *, unsigned int *, double *)
void ascii_get_element (PlyFile *, char *)
void binary_get_element (PlyFile *, char *)
char * my_alloc (int, int, char *)
PlyFileply_write (FILE *fp, int nelems, char **elem_names, int file_type)
PlyFileopen_for_writing_ply (char *filename, int nelems, char **elem_names, int file_type)
void element_layout_ply (PlyFile *plyfile, char *elem_name, int nelems, int nprops, PlyProperty *prop_list)
void ply_describe_property (PlyFile *plyfile, char *elem_name, PlyProperty *prop)
void element_count_ply (PlyFile *plyfile, char *elem_name, int nelems)
void header_complete_ply (PlyFile *plyfile)
void put_element_setup_ply (PlyFile *plyfile, char *elem_name)
void put_element_ply (PlyFile *plyfile, void *elem_ptr)
PlyFileply_read (FILE *fp, int *nelems, char ***elem_names)
PlyFileply_open_for_reading (char *filename, int *nelems, char ***elem_names, int *file_type, float *version)
PlyProperty ** get_element_description_ply (PlyFile *plyfile, char *elem_name, int *nelems, int *nprops)
void get_element_setup_ply (PlyFile *plyfile, char *elem_name, int nprops, PlyProperty *prop_list)
void ply_get_property (PlyFile *plyfile, char *elem_name, PlyProperty *prop)
void ply_get_element (PlyFile *plyfile, void *elem_ptr)
char ** get_comments_ply (PlyFile *plyfile, int *num_comments)
char ** get_obj_info_ply (PlyFile *plyfile, int *num_obj_info)
void setup_other_props (PlyFile *plyfile, PlyElement *elem)
PlyOtherPropget_other_properties (PlyFile *plyfile, PlyElement *elem, int offset)
PlyOtherPropply_get_other_properties (PlyFile *plyfile, char *elem_name, int offset)
PlyOtherElemsget_other_element_ply (PlyFile *plyfile)
void put_other_elements_ply (PlyFile *plyfile)
void free_other_elements_ply (PlyOtherElems *other_elems)
void ply_close (PlyFile *plyfile)
void get_info_ply (PlyFile *ply, float *version, int *file_type)
char * recreate_command_line (int argc, char *argv[])
int get_prop_type (char *type_name)
PlyFileread_ply (FILE *fp)
PlyFilewrite_ply (FILE *fp, int nelems, char **elem_names, int file_type)
char ** get_element_list_ply (PlyFile *ply, int *num_elems)
void append_comment_ply (PlyFile *ply, char *comment)
void copy_comments_ply (PlyFile *out_ply, PlyFile *in_ply)
void append_obj_info_ply (PlyFile *ply, char *obj_info)
void copy_obj_info_ply (PlyFile *out_ply, PlyFile *in_ply)
void close_ply (PlyFile *plyfile)
void free_ply (PlyFile *plyfile)
char * setup_element_read_ply (PlyFile *ply, int index, int *elem_count)
void get_element_ply (PlyFile *plyfile, void *elem_ptr)
void setup_property_ply (PlyFile *plyfile, PlyProperty *prop)
PlyOtherPropget_other_properties_ply (PlyFile *plyfile, int offset)
void describe_element_ply (PlyFile *plyfile, char *elem_name, int nelems)
void describe_property_ply (PlyFile *plyfile, PlyProperty *prop)
void describe_other_properties_ply (PlyFile *plyfile, PlyOtherProp *other, int offset)
void describe_other_elements_ply (PlyFile *plyfile, PlyOtherElems *other_elems)
PlyPropRulesinit_rule_ply (PlyFile *ply, char *elem_name)
void modify_rule_ply (PlyPropRules *rules, char *prop_name, int rule_type)
void start_props_ply (PlyFile *ply, PlyPropRules *rules)
void weight_props_ply (PlyFile *ply, float weight, void *other_props)
void * get_new_props_ply (PlyFile *ply)
void set_prop_rules_ply (PlyFile *ply, PlyRuleList *prop_rules)
PlyRuleListappend_prop_rule (PlyRuleList *rule_list, char *name, char *property)
int matches_rule_name (char *name)

Variables

char * type_names []
char * old_type_names []
int ply_type_size []
RuleName rule_name_list []


Define Documentation

#define BIG_STRING   4096
 

#define DONT_STORE_PROP   0
 

Definition at line 56 of file ply.c.

Referenced by ply_read.

#define NAMED_PROP   1
 

Definition at line 60 of file ply.c.

Referenced by describe_property_ply, element_layout_ply, and ply_describe_property.

#define NO_OTHER_PROPS   -1
 

Definition at line 54 of file ply.c.

Referenced by ascii_get_element, binary_get_element, get_other_properties, and ply_read.

#define OTHER_PROP   0
 

Definition at line 59 of file ply.c.

Referenced by describe_other_properties_ply, and put_element_ply.

#define STORE_PROP   1
 

Definition at line 57 of file ply.c.

Referenced by get_element_setup_ply, ply_get_property, and setup_property_ply.


Typedef Documentation

typedef struct RuleName RuleName
 


Function Documentation

void add_comment PlyFile  ,
char *   
 

Definition at line 2363 of file ply.c.

References append_comment_ply.

Referenced by ply_read.

void add_element PlyFile  ,
char **   ,
int   
 

Definition at line 2250 of file ply.c.

References PlyFile::elems, myalloc, PlyElement::name, PlyElement::nprops, PlyElement::num, and PlyFile::num_elem_types.

Referenced by ply_read.

void add_obj_info PlyFile  ,
char *   
 

Definition at line 2384 of file ply.c.

References append_obj_info_ply.

Referenced by ply_read.

void add_property PlyFile  ,
char **   ,
int   
 

Definition at line 2311 of file ply.c.

References PlyProperty::count_external, PlyFile::elems, equal_strings, PlyProperty::external_type, get_prop_type, Int8, PlyProperty::is_list, myalloc, PlyProperty::name, PlyElement::nprops, PlyFile::num_elem_types, PLY_LIST, PLY_SCALAR, PLY_STRING, and PlyElement::props.

Referenced by ply_read.

void append_comment_ply PlyFile   ply,
char *    comment
 

Definition at line 2533 of file ply.c.

References PlyFile::comments, myalloc, and PlyFile::num_comments.

void append_obj_info_ply PlyFile   ply,
char *    obj_info
 

Definition at line 2573 of file ply.c.

References myalloc, PlyFile::num_obj_info, and PlyFile::obj_info.

PlyRuleList* append_prop_rule PlyRuleList   rule_list,
char *    name,
char *    property
 

Definition at line 3247 of file ply.c.

References PlyRuleList::element, PlyRuleList::name, name, PlyRuleList::next, and PlyRuleList::property.

void ascii_get_element PlyFile  ,
char *   
 

Definition at line 1411 of file ply.c.

References PlyProperty::count_external, PlyProperty::count_internal, PlyProperty::count_offset, PlyProperty::external_type, PlyFile::fp, get_ascii_item, get_words, PlyProperty::internal_type, PlyProperty::is_list, myalloc, NO_OTHER_PROPS, PlyElement::nprops, PlyProperty::offset, PlyElement::other_offset, PlyElement::other_size, PLY_LIST, PLY_STRING, ply_type_size, PlyElement::props, store_item, PlyElement::store_prop, and PlyFile::which_elem.

Referenced by get_element_ply, and ply_get_element.

void binary_get_element PlyFile  ,
char *   
 

Definition at line 1546 of file ply.c.

References PlyProperty::count_external, PlyProperty::count_internal, PlyProperty::count_offset, PlyProperty::external_type, PlyFile::fp, get_binary_item, PlyProperty::internal_type, PlyProperty::is_list, myalloc, NO_OTHER_PROPS, PlyElement::nprops, PlyProperty::offset, PlyElement::other_offset, PlyElement::other_size, PLY_LIST, PLY_STRING, ply_type_size, PlyElement::props, store_item, PlyElement::store_prop, and PlyFile::which_elem.

Referenced by get_element_ply, and ply_get_element.

void close_ply PlyFile   plyfile
 

Definition at line 2612 of file ply.c.

References PlyFile::fp.

void copy_comments_ply PlyFile   out_ply,
PlyFile   in_ply
 

Definition at line 2556 of file ply.c.

References append_comment_ply, PlyFile::comments, and PlyFile::num_comments.

void copy_obj_info_ply PlyFile   out_ply,
PlyFile   in_ply
 

Definition at line 2596 of file ply.c.

References append_obj_info_ply, PlyFile::num_obj_info, and PlyFile::obj_info.

void copy_property PlyProperty  ,
PlyProperty  
 

Definition at line 2401 of file ply.c.

References PlyProperty::count_external, PlyProperty::count_internal, PlyProperty::count_offset, PlyProperty::external_type, PlyProperty::internal_type, PlyProperty::is_list, PlyProperty::name, and PlyProperty::offset.

Referenced by describe_other_properties_ply, describe_property_ply, element_layout_ply, get_element_description_ply, get_other_properties, and ply_describe_property.

void describe_element_ply PlyFile   plyfile,
char *    elem_name,
int    nelems
 

Definition at line 2756 of file ply.c.

References find_element, PlyElement::num, and PlyFile::which_elem.

void describe_other_elements_ply PlyFile   plyfile,
PlyOtherElems   other_elems
 

Definition at line 2887 of file ply.c.

References describe_other_properties_ply, OtherElem::elem_count, OtherElem::elem_name, element_count_ply, PlyOtherElems::num_elems, PlyFile::other_elems, PlyOtherElems::other_list, and OtherElem::other_props.

void describe_other_properties_ply PlyFile   plyfile,
PlyOtherProp   other,
int    offset
 

Definition at line 2827 of file ply.c.

References copy_property, find_element, myalloc, PlyOtherProp::name, PlyOtherProp::nprops, PlyElement::nprops, PlyElement::other_offset, OTHER_PROP, PlyElement::other_size, PlyOtherProp::props, PlyElement::props, PlyOtherProp::size, and PlyElement::store_prop.

void describe_property_ply PlyFile   plyfile,
PlyProperty   prop
 

Definition at line 2788 of file ply.c.

References copy_property, myalloc, NAMED_PROP, PlyElement::nprops, PlyElement::props, PlyElement::store_prop, and PlyFile::which_elem.

void element_count_ply PlyFile   plyfile,
char *    elem_name,
int    nelems
 

Definition at line 330 of file ply.c.

References find_element, and PlyElement::num.

void element_layout_ply PlyFile   plyfile,
char *    elem_name,
int    nelems,
int    nprops,
PlyProperty   prop_list
 

Definition at line 235 of file ply.c.

References copy_property, find_element, myalloc, NAMED_PROP, PlyElement::nprops, PlyElement::num, PlyElement::props, and PlyElement::store_prop.

int equal_strings char *   ,
char *   
 

Definition at line 1305 of file ply.c.

PlyElement * find_element PlyFile  ,
char *   
 

Definition at line 1364 of file ply.c.

References PlyFile::elems, equal_strings, PlyElement::name, and PlyFile::num_elem_types.

Referenced by describe_element_ply, describe_other_properties_ply, element_count_ply, element_layout_ply, get_element_description_ply, get_element_setup_ply, init_rule_ply, ply_describe_property, ply_get_other_properties, ply_get_property, and put_element_setup_ply.

PlyProperty * find_property PlyElement  ,
char *   ,
int *   
 

Definition at line 1388 of file ply.c.

References equal_strings, PlyProperty::name, PlyElement::nprops, and PlyElement::props.

Referenced by get_element_setup_ply, ply_get_property, and setup_property_ply.

void free_other_elements_ply PlyOtherElems   other_elems
 

Definition at line 1251 of file ply.c.

void free_ply PlyFile   plyfile
 

Definition at line 2625 of file ply.c.

void get_ascii_item char *   ,
int   ,
int *   ,
unsigned int *   ,
double *   
 

Definition at line 2133 of file ply.c.

References Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, and Uint8.

Referenced by ascii_get_element.

void get_binary_item FILE *   ,
int   ,
int *   ,
unsigned int *   ,
double *   
 

Definition at line 2050 of file ply.c.

References Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, and Uint8.

Referenced by binary_get_element.

char** get_comments_ply PlyFile   plyfile,
int *    num_comments
 

Definition at line 929 of file ply.c.

References PlyFile::comments, and PlyFile::num_comments.

PlyProperty** get_element_description_ply PlyFile   plyfile,
char *    elem_name,
int *    nelems,
int *    nprops
 

Definition at line 772 of file ply.c.

References copy_property, find_element, myalloc, PlyElement::nprops, PlyElement::num, and PlyElement::props.

char** get_element_list_ply PlyFile   ply,
int *    num_elems
 

Definition at line 2508 of file ply.c.

References PlyFile::elems, myalloc, PlyElement::name, and PlyFile::num_elem_types.

void get_element_ply PlyFile   plyfile,
void *    elem_ptr
 

Definition at line 2674 of file ply.c.

References ascii_get_element, binary_get_element, PlyFile::file_type, and PLY_ASCII.

void get_element_setup_ply PlyFile   plyfile,
char *    elem_name,
int    nprops,
PlyProperty   prop_list
 

Definition at line 816 of file ply.c.

References PlyProperty::count_internal, PlyProperty::count_offset, find_element, find_property, PlyProperty::internal_type, name, PlyProperty::offset, STORE_PROP, PlyElement::store_prop, and PlyFile::which_elem.

void get_info_ply PlyFile   ply,
float *    version,
int *    file_type
 

Definition at line 1291 of file ply.c.

References PlyFile::file_type, and PlyFile::version.

double get_item_value char *   ,
int   
 

Definition at line 1807 of file ply.c.

References Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, and Uint8.

void* get_new_props_ply PlyFile   ply
 

Definition at line 3102 of file ply.c.

References AVERAGE_RULE, PlyFile::current_rules, PlyPropRules::elem, PlyProperty::external_type, get_stored_item, MAXIMUM_RULE, MINIMUM_RULE, myalloc, PlyElement::nprops, PlyPropRules::nprops, PlyProperty::offset, PlyElement::other_size, PlyPropRules::props, PlyElement::props, RANDOM_RULE, PlyPropRules::rule_list, SAME_RULE, store_item, PlyElement::store_prop, and PlyPropRules::weights.

char** get_obj_info_ply PlyFile   plyfile,
int *    num_obj_info
 

Definition at line 948 of file ply.c.

References PlyFile::num_obj_info, and PlyFile::obj_info.

PlyOtherElems* get_other_element_ply PlyFile   plyfile
 

Definition at line 1157 of file ply.c.

References OtherElem::elem_count, OtherElem::elem_name, myalloc, PlyElement::name, PlyElement::num, PlyOtherElems::num_elems, OtherElem::other_data, PlyFile::other_elems, PlyOtherElems::other_list, OtherElem::other_props, ply_get_element, ply_get_other_properties, and PlyFile::which_elem.

PlyOtherProp* get_other_properties PlyFile   plyfile,
PlyElement   elem,
int    offset
[static]
 

Definition at line 1044 of file ply.c.

References copy_property, myalloc, PlyElement::name, PlyOtherProp::name, NO_OTHER_PROPS, PlyElement::nprops, PlyOtherProp::nprops, PlyElement::other_offset, PlyElement::other_size, PlyElement::props, PlyOtherProp::props, setup_other_props, PlyOtherProp::size, PlyElement::store_prop, and PlyFile::which_elem.

Referenced by get_other_properties_ply, and ply_get_other_properties.

PlyOtherProp* get_other_properties_ply PlyFile   plyfile,
int    offset
 

Definition at line 2734 of file ply.c.

References get_other_properties, and PlyFile::which_elem.

int get_prop_type char *    type_name
 

Definition at line 2283 of file ply.c.

References EndType, equal_strings, old_type_names, StartType, and type_names.

Referenced by add_property.

void get_stored_item void *   ,
int   ,
int *   ,
unsigned int *   ,
double *   
 

Definition at line 1980 of file ply.c.

References Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, and Uint8.

Referenced by get_new_props_ply, and put_element_ply.

char ** get_words FILE *   ,
int *   ,
char **   
 

Definition at line 1697 of file ply.c.

References myalloc.

Referenced by ascii_get_element, and ply_read.

void header_complete_ply PlyFile   plyfile
 

Definition at line 359 of file ply.c.

References PlyFile::comments, PlyProperty::count_external, PlyFile::elems, PlyProperty::external_type, PlyFile::file_type, PlyFile::fp, PlyProperty::is_list, PlyProperty::name, PlyElement::name, PlyElement::nprops, PlyElement::num, PlyFile::num_comments, PlyFile::num_elem_types, PlyFile::num_obj_info, PlyFile::obj_info, PLY_ASCII, PLY_BINARY_BE, PLY_BINARY_LE, PLY_LIST, PLY_STRING, PlyElement::props, and write_scalar_type.

PlyPropRules* init_rule_ply PlyFile   ply,
char *    elem_name
 

Definition at line 2946 of file ply.c.

References AVERAGE_RULE, RuleName::code, PlyPropRules::elem, PlyRuleList::element, equal_strings, find_element, PlyPropRules::max_props, myalloc, RuleName::name, PlyRuleList::name, PlyProperty::name, PlyElement::name, PlyRuleList::next, PlyPropRules::nprops, PlyElement::nprops, PlyRuleList::property, PlyElement::props, PlyFile::rule_list, and PlyPropRules::rule_list.

int matches_rule_name char *    name
 

Definition at line 3306 of file ply.c.

References RuleName::code, equal_strings, and name.

void modify_rule_ply PlyPropRules   rules,
char *    prop_name,
int    rule_type
 

Definition at line 3017 of file ply.c.

References PlyPropRules::elem, equal_strings, PlyProperty::name, PlyElement::nprops, PlyElement::props, and PlyPropRules::rule_list.

char * my_alloc int   ,
int   ,
char *   
[static]
 

Definition at line 2424 of file ply.c.

PlyFile* open_for_writing_ply char *    filename,
int    nelems,
char **    elem_names,
int    file_type
 

Definition at line 184 of file ply.c.

References myalloc, name, and ply_write.

void ply_close PlyFile   plyfile
 

Definition at line 1271 of file ply.c.

References PlyFile::fp.

void ply_describe_property PlyFile   plyfile,
char *    elem_name,
PlyProperty   prop
 

Definition at line 280 of file ply.c.

References copy_property, find_element, myalloc, NAMED_PROP, PlyElement::nprops, PlyElement::props, and PlyElement::store_prop.

void ply_get_element PlyFile   plyfile,
void *    elem_ptr
 

Definition at line 909 of file ply.c.

References ascii_get_element, binary_get_element, PlyFile::file_type, and PLY_ASCII.

PlyOtherProp* ply_get_other_properties PlyFile   plyfile,
char *    elem_name,
int    offset
 

Definition at line 1114 of file ply.c.

References find_element, and get_other_properties.

Referenced by get_other_element_ply.

void ply_get_property PlyFile   plyfile,
char *    elem_name,
PlyProperty   prop
 

Definition at line 867 of file ply.c.

References PlyProperty::count_internal, PlyProperty::count_offset, find_element, find_property, PlyProperty::internal_type, PlyProperty::name, PlyProperty::offset, STORE_PROP, PlyElement::store_prop, and PlyFile::which_elem.

PlyFile* ply_open_for_reading char *    filename,
int *    nelems,
char ***    elem_names,
int *    file_type,
float *    version
 

Definition at line 718 of file ply.c.

References PlyFile::file_type, myalloc, name, ply_read, and PlyFile::version.

PlyFile* ply_read FILE *    fp,
int *    nelems,
char ***    elem_names
 

Definition at line 610 of file ply.c.

References add_comment, add_element, add_obj_info, add_property, PlyFile::comments, DONT_STORE_PROP, PlyFile::elems, equal_strings, PlyFile::file_type, PlyFile::fp, get_words, myalloc, PlyElement::name, NO_OTHER_PROPS, PlyElement::nprops, PlyFile::num_comments, PlyFile::num_elem_types, PlyFile::num_obj_info, PlyFile::obj_info, PlyFile::other_elems, PlyElement::other_offset, PLY_ASCII, PLY_BINARY_BE, PLY_BINARY_LE, PlyFile::rule_list, PlyElement::store_prop, and PlyFile::version.

Referenced by ply_open_for_reading, and read_ply.

PlyFile* ply_write FILE *    fp,
int    nelems,
char **    elem_names,
int    file_type
 

Definition at line 129 of file ply.c.

References PlyFile::elems, PlyFile::file_type, PlyFile::fp, myalloc, PlyElement::name, PlyElement::nprops, PlyElement::num, PlyFile::num_comments, PlyFile::num_elem_types, PlyFile::num_obj_info, PlyFile::other_elems, and PlyFile::version.

Referenced by open_for_writing_ply, and write_ply.

void put_element_ply PlyFile   plyfile,
void *    elem_ptr
 

Definition at line 460 of file ply.c.

References PlyProperty::count_external, PlyProperty::count_internal, PlyProperty::count_offset, PlyProperty::external_type, PlyFile::file_type, PlyFile::fp, get_stored_item, PlyProperty::internal_type, PlyProperty::is_list, PlyElement::nprops, PlyProperty::offset, PlyElement::other_offset, OTHER_PROP, PLY_ASCII, PLY_LIST, PLY_STRING, ply_type_size, PlyElement::props, PlyElement::store_prop, PlyFile::which_elem, write_ascii_item, and write_binary_item.

void put_element_setup_ply PlyFile   plyfile,
char *    elem_name
 

Definition at line 436 of file ply.c.

References find_element, and PlyFile::which_elem.

void put_other_elements_ply PlyFile   plyfile
 

Definition at line 1221 of file ply.c.

References OtherElem::elem_count, OtherElem::elem_name, PlyOtherElems::num_elems, OtherElem::other_data, PlyFile::other_elems, PlyOtherElems::other_list, put_element_ply, and put_element_setup_ply.

PlyFile* read_ply FILE *    fp
 

Definition at line 2457 of file ply.c.

References ply_read.

char* recreate_command_line int    argc,
char *    argv[]
 

Definition at line 1328 of file ply.c.

void set_prop_rules_ply PlyFile   ply,
PlyRuleList   prop_rules
 

Definition at line 3229 of file ply.c.

References PlyFile::rule_list.

char* setup_element_read_ply PlyFile   ply,
int    index,
int *    elem_count
 

Definition at line 2644 of file ply.c.

References PlyFile::elems, PlyElement::name, PlyElement::num, PlyFile::num_elem_types, and PlyFile::which_elem.

void setup_other_props PlyFile   plyfile,
PlyElement   elem
 

Definition at line 966 of file ply.c.

References PlyProperty::count_external, PlyProperty::count_internal, PlyProperty::count_offset, PlyProperty::external_type, PlyProperty::internal_type, PlyProperty::is_list, PlyElement::nprops, PlyProperty::offset, PlyElement::other_size, PLY_LIST, PLY_STRING, ply_type_size, PlyElement::props, and PlyElement::store_prop.

Referenced by get_other_properties.

void setup_property_ply PlyFile   plyfile,
PlyProperty   prop
 

Definition at line 2693 of file ply.c.

References PlyProperty::count_internal, PlyProperty::count_offset, find_property, PlyProperty::internal_type, PlyElement::name, PlyProperty::name, PlyProperty::offset, STORE_PROP, PlyElement::store_prop, and PlyFile::which_elem.

void start_props_ply PlyFile   ply,
PlyPropRules   rules
 

Definition at line 3044 of file ply.c.

References PlyFile::current_rules, PlyPropRules::elem, and PlyPropRules::nprops.

void store_item char *   ,
int   ,
int   ,
unsigned    int,
double   
 

Definition at line 2186 of file ply.c.

References Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, and Uint8.

Referenced by ascii_get_element, binary_get_element, and get_new_props_ply.

void weight_props_ply PlyFile   ply,
float    weight,
void *    other_props
 

Definition at line 3067 of file ply.c.

References PlyFile::current_rules, PlyPropRules::max_props, myalloc, PlyPropRules::nprops, PlyPropRules::props, and PlyPropRules::weights.

void write_ascii_item FILE *   ,
int   ,
unsigned    int,
double   ,
int   
 

Definition at line 1936 of file ply.c.

References Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, and Uint8.

Referenced by put_element_ply.

void write_binary_item FILE *   ,
int   ,
unsigned    int,
double   ,
int   
 

Definition at line 1874 of file ply.c.

References Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, and Uint8.

Referenced by put_element_ply.

PlyFile* write_ply FILE *    fp,
int    nelems,
char **    elem_names,
int    file_type
 

Definition at line 2482 of file ply.c.

References ply_write.

void write_scalar_type FILE *   ,
int   
 

Definition at line 1667 of file ply.c.

References EndType, and type_names.

Referenced by header_complete_ply.


Variable Documentation

char* old_type_names[]
 

Initial value:

 {  
"invalid",
"char", "short", "int", "uchar", "ushort", "uint", "float", "double",
}

Definition at line 45 of file ply.c.

Referenced by get_prop_type.

int ply_type_size[]
 

Initial value:

 {
  0, 1, 2, 4, 1, 2, 4, 4, 8
}

Definition at line 50 of file ply.c.

Referenced by ascii_get_element, binary_get_element, put_element_ply, and setup_other_props.

RuleName rule_name_list[]
 

Initial value:

 {
  AVERAGE_RULE, "avg",
  RANDOM_RULE, "rnd",
  MINIMUM_RULE, "max",
  MAXIMUM_RULE, "min",
  MAJORITY_RULE, "major",
  SAME_RULE, "same",
  -1, "end_marker",
}

Definition at line 2922 of file ply.c.

char* type_names[]
 

Initial value:

 {  
"invalid",
"int8", "int16", "int32", "uint8", "uint16", "uint32", "float32", "float64",
}

Definition at line 40 of file ply.c.

Referenced by get_prop_type, and write_scalar_type.


Generated on Tue Aug 11 03:06:51 2020 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002