ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PlyColorAndValueVertex< Real > Class Template Reference

#include <Ply.h>

Collaboration diagram for PlyColorAndValueVertex< Real >:

Classes

struct  _PlyColorAndValueVertex
 

Public Types

typedef _PlyColorAndValueVertex Wrapper
 

Public Member Functions

 operator Point3D< Real > & ()
 
 operator const Point3D< Real > & () const
 
 PlyColorAndValueVertex (void)
 
 PlyColorAndValueVertex (const Point3D< Real > &p)
 
 PlyColorAndValueVertex (const Point3D< Real > &p, const unsigned char c[3], Real v)
 

Public Attributes

Point3D< Real > point
 
unsigned char color [3]
 
Real value
 

Static Public Attributes

static const int ReadComponents =10
 
static const int WriteComponents =7
 
static PlyProperty ReadProperties []
 
static PlyProperty WriteProperties []
 

Detailed Description

template<class Real>
class PlyColorAndValueVertex< Real >

Definition at line 438 of file Ply.h.

Member Typedef Documentation

◆ Wrapper

template<class Real >
typedef _PlyColorAndValueVertex PlyColorAndValueVertex< Real >::Wrapper

Definition at line 467 of file Ply.h.

Constructor & Destructor Documentation

◆ PlyColorAndValueVertex() [1/3]

template<class Real >
PlyColorAndValueVertex< Real >::PlyColorAndValueVertex ( void  )
inline

◆ PlyColorAndValueVertex() [2/3]

template<class Real >
PlyColorAndValueVertex< Real >::PlyColorAndValueVertex ( const Point3D< Real > &  p)
inline

Definition at line 481 of file Ply.h.

◆ PlyColorAndValueVertex() [3/3]

template<class Real >
PlyColorAndValueVertex< Real >::PlyColorAndValueVertex ( const Point3D< Real > &  p,
const unsigned char  c[3],
Real  v 
)
inline

Member Function Documentation

◆ operator const Point3D< Real > &()

template<class Real >
PlyColorAndValueVertex< Real >::operator const Point3D< Real > & ( ) const
inline

Definition at line 479 of file Ply.h.

References PlyColorAndValueVertex< Real >::point.

◆ operator Point3D< Real > &()

template<class Real >
PlyColorAndValueVertex< Real >::operator Point3D< Real > & ( )
inline

Definition at line 478 of file Ply.h.

References PlyColorAndValueVertex< Real >::point.

Member Data Documentation

◆ color

◆ point

◆ ReadComponents

template<class Real >
const int PlyColorAndValueVertex< Real >::ReadComponents =10
static

Definition at line 469 of file Ply.h.

◆ ReadProperties

template<class Real >
PlyProperty PlyColorAndValueVertex< Real >::ReadProperties
static
Initial value:
=
{
{ strdup ( "x" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , point.coords[0] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "y" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , point.coords[1] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "z" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , point.coords[2] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "value" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , value ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "red" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[0] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "green" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[1] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "blue" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[2] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "r" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[0] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "g" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[1] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "b" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[2] ) ) , 0 , 0 , 0 , 0 }
}
int PLYType< unsigned char >(void)
Definition: Ply.h:228
unsigned char color[3]
Definition: Ply.h:475
#define offsetof(STRUCTURE, FIELD)
Definition: sqlite3.c:14241
Definition: lsd.c:149

Definition at line 471 of file Ply.h.

◆ value

◆ WriteComponents

template<class Real >
const int PlyColorAndValueVertex< Real >::WriteComponents =7
static

Definition at line 470 of file Ply.h.

◆ WriteProperties

template<class Real >
PlyProperty PlyColorAndValueVertex< Real >::WriteProperties
static
Initial value:
=
{
{ strdup ( "x" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , point.coords[0] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "y" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , point.coords[1] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "z" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , point.coords[2] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "value" ) , PLYType< Real >() , PLYType< Real >() , int( offsetof( PlyColorAndValueVertex , value ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "red" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[0] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "green" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[1] ) ) , 0 , 0 , 0 , 0 } ,
{ strdup ( "blue" ) , PLYType< unsigned char >() , PLYType< unsigned char >() , int( offsetof( PlyColorAndValueVertex , color[2] ) ) , 0 , 0 , 0 , 0 }
}

Definition at line 472 of file Ply.h.


The documentation for this class was generated from the following file: