Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions | Public Attributes
pcl::cuda::RGB Union Reference

Default RGB structure, defined as a union over 4 chars. More...

#include </__w/1/s/cuda/common/include/pcl/cuda/common/point_type_rgb.h>

Public Member Functions

__host__ __device__ RGB ()
 
__host__ __device__ RGB (int _rgb)
 
__host__ __device__ RGB (char _r, char _g, char _b, char _alpha)
 
__host__ __device__ bool operator== (const RGB &rhs) const
 
__host__ __device__ RGB operator- (RGB &rhs)
 
__host__ __device__ RGBoperator+= (const RGB &rhs)
 
__host__ __device__ RGBoperator-= (const RGB &rhs)
 
__host__ __device__ RGBoperator*= (const RGB &rhs)
 
__host__ __device__ RGBoperator/= (const RGB &rhs)
 

Public Attributes

int rgb
 
struct {
   char   r
 
   char   g
 
   char   b
 
   char   alpha
 
}; 
 

Detailed Description

Default RGB structure, defined as a union over 4 chars.

Definition at line 51 of file point_type_rgb.h.

Constructor & Destructor Documentation

◆ RGB() [1/3]

__host__ __device__ pcl::cuda::RGB::RGB ( )
inline

Definition at line 62 of file point_type_rgb.h.

◆ RGB() [2/3]

__host__ __device__ pcl::cuda::RGB::RGB ( int  _rgb)
inline

Definition at line 63 of file point_type_rgb.h.

◆ RGB() [3/3]

__host__ __device__ pcl::cuda::RGB::RGB ( char  _r,
char  _g,
char  _b,
char  _alpha 
)
inline

Definition at line 64 of file point_type_rgb.h.

Member Function Documentation

◆ operator*=()

__host__ __device__ RGB& pcl::cuda::RGB::operator*= ( const RGB rhs)
inline

Definition at line 97 of file point_type_rgb.h.

References alpha, b, g, and r.

◆ operator+=()

__host__ __device__ RGB& pcl::cuda::RGB::operator+= ( const RGB rhs)
inline

Definition at line 79 of file point_type_rgb.h.

References alpha, b, g, and r.

◆ operator-()

__host__ __device__ RGB pcl::cuda::RGB::operator- ( RGB rhs)
inline

Definition at line 72 of file point_type_rgb.h.

◆ operator-=()

__host__ __device__ RGB& pcl::cuda::RGB::operator-= ( const RGB rhs)
inline

Definition at line 88 of file point_type_rgb.h.

References alpha, b, g, and r.

◆ operator/=()

__host__ __device__ RGB& pcl::cuda::RGB::operator/= ( const RGB rhs)
inline

Definition at line 106 of file point_type_rgb.h.

References alpha, b, g, and r.

◆ operator==()

__host__ __device__ bool pcl::cuda::RGB::operator== ( const RGB rhs) const
inline

Definition at line 67 of file point_type_rgb.h.

References alpha, b, g, and r.

Member Data Documentation

◆ 

struct { ... }

◆ alpha

char pcl::cuda::RGB::alpha

Definition at line 59 of file point_type_rgb.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), and operator==().

◆ b

char pcl::cuda::RGB::b

◆ g

char pcl::cuda::RGB::g

◆ r

char pcl::cuda::RGB::r

◆ rgb

int pcl::cuda::RGB::rgb

Definition at line 53 of file point_type_rgb.h.


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