Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Makes groups or group nodes repeatedly rotate around a given center. More...
#include <ilviews/protos/animacc.h>
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. |
Makes groups or group nodes repeatedly rotate around a given center.
Library: ilvproto
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.
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
).
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.
© 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.