Difference between revisions of "API Panel.Position.Animate"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
<sidebar>API Contents</sidebar>
 
Blends positions from two sources to a destination over time
 
Blends positions from two sources to a destination over time
  
 
<div style="width:25%; float:right" class="toc">
 
<div style="width:25%; float:right" class="toc">
===Class hierarchy===[[API |API ]]
+
====Class hierarchy====
:[[API Panel|Panel]]
+
[[API Panel|Panel]]
::[[API Panel.Position|Position]]
+
:[[API Panel.Position|Position]]
:::Animate
+
::[[API Panel.Position|Animate]]
 
</div>
 
</div>
 
__TOC__
 
__TOC__
  
 
==Parameters==
 
==Parameters==
''[[Variable types|HANDLE]] Dest''
+
[[Variable Types|HANDLE]] ''Dest''
 
:The position or component to update
 
:The position or component to update
  
''[[Variable types|HANDLE]] Start''
+
[[Variable Types|HANDLE]] ''Start''
 
:The initial position of the animation
 
:The initial position of the animation
  
''[[Variable types|HANDLE]] End''
+
[[Variable Types|HANDLE]] ''End''
 
:The final position of the animation
 
:The final position of the animation
  
''[[Variable types|UINT]] Millisecs''
+
[[Variable Types|UINT]] ''Millisecs''
 
:Time to take to perform the animation
 
:Time to take to perform the animation
 
:''The default value for this parameter is: '''''1000'''
 
:''The default value for this parameter is: '''''1000'''
 +
  
 
==Return value==
 
==Return value==
 
''This call does not return a value''
 
''This call does not return a value''
 +
  
 
==Detailed description==
 
==Detailed description==
''No additional information''
+
This call animates between two objects, storing the result in a third ''Dest'' position. It performs the operation in the background over a specified time.
 +
 
 +
[[File:SIMAPI Panel.Position.Morph.svg|350px|Interpolation from 0 to 1]]
 +
 
 +
 
 +
The closely related [[API Panel.Position.Morph|Morph]] call performs this operation allowing for any point on the scale to be stepped to, but it must be called manually by the user to perform an animation.
 +
 
 +
 
 +
Animations can be stopped using [[API Panel.Position.StopAnimate|StopAnimate]]
 +
 
  
 
==Examples==
 
==Examples==
 
===Calling in a calculation===
 
===Calling in a calculation===
 
* Add to a calculation icon: <pre class="brush:[cpp]">::Panel.Position.Animate(dest, start, end, millisecs)</pre>
 
* Add to a calculation icon: <pre class="brush:[cpp]">::Panel.Position.Animate(dest, start, end, millisecs)</pre>
 +
 +
''<span style="color:red;">No additional examples</span>''

Latest revision as of 15:57, 16 January 2014

<sidebar>API Contents</sidebar> Blends positions from two sources to a destination over time

Class hierarchy

Panel

Position
Animate

Parameters

HANDLE Dest

The position or component to update

HANDLE Start

The initial position of the animation

HANDLE End

The final position of the animation

UINT Millisecs

Time to take to perform the animation
The default value for this parameter is: 1000


Return value

This call does not return a value


Detailed description

This call animates between two objects, storing the result in a third Dest position. It performs the operation in the background over a specified time.

Interpolation from 0 to 1


The closely related Morph call performs this operation allowing for any point on the scale to be stepped to, but it must be called manually by the user to perform an animation.


Animations can be stopped using StopAnimate


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Panel.Position.Animate(dest, start, end, millisecs)

No additional examples