Ejemplo n.º 1
0
        private void tree_dataSet_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            try
            {
                File3dattribute bo     = (File3dattribute)e.Node.Tag;
                QueryFilter     pQuery = new QueryFilterClass();

                pQuery.WhereClause = ModelID + " = " + bo.Objectid.ToString();
                IFeatureCursor featureCursor       = this.tFeatureClass.Search(pQuery, true);
                IFeature       esriFeature         = featureCursor.NextFeature();
                ESRI.ArcGIS.Geometry.IPoint pPoint = esriFeature.Shape as ESRI.ArcGIS.Geometry.IPoint;
                IPosition61 _Position6             = Program.pCreator6.CreatePosition(pPoint.X, pPoint.Y, 100, AltitudeTypeCode.ATC_TERRAIN_RELATIVE, 0, -89, 0, 100);
                Program.pNavigate6.FlyTo(_Position6, ActionCode.AC_FLYTO);
            }
            catch (Exception ex)
            {
                //throw;
            }
        }
Ejemplo n.º 2
0
        public void InitTree(List <File3dattribute> list)
        {
            try
            {
                this.tree_dataSet.Nodes.Clear();

                for (int i = 0; i < list.Count; i++)
                {
                    File3dattribute bo = list[i];
                    TreeNode        tn = new TreeNode(bo.Mc);
                    tn.Tag        = bo;
                    tn.ImageIndex = 1;
                    this.tree_dataSet.Nodes.Add(tn);
                }
            }
            catch (Exception)
            {
            }
        }