private void Mtree_OnSelectObjectChanged(object obj) { oepViewpoint vp = obj as oepViewpoint; if (vp != null) { ax.render.Viewpoint = vp; return; } oepLayer lyr = obj as oepLayer; if (lyr != null) { vp = oepViewFitter.Fitter(lyr, Project.CurrentMap, ax.render); ax.render.Viewpoint = vp; return; } oepAnimationPath apth = obj as oepAnimationPath; if (apth != null) { oepAnimationPath.PlayPath(apth, ax.render); return; } }
private void init() { string temppath = Project.TempPath; int i = 0; string recordName = "Path" + i.ToString(); string recordUrl = temppath + recordName + ".p"; while (File.Exists(recordUrl)) { i++; recordName = "Record" + i.ToString(); recordUrl = temppath + recordName + ".p"; } tbName.Text = recordName; tbName.Tag = recordUrl; CurrentAnimationPath = new oepAnimationPath(); }