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< PlyElementelements

Static Public Attributes

static const char * newtypenames [9]
static const char * typenames [9]

Protected Member Functions

PlyElementAddElement (const char *name, int number)
PlyElementFindElement (const char *name)
int FindType (const char *name) const
int OpenRead (const char *filename)
int OpenWrite (const char *filename)

Protected Attributes

PlyElementcure
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

anonymous enum
Enumerator:
MODE_READ 
MODE_WRITE 

Definition at line 244 of file plylib.h.


Constructor & Destructor Documentation

vcg::ply::PlyFile::PlyFile ( void   ) 

Definition at line 987 of file plylib.cpp.

vcg::ply::PlyFile::~PlyFile ( void   ) 

Definition at line 998 of file plylib.cpp.


Member Function Documentation

PlyElement* vcg::ply::PlyFile::AddElement ( const char *  name,
int  number 
) [protected]
int vcg::ply::PlyFile::AddToRead ( const PropDescriptor p  )  [inline]

Definition at line 272 of file plylib.h.

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.

void vcg::ply::PlyFile::compile ( PlyProperty p  )  [private]

Definition at line 3166 of file plylib.cpp.

void vcg::ply::PlyFile::compile ( PlyElement e  )  [private]

Definition at line 3455 of file plylib.cpp.

void vcg::ply::PlyFile::Destroy ( void   ) 

Definition at line 1016 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]

Definition at line 257 of file plylib.h.

const char* vcg::ply::PlyFile::GetHeader (  )  const [inline]

Definition at line 303 of file plylib.h.

int vcg::ply::PlyFile::Open ( const char *  filename,
int  mode 
)

Definition at line 1003 of file plylib.cpp.

int vcg::ply::PlyFile::OpenRead ( const char *  filename  )  [protected]

Definition at line 1027 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 3611 of file plylib.cpp.

void vcg::ply::PlyFile::SetCurElement ( int  i  )  [inline]

Definition at line 286 of file plylib.h.


Member Data Documentation

std::vector<std::string> vcg::ply::PlyFile::comments

Definition at line 299 of file plylib.h.

Definition at line 314 of file plylib.h.

Definition at line 298 of file plylib.h.

int vcg::ply::PlyFile::error [protected]

Definition at line 309 of file plylib.h.

int vcg::ply::PlyFile::format [protected]

Definition at line 310 of file plylib.h.

Definition at line 306 of file plylib.h.

char vcg::ply::PlyFile::header[4096] [protected]

Definition at line 312 of file plylib.h.

const char * vcg::ply::PlyFile::newtypenames [static]
Initial value:
{
        "none",
        "int8",
        "int16",
        "int32",
        "uint8",
        "uint16",
        "uint32",
        "float32",
        "float64"
}

Definition at line 301 of file plylib.h.

int(* vcg::ply::PlyFile::ReadCB)(GZFILE fp, const PlyProperty *r, void *mem, int fmt) [protected]

Definition at line 317 of file plylib.h.

const char * vcg::ply::PlyFile::typenames [static]
Initial value:
{
        "none",
        "char",
        "short",
        "int",
        "uchar",
        "ushort",
        "uint",
        "float",
        "double"
}

Definition at line 300 of file plylib.h.

float vcg::ply::PlyFile::version [protected]

Definition at line 308 of file plylib.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:26 2013