Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions
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 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< 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
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)

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

Definition at line 943 of file plylib.cpp.

Definition at line 954 of file plylib.cpp.


Member Function Documentation

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]

Definition at line 272 of file plylib.h.

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]

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

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.

std::string vcg::ply::PlyFile::header [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:


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:50