vcg::ply::PlyFile Class Reference
#include <plylib.h>
List of all members.
Public Types |
enum | { MODE_READ,
MODE_WRITE
} |
Public Member Functions |
int | AddToRead (const PropDescriptor &p) |
int | AddToRead (const char *elemname, const char *propname, int stotype1, int memtype1, size_t offset1, int islist, int alloclist, int stotype2, int memtype2, size_t offset2) |
void | Destroy () |
const char * | ElemName (int i) |
int | ElemNumber (int i) const |
int | GetError () const |
const char * | GetHeader () const |
int | Open (const char *filename, int mode) |
| PlyFile () |
int | Read (void *mem) |
void | SetCurElement (int i) |
| ~PlyFile () |
Public Attributes |
std::vector< std::string > | comments |
std::vector< PlyElement > | elements |
Static Public Attributes |
static const char * | newtypenames [9] |
static const char * | typenames [9] |
Protected Member Functions |
PlyElement * | AddElement (const char *name, int number) |
PlyElement * | FindElement (const char *name) |
int | FindType (const char *name) const |
int | OpenRead (const char *filename) |
int | OpenWrite (const char *filename) |
Protected Attributes |
PlyElement * | cure |
int | error |
int | format |
GZFILE | gzfp |
char | header [4096] |
int(* | ReadCB )(GZFILE fp, const PlyProperty *r, void *mem, int fmt) |
float | version |
Private Member Functions |
void | compile (PlyProperty *p) |
void | compile (PlyElement *e) |
Detailed Description
Definition at line 236 of file plylib.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
vcg::ply::PlyFile::PlyFile |
( |
void |
|
) |
|
vcg::ply::PlyFile::~PlyFile |
( |
void |
|
) |
|
Member Function Documentation
PlyElement* vcg::ply::PlyFile::AddElement |
( |
const char * |
name, |
|
|
int |
number | |
|
) |
| | [protected] |
int vcg::ply::PlyFile::AddToRead |
( |
const PropDescriptor & |
p |
) |
[inline] |
int vcg::ply::PlyFile::AddToRead |
( |
const char * |
elemname, |
|
|
const char * |
propname, |
|
|
int |
stotype1, |
|
|
int |
memtype1, |
|
|
size_t |
offset1, |
|
|
int |
islist, |
|
|
int |
alloclist, |
|
|
int |
stotype2, |
|
|
int |
memtype2, |
|
|
size_t |
offset2 | |
|
) |
| | |
void vcg::ply::PlyFile::compile |
( |
PlyProperty * |
p |
) |
[private] |
void vcg::ply::PlyFile::compile |
( |
PlyElement * |
e |
) |
[private] |
void vcg::ply::PlyFile::Destroy |
( |
void |
|
) |
|
const char * vcg::ply::PlyFile::ElemName |
( |
int |
i |
) |
|
int vcg::ply::PlyFile::ElemNumber |
( |
int |
i |
) |
const |
PlyElement * vcg::ply::PlyFile::FindElement |
( |
const char * |
name |
) |
[protected] |
int vcg::ply::PlyFile::FindType |
( |
const char * |
name |
) |
const [protected] |
int vcg::ply::PlyFile::GetError |
( |
|
) |
const [inline] |
const char* vcg::ply::PlyFile::GetHeader |
( |
|
) |
const [inline] |
int vcg::ply::PlyFile::Open |
( |
const char * |
filename, |
|
|
int |
mode | |
|
) |
| | |
int vcg::ply::PlyFile::OpenRead |
( |
const char * |
filename |
) |
[protected] |
int vcg::ply::PlyFile::OpenWrite |
( |
const char * |
filename |
) |
[protected] |
int vcg::ply::PlyFile::Read |
( |
void * |
mem |
) |
|
void vcg::ply::PlyFile::SetCurElement |
( |
int |
i |
) |
[inline] |
Member Data Documentation
Initial value:
{
"none",
"int8",
"int16",
"int32",
"uint8",
"uint16",
"uint32",
"float32",
"float64"
}
Definition at line 301 of file plylib.h.
Initial value:
{
"none",
"char",
"short",
"int",
"uchar",
"ushort",
"uint",
"float",
"double"
}
Definition at line 300 of file plylib.h.
The documentation for this class was generated from the following files: