Exemple #1
0
        private void listView1_SelectedIndexChanged_1(object sender, EventArgs e)//单击listView的项并在控件中预览
        {
            if (listView1.SelectedItems.Count > 0)
            {
                plane3DControl.Plane3DScene.RemoveAllFeature();

                GSOFeature  feature = new GSOFeature();
                GSOGeoModel model   = new GSOGeoModel();
                model.FilePath = dictionary[listView1.SelectedItems[0].Index];
                model.SetPosition(0, 0, 0);
                feature.Geometry             = model;
                feature.Geometry.HighLight   = false;
                feature.Geometry.LatLonCoord = false;
                plane3DControl.Plane3DScene.AddFeature(feature);

                filePath = dictionary[listView1.SelectedItems[0].Index];
            }
        }
 private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listBoxSize.SelectedIndex != -1)
     {
         string      path  = Application.StartupPath + @"\管道配件gcm\" + listBoxType.SelectedItem.ToString() + "\\" + list[listBoxSize.SelectedIndex];
         GSOGeoModel model = new GSOGeoModel();
         model.FilePath = path;
         modelPath      = path;
         model.SetPosition(0, 0, 0);
         feature                      = new GSOFeature();
         feature.Geometry             = model;
         feature.Geometry.LatLonCoord = false;
         feature.HighLight            = false;
         this.plane3DControl.Plane3DScene.RemoveAllFeature();
         this.plane3DControl.Plane3DScene.AddFeature(feature);
     }
     else
     {
     }
 }
        private void listBoxSize_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBoxSize.SelectedIndex != -1)
            {
                string path = Application.StartupPath + @"\管道配件gcm\" + listBoxType.SelectedItem.ToString() + "\\" + list[listBoxSize.SelectedIndex];
                GSOGeoModel model = new GSOGeoModel();
                model.FilePath = path;
                modelPath = path;
                model.SetPosition(0, 0, 0);
                feature = new GSOFeature();
                feature.Geometry = model;
                feature.Geometry.LatLonCoord = false;
                feature.HighLight = false;
                this.plane3DControl.Plane3DScene.RemoveAllFeature();
                this.plane3DControl.Plane3DScene.AddFeature(feature);
            }
            else
            {

            }
        }
Exemple #4
0
        //单击listView的项并在控件中预览
        private void listView1_SelectedIndexChanged_1(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count > 0)
            {
                plane3DControl.Plane3DScene.RemoveAllFeature();

                GSOFeature feature = new GSOFeature();
                GSOGeoModel model = new GSOGeoModel();
                model.FilePath = dictionary[listView1.SelectedItems[0].Index];
                model.SetPosition(0, 0, 0);
                feature.Geometry = model;
                feature.Geometry.HighLight = false;
                feature.Geometry.LatLonCoord = false;
                plane3DControl.Plane3DScene.AddFeature(feature);

                filePath = dictionary[listView1.SelectedItems[0].Index];
            }
        }