rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvRotateAccessor Class Reference

Makes groups or group nodes repeatedly rotate around a given center. More...

#include <ilviews/protos/animacc.h>

Inheritance diagram for IlvRotateAccessor:
IlvAnimationAccessor IlvUserAccessor IlvAccessor

List of all members.

Public Member Functions

 IlvRotateAccessor (const char *name, const IlvValueTypeClass *type, IlvDisplay *display, const char *periodVal, const char *nodeName, const char *angleValue, const char *centerXValue, const char *centerYValue)
 Creates a new animation accessor that makes a group or one of its nodes rotate.

Protected Member Functions

virtual void doit ()
 Performs periodic updates of the accessor.

Detailed Description

Makes groups or group nodes repeatedly rotate around a given center.

Library: ilvproto


Constructor & Destructor Documentation

IlvRotateAccessor::IlvRotateAccessor ( const char *  name,
const IlvValueTypeClass type,
IlvDisplay display,
const char *  periodVal,
const char *  nodeName,
const char *  angleValue,
const char *  centerXValue,
const char *  centerYValue 
)

Creates a new animation accessor that makes a group or one of its nodes rotate.

Parameters:
name Name of the accessor.
type Type of the value.
display Needed to initialize the timers.
periodVal Specifies the interval (in milliseconds) at which visibleValue will be changed (see IlvAnimationAccessor).
nodeName The name of the node to be rotated. You can use the character string nodeName to rotate the whole group.
angleValue Specifies the angle (in degrees) by which the object will be rotated: it can be either an accessor name or a direct value (10 for example).
centerXValue Specifies the x coordinates of the point around which the object will be rotated.
centerYValue Specifies the y coordinates of the point around which the object will be rotated.

periodVal, angleValue, centerXValue, and centerYValue 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 IlvRotateAccessor::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.