Defines | Functions | Variables
ply.c File Reference
#include <blort/TomGine/ply.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
Include dependency graph for TomGine/ply.c:

Go to the source code of this file.

Defines

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

Functions

void add_comment (PlyFile *, char *)
void add_element (PlyFile *, char **, int)
void add_obj_info (PlyFile *, char *)
void add_property (PlyFile *, char **, int)
void ascii_get_element (PlyFile *, char *)
void binary_get_element (PlyFile *, char *)
void copy_property (PlyProperty *, PlyProperty *)
int equal_strings (char *, char *)
PlyElementfind_element (PlyFile *, char *)
PlyPropertyfind_property (PlyElement *, char *, int *)
void get_ascii_item (char *, int, int *, unsigned int *, double *)
void get_binary_item (FILE *, int, int *, unsigned int *, double *)
double get_item_value (char *, int)
int get_prop_type (char *type_name)
void get_stored_item (void *, int, int *, unsigned int *, double *)
char ** get_words (FILE *, int *, char **)
char * my_alloc (int, int, char *)
char ** old_get_words (FILE *, int *)
double old_write_ascii_item (FILE *, char *, int)
void ply_close (PlyFile *plyfile)
void ply_describe_element (PlyFile *plyfile, char *elem_name, int nelems, int nprops, PlyProperty *prop_list)
void ply_describe_other_elements (PlyFile *plyfile, PlyOtherElems *other_elems)
void ply_describe_other_properties (PlyFile *plyfile, PlyOtherProp *other, int offset)
void ply_describe_property (PlyFile *plyfile, char *elem_name, PlyProperty *prop)
void ply_element_count (PlyFile *plyfile, char *elem_name, int nelems)
void ply_free_other_elements (PlyOtherElems *other_elems)
char ** ply_get_comments (PlyFile *plyfile, int *num_comments)
void ply_get_element (PlyFile *plyfile, void *elem_ptr)
PlyProperty ** ply_get_element_description (PlyFile *plyfile, char *elem_name, int *nelems, int *nprops)
void ply_get_element_setup (PlyFile *plyfile, char *elem_name, int nprops, PlyProperty *prop_list)
void ply_get_info (PlyFile *ply, float *version, int *file_type)
char ** ply_get_obj_info (PlyFile *plyfile, int *num_obj_info)
PlyOtherElemsply_get_other_element (PlyFile *plyfile, char *elem_name, int elem_count)
PlyOtherPropply_get_other_properties (PlyFile *plyfile, char *elem_name, int offset)
void ply_get_property (PlyFile *plyfile, char *elem_name, PlyProperty *prop)
void ply_header_complete (PlyFile *plyfile)
PlyFileply_open_for_reading (const char *filename, int *nelems, char ***elem_names, int *file_type, float *version)
PlyFileply_open_for_writing (char *filename, int nelems, char **elem_names, int file_type, float *version)
void ply_put_comment (PlyFile *plyfile, char *comment)
void ply_put_element (PlyFile *plyfile, void *elem_ptr)
void ply_put_element_setup (PlyFile *plyfile, char *elem_name)
void ply_put_obj_info (PlyFile *plyfile, char *obj_info)
void ply_put_other_elements (PlyFile *plyfile)
PlyFileply_read (FILE *fp, int *nelems, char ***elem_names)
PlyFileply_write (FILE *fp, int nelems, char **elem_names, int file_type)
void setup_other_props (PlyFile *plyfile, PlyElement *elem)
void store_item (char *, int, int, unsigned int, double)
void write_ascii_item (FILE *, int, unsigned int, double, int)
void write_binary_item (FILE *, int, unsigned int, double, int)
void write_scalar_type (FILE *, int)

Variables

int ply_type_size []
char * type_names []

Define Documentation

#define BIG_STRING   4096
#define DONT_STORE_PROP   0

Definition at line 65 of file TomGine/ply.c.

#define NAMED_PROP   1

Definition at line 69 of file TomGine/ply.c.

#define NO_OTHER_PROPS   -1

Definition at line 63 of file TomGine/ply.c.

#define OTHER_PROP   0

Definition at line 68 of file TomGine/ply.c.

#define STORE_PROP   1

Definition at line 66 of file TomGine/ply.c.


Function Documentation

void add_comment ( PlyFile plyfile,
char *  line 
)

Definition at line 2462 of file TomGine/ply.c.

void add_element ( PlyFile plyfile,
char **  words,
int  nwords 
)

Definition at line 2361 of file TomGine/ply.c.

void add_obj_info ( PlyFile plyfile,
char *  line 
)

Definition at line 2483 of file TomGine/ply.c.

void add_property ( PlyFile plyfile,
char **  words,
int  nwords 
)

Definition at line 2416 of file TomGine/ply.c.

void ascii_get_element ( PlyFile plyfile,
char *  elem_ptr 
)

Definition at line 1482 of file TomGine/ply.c.

void binary_get_element ( PlyFile plyfile,
char *  elem_ptr 
)

Definition at line 1604 of file TomGine/ply.c.

void copy_property ( PlyProperty dest,
PlyProperty src 
)

Definition at line 2500 of file TomGine/ply.c.

int equal_strings ( char *  s1,
char *  s2 
)

Definition at line 1409 of file TomGine/ply.c.

PlyElement * find_element ( PlyFile plyfile,
char *  element 
)

Definition at line 1435 of file TomGine/ply.c.

PlyProperty * find_property ( PlyElement elem,
char *  prop_name,
int *  index 
)

Definition at line 1459 of file TomGine/ply.c.

void get_ascii_item ( char *  word,
int  type,
int *  int_val,
unsigned int *  uint_val,
double *  double_val 
)

Definition at line 2244 of file TomGine/ply.c.

void get_binary_item ( FILE *  fp,
int  type,
int *  int_val,
unsigned int *  uint_val,
double *  double_val 
)

Definition at line 2159 of file TomGine/ply.c.

double get_item_value ( char *  item,
int  type 
)

Definition at line 1844 of file TomGine/ply.c.

int get_prop_type ( char *  type_name)

Definition at line 2394 of file TomGine/ply.c.

void get_stored_item ( void *  ptr,
int  type,
int *  int_val,
unsigned int *  uint_val,
double *  double_val 
)

Definition at line 2089 of file TomGine/ply.c.

char ** get_words ( FILE *  fp,
int *  nwords,
char **  orig_line 
)

Definition at line 1747 of file TomGine/ply.c.

char * my_alloc ( int  size,
int  lnum,
char *  fname 
)

Definition at line 2523 of file TomGine/ply.c.

char** old_get_words ( FILE *  ,
int *   
)
double old_write_ascii_item ( FILE *  fp,
char *  item,
int  type 
)

Definition at line 2013 of file TomGine/ply.c.

void ply_close ( PlyFile plyfile)

Definition at line 1375 of file TomGine/ply.c.

void ply_describe_element ( PlyFile plyfile,
char *  elem_name,
int  nelems,
int  nprops,
PlyProperty prop_list 
)

Definition at line 252 of file TomGine/ply.c.

void ply_describe_other_elements ( PlyFile plyfile,
PlyOtherElems other_elems 
)

Definition at line 1292 of file TomGine/ply.c.

void ply_describe_other_properties ( PlyFile plyfile,
PlyOtherProp other,
int  offset 
)

Definition at line 343 of file TomGine/ply.c.

void ply_describe_property ( PlyFile plyfile,
char *  elem_name,
PlyProperty prop 
)

Definition at line 297 of file TomGine/ply.c.

void ply_element_count ( PlyFile plyfile,
char *  elem_name,
int  nelems 
)

Definition at line 403 of file TomGine/ply.c.

void ply_free_other_elements ( PlyOtherElems other_elems)

Definition at line 1355 of file TomGine/ply.c.

char** ply_get_comments ( PlyFile plyfile,
int *  num_comments 
)

Definition at line 1022 of file TomGine/ply.c.

void ply_get_element ( PlyFile plyfile,
void *  elem_ptr 
)

Definition at line 1002 of file TomGine/ply.c.

PlyProperty** ply_get_element_description ( PlyFile plyfile,
char *  elem_name,
int *  nelems,
int *  nprops 
)

Definition at line 865 of file TomGine/ply.c.

void ply_get_element_setup ( PlyFile plyfile,
char *  elem_name,
int  nprops,
PlyProperty prop_list 
)

Definition at line 909 of file TomGine/ply.c.

void ply_get_info ( PlyFile ply,
float *  version,
int *  file_type 
)

Definition at line 1395 of file TomGine/ply.c.

char** ply_get_obj_info ( PlyFile plyfile,
int *  num_obj_info 
)

Definition at line 1041 of file TomGine/ply.c.

PlyOtherElems* ply_get_other_element ( PlyFile plyfile,
char *  elem_name,
int  elem_count 
)

Definition at line 1219 of file TomGine/ply.c.

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

Definition at line 1130 of file TomGine/ply.c.

void ply_get_property ( PlyFile plyfile,
char *  elem_name,
PlyProperty prop 
)

Definition at line 960 of file TomGine/ply.c.

void ply_header_complete ( PlyFile plyfile)

Definition at line 432 of file TomGine/ply.c.

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

Definition at line 811 of file TomGine/ply.c.

PlyFile* ply_open_for_writing ( char *  filename,
int  nelems,
char **  elem_names,
int  file_type,
float *  version 
)

Definition at line 197 of file TomGine/ply.c.

void ply_put_comment ( PlyFile plyfile,
char *  comment 
)

Definition at line 642 of file TomGine/ply.c.

void ply_put_element ( PlyFile plyfile,
void *  elem_ptr 
)

Definition at line 529 of file TomGine/ply.c.

void ply_put_element_setup ( PlyFile plyfile,
char *  elem_name 
)

Definition at line 505 of file TomGine/ply.c.

void ply_put_obj_info ( PlyFile plyfile,
char *  obj_info 
)

Definition at line 666 of file TomGine/ply.c.

void ply_put_other_elements ( PlyFile plyfile)

Definition at line 1325 of file TomGine/ply.c.

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

Definition at line 704 of file TomGine/ply.c.

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

Definition at line 141 of file TomGine/ply.c.

void setup_other_props ( PlyFile plyfile,
PlyElement elem 
)

Definition at line 1059 of file TomGine/ply.c.

void store_item ( char *  item,
int  type,
int  int_val,
unsigned int  uint_val,
double  double_val 
)

Definition at line 2297 of file TomGine/ply.c.

void write_ascii_item ( FILE *  fp,
int  int_val,
unsigned int  uint_val,
double  double_val,
int  type 
)

Definition at line 1971 of file TomGine/ply.c.

void write_binary_item ( FILE *  fp,
int  int_val,
unsigned int  uint_val,
double  double_val,
int  type 
)

Definition at line 1909 of file TomGine/ply.c.

void write_scalar_type ( FILE *  fp,
int  code 
)

Definition at line 1717 of file TomGine/ply.c.


Variable Documentation

Initial value:
 {
  0, 1, 2, 4, 1, 2, 4, 4, 8
}

Definition at line 59 of file TomGine/ply.c.

char* type_names[]
Initial value:
 {
"invalid",
"char", "short", "int",
"uchar", "ushort", "uint",
"float", "double",
}

Definition at line 52 of file TomGine/ply.c.



blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12