![]() | InDesign SDK 20.5 |
#include <IAnimationAttributeData.h>

Public Types | |
| enum | { kDefaultIID = IID_IANIMATIONATTRIBUTEDATA } |
Public Member Functions | |
| virtual bool | HasAnimation () const =0 |
| virtual bool | AddAnimation (UID presetUID, bool populateData=true)=0 |
| virtual bool | RemoveAnimation ()=0 |
| virtual IAnimationData * | CloneAnimation () const =0 |
| virtual const IAnimationData * | QueryAnimation () const =0 |
| virtual bool | AnimationHasCustomChanges () const =0 |
| virtual bool | SetPresetUID (UID presetUID, bool populateData=true)=0 |
| virtual UID | GetPresetUID () const =0 |
| virtual bool | SetNumPlays (uint32 numPlays)=0 |
| virtual uint32 | GetNumPlays () const =0 |
| virtual bool | GetPlaysLoop () const =0 |
| virtual bool | SetPlaysLoop (bool setToLoop)=0 |
| virtual bool | SetDuration (const PMReal &durationInSecond)=0 |
| virtual PMReal | GetDuration () const =0 |
| virtual bool | SetFrameRate (int32 frameRate)=0 |
| virtual int32 | GetFrameRate () const =0 |
| virtual AnimationOptions | GetAnimateOption () const =0 |
| virtual bool | SetAnimateOption (const AnimationOptions &animateOption)=0 |
| virtual bool | GetHideInitially () const =0 |
| virtual bool | SetHideInitially (bool setHideInitially)=0 |
| virtual bool | GetHideAfter () const =0 |
| virtual bool | SetHideAfter (bool setHideAfter)=0 |
| virtual AnimationEaseType | GetSimpleEaseType () const =0 |
| virtual bool | SetSimpleEaseType (const AnimationEaseType &easeType)=0 |
| virtual bool | SetTransformOffsetPoint (const PMPoint &offsetPoint)=0 |
| virtual PMPoint | GetTransformOffsetPoint () const =0 |
| virtual bool | HasRovingPath () const =0 |
| virtual bool | Get2DKeyFramePath (AnimationPathDataList &pathFrames) const =0 |
| virtual bool | Get2DPathPoints (PMPathPointList &path, bool &pathIsRoving) const =0 |
| virtual bool | Set2DKeyFramePath (const AnimationPathDataList &path)=0 |
| virtual bool | Set2DPathPoints (const PMPathPointList &path, bool pathIsRoving)=0 |
| virtual uint32 | GetOpacityKeyFrameCount () const =0 |
| virtual bool | GetOpacityKeyFrame (uint32 whichKeyframe, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetOpacityKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetOpacityKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual bool | RemoveOpacityKeyFrame (uint32 keyframe)=0 |
| virtual uint32 | GetRotationKeyFrameCount () const =0 |
| virtual bool | GetRotationKeyFrame (uint32 whichKeyframe, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetRotationKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetRotationKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual bool | RemoveRotationKeyFrame (uint32 keyframe)=0 |
| virtual uint32 | GetScaleXKeyFrameCount () const =0 |
| virtual bool | GetScaleXKeyFrame (uint32 whichKeyframe, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetScaleXKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetScaleXKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual bool | RemoveScaleXKeyFrame (uint32 keyframe)=0 |
| virtual uint32 | GetScaleYKeyFrameCount () const =0 |
| virtual bool | GetScaleYKeyFrame (uint32 whichKeyframe, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetScaleYKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetScaleYKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual bool | RemoveScaleYKeyFrame (uint32 keyframe)=0 |
| virtual void | CopyAnimation (const IAnimationData *iOther)=0 |
| virtual void | Copy (const IAnimationAttributeData *iOtherAtr)=0 |
| virtual bool | Equals (const IAnimationAttributeData *iOtherAtr) const =0 |
| virtual void | SetCustomData (const bool16 customData)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This is the data interface for page item animation attribute data.
| pure virtual |
Add an animation with this motion preset. presetUID can be kInvalidUID.
| presetUID | is the motion preset for the animation. |
| populateData | is set to true if properties from the preset are extracted and set to this animation. If this flag is set to true and if there are previously set animation data, they will be replaced with the data from the preset. |
| pure virtual |
Returns true if animation has custom changes.
| pure virtual |
IAnimationData interface is not persistent data interface. It is to facilitate getting animation data for temporary use and setting up animation data for applying updates. In particular, it is used mainly in to represent a temporary scripting animation data object.Returns a copy of the animation data
| pure virtual |
Copy from the specified animation attribute data.
| iOtherAtr | is new data to copy from. |
| pure virtual |
Copy from the specified animation data.
| iOther | is new data to copy from. |
| pure virtual |
Compare this with the specified animation attribute data.
| iOtherAtr | is the other data to compare with. |
| pure virtual |
Gets the 2D motion path for the animation. The path is a list of keyframe and path point pairs. The path points represents the motion path.
| pathFrames | is the keyframe path to get. |
| pure virtual |
Gets the 2D motion path point for the animation. The path returns is a list of path points representing the motion path.
| path | is the path to get. |
| pathIsRoving | is true if roving path; otherwise path points have keyframe association. |
| pure virtual |
Animation option allows the control to how the animation is played. There are three options. The default is kAnimatefrom where the animation is played normally. kAnimateTo is to play the animation in reverse back to the position where the object is as designed. kAnimateOffset is to play the animation starting with an offset that is the width and height of the entire motion path such that at the of the animation, the object would be at the position it is designed for.
| pure virtual |
Gets the duration in second for the animation.
| pure virtual |
Gets the frame rate for the animation.
| pure virtual |
| pure virtual |
| pure virtual |
Returns the number of times this animation should play when triggered.
| pure virtual |
Gets the opacity at specified key frame for the animation.
| whichKeyframe | is the nth keyframe to get. |
| keyframe | is the keyframe at whichKeyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets the opacity at specified key frame for the animation.
| whichKeyframe | is the nth keyframe to get. |
| keyframe | is the keyframe at whichKeyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets the opacity keyframe count for the animation. The keyframe count is the number of opacity keyframes that contain custom values.
| pure virtual |
| pure virtual |
Returns the preset UID associated with the animation.
| pure virtual |
Gets the rotation at specified key frame for the animation.
| whichKeyframe | is the nth keyframe to get. |
| keyframe | is the keyframe at whichKeyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets the rotation at specified key frame for the animation.
| keyframe | is the keyframe to get. |
| value | is the value at keyframe. |
| pure virtual |
Gets the rotation keyframe count for the animation. The keyframe count is the number of rotation keyframes that contain custom values.
| pure virtual |
Gets the scale x keyframe count for the animation. The keyframe count is the number of scale x keyframes that contain custom values.
| whichKeyframe | is the nth keyframe to get. |
| keyframe | is the keyframe at whichKeyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets the scale x at specified key frame for the animation.
| keyframe | is the keyframe to get. |
| value | is the value at keyframe. |
| pure virtual |
Gets the total number of key frames for the animation.
| pure virtual |
Gets the scale y keyframe count for the animation. The keyframe count is the number of scale y keyframes that contain custom values.
| whichKeyframe | is the nth keyframe to get. |
| keyframe | is the keyframe at whichKeyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets the scale y at specified key frame for the animation.
| keyframe | is the keyframe to get. |
| value | is the value at keyframe. |
| pure virtual |
Gets the total number of key frames for the animation.
| pure virtual |
Easing is a technique that Flash uses to calculate the property values between property keyframes. When no easing is specified, the change to the property value is the same in each frame. With easing, the rate of change to the values is adjusted. The simple ease is mapped to a predefined Flash ease type. It is a quadratic curve. The rate of change follows the predefined quadratic function.
| pure virtual |
Gets the transform point for the animation.
| pure virtual |
Return true if we have animation data.
| pure virtual |
Returns true if animation motion path is roving path.
| pure virtual |
Returns the animation data.
| pure virtual |
Remove the animation.
| pure virtual |
Removes the specified opacity key frame for whichAnimation.
| keyframe | is the keyframe to remove. |
| pure virtual |
Removes the specified rotation key frame for the animation.
| keyframe | is the keyframe to remove. |
| pure virtual |
Removes the specified scale x key frame for the animation.
| keyframe | is the keyframe to remove. |
| pure virtual |
Removes the specified scale y key frame for whichAnimation.
| whichAnimation | is the animation to get. |
| keyframe | is the keyframe to remove. |
| pure virtual |
Sets the 2D motion path for the animation. The path specified a list of keyframe and path point pairs.
| pathFrames | is the keyframe path to set. |
| pure virtual |
Sets the 2D motion path point for the animation. path is a list of path points representing the new motion path. If path is not a roving path, then this path replaces the existing path at the already specified keyframes. It assumes that the number of path points is the same as the keyframe count.
| path | is the path to set. |
| pathIsRoving | is true if path is roving path. |
| pure virtual |
Sets the animate option.
| animateOption | is the animate option to set. |
| pure virtual |
For internal use only.
| pure virtual |
An animation by definition occurs over an duration, typically measured in seconds. The frame rate, the speed the animation is played at, is measured in number of frames per second. The timeline covers an entire animation can be divided into frames. The total number of frames (or key frames) for the duration of animation is eqaul to (frame rate) * (duration in second).
Therefore changing the duration for the animation will change the total number of frames over time. Likewise, changing the frame rate will not change the duration but changes the total number of frames.
A keyframe marks a specific point in the animation timeline. A frame rate too slow will make the animation appears stop and go. A frame rate too fast blurs the animation details. The default frame rate is 24 fps.
Properties at a specified keyframe can be changed by methods described below. Property keyframe count is the number of property keyframes that contains changes for a specified keyframe. These property changes defines the details for an animation.
For this release, these properties can be modified: motion path, opacity, rotation, scale x and y.Sets the duration in second for the animation.
| durationInSecond | is duration to set. |
| pure virtual |
Sets the frame rate for the animation. The frame rate is the number of frames per second for this animation. Total number of keyfames is equal to (frame rate) * (durationInSecond). Therefore, chaning frame rate does not affect the duration but affects only total number of frames.
| frameRate | is the number of frames per second to set. |
| pure virtual |
Sets object run-time visibility to hide after animated.
| setHideAfter | is true if object is hidden after animated. |
| pure virtual |
Sets object run-time visibility to be hidden until animated.
| setHidden | is true if object is hidden till animated. |
| pure virtual |
Sets the number of times this animation should play when triggered.
| pure virtual |
Sets the opacity at the specified key frame for the animation.
| keyframe | is the keyframe to set. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets animation to loop.
| setToLoop | is true if to set animation to loop. If animation is set to loop, then number of plays is ignored. |
| pure virtual |
Set the preset UID for the animation.
| presetUID | is the motion preset UID to set. |
| populateData | is set to true if properties from the preset are extracted and set to this animation. If this flag is set to true and if there are previously set animation data, they will be replaced with the data from the preset. |
| pure virtual |
Sets the rotation at the specified key frame for the animation.
| keyframe | is the keyframe to set. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets the scale x at the specified key frame for the animation.
| whichAnimation | is the animation to get. |
| keyframe | is the keyframe to set. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets the scale y at the specified key frame for whichAnimation.
| whichAnimation | is the animation to get. |
| keyframe | is the keyframe to set. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets the simple ease type.
| easeType | is ease type to set. |
| pure virtual |
Set the transform point for whichAnimation. The transform point specified the offset percentage (0.0 to 1.0) relative to the target object the animation path motion starts.
| offsetPoint | is the offset percent point to set. |