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

Public Types | |
| enum | { kDefaultIID = IID_IANIMATIONCORE } |
| enum | MotionXMLOptions { kDefaultOptions = 0x00, kStrip3DParameters = 0x01, kStripFilters = 0x02, kDisableFilters = 0x04 } |
Public Member Functions | |
| virtual bool | SetXMLDescription (const WideString &xmlIn, bool useTimescaleFromXml=false)=0 |
| virtual bool | GetXMLDescription (WideString &xmlOut, uint32 options=kDefaultOptions) const =0 |
| virtual boost::shared_ptr< uint8 > | GetMotionXML (size_t &size, uint32 options=kDefaultOptions) const =0 |
| virtual void | SetDuration (const PMReal &durationInSecond)=0 |
| virtual PMReal | GetDuration () const =0 |
| virtual bool | SetFrameRate (int32 frameRatePerSecond)=0 |
| virtual int32 | GetFrameRate () const =0 |
| virtual uint32 | GetKeyframeForTime (const PMReal &time) const =0 |
| virtual bool | PropertiesUsingFancyEase () const =0 |
| virtual bool | RemoveAllEase ()=0 |
| virtual bool | ApplySimpleEaseToAll (const AnimationEaseType &easeType)=0 |
| virtual void | SetTransformOffsetPoint (const PMPoint &offsetPoint)=0 |
| virtual PMPoint | GetTransformOffsetPoint () const =0 |
| virtual bool | Set2DPath (const AnimationPathDataList &path)=0 |
| virtual bool | Get2DPath (PMPathPointList &path, bool *pHasRovingPathPoints=nil) const =0 |
| virtual bool | Get2DPath (AnimationPathDataList &path) const =0 |
| virtual void | SetNew2DBezierPath (const PMPathPointList &path)=0 |
| virtual void | RemovePath ()=0 |
| virtual void | OffsetPath ()=0 |
| virtual bool | GetPathOffset (double &offsetX, double &offsetY) const =0 |
| virtual void | GetMotionPath (std::vector< double > &xValues, std::vector< double > &yValues) const =0 |
| virtual void | GetOpacityValues (std::vector< double > &alphaValues) const =0 |
| virtual uint32 | GetOpacityKeyFrameCount () const =0 |
| virtual bool | GetOpacityKeyFrame (uint32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetOpacityValueAtKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | RemoveOpacityValueAtKeyFrame (uint32 keyframe)=0 |
| virtual void | RemoveAllOpacityKeyFrames ()=0 |
| virtual bool | SetOpacityValueAtKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual void | GetRotationValues (std::vector< double > &rValues) const =0 |
| virtual uint32 | GetRotationKeyFrameCount () const =0 |
| virtual bool | GetRotationKeyFrame (uint32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetRotationValueAtKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | RemoveRotationValueAtKeyFrame (uint32 keyframe)=0 |
| virtual void | RemoveAllRotationKeyFrames ()=0 |
| virtual bool | SetRotationValueAtKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual void | GetScaleValues (std::vector< double > &xValues, std::vector< double > &yValues) const =0 |
| virtual uint32 | GetScaleXKeyFrameCount () const =0 |
| virtual bool | GetScaleXKeyFrame (uint32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetScaleXValueAtKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | RemoveScaleXValueAtKeyFrame (uint32 keyframe)=0 |
| virtual void | RemoveAllScaleXKeyFrames ()=0 |
| virtual bool | SetScaleXValueAtKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual uint32 | GetScaleYKeyFrameCount () const =0 |
| virtual bool | GetScaleYKeyFrame (uint32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetScaleYValueAtKeyFrame (uint32 keyframe, PMReal &value) const =0 |
| virtual bool | RemoveScaleYValueAtKeyFrame (uint32 keyframe)=0 |
| virtual void | RemoveAllScaleYKeyFrames ()=0 |
| virtual bool | SetScaleYValueAtKeyFrame (uint32 keyframe, const PMReal &value)=0 |
| virtual void | ReverseAllProperties ()=0 |
| virtual void | Initialize ()=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 interface is responsible for interacting with flash animation core component.
A bitfield of options for driving GetMotionXML and GetXMLDescription.
| pure virtual |
Apply the specified ease type to all properties in the preset. If there's an ease that is different from the specified ease, the existing ease will be removed first for all properties.
| easeType | is the ease to apply. |
| pure virtual |
Gets the 2D path point list
| path | is the list of path points. |
| pHasRovingPathPoints | if not nil returns true if at least one path point is set to roving. |
| pure virtual |
Gets the 2D keyframe path.
| path | is the list of keyframe path point pairs. |
| pure virtual |
| pure virtual |
| pure virtual |
Returns the keyframe for the specified time in second.
| time | is the time. |
| pure virtual |
Get the actual 2D motion path for all frames. This path takes into account offset, easing and time map.
| xValues | is the resulting x values. |
| yValues | is the resutling y values. |
| pure virtual |
Gets the XML for SWF export. This data uses a custom XML schema to represent the animation data in a form that can be processed by InDesign's ActionScript code.
| size | is the buffer size containing the xml string. |
| options | are the options to use while creating the motion XML data. |
| pure virtual |
Returns nth opacity keyframe value.
| which | the nth keyframe to get. |
| keyframe | the keyframe at which position. |
| value | is the value at keyframe. |
| pure virtual |
Returns the total number of keyframes with designated opacity values.
| pure virtual |
Gets the opacity values at a specified keyframe. If the value does not exist at this keyframe, an interpolated value is returned.
| keyframe | to get |
| value | is the opacity value at specified keyframe. |
| pure virtual |
Methods for opacity propertyGet the actual opacity values for all frames. The values returned take into account easing and time map. If opacity property does not exist, then resulting vector is emtpy.
| alphaValues | is the resulting opacity values. |
| pure virtual |
Returns the path offset x and y such that the motion path is shifted by width and height of the current path and the new path ends where the current path should starts.
| offsetX | is the x offset value. |
| offsetY | is the y offset value. |
| pure virtual |
Returns nth rotation keyframe value.
| which | the nth keyframe to get. |
| keyframe | the keyframe at which position. |
| value | is the value at keyframe. |
| pure virtual |
Returns the total number of keyframes with designated rotation values.
| pure virtual |
Gets the rotation values at a specified keyframe. If the value does not exist at this keyframe, an interpolated value is returned.
| keyframe | to get |
| value | is the rotation value at specified keyframe. |
| pure virtual |
Methods for Rotation propertyGet the actual rotation values for all frames. The values returned take into account easing and time map. If rotation property does not exist, then resulting vector is emtpy.
| rValues | is the resulting rotation values. If the resulting vector is empty, then there's no rotation component in the animation. If the vector has one single entry, then the rotation is constant over the entire duration with this value. |
| pure virtual |
Methods for Scale X and Scale Y propertyGet the actual x an y scale percentage values all frames. The values returned take into account easing and time map. If x or y scale property does not exist, then the resulting vector will be empty.
| xValues | is the resulting scale x values. |
| yValues | is the resutling scale y values. If the resulting vector is empty, then there's no scale x or y component in the animation. If the vector has one single entry, then the scale is constant over the entire duration with this value. |
| pure virtual |
Returns nth scale x keyframe value.
| which | the nth keyframe to get. |
| keyframe | the keyframe at which position. |
| value | is the value at keyframe. |
| pure virtual |
Returns the total number of keyframes with designated scale x values.
| pure virtual |
Gets the scale x values at a specified keyframe. If the value does not exist at this keyframe, an interpolated value is returned.
| keyframe | to get |
| value | is the scale x value at specified keyframe. |
| pure virtual |
Returns nth scale y keyframe value.
| which | the nth keyframe to get. |
| keyframe | the keyframe at which position. |
| value | is the value at keyframe. |
| pure virtual |
Returns the total number of keyframes with designated scale y values.
| pure virtual |
Gets the scale y values at a specified keyframe. If the value does not exist at this keyframe, an interpolated value is returned.
| keyframe | to get |
| value | is the scale y value at specified keyframe. |
| pure virtual |
| pure virtual |
Gets the current XML description representing the animation preset.
| xmlOut | is the xml string representing the current animation. |
| options | are the options to use when retrieving the preset xml description. |
| pure virtual |
Internal use only
| pure virtual |
Offsset motion path by the width and height of the current path so that the end of path is where the start of path is before the offset.
| pure virtual |
Returns true if properties has ease applied.
| pure virtual |
Remove all ease types in the preset.
| pure virtual |
Removes all opacity keyframes and reset to default condition.
| pure virtual |
Removes all rotation keyframes and reset to default condition.
| pure virtual |
Removes all scale x keyframes and reset to default condition.
| pure virtual |
Removes all scale y keyframes and reset to default condition.
| pure virtual |
Removes the designated opacity value at the specified keyframe. is the keyframe to remove.
| pure virtual |
Remove all path data.
| pure virtual |
Removes the designated rotation value at the specified keyframe. is the keyframe to remove.
| pure virtual |
Removes the designated scale x value at the specified keyframe. is the keyframe to remove.
| pure virtual |
Removes the designated scale y value at the specified keyframe. is the keyframe to remove.
| pure virtual |
Reverse all properties.
| pure virtual |
Sets the 2D keyframe path.
| path | is the list of keyframe path point pairs. |
| pure virtual |
Sets the duration for this animation.
| durationInSecond | is the duration to set. |
| pure virtual |
Sets the frame rate for this animation.
| framesPerSecond | is the frame rate. |
| pure virtual |
Replaces the current motion path with the new path. This assumes the number of keyframes in the current path matches the number of points.
| path | is the list of path point to set. |
| pure virtual |
Sets a specific opacity value at the specified keyframe.
| keyframe | to set |
| value | is the opacity value to set. |
| pure virtual |
Sets a specific rotation value at the specified keyframe.
| keyframe | to set |
| value | is the rotation value to set. |
| pure virtual |
Sets a specific scale x value at the specified keyframe.
| keyframe | to set |
| value | is the scale x value to set. |
| pure virtual |
Sets a specific scale y value at the specified keyframe.
| keyframe | to set |
| value | is the scale y value to set. |
| pure virtual |
Sets the transform offset point. This is the offset percent from the left-top point of target object's bounding box.
| offsetPoint | is the transform offset point. |
| pure virtual |
Sets the XML description representing the animation preset.
| xmlIn | is the xml description. |
| ustTimescaleFromXml | is true if using the animation time scale from the xml description. |