Eyeshot 10 WinForms API Reference
StartAnimation(Int32) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > StartAnimation Method : StartAnimation(Int32) Method
Timer interval. See System.Threading.Timer object.

Starts the animation timer. After calling this method the Animate method of all the entities is called periodically to allow the computation of the new entity position.

To animate group of entities the recommended approach is the following:

  1. Create groups of moving objects (using Block class and adding entities to the Block.Entities collection)
  2. Add blocks created at point 1) to the Blocks collection
  3. Subclass the BlockReference class for each moving group of objects
  4. Override the BlockReference.MoveTo() method of the class at point 2) and add the code to move the objects at that specific time frame
  5. Add the block references created at point 4) to the Entities collection
  6. Call StartAnimation() providing the time interval between each frame
  7. Call StopAnimation() to stop the animation
Syntax
'Declaration
 
Public Overloads Sub StartAnimation( _
   ByVal interval As Integer _
) 
public void StartAnimation( 
   int interval
)

Parameters

interval
Timer interval. See System.Threading.Timer object.
Remarks
During animation the silhouettes, if enabled, are skipped.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
StopAnimation Method
Animate Method (devDept.Eyeshot.Standard.Entity)
SilhouettesDrawingMode Property
IsAnimationRunning Property
OverrideSceneExtents Property
MoveTo Method