cameraflybyfrompath\clsCameraFlyby.cs
// Copyright 2012 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Windows.Forms; using System.Runtime.InteropServices; using ESRI.ArcGIS.Analyst3D; using ESRI.ArcGIS.Carto; using ESRI.ArcGIS.Geometry; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.SystemUI; using ESRI.ArcGIS.ADF.CATIDs; using ESRI.ArcGIS.GlobeCore; using cameraflybyfrompath; namespace CameraFlybyFromPath { public class clsCameraFlyby : ESRI.ArcGIS.Desktop.AddIns.Button { public clsCameraFlyby() { } protected override void OnClick() { frmCameraPath formFlyby = new frmCameraPath(); formFlyby.SetVariables(ArcGlobe.Globe); formFlyby.Show(); } protected override void OnUpdate() { Enabled = ArcGlobe.Application != null; } } }