ISpinEffect_KC Interface
ISpinEffect_KC interface provides access to spin effect, which implements animation
of a fast rotation of an object
Spin effect can be queried form ISection
inmplemented by the object to be animated
To implement the effect use Modelign Studio to create a
Surface Of Revolution, which represents spinning
state of the object and make it an invisible child of the orginal object. Obtain
ISection of the object to be animated. Query
ISpinEffect_KC from the ISection. Call ISpinEffect_KC.Setup() with objectSpan
queried from the spinning state object. Call ISpinEffect_KC.Begin() / End to
start / stop the animation.
The animated obejct has to be a top level one in the model. unless itis desired
its parent to be span too
See also: eMotion Sample
HRESULT Setup(ISection* objectSpan, IView* iView)
Parameters
objectSpan - [in] Spinning
representation of the object
Remarks:
Associates a spinning representation of the object to be span. The representation
obejct has to have considing local frame and its contour has to coinside with
spinning contour of the initial object for the animation to be realistic.
HRESULT Begin(int durationMilliSeconds)
Parameters
durationMilliSeconds - [in] Duration of animation
of spining start
Remarks:
The method will show the animated object starting and accelerating spinning. In
the end of the period the animated object will be hidden and it spinning
representation will be shown instead
HRESULT End(int durationMilliSeconds)
Parameters
durationMilliSeconds - [in] Duration of animation
of spining end
Remarks:
The method will show actions of the Begin() method in reverse order: The spinning
representation will hidden and the initial object will be shown spinning
instead. The spinning will slow down and will stop in the end of the period
|