Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Makes objects blink by switching their visible value back and forth. More...
#include <ilviews/protos/animacc.h>
Public Member Functions | |
IlvBlinkAccessor (const char *name, const IlvValueTypeClass *type, IlvDisplay *display, const char *periodVal, const char *booleanValue) | |
Creates a new animation accessor that makes the object blink. | |
Protected Member Functions | |
virtual void | doit () |
Performs periodic updates of the accessor. |
Makes objects blink by switching their visible value back and forth.
Library: ilvproto
This accessor works by switching a Boolean attribute back and forth between IlTrue
and IlFalse
. This attribute is often the "visible" attribute of a graphic node, which has the effect of making the object blink. If the application uses shared timers (see IlvAnimationAccessor
), all the blink accessors are synchronized. This means that all the blinking objects become visible at the same time, and are hidden at the same time. When a blink accessor is stopped, the blinking object is always left in its initial state.
IlvBlinkAccessor::IlvBlinkAccessor | ( | const char * | name, | |
const IlvValueTypeClass * | type, | |||
IlvDisplay * | display, | |||
const char * | periodVal, | |||
const char * | booleanValue | |||
) |
Creates a new animation accessor that makes the object blink.
name | Name of the accessor. | |
type | Type of the value. | |
display | Needed to initialize the timers. | |
booleanValue | Attribute that is alternatively set and unset. | |
periodVal | Specifies the interval (in milliseconds) at which booleanValue will be changed (see IlvAnimationAccessor ). periodVal can contain a constant value, the name of another accessor, or an arithmetic expression that can contain accessor names and/or constants (see IlvUserAccessor::getValue ). |
virtual void IlvBlinkAccessor::doit | ( | ) | [protected, virtual] |
Performs periodic updates of the accessor.
This method is called repeatedly by the IlvAnimationAccessor
object at the time interval specified by the periodVal argument of the constructor. It must be redefined by subclasses to perform a visual or audio animation effect. Its default behavior implements the clock behavior: it triggers regularly the attribute it is attached to.
Reimplemented from IlvAnimationAccessor.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.