Blender  V2.59
Classes | Defines | Typedefs | Functions
ply.h File Reference
#include <stdio.h>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  PlyProperty
struct  PlyElement
struct  PlyOtherProp
struct  OtherData
struct  OtherElem
struct  PlyOtherElems
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 PLY_START_TYPE   0
#define PLY_CHAR   1
#define PLY_SHORT   2
#define PLY_INT   3
#define PLY_UCHAR   4
#define PLY_USHORT   5
#define PLY_UINT   6
#define PLY_FLOAT   7
#define PLY_DOUBLE   8
#define PLY_END_TYPE   9
#define PLY_SCALAR   0
#define PLY_LIST   1
#define myalloc(mem_size)   my_alloc((mem_size), __LINE__, __FILE__)

Typedefs

typedef struct PlyProperty PlyProperty
typedef struct PlyElement PlyElement
typedef struct PlyOtherProp PlyOtherProp
typedef struct OtherData OtherData
typedef struct OtherElem OtherElem
typedef struct PlyOtherElems PlyOtherElems
typedef struct PlyFile PlyFile

Functions

static char * my_alloc ()
PlyFileply_write (FILE *, int, char **, int)
PlyFileply_open_for_writing (char *, int, char **, int, float *)
void ply_describe_element (PlyFile *, char *, int, int, PlyProperty *)
void ply_describe_property (PlyFile *, char *, PlyProperty *)
void ply_element_count (PlyFile *, char *, int)
void ply_header_complete (PlyFile *)
void ply_put_element_setup (PlyFile *, char *)
void ply_put_element (PlyFile *, void *)
void ply_put_comment (PlyFile *, char *)
void ply_put_obj_info (PlyFile *, char *)
PlyFileply_read (FILE *, int *, char ***)
PlyFileply_open_for_reading (char *, int *, char ***, int *, float *)
PlyProperty ** ply_get_element_description (PlyFile *, char *, int *, int *)
void ply_get_element_setup (PlyFile *, char *, int, PlyProperty *)
void ply_get_property (PlyFile *, char *, PlyProperty *)
PlyOtherPropply_get_other_properties (PlyFile *, char *, int)
void ply_get_element (PlyFile *, void *)
char ** ply_get_comments (PlyFile *, int *)
char ** ply_get_obj_info (PlyFile *, int *)
void ply_close (PlyFile *)
void ply_get_info (PlyFile *, float *, int *)
PlyOtherElemsply_get_other_element (PlyFile *, char *, int)
void ply_describe_other_elements (PlyFile *, PlyOtherElems *)
void ply_put_other_elements (PlyFile *)
void ply_free_other_elements (PlyOtherElems *)
int equal_strings (char *, char *)

Define Documentation

#define myalloc (   mem_size)    my_alloc((mem_size), __LINE__, __FILE__)
#define PLY_ASCII   1
Id:
ply.h 26841 2010-02-12 13:34:04Z campbellbarton

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK *****

Definition at line 71 of file bsp/test/BSP_GhostTest/ply.h.

Referenced by ply_get_element(), ply_header_complete(), ply_put_element(), and ply_read().

#define PLY_BINARY_BE   2

Definition at line 72 of file bsp/test/BSP_GhostTest/ply.h.

Referenced by ply_header_complete(), and ply_read().

#define PLY_BINARY_LE   3

Definition at line 73 of file bsp/test/BSP_GhostTest/ply.h.

Referenced by ply_header_complete(), and ply_read().

#define PLY_CHAR   1
#define PLY_DOUBLE   8
#define PLY_END_TYPE   9

Definition at line 89 of file bsp/test/BSP_GhostTest/ply.h.

Referenced by get_prop_type(), and write_scalar_type().

#define PLY_ERROR   -1

Definition at line 76 of file bsp/test/BSP_GhostTest/ply.h.

#define PLY_FLOAT   7
#define PLY_INT   3
#define PLY_LIST   1

Definition at line 92 of file bsp/test/BSP_GhostTest/ply.h.

#define PLY_OKAY   0

Definition at line 75 of file bsp/test/BSP_GhostTest/ply.h.

#define PLY_SCALAR   0

Definition at line 91 of file bsp/test/BSP_GhostTest/ply.h.

#define PLY_SHORT   2
#define PLY_START_TYPE   0

Definition at line 80 of file bsp/test/BSP_GhostTest/ply.h.

Referenced by get_prop_type().

#define PLY_UCHAR   4
#define PLY_UINT   6
#define PLY_USHORT   5

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

Function Documentation

int equal_strings ( char *  s1,
char *  s2 
)
static char* my_alloc ( ) [static]
void ply_close ( PlyFile )
void ply_describe_element ( PlyFile ,
char *  ,
int  ,
int  ,
PlyProperty  
)

Definition at line 268 of file bsp/test/BSP_GhostTest/plyfile.c.

void ply_describe_other_elements ( PlyFile ,
PlyOtherElems  
)

Definition at line 1305 of file bsp/test/BSP_GhostTest/plyfile.c.

void ply_describe_property ( PlyFile ,
char *  ,
PlyProperty  
)

Definition at line 313 of file bsp/test/BSP_GhostTest/plyfile.c.

void ply_element_count ( PlyFile ,
char *  ,
int   
)

Definition at line 419 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by ply_describe_other_elements().

void ply_free_other_elements ( PlyOtherElems )
char** ply_get_comments ( PlyFile ,
int *   
)

Definition at line 1036 of file bsp/test/BSP_GhostTest/plyfile.c.

void ply_get_element ( PlyFile ,
void *   
)
PlyProperty** ply_get_element_description ( PlyFile ,
char *  ,
int *  ,
int *   
)
void ply_get_element_setup ( PlyFile ,
char *  ,
int  ,
PlyProperty  
)

Definition at line 923 of file bsp/test/BSP_GhostTest/plyfile.c.

void ply_get_info ( PlyFile ,
float *  ,
int *   
)

Definition at line 1404 of file bsp/test/BSP_GhostTest/plyfile.c.

char** ply_get_obj_info ( PlyFile ,
int *   
)

Definition at line 1055 of file bsp/test/BSP_GhostTest/plyfile.c.

PlyOtherElems* ply_get_other_element ( PlyFile ,
char *  ,
int   
)

Definition at line 1233 of file bsp/test/BSP_GhostTest/plyfile.c.

PlyOtherProp* ply_get_other_properties ( PlyFile ,
char *  ,
int   
)

Definition at line 1144 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by ply_get_other_element().

void ply_get_property ( PlyFile ,
char *  ,
PlyProperty  
)
void ply_header_complete ( PlyFile )

Definition at line 446 of file bsp/test/BSP_GhostTest/plyfile.c.

PlyFile* ply_open_for_reading ( char *  ,
int *  ,
char ***  ,
int *  ,
float *   
)
PlyFile* ply_open_for_writing ( char *  ,
int  ,
char **  ,
int  ,
float *   
)

Definition at line 215 of file bsp/test/BSP_GhostTest/plyfile.c.

void ply_put_comment ( PlyFile ,
char *   
)

Definition at line 656 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by add_comment().

void ply_put_element ( PlyFile ,
void *   
)

Definition at line 543 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by ply_put_other_elements().

void ply_put_element_setup ( PlyFile ,
char *   
)

Definition at line 519 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by ply_put_other_elements().

void ply_put_obj_info ( PlyFile ,
char *   
)

Definition at line 680 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by add_obj_info().

void ply_put_other_elements ( PlyFile )

Definition at line 1338 of file bsp/test/BSP_GhostTest/plyfile.c.

PlyFile* ply_read ( FILE *  ,
int *  ,
char ***   
)

Definition at line 718 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by ply_open_for_reading().

PlyFile* ply_write ( FILE *  ,
int  ,
char **  ,
int   
)

Definition at line 159 of file bsp/test/BSP_GhostTest/plyfile.c.

Referenced by ply_open_for_writing().