point_cloud_library / 1.12.1 / unionpcl_1_1cuda_1_1_r_g_b.html /

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__ RGB & operator+= (const RGB &rhs)
__host__ __device__ RGB & operator-= (const RGB &rhs)
__host__ __device__ RGB & operator*= (const RGB &rhs)
__host__ __device__ RGB & operator/= (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 99 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 81 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.

References alpha, b, g, and r.

operator-=()

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

Definition at line 90 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 108 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

@69

struct { ... }

alpha

char pcl::cuda::RGB::alpha

Definition at line 59 of file point_type_rgb.h.

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

b

g

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:

© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/unionpcl_1_1cuda_1_1_r_g_b.html