This document is archived and information here might be outdated. Recommended version. |
Creates a globe camera keyframe by capturing the current view. The GlobeCamera keyframe is added to the default GlobeCamera animation track.
///<summary>Creates a globe camera keyframe by capturing the current view. The GlobeCamera keyframe is added to the default GlobeCamera animation track.</summary> /// ///<param name="globe">An IGlobe interface</param> /// ///<remarks></remarks> public void CreateAnimationFromView(ESRI.ArcGIS.GlobeCore.IGlobe globe) { ESRI.ArcGIS.Animation.IAGAnimationUtils agAnimationUtils=new ESRI.ArcGIS.Animation.AGAnimationUtilsClass(); ESRI.ArcGIS.Animation.IAGAnimationTracks agAnimationTracks=(ESRI.ArcGIS.Animation.IAGAnimationTracks)globe; // Explicit Cast ESRI.ArcGIS.Analyst3D.IBasicScene2 basicScene2=(ESRI.ArcGIS.Analyst3D.IBasicScene2)globe; // Explicit Cast ESRI.ArcGIS.Animation.IAGAnimationEnvironment agAnimationEnvironment=basicScene2.AnimationExtension.AnimationEnvironment; agAnimationUtils.CaptureCurrentView(agAnimationTracks, agAnimationEnvironment); }
'''<summary>Creates a globe camera keyframe by capturing the current view. The GlobeCamera keyframe is added to the default GlobeCamera animation track.</summary> ''' '''<param name="globe">An IGlobe interface</param> ''' '''<remarks></remarks> Public Sub CreateAnimationFromView(ByVal globe As ESRI.ArcGIS.GlobeCore.IGlobe) Dim agAnimationUtils As ESRI.ArcGIS.Animation.IAGAnimationUtils=New ESRI.ArcGIS.Animation.AGAnimationUtilsClass Dim AGAnimationTracks As ESRI.ArcGIS.Animation.IAGAnimationTracks=CType(globe, ESRI.ArcGIS.Animation.IAGAnimationTracks) ' Explicit Cast Dim basicScene2 As ESRI.ArcGIS.Analyst3D.IBasicScene2=CType(globe, ESRI.ArcGIS.Analyst3D.IBasicScene2) ' Explicit Cast Dim AGAnimationEnvironment As ESRI.ArcGIS.Animation.IAGAnimationEnvironment=basicScene2.AnimationExtension.AnimationEnvironment agAnimationUtils.CaptureCurrentView(AGAnimationTracks, AGAnimationEnvironment) End Sub