Open CASCADE Technology
7.1.0.beta
|
The pair of Quantity_Color and Alpha component (1.0 opaque, 0.0 transparent). More...
#include <Quantity_ColorRGBA.hxx>
Public Member Functions | |
Quantity_ColorRGBA () | |
Creates a color with the default value. More... | |
Quantity_ColorRGBA (const Quantity_Color &theRgb) | |
Creates the color with specified RGB value. More... | |
Quantity_ColorRGBA (const NCollection_Vec4< float > &theRgba) | |
Creates the color from RGBA vector. More... | |
const Quantity_Color & | GetRGB () const |
Return RGB color value. More... | |
Quantity_Color & | ChangeRGB () |
Modify RGB color components without affecting alpha value. More... | |
void | SetRGB (const Quantity_Color &theRgb) |
Assign RGB color components without affecting alpha value. More... | |
Standard_ShortReal | Alpha () const |
Return alpha value (1.0 means opaque, 0.0 means fully transparent). More... | |
void | SetAlpha (const Standard_ShortReal theAlpha) |
Assign the alpha value. More... | |
operator const NCollection_Vec4< float > & () const | |
Return the color as vector of 4 float elements. More... | |
bool | IsDifferent (const Quantity_ColorRGBA &theOther) const |
Returns true if the distance between colors is greater than Epsilon(). More... | |
bool | operator!= (const Quantity_ColorRGBA &theOther) const |
Returns true if the distance between colors is greater than Epsilon(). More... | |
bool | IsEqual (const Quantity_ColorRGBA &theOther) const |
Two colors are considered to be equal if their distance is no greater than Epsilon(). More... | |
bool | operator== (const Quantity_ColorRGBA &theOther) const |
Two colors are considered to be equal if their distance is no greater than Epsilon(). More... | |
The pair of Quantity_Color and Alpha component (1.0 opaque, 0.0 transparent).
|
inline |
Creates a color with the default value.
|
inlineexplicit |
Creates the color with specified RGB value.
|
inlineexplicit |
Creates the color from RGBA vector.
|
inline |
Return alpha value (1.0 means opaque, 0.0 means fully transparent).
|
inline |
Modify RGB color components without affecting alpha value.
|
inline |
Return RGB color value.
|
inline |
Returns true if the distance between colors is greater than Epsilon().
|
inline |
Two colors are considered to be equal if their distance is no greater than Epsilon().
|
inline |
Return the color as vector of 4 float elements.
|
inline |
Returns true if the distance between colors is greater than Epsilon().
|
inline |
Two colors are considered to be equal if their distance is no greater than Epsilon().
|
inline |
Assign the alpha value.
|
inline |
Assign RGB color components without affecting alpha value.