Helios++
Helios software for LiDAR simulations
Color4f Class Reference

Class representing a color with 4 float components: RGBA. More...

#include <Color4f.h>

Public Member Functions

 Color4f ()=default
 Color in 4 float components default constructor.
 
 Color4f (float x, float y, float z, float w)
 Color in 4 float components constructor. More...
 

Public Attributes

float x = 1
 Color red component (R)
 
float y = 1
 Color green component (G)
 
float z = 1
 Color blue component (B)
 
float w = 1
 Color alpha component (A)
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 Serialize a Color3f to a stream of bytes. More...
 

Friends

class boost::serialization::access
 

Detailed Description

Class representing a color with 4 float components: RGBA.

Constructor & Destructor Documentation

◆ Color4f()

Color4f::Color4f ( float  x,
float  y,
float  z,
float  w 
)
inline

Color in 4 float components constructor.

See also
Color4f::x
Color4f::y
Color4f::z
Color4f::w

Member Function Documentation

◆ serialize()

template<class Archive >
void Color4f::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Serialize a Color3f to a stream of bytes.

Template Parameters
ArchiveType of rendering
Parameters
arSpecific rendering for the stream of bytes
versionVersion number of the Color4f

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