Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ply.H File Reference

#include <stdio.h>
#include <stddef.h>

Include dependency graph for ply.H:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PlyProperty
struct  PlyElement
struct  PlyOtherProp
struct  OtherData
struct  OtherElem
struct  PlyOtherElems
struct  PlyPropRules
struct  PlyRuleList
struct  PlyFile

Defines

#define PLY_ASCII   1
#define PLY_BINARY_BE   2
#define PLY_BINARY_LE   3
#define PLY_OKAY   0
#define PLY_ERROR   -1
#define StartType   0
#define Int8   1
#define Int16   2
#define Int32   3
#define Uint8   4
#define Uint16   5
#define Uint32   6
#define Float32   7
#define Float64   8
#define EndType   9
#define PLY_SCALAR   0
#define PLY_LIST   1
#define PLY_STRING   2
#define AVERAGE_RULE   1
#define MAJORITY_RULE   2
#define MINIMUM_RULE   3
#define MAXIMUM_RULE   4
#define SAME_RULE   5
#define RANDOM_RULE   6
#define myalloc(mem_size)   my_alloc((mem_size), __LINE__, __FILE__)

Typedefs

typedef PlyProperty PlyProperty
typedef PlyElement PlyElement
typedef PlyOtherProp PlyOtherProp
typedef OtherData OtherData
typedef OtherElem OtherElem
typedef PlyOtherElems PlyOtherElems
typedef PlyPropRules PlyPropRules
typedef PlyRuleList PlyRuleList
typedef PlyFile PlyFile

Functions

void ply_describe_property (PlyFile *, char *, PlyProperty *)
void ply_get_property (PlyFile *, char *, PlyProperty *)
void ply_get_element (PlyFile *, void *)
PlyOtherElemsget_other_element_ply (PlyFile *)
PlyFileread_ply (FILE *)
PlyFilewrite_ply (FILE *, int, char **, int)
PlyFileopen_for_writing_ply (char *, int, char **, int)
void close_ply (PlyFile *)
void free_ply (PlyFile *)
void get_info_ply (PlyFile *, float *, int *)
void free_other_elements_ply (PlyOtherElems *)
void append_comment_ply (PlyFile *, char *)
void append_obj_info_ply (PlyFile *, char *)
void copy_comments_ply (PlyFile *, PlyFile *)
void copy_obj_info_ply (PlyFile *, PlyFile *)
char ** get_comments_ply (PlyFile *, int *)
char ** get_obj_info_ply (PlyFile *, int *)
char ** get_element_list_ply (PlyFile *, int *)
void setup_property_ply (PlyFile *, PlyProperty *)
void get_element_ply (PlyFile *, void *)
char * setup_element_read_ply (PlyFile *, int, int *)
PlyOtherPropget_other_properties_ply (PlyFile *, int)
void element_count_ply (PlyFile *, char *, int)
void describe_element_ply (PlyFile *, char *, int)
void describe_property_ply (PlyFile *, PlyProperty *)
void describe_other_properties_ply (PlyFile *, PlyOtherProp *, int)
void describe_other_elements_ply (PlyFile *, PlyOtherElems *)
void get_element_setup_ply (PlyFile *, char *, int, PlyProperty *)
PlyProperty ** get_element_description_ply (PlyFile *, char *, int *, int *)
void element_layout_ply (PlyFile *, char *, int, int, PlyProperty *)
void header_complete_ply (PlyFile *)
void put_element_setup_ply (PlyFile *, char *)
void put_element_ply (PlyFile *, void *)
void put_other_elements_ply (PlyFile *)
PlyPropRulesinit_rule_ply (PlyFile *, char *)
void modify_rule_ply (PlyPropRules *, char *, int)
void start_props_ply (PlyFile *, PlyPropRules *)
void weight_props_ply (PlyFile *, float, void *)
void * get_new_props_ply (PlyFile *)
void set_prop_rules_ply (PlyFile *, PlyRuleList *)
PlyRuleListappend_prop_rule (PlyRuleList *, char *, char *)
int matches_rule_name (char *)
int equal_strings (char *, char *)
char * recreate_command_line (int, char *argv[])


Define Documentation

#define AVERAGE_RULE   1
 

Definition at line 115 of file ply.H.

Referenced by get_new_props_ply(), and init_rule_ply().

#define EndType   9
 

Definition at line 60 of file ply.H.

Referenced by get_prop_type(), and write_scalar_type().

#define Float32   7
 

Definition at line 58 of file ply.H.

Referenced by get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().

#define Float64   8
 

Definition at line 59 of file ply.H.

Referenced by get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().

#define Int16   2
 

Definition at line 53 of file ply.H.

Referenced by get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().

#define Int32   3
 

Definition at line 54 of file ply.H.

Referenced by get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().

#define Int8   1
 

Definition at line 52 of file ply.H.

Referenced by add_property(), get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().

#define MAJORITY_RULE   2
 

Definition at line 116 of file ply.H.

#define MAXIMUM_RULE   4
 

Definition at line 118 of file ply.H.

Referenced by get_new_props_ply().

#define MINIMUM_RULE   3
 

Definition at line 117 of file ply.H.

Referenced by get_new_props_ply().

#define myalloc mem_size   )     my_alloc((mem_size), __LINE__, __FILE__)
 

Definition at line 158 of file ply.H.

Referenced by add_element(), add_property(), append_comment_ply(), append_obj_info_ply(), ascii_get_element(), binary_get_element(), describe_other_properties_ply(), describe_property_ply(), element_layout_ply(), get_element_description_ply(), get_element_list_ply(), get_new_props_ply(), get_other_element_ply(), get_other_properties(), get_words(), init_rule_ply(), open_for_writing_ply(), ply_describe_property(), ply_open_for_reading(), ply_read(), ply_write(), and weight_props_ply().

#define PLY_ASCII   1
 

Definition at line 42 of file ply.H.

Referenced by get_element_ply(), header_complete_ply(), ply_get_element(), ply_read(), and put_element_ply().

#define PLY_BINARY_BE   2
 

Definition at line 43 of file ply.H.

Referenced by header_complete_ply(), and ply_read().

#define PLY_BINARY_LE   3
 

Definition at line 44 of file ply.H.

Referenced by header_complete_ply(), and ply_read().

#define PLY_ERROR   -1
 

Definition at line 47 of file ply.H.

#define PLY_LIST   1
 

Definition at line 63 of file ply.H.

Referenced by add_property(), ascii_get_element(), binary_get_element(), header_complete_ply(), put_element_ply(), and setup_other_props().

#define PLY_OKAY   0
 

Definition at line 46 of file ply.H.

#define PLY_SCALAR   0
 

Definition at line 62 of file ply.H.

Referenced by add_property().

#define PLY_STRING   2
 

Definition at line 64 of file ply.H.

Referenced by add_property(), ascii_get_element(), binary_get_element(), header_complete_ply(), put_element_ply(), and setup_other_props().

#define RANDOM_RULE   6
 

Definition at line 120 of file ply.H.

Referenced by get_new_props_ply().

#define SAME_RULE   5
 

Definition at line 119 of file ply.H.

Referenced by get_new_props_ply().

#define StartType   0
 

Definition at line 51 of file ply.H.

Referenced by get_prop_type().

#define Uint16   5
 

Definition at line 56 of file ply.H.

Referenced by get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().

#define Uint32   6
 

Definition at line 57 of file ply.H.

Referenced by get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().

#define Uint8   4
 

Definition at line 55 of file ply.H.

Referenced by get_ascii_item(), get_binary_item(), get_item_value(), get_stored_item(), store_item(), write_ascii_item(), and write_binary_item().


Typedef Documentation

typedef struct OtherData OtherData
 

typedef struct OtherElem OtherElem
 

typedef struct PlyElement PlyElement
 

typedef struct PlyFile PlyFile
 

typedef struct PlyOtherElems PlyOtherElems
 

typedef struct PlyOtherProp PlyOtherProp
 

typedef struct PlyProperty PlyProperty
 

typedef struct PlyPropRules PlyPropRules
 

typedef struct PlyRuleList PlyRuleList
 


Function Documentation

void append_comment_ply PlyFile ,
char * 
 

Definition at line 2534 of file ply.C.

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

Referenced by add_comment(), and copy_comments_ply().

void append_obj_info_ply PlyFile ,
char * 
 

Definition at line 2574 of file ply.C.

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

Referenced by add_obj_info(), and copy_obj_info_ply().

PlyRuleList* append_prop_rule PlyRuleList ,
char *  ,
char * 
 

Definition at line 3245 of file ply.C.

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

void close_ply PlyFile  ) 
 

Definition at line 2613 of file ply.C.

References PlyFile::fp.

Referenced by read_file().

void copy_comments_ply PlyFile ,
PlyFile
 

Definition at line 2557 of file ply.C.

References append_comment_ply(), and PlyFile::comments.

void copy_obj_info_ply PlyFile ,
PlyFile
 

Definition at line 2597 of file ply.C.

References append_obj_info_ply(), and PlyFile::obj_info.

void describe_element_ply PlyFile ,
char *  ,
int 
 

Definition at line 2757 of file ply.C.

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

void describe_other_elements_ply PlyFile ,
PlyOtherElems
 

Definition at line 2888 of file ply.C.

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

void describe_other_properties_ply PlyFile ,
PlyOtherProp ,
int 
 

Definition at line 2828 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.

Referenced by describe_other_elements_ply().

void describe_property_ply PlyFile ,
PlyProperty
 

Definition at line 2789 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 ,
char *  ,
int 
 

Definition at line 331 of file ply.C.

References find_element(), and PlyElement::num.

Referenced by describe_other_elements_ply().

void element_layout_ply PlyFile ,
char *  ,
int  ,
int  ,
PlyProperty
 

Definition at line 236 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 * 
 

void free_other_elements_ply PlyOtherElems  ) 
 

Definition at line 1252 of file ply.C.

void free_ply PlyFile  ) 
 

Definition at line 2626 of file ply.C.

Referenced by read_file().

char** get_comments_ply PlyFile ,
int * 
 

Definition at line 930 of file ply.C.

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

PlyProperty** get_element_description_ply PlyFile ,
char *  ,
int *  ,
int * 
 

Definition at line 773 of file ply.C.

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

char** get_element_list_ply PlyFile ,
int * 
 

Definition at line 2509 of file ply.C.

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

void get_element_ply PlyFile ,
void * 
 

Definition at line 2675 of file ply.C.

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

Referenced by read_file().

void get_element_setup_ply PlyFile ,
char *  ,
int  ,
PlyProperty
 

Definition at line 817 of file ply.C.

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

void get_info_ply PlyFile ,
float *  ,
int * 
 

Definition at line 1292 of file ply.C.

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

void* get_new_props_ply PlyFile  ) 
 

Definition at line 3103 of file ply.C.

References AVERAGE_RULE, PlyFile::current_rules, PlyPropRules::elem, PlyProperty::external_type, get_stored_item(), int(), j, MAXIMUM_RULE, MINIMUM_RULE, myalloc, 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 ,
int * 
 

Definition at line 949 of file ply.C.

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

PlyOtherElems* get_other_element_ply PlyFile  ) 
 

Definition at line 1158 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.

Referenced by read_file().

PlyOtherProp* get_other_properties_ply PlyFile ,
int 
 

Definition at line 2735 of file ply.C.

References get_other_properties(), and PlyFile::which_elem.

Referenced by read_file().

void header_complete_ply PlyFile  ) 
 

Definition at line 360 of file ply.C.

References PlyFile::comments, PlyProperty::count_external, PlyFile::elems, PlyProperty::external_type, PlyFile::file_type, PlyFile::fp, PlyProperty::is_list, j, PlyProperty::name, PlyElement::name, PlyElement::num, 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 ,
char * 
 

Definition at line 2947 of file ply.C.

References AVERAGE_RULE, RuleName::code, PlyPropRules::elem, PlyRuleList::element, equal_strings(), find_element(), j, 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 *   ) 
 

Definition at line 3304 of file ply.C.

References equal_strings().

void modify_rule_ply PlyPropRules ,
char *  ,
int 
 

Definition at line 3018 of file ply.C.

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

PlyFile* open_for_writing_ply char *  ,
int  ,
char **  ,
int 
 

Definition at line 185 of file ply.C.

References myalloc, and ply_write().

void ply_describe_property PlyFile ,
char *  ,
PlyProperty
 

Definition at line 281 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 ,
void * 
 

Definition at line 910 of file ply.C.

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

Referenced by get_other_element_ply().

void ply_get_property PlyFile ,
char *  ,
PlyProperty
 

Definition at line 868 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.

void put_element_ply PlyFile ,
void * 
 

Definition at line 461 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, j, 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().

Referenced by put_other_elements_ply().

void put_element_setup_ply PlyFile ,
char * 
 

Definition at line 437 of file ply.C.

References find_element(), and PlyFile::which_elem.

Referenced by put_other_elements_ply().

void put_other_elements_ply PlyFile  ) 
 

Definition at line 1222 of file ply.C.

References OtherElem::elem_name, j, OtherElem::other_data, PlyFile::other_elems, PlyOtherElems::other_list, put_element_ply(), and put_element_setup_ply().

PlyFile* read_ply FILE *   ) 
 

Definition at line 2458 of file ply.C.

References elem_names, and ply_read().

Referenced by read_file().

char* recreate_command_line int  ,
char *  argv[]
 

Definition at line 1329 of file ply.C.

void set_prop_rules_ply PlyFile ,
PlyRuleList
 

Definition at line 3227 of file ply.C.

References PlyFile::rule_list.

char* setup_element_read_ply PlyFile ,
int  ,
int * 
 

Definition at line 2645 of file ply.C.

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

Referenced by read_file().

void setup_property_ply PlyFile ,
PlyProperty
 

Definition at line 2694 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.

Referenced by read_file().

void start_props_ply PlyFile ,
PlyPropRules
 

Definition at line 3045 of file ply.C.

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

void weight_props_ply PlyFile ,
float  ,
void * 
 

Definition at line 3068 of file ply.C.

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

PlyFile* write_ply FILE *  ,
int  ,
char **  ,
int 
 

Definition at line 2483 of file ply.C.

References ply_write().


Generated on Mon Sep 18 11:42:37 2006 for jot by  doxygen 1.4.4