PLY reader/writer  1.2.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Classes | Enumerations | Variables
PLY Namespace Reference

All the classes for this project fall within the PLY namespace. More...

Classes

struct  FloatValue
 An example Value: a float. More...
 
struct  Vertex
 An example Object: a Vertex with x,y,z coordinates. More...
 
struct  Face
 An example Object: a Face with a list of indices. More...
 
struct  VertexArray
 An example Array: a collection of Vertices. More...
 
struct  FaceArray
 An example Array: a collection of Faces. More...
 
struct  VertexExternal
 An example Array: an collection of Vertices. More...
 
struct  FaceExternal
 An example Array: an collection of Faces. More...
 
struct  Property
 The description of a Property of an Element. More...
 
struct  Element
 The description of an Element in the Header. More...
 
struct  Header
 The Header of a ply file. More...
 
struct  Reader
 The reader for extracting Objects from a ply stream. More...
 
struct  Writer
 The writer for storing Objects into a ply stream. More...
 
struct  Value
 A Value representing a Property. More...
 
struct  Object
 The basis for an Object containing some data. More...
 
struct  Array
 A collection of Objects. More...
 
struct  Storage
 A container for all Objects. More...
 
struct  AnyValue
 A Value representing a generic Property. More...
 
struct  AnyObject
 An Object representing a generic Element. More...
 
struct  AnyArray
 An Array representing a generic Element. More...
 

Enumerations

enum  Stream_type { ASCII = 1, BINARY_BE = 2, BINARY_LE = 3 }
 The storage type of the objects. More...
 
enum  Scalar_type {
  StartType = 0, Int8 = 1, Int16 = 2, Int32 = 3,
  Uint8 = 4, Uint16 = 5, Uint32 = 6, Float32 = 7,
  Float64 = 8, EndType = 9
}
 Scalar data types supported by PLY format. More...
 
enum  Variable_type { SCALAR = 0, LIST = 1, STRING = 2 }
 Variable types supported by PLY format. More...
 
enum  Verbatim { IGNORE, WARNING, EXCEPTION, ERROR }
 Ways to handle faults. More...
 

Variables

const char * type_names []
 The names used to describe the data types. More...
 
const char * old_type_names []
 Old names used in early versions to describe the data types. More...
 
const char _VERSION [] = "1.2.0"
 The version of the PLY code.
 
const size_t ply_type_bytes [] = {0, 1, 2, 4, 1, 2, 4, 4, 8, 0}
 The sizes (in bytes) of the different data types.
 
const int BIG_STRING = 4096
 The maximum number of characters in a line to read.
 
const Verbatim ON_FAULT = EXCEPTION
 How faults are handled.
 

Detailed Description

All the classes for this project fall within the PLY namespace.

Enumeration Type Documentation

Scalar data types supported by PLY format.

Enumerator
StartType 

start marker

Int8 

char

Int16 

short

Int32 

int

Uint8 

unsigned char

Uint16 

unsigned short

Uint32 

unsigned int

Float32 

float

Float64 

double

EndType 

end marker

The storage type of the objects.

Enumerator
ASCII 

ASCII PLY file.

BINARY_BE 

Binary PLY file, big endian.

BINARY_LE 

Binary PLY file, little endian.

Variable types supported by PLY format.

Enumerator
SCALAR 

Scalar value.

LIST 

List of scalars.

STRING 

String of chars.

Ways to handle faults.

Enumerator
IGNORE 

Ignore faults. Note that this may lead to unexpected results.

WARNING 

Give a message and ignore.

EXCEPTION 

Give a message and break.

ERROR 

Give a message and exit.

Variable Documentation

const char * PLY::old_type_names
Initial value:
=
{"invalid",
"char",
"short",
"int",
"uchar",
"ushort",
"uint",
"float",
"double"}

Old names used in early versions to describe the data types.

const char * PLY::type_names
Initial value:
=
{"invalid",
"int8",
"int16",
"int32",
"uint8",
"uint16",
"uint32",
"float32",
"float64"}

The names used to describe the data types.