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

#include <Ply.h>

Collaboration diagram for PlyColorVertex< Real >:

Classes

struct  _PlyColorVertex
 

Public Types

typedef _PlyColorVertex Wrapper
 

Public Member Functions

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

Public Attributes

Point3D< Real > point
 
unsigned char color [3]
 

Static Public Attributes

static const int ReadComponents =9
 
static const int WriteComponents =6
 
static PlyProperty ReadProperties []
 
static PlyProperty WriteProperties []
 

Detailed Description

template<class Real>
class PlyColorVertex< Real >

Definition at line 371 of file Ply.h.

Member Typedef Documentation

◆ Wrapper

template<class Real >
typedef _PlyColorVertex PlyColorVertex< Real >::Wrapper

Definition at line 398 of file Ply.h.

Constructor & Destructor Documentation

◆ PlyColorVertex() [1/3]

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

Definition at line 410 of file Ply.h.

References PlyColorVertex< Real >::color.

◆ PlyColorVertex() [2/3]

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

Definition at line 411 of file Ply.h.

◆ PlyColorVertex() [3/3]

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

Definition at line 412 of file Ply.h.

References PlyColorVertex< Real >::color.

Member Function Documentation

◆ operator const Point3D< Real > &()

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

Definition at line 409 of file Ply.h.

References PlyColorVertex< Real >::point.

◆ operator Point3D< Real > &()

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

Definition at line 408 of file Ply.h.

References PlyColorVertex< Real >::point.

Member Data Documentation

◆ color

◆ point

◆ ReadComponents

template<class Real >
const int PlyColorVertex< Real >::ReadComponents =9
static

Definition at line 400 of file Ply.h.

◆ ReadProperties

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

Definition at line 402 of file Ply.h.

◆ WriteComponents

template<class Real >
const int PlyColorVertex< Real >::WriteComponents =6
static

Definition at line 401 of file Ply.h.

◆ WriteProperties

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

Definition at line 403 of file Ply.h.


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