ArcObjects Library Reference  (3DAnalyst)    

IAnimationTracks Interface

Provides access to members that control the scene animation tracks.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Members

Description
Method AddTrack Adds a track to the collection.
Read-only property AnimationTypes The objects that describe the registered types of animation.
Method ApplyTracks Plays the enabled animation tracks in the given viewer (in all if null).
Method ChangePriority Changes the priority (index) of the track.
Method DetachObject Detach an object from all tracks it is attached to.
Method FindTrack Finds a track by name.
Method LoadTracks Load the animation tracks from a stream.
Method RefreshAttachedObjects Detaches from the tracks those objects that no longer exist.
Method RemoveAllTracks Removes all tracks.
Method RemoveTrack Removes a track from the collection.
Method SaveTracks Save the animation tracks to a stream.
Read-only property TrackCount The number of tracks.
Read-only property Tracks The animation tracks.
Read-only property TracksOfType The animation tracks of a given type.

CoClasses that implement IAnimationTracks

CoClasses and Classes Description
Globe (esriGlobeCore) A container for the display and manipulation of data in the Globe.
Scene A container for the display and manipulation of data.

Remarks

AnimationTracks can be considered as a container/collection of all animation tracks in a Scene object.  IAnimationTracks encapsulates the properties and methods related to managing all animation tracks associated with the scene.


 

[Visual Basic 6.0]

Assuming you have created an animation track in the scene, you can use the following method to get the track collection in VBA:

Sub FindNumberOfTracks()
    Dim pDoc As ISxDocument
    Set pDoc = ThisDocument
   
    Dim pTracks As IAnimationTracks
    'QI directly from IScene to IAnimationTracks:
    Set pTracks = pDoc.Scene
   
    MsgBox pTracks.TrackCount   'returns 1
End Sub

Example

IAnimationTracks Example

 


Feedback Send feedback on this page