#include <plylib.h>
Public Types | |
enum | { MODE_READ, MODE_WRITE } |
Public Member Functions | |
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) |
int | AddToRead (const PropDescriptor &p) |
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 |
std::string | header |
int(* | ReadCB )(GZFILE fp, const PlyProperty *r, void *mem, int fmt) |
float | version |
Private Member Functions | |
void | compile (PlyElement *e) |
void | compile (PlyProperty *p) |
vcg::ply::PlyFile::PlyFile | ( | void | ) |
Definition at line 943 of file plylib.cpp.
vcg::ply::PlyFile::~PlyFile | ( | void | ) |
Definition at line 954 of file plylib.cpp.
PlyElement* vcg::ply::PlyFile::AddElement | ( | const char * | name, |
int | number | ||
) | [protected] |
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 | ||
) |
Definition at line 1297 of file plylib.cpp.
int vcg::ply::PlyFile::AddToRead | ( | const PropDescriptor & | p | ) | [inline] |
void vcg::ply::PlyFile::compile | ( | PlyElement * | e | ) | [private] |
Definition at line 3458 of file plylib.cpp.
void vcg::ply::PlyFile::compile | ( | PlyProperty * | p | ) | [private] |
Definition at line 3169 of file plylib.cpp.
void vcg::ply::PlyFile::Destroy | ( | void | ) |
Definition at line 972 of file plylib.cpp.
const char * vcg::ply::PlyFile::ElemName | ( | int | i | ) |
Definition at line 1330 of file plylib.cpp.
int vcg::ply::PlyFile::ElemNumber | ( | int | i | ) | const |
Definition at line 1338 of file plylib.cpp.
PlyElement * vcg::ply::PlyFile::FindElement | ( | const char * | name | ) | [protected] |
Definition at line 1286 of file plylib.cpp.
int vcg::ply::PlyFile::FindType | ( | const char * | name | ) | const [protected] |
Definition at line 1275 of file plylib.cpp.
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 | ||
) |
Definition at line 959 of file plylib.cpp.
int vcg::ply::PlyFile::OpenRead | ( | const char * | filename | ) | [protected] |
Definition at line 983 of file plylib.cpp.
int vcg::ply::PlyFile::OpenWrite | ( | const char * | filename | ) | [protected] |
Definition at line 1265 of file plylib.cpp.
int vcg::ply::PlyFile::Read | ( | void * | mem | ) |
Definition at line 3614 of file plylib.cpp.
void vcg::ply::PlyFile::SetCurElement | ( | int | i | ) | [inline] |
std::vector<std::string> vcg::ply::PlyFile::comments |
PlyElement* vcg::ply::PlyFile::cure [protected] |
std::vector<PlyElement> vcg::ply::PlyFile::elements |
int vcg::ply::PlyFile::error [protected] |
int vcg::ply::PlyFile::format [protected] |
GZFILE vcg::ply::PlyFile::gzfp [protected] |
std::string vcg::ply::PlyFile::header [protected] |
const char * vcg::ply::PlyFile::newtypenames [static] |
int(* vcg::ply::PlyFile::ReadCB)(GZFILE fp, const PlyProperty *r, void *mem, int fmt) [protected] |
const char * vcg::ply::PlyFile::typenames [static] |
float vcg::ply::PlyFile::version [protected] |