rply.h File Reference

Go to the source code of this file.

Defines

#define RPLY_VERSION   "RPly 1.01"
#define RPLY_COPYRIGHT   "Copyright (C) 2003-2005 Diego Nehab"
#define RPLY_AUTHORS   "Diego Nehab"

Typedefs

typedef struct t_ply_ * p_ply
typedef struct t_ply_element_ * p_ply_element
typedef struct t_ply_property_ * p_ply_property
typedef struct t_ply_argument_ * p_ply_argument
typedef enum e_ply_storage_mode_ e_ply_storage_mode
typedef void(* p_ply_error_cb )(const char *message)
typedef int(* p_ply_read_cb )(p_ply_argument argument)

Enumerations

enum  e_ply_storage_mode_ { PLY_BIG_ENDIAN, PLY_LITTLE_ENDIAN, PLY_ASCII, PLY_DEFAULT }
enum  e_ply_type {
  PLY_INT8, PLY_UINT8, PLY_INT16, PLY_UINT16,
  PLY_INT32, PLY_UIN32, PLY_FLOAT32, PLY_FLOAT64,
  PLY_CHAR, PLY_UCHAR, PLY_SHORT, PLY_USHORT,
  PLY_INT, PLY_UINT, PLY_FLOAT, PLY_DOUBLE,
  PLY_LIST
}

Functions

p_ply ply_open (const char *name, p_ply_error_cb error_cb)
int ply_read_header (p_ply ply)
long ply_set_read_cb (p_ply ply, const char *element_name, const char *property_name, p_ply_read_cb read_cb, void *pdata, long idata)
int ply_get_argument_element (p_ply_argument argument, p_ply_element *element, long *instance_index)
int ply_get_argument_property (p_ply_argument argument, p_ply_property *property, long *length, long *value_index)
int ply_get_argument_user_data (p_ply_argument argument, void **pdata, long *idata)
double ply_get_argument_value (p_ply_argument argument)
int ply_read (p_ply ply)
p_ply_element ply_get_next_element (p_ply ply, p_ply_element last)
const char * ply_get_next_comment (p_ply ply, const char *last)
const char * ply_get_next_obj_info (p_ply ply, const char *last)
int ply_get_element_info (p_ply_element element, const char **name, long *ninstances)
p_ply_property ply_get_next_property (p_ply_element element, p_ply_property last)
int ply_get_property_info (p_ply_property property, const char **name, e_ply_type *type, e_ply_type *length_type, e_ply_type *value_type)
p_ply ply_create (const char *name, e_ply_storage_mode storage_mode, p_ply_error_cb error_cb)
int ply_add_element (p_ply ply, const char *name, long ninstances)
int ply_add_property (p_ply ply, const char *name, e_ply_type type, e_ply_type length_type, e_ply_type value_type)
int ply_add_list_property (p_ply ply, const char *name, e_ply_type length_type, e_ply_type value_type)
int ply_add_scalar_property (p_ply ply, const char *name, e_ply_type type)
int ply_add_comment (p_ply ply, const char *comment)
int ply_add_obj_info (p_ply ply, const char *obj_info)
int ply_write_header (p_ply ply)
int ply_write (p_ply ply, double value)
int ply_close (p_ply ply)


Define Documentation

#define RPLY_AUTHORS   "Diego Nehab"

Definition at line 18 of file rply.h.

#define RPLY_COPYRIGHT   "Copyright (C) 2003-2005 Diego Nehab"

Definition at line 17 of file rply.h.

#define RPLY_VERSION   "RPly 1.01"

Definition at line 16 of file rply.h.


Typedef Documentation

typedef struct t_ply_* p_ply

Definition at line 24 of file rply.h.

typedef struct t_ply_argument_* p_ply_argument

Definition at line 27 of file rply.h.

typedef struct t_ply_element_* p_ply_element

Definition at line 25 of file rply.h.

typedef void(* p_ply_error_cb)(const char *message)

Definition at line 51 of file rply.h.

typedef struct t_ply_property_* p_ply_property

Definition at line 26 of file rply.h.

typedef int(* p_ply_read_cb)(p_ply_argument argument)

Definition at line 79 of file rply.h.


Enumeration Type Documentation

Enumerator:
PLY_BIG_ENDIAN 
PLY_LITTLE_ENDIAN 
PLY_ASCII 
PLY_DEFAULT 

Definition at line 30 of file rply.h.

enum e_ply_type

Enumerator:
PLY_INT8 
PLY_UINT8 
PLY_INT16 
PLY_UINT16 
PLY_INT32 
PLY_UIN32 
PLY_FLOAT32 
PLY_FLOAT64 
PLY_CHAR 
PLY_UCHAR 
PLY_SHORT 
PLY_USHORT 
PLY_INT 
PLY_UINT 
PLY_FLOAT 
PLY_DOUBLE 
PLY_LIST 

Definition at line 38 of file rply.h.


Function Documentation

int ply_add_comment ( p_ply  ply,
const char *  comment 
)

int ply_add_element ( p_ply  ply,
const char *  name,
long  ninstances 
)

int ply_add_list_property ( p_ply  ply,
const char *  name,
e_ply_type  length_type,
e_ply_type  value_type 
)

int ply_add_obj_info ( p_ply  ply,
const char *  obj_info 
)

int ply_add_property ( p_ply  ply,
const char *  name,
e_ply_type  type,
e_ply_type  length_type,
e_ply_type  value_type 
)

int ply_add_scalar_property ( p_ply  ply,
const char *  name,
e_ply_type  type 
)

int ply_close ( p_ply  ply  ) 

Referenced by lux::PlyMesh::PlyMesh().

p_ply ply_create ( const char *  name,
e_ply_storage_mode  storage_mode,
p_ply_error_cb  error_cb 
)

int ply_get_argument_element ( p_ply_argument  argument,
p_ply_element element,
long *  instance_index 
)

Referenced by lux::FaceCB(), and lux::VertexCB().

int ply_get_argument_property ( p_ply_argument  argument,
p_ply_property property,
long *  length,
long *  value_index 
)

Referenced by lux::FaceCB().

int ply_get_argument_user_data ( p_ply_argument  argument,
void **  pdata,
long *  idata 
)

Referenced by lux::FaceCB(), and lux::VertexCB().

double ply_get_argument_value ( p_ply_argument  argument  ) 

Referenced by lux::FaceCB(), and lux::VertexCB().

int ply_get_element_info ( p_ply_element  element,
const char **  name,
long *  ninstances 
)

const char* ply_get_next_comment ( p_ply  ply,
const char *  last 
)

p_ply_element ply_get_next_element ( p_ply  ply,
p_ply_element  last 
)

const char* ply_get_next_obj_info ( p_ply  ply,
const char *  last 
)

p_ply_property ply_get_next_property ( p_ply_element  element,
p_ply_property  last 
)

int ply_get_property_info ( p_ply_property  property,
const char **  name,
e_ply_type type,
e_ply_type length_type,
e_ply_type value_type 
)

p_ply ply_open ( const char *  name,
p_ply_error_cb  error_cb 
)

Referenced by lux::PlyMesh::PlyMesh().

int ply_read ( p_ply  ply  ) 

Referenced by lux::PlyMesh::PlyMesh().

int ply_read_header ( p_ply  ply  ) 

Referenced by lux::PlyMesh::PlyMesh().

long ply_set_read_cb ( p_ply  ply,
const char *  element_name,
const char *  property_name,
p_ply_read_cb  read_cb,
void *  pdata,
long  idata 
)

Referenced by lux::PlyMesh::PlyMesh().

int ply_write ( p_ply  ply,
double  value 
)

int ply_write_header ( p_ply  ply  ) 


Generated on Sat Aug 15 19:14:40 2009 for lux by  doxygen 1.5.9