#include <SIBCColor.h>
Represents colours and stores RGBA values as floating point values. Member functions with the "Alpha" suffix operate on alpha as well as RGB, whereas their counterparts operate only on RGB color component values. This class is analogous to the CSIBCColorb class, which uses unsigned bytes to represent color components, instead of floating-point numbers.
|
Default constructor. Creates a new color object, with uninitialized color values. |
|
Copy Constructor. Creates a new color object, based on the values in the
|
|
Constructor. Creates a new color with the given color component values.
|
|
Sets the color components of this object to the sum of its components with the components of
|
|
Sets the color components of this object to the sum of its components with the components of
|
|
Sets this object's color component values to the quotient of its original values, divided by the component values in
|
|
Gets the value of each color component in this color object (excluding alpha).
|
|
Gets the value of each color component in this color object (including alpha).
|
|
Computes the distance between the this color and
|
|
Computes the distance between the this color and
|
|
Gets the dot-product of this color with another color. This is the sum of the scalar multiplication of all corresponding component values in the two colors (excluding alpha).
|
|
Gets the dot-product of this color with another color. This is the sum of the scalar multiplication of all corresponding component values in the two colors (including alpha).
|
|
Computes the length of this object's color vector in RGB space (i.e excluding alpha).
|
|
Computes the length of this object's color vector in RGBA space (i.e including alpha).
|
|
Gets the value and index largest color component (excluding alpha).
|
|
Gets the value and index largest color component (including alpha).
|
|
Gets the value and index smallest color component (excluding alpha).
|
|
Gets the value and index smallest color component (including alpha).
|
|
Computes the squared length of this object's color vector in RGB space (i.e excluding alpha).
|
|
Computes the squared length of this object's color vector in RGBA space (i.e including alpha).
|
|
Determines whether the color
|
|
Determines whether all component values (excluding alpha) of this color are zero. Due to floating-point round-off error, PICO_EPS is used for the zero comparison.
|
|
Determines whether all component values (including alpha) of this color are zero. Due to floating-point round-off error, PICO_EPS is used for the zero comparison.
|
|
Sets this object's color component values to the product of its original values, and the component values in
|
|
Negates all color component values (excluding alpha).
|
|
Negates all color component values (including alpha).
|
|
Normalizes the RGB color vector of this color.
|
|
Normalizes the RGBA color vector of this color.
|
|
Scaling operator. Computes a color object whose color components are this object's color components multiplied by
|
|
Inequality operator. Determines whether any color component of
|
|
Addition operator. Computes a color object with the color components of this objects, and
|
|
Equality operator. Determines whether each color component of
|
|
Scales the color components of this object by
|
|
Scales the color components of this object by
|
|
Sets each of the color components of this color object.
|
|
Sets the length of the RGB vector (i.e excluding alpha) to
|
|
Sets the length of the RGBA vector (i.e including alpha) to
|
|
Sets the RGB components of this color to zero, and the alpha to
|
|
Sets the color components of this object to the difference of its components with the components of
|
|
Sets the color components of this object to the difference of its components with the components of
|
|
Member variable representing the value of the Alpha component of the color. |
|
Member variable representing the value of the Blue component of the color. |
|
Member variable representing the value of the Green component of the color. |
|
Member variable representing the value of the Red component of the color. |
© Copyright 2001-2003 Avid Technology, Inc. All rights reserved.