Point Cloud Library (PCL)  1.5.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Classes | Typedefs | Enumerations | Functions
pcl::io::ply Namespace Reference

Namespaces

namespace  io_operators

Classes

class  ply_parser
 Class ply_parser parses a PLY file and generates appropriate atomic parsers for the body. More...
struct  property
struct  list_property
class  element
struct  obj_info
class  parser
struct  camera
 Wrapper for PLY camera structure to ease read/write. More...
struct  range_grid

Typedefs

typedef boost::int8_t int8
typedef boost::int16_t int16
typedef boost::int32_t int32
typedef boost::uint8_t uint8
typedef boost::uint16_t uint16
typedef boost::uint32_t uint32
typedef float float32
typedef double float64
typedef int format_type

Enumerations

enum  byte_order { little_endian_byte_order, big_endian_byte_order, network_byte_order = big_endian_byte_order }
enum  format { ascii_format, binary_little_endian_format, binary_big_endian_format, unknown }
enum  Format { ASCII_FORMAT = 0, BIG_ENDIAN_FORMAT = 1, LITTLE_ENDIAN_FORMAT = 2 }
 available PLY formats More...
enum  Flags {
  NONE = 0x0000000, VERTEX_XYZ = 0x0000001, VERTEX_NORMAL = 0x0000002, VERTEX_COLOR = 0x0000004,
  VERTEX_INTENSITY = 0x0000008, VERTEX_NORNAL = 0x0000010, VERTEX_RADIUS = 0x0000020, VERTEX_CONFIDENCE = 0x0000040,
  VERTEX_VIEWPOINT = 0x0000080, VERTEX_RANGE = 0x0000100, VERTEX_STRENGTH = 0x0000200, VERTEX_XY = 0x0000400,
  FACE_VERTICES = 0x0010000, CAMERA = 0x8000000, ALL = 0xFFFFFFF
}
 PLY file available flags. More...

Functions

template<std::size_t N>
void swap_byte_order (char *bytes)
template<>
void swap_byte_order< 1 > (char *bytes)
template<>
void swap_byte_order< 2 > (char *bytes)
template<>
void swap_byte_order< 4 > (char *bytes)
template<>
void swap_byte_order< 8 > (char *bytes)
template<typename T >
void swap_byte_order (T &value)
 PLY_TYPE_TRAITS (int8,"int8","char")
 PLY_TYPE_TRAITS (int16,"int16","short")
 PLY_TYPE_TRAITS (int32,"int32","int")
 PLY_TYPE_TRAITS (uint8,"uint8","uchar")
 PLY_TYPE_TRAITS (uint16,"uint16","ushort")
 PLY_TYPE_TRAITS (uint32,"uint32","uint")
 PLY_TYPE_TRAITS (float32,"float32","float")
 PLY_TYPE_TRAITS (float64,"float64","double")
Format getEndianess ()
int getTypeFromTypeName (const std::string &type_name)
size_t getMaximumCapacity (int size_type)
void write (const pcl::io::ply::camera &c, std::ostream &out, bool binary)
 write out a pcl::io::ply::camera structure to an ostream

Typedef Documentation

typedef float pcl::io::ply::float32

Definition at line 66 of file ply.h.

typedef double pcl::io::ply::float64

Definition at line 67 of file ply.h.

Definition at line 96 of file ply.h.

typedef boost::int16_t pcl::io::ply::int16

Definition at line 60 of file ply.h.

typedef boost::int32_t pcl::io::ply::int32

Definition at line 61 of file ply.h.

typedef boost::int8_t pcl::io::ply::int8

Definition at line 59 of file ply.h.

typedef boost::uint16_t pcl::io::ply::uint16

Definition at line 63 of file ply.h.

typedef boost::uint32_t pcl::io::ply::uint32

Definition at line 64 of file ply.h.

typedef boost::uint8_t pcl::io::ply::uint8

Definition at line 62 of file ply.h.


Enumeration Type Documentation

Enumerator:
little_endian_byte_order 
big_endian_byte_order 
network_byte_order 

Definition at line 68 of file byte_order.h.

PLY file available flags.

Enumerator:
NONE 
VERTEX_XYZ 
VERTEX_NORMAL 
VERTEX_COLOR 
VERTEX_INTENSITY 
VERTEX_NORNAL 
VERTEX_RADIUS 
VERTEX_CONFIDENCE 
VERTEX_VIEWPOINT 
VERTEX_RANGE 
VERTEX_STRENGTH 
VERTEX_XY 
FACE_VERTICES 
CAMERA 
ALL 

Definition at line 86 of file ply.h.

available PLY formats

Enumerator:
ASCII_FORMAT 
BIG_ENDIAN_FORMAT 
LITTLE_ENDIAN_FORMAT 

Definition at line 55 of file ply.h.

Enumerator:
ascii_format 
binary_little_endian_format 
binary_big_endian_format 
unknown 

Definition at line 97 of file ply.h.


Function Documentation

Returns:
endianess of the host machine

Definition at line 72 of file ply.h.

size_t pcl::io::ply::getMaximumCapacity ( int  size_type) [inline]

Definition at line 132 of file ply.h.

int pcl::io::ply::getTypeFromTypeName ( const std::string &  type_name) [inline]
Returns:
a property type from its type name

Definition at line 109 of file ply.h.

pcl::io::ply::PLY_TYPE_TRAITS ( int8  ,
"int8"  ,
"char"   
)
pcl::io::ply::PLY_TYPE_TRAITS ( int16  ,
"int16"  ,
"short"   
)
pcl::io::ply::PLY_TYPE_TRAITS ( int32  ,
"int32"  ,
"int"   
)
pcl::io::ply::PLY_TYPE_TRAITS ( uint8  ,
"uint8"  ,
"uchar"   
)
pcl::io::ply::PLY_TYPE_TRAITS ( uint16  ,
"uint16"  ,
"ushort"   
)
pcl::io::ply::PLY_TYPE_TRAITS ( uint32  ,
"uint32"  ,
"uint"   
)
pcl::io::ply::PLY_TYPE_TRAITS ( float32  ,
"float32"  ,
"float"   
)
pcl::io::ply::PLY_TYPE_TRAITS ( float64  ,
"float64"  ,
"double"   
)
template<std::size_t N>
void pcl::io::ply::swap_byte_order ( char *  bytes)
template<typename T >
void pcl::io::ply::swap_byte_order ( T &  value)

Definition at line 114 of file byte_order.h.

template<>
void pcl::io::ply::swap_byte_order< 1 > ( char *  bytes) [inline]

Definition at line 89 of file byte_order.h.

template<>
void pcl::io::ply::swap_byte_order< 2 > ( char *  bytes) [inline]

Definition at line 92 of file byte_order.h.

template<>
void pcl::io::ply::swap_byte_order< 4 > ( char *  bytes) [inline]

Definition at line 98 of file byte_order.h.

template<>
void pcl::io::ply::swap_byte_order< 8 > ( char *  bytes) [inline]

Definition at line 105 of file byte_order.h.

void pcl::io::ply::write ( const pcl::io::ply::camera c,
std::ostream &  out,
bool  binary 
) [inline]

write out a pcl::io::ply::camera structure to an ostream

Definition at line 596 of file ply.h.