OpenVDB  12.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
Film::RGBA Struct Reference

Floating-point RGBA components in the range [0, 1]. More...

#include <openvdb/tools/RayTracer.h>

Public Types

using ValueT = float
 

Public Member Functions

 RGBA ()
 
 RGBA (ValueT intensity)
 
 RGBA (ValueT _r, ValueT _g, ValueT _b, ValueT _a=static_cast< ValueT >(1.0))
 
 RGBA (double _r, double _g, double _b, double _a=1.0)
 
RGBA operator* (ValueT scale) const
 
RGBA operator+ (const RGBA &rhs) const
 
RGBA operator* (const RGBA &rhs) const
 
RGBAoperator+= (const RGBA &rhs)
 
void over (const RGBA &rhs)
 

Public Attributes

ValueT r
 
ValueT g
 
ValueT b
 
ValueT a
 

Detailed Description

Floating-point RGBA components in the range [0, 1].

This is our preferred representation for color processing.

Member Typedef Documentation

using ValueT = float

Constructor & Destructor Documentation

RGBA ( )
inline
RGBA ( ValueT  intensity)
inlineexplicit
RGBA ( ValueT  _r,
ValueT  _g,
ValueT  _b,
ValueT  _a = static_cast<ValueT>(1.0) 
)
inline
RGBA ( double  _r,
double  _g,
double  _b,
double  _a = 1.0 
)
inline

Member Function Documentation

RGBA operator* ( ValueT  scale) const
inline
RGBA operator* ( const RGBA rhs) const
inline
RGBA operator+ ( const RGBA rhs) const
inline
RGBA& operator+= ( const RGBA rhs)
inline
void over ( const RGBA rhs)
inline

Member Data Documentation

ValueT a
ValueT b
ValueT g
ValueT r