rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvBlinkAccessor Class Reference

Makes objects blink by switching their visible value back and forth. More...

#include <ilviews/protos/animacc.h>

Inheritance diagram for IlvBlinkAccessor:
IlvAnimationAccessor IlvUserAccessor IlvAccessor

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
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).

Member Function Documentation

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.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.