The pair of Quantity_Color and Alpha component (1.0 opaque, 0.0 transparent).
More...
#include <Quantity_ColorRGBA.hxx>
The pair of Quantity_Color and Alpha component (1.0 opaque, 0.0 transparent).
◆ Quantity_ColorRGBA() [1/5]
Quantity_ColorRGBA::Quantity_ColorRGBA |
( |
| ) |
|
|
inline |
Creates a color with the default value.
◆ Quantity_ColorRGBA() [2/5]
Quantity_ColorRGBA::Quantity_ColorRGBA |
( |
const Quantity_Color & |
theRgb | ) |
|
|
inlineexplicit |
Creates the color with specified RGB value.
◆ Quantity_ColorRGBA() [3/5]
Quantity_ColorRGBA::Quantity_ColorRGBA |
( |
const Quantity_Color & |
theRgb, |
|
|
float |
theAlpha |
|
) |
| |
|
inline |
Creates the color with specified RGBA values.
◆ Quantity_ColorRGBA() [4/5]
Quantity_ColorRGBA::Quantity_ColorRGBA |
( |
const NCollection_Vec4< float > & |
theRgba | ) |
|
|
inlineexplicit |
Creates the color from RGBA vector.
◆ Quantity_ColorRGBA() [5/5]
Quantity_ColorRGBA::Quantity_ColorRGBA |
( |
float |
theRed, |
|
|
float |
theGreen, |
|
|
float |
theBlue, |
|
|
float |
theAlpha |
|
) |
| |
|
inline |
Creates the color from RGBA values.
◆ Alpha()
Return alpha value (1.0 means opaque, 0.0 means fully transparent).
◆ ChangeRGB()
Modify RGB color components without affecting alpha value.
◆ GetRGB()
◆ IsDifferent()
Returns true if the distance between colors is greater than Epsilon().
◆ IsEqual()
Two colors are considered to be equal if their distance is no greater than Epsilon().
◆ operator const NCollection_Vec4< float > &()
Return the color as vector of 4 float elements.
◆ operator!=()
Returns true if the distance between colors is greater than Epsilon().
◆ operator==()
Two colors are considered to be equal if their distance is no greater than Epsilon().
◆ SetAlpha()
◆ SetRGB()
Assign RGB color components without affecting alpha value.
◆ SetValues()
void Quantity_ColorRGBA::SetValues |
( |
float |
theRed, |
|
|
float |
theGreen, |
|
|
float |
theBlue, |
|
|
float |
theAlpha |
|
) |
| |
|
inline |
Assign new values to the color.
The documentation for this class was generated from the following file: