Inheritance diagram for DzColorProperty:
Constructors | |
DzColorProperty (String name, Boolean canAnimate, Boolean isUserProperty, Color initVal) | |
DzColorProperty (String name, Boolean canAnimate, Boolean isUserProperty) | |
DzColorProperty () | |
Methods | |
Color | getColorValue () |
void | setColorValue (DzTime tm, Color val) |
void | setColorValue (Color val) |
This class provides an animatable color property that is stored and can be accessed as an integer property. The integer value represents a color as a 32 bit rgba value with each byte representing a component with the range [0, 255].
DzColorProperty::DzColorProperty | ( | ) |
Default Constructor. Creates a non-animatable, non-user property.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
name | The name of this property. | |
canAnimate | If true, creates an animatable property. | |
isUserProperty | If true, create a user property. User properties are properties that can be added/deleted by users. |
DzColorProperty::DzColorProperty | ( | String | name, | |
Boolean | canAnimate, | |||
Boolean | isUserProperty, | |||
Color | initVal | |||
) |
Overloaded constructor.
name | The name of this property. | |
canAnimate | If true, creates an animatable property. | |
isUserProperty | If true, create a user property. User properties are properties that can be added/deleted by users. | |
initVal | Sets the default value of this property. |
QColor DzColorProperty::getColorValue | ( | ) |
Sets the color value for this property at the given time - or the default value if this property is not animatable.
tm | The scene time at which to set the value | |
val | The new value for the property |
void DzColorProperty::setColorValue | ( | Color | val | ) |
Sets the color value for this property at the current time - or the default value if this property is not animatable.
val | The new value for the property |