InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAnimationCore.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
20 // with the terms of the Adobe license agreement accompanying it. If you have received
21 // this file from a source other than Adobe, then your use, modification, or
22 // distribution of it requires the prior written permission of Adobe.
23 //
24 //========================================================================================
25 
26 #ifndef __IAnimationCore_h__
27 #define __IAnimationCore_h__
28 
29 #include "IPMUnknown.h"
30 #include "DynamicDocumentsID.h"
31 #include "IAnimationData.h"
32 
36 class IAnimationCore : public IPMUnknown
37 {
38 public:
39  enum { kDefaultIID = IID_IANIMATIONCORE };
40 
46  virtual bool SetXMLDescription (const WideString &xmlIn, bool useTimescaleFromXml = false) = 0;
47 
52  {
56 
65  kStripFilters = 0x02,
66 
71  };
72 
78  virtual bool GetXMLDescription (WideString &xmlOut, uint32 options = kDefaultOptions) const = 0;
79 
89  virtual boost::shared_ptr<uint8> GetMotionXML(size_t &size, uint32 options = kDefaultOptions) const = 0;
90 
94  virtual void SetDuration (const PMReal& durationInSecond) = 0;
95 
98  virtual PMReal GetDuration () const = 0;
99 
103  virtual bool SetFrameRate (int32 frameRatePerSecond) = 0;
104 
107  virtual int32 GetFrameRate () const = 0;
108 
113  virtual uint32 GetKeyframeForTime (const PMReal& time) const = 0;
114 
118  virtual bool PropertiesUsingFancyEase () const = 0;
119 
123  virtual bool RemoveAllEase () = 0;
124 
131  virtual bool ApplySimpleEaseToAll (const AnimationEaseType& easeType) = 0;
132 
137  virtual void SetTransformOffsetPoint (const PMPoint& offsetPoint) = 0;
138 
141  virtual PMPoint GetTransformOffsetPoint () const = 0;
142 
146  virtual bool Set2DPath (const AnimationPathDataList& path) = 0;
147 
153  virtual bool Get2DPath (PMPathPointList& path, bool* pHasRovingPathPoints = nil) const = 0;
154 
158  virtual bool Get2DPath (AnimationPathDataList& path) const = 0;
159 
164  virtual void SetNew2DBezierPath (const PMPathPointList &path) = 0;
165 
168  virtual void RemovePath () = 0;
169 
173  virtual void OffsetPath () = 0;
174 
181  virtual bool GetPathOffset (double& offsetX, double& offsetY) const = 0;
182 
187  virtual void GetMotionPath (std::vector<double>& xValues, std::vector<double>& yValues) const = 0;
188 
196  virtual void GetOpacityValues (std::vector<double>& alphaValues) const = 0;
197 
201  virtual uint32 GetOpacityKeyFrameCount () const = 0;
202 
208  virtual bool GetOpacityKeyFrame (uint32 which, uint32& keyframe, PMReal& value) const = 0;
209 
215  virtual bool GetOpacityValueAtKeyFrame (uint32 keyframe, PMReal& value) const = 0;
216 
220  virtual bool RemoveOpacityValueAtKeyFrame (uint32 keyframe) = 0;
221 
224  virtual void RemoveAllOpacityKeyFrames () = 0;
225 
230  virtual bool SetOpacityValueAtKeyFrame (uint32 keyframe, const PMReal& value) = 0;
231 
241  virtual void GetRotationValues (std::vector<double>& rValues) const = 0;
242 
246  virtual uint32 GetRotationKeyFrameCount () const = 0;
247 
253  virtual bool GetRotationKeyFrame (uint32 which, uint32& keyframe, PMReal& value) const = 0;
254 
260  virtual bool GetRotationValueAtKeyFrame (uint32 keyframe, PMReal& value) const = 0;
264  virtual bool RemoveRotationValueAtKeyFrame (uint32 keyframe) = 0;
265 
268  virtual void RemoveAllRotationKeyFrames () = 0;
269 
274  virtual bool SetRotationValueAtKeyFrame (uint32 keyframe, const PMReal& value) = 0;
275 
286  virtual void GetScaleValues (std::vector<double>& xValues, std::vector<double>& yValues) const = 0;
287 
291  virtual uint32 GetScaleXKeyFrameCount () const = 0;
292 
298  virtual bool GetScaleXKeyFrame (uint32 which, uint32& keyframe, PMReal& value) const = 0;
299 
305  virtual bool GetScaleXValueAtKeyFrame (uint32 keyframe, PMReal& value) const = 0;
306 
310  virtual bool RemoveScaleXValueAtKeyFrame (uint32 keyframe) = 0;
311 
314  virtual void RemoveAllScaleXKeyFrames () = 0;
315 
320  virtual bool SetScaleXValueAtKeyFrame (uint32 keyframe, const PMReal& value) = 0;
321 
325  virtual uint32 GetScaleYKeyFrameCount () const = 0;
326 
332  virtual bool GetScaleYKeyFrame (uint32 which, uint32& keyframe, PMReal& value) const = 0;
333 
339  virtual bool GetScaleYValueAtKeyFrame (uint32 keyframe, PMReal& value) const = 0;
343  virtual bool RemoveScaleYValueAtKeyFrame (uint32 keyframe) = 0;
344 
347  virtual void RemoveAllScaleYKeyFrames () = 0;
348 
353  virtual bool SetScaleYValueAtKeyFrame (uint32 keyframe, const PMReal& value) = 0;
354 
357  virtual void ReverseAllProperties () = 0;
358 
361  virtual void Initialize () = 0;
362 };
363 
364 
365 #endif