Пример #1
0
 public FrmBatchExportLayerByZ(GSOGlobeControl globeControl1)
 {
     InitializeComponent();
     this.globeControl1 = globeControl1;
     for (int i = 0; i < globeControl1.Globe.Layers.Count; i++)
     {
         TreeNode node = new TreeNode();
         node.Text = globeControl1.Globe.Layers[i].Caption;
         node.Tag = globeControl1.Globe.Layers[i];
         treeView1.Nodes.Add(node);
     }
 }
Пример #2
0
 public FrmBatchExportLayerByZ(GSOGlobeControl globeControl1)
 {
     InitializeComponent();
     this.globeControl1 = globeControl1;
     for (int i = 0; i < globeControl1.Globe.Layers.Count; i++)
     {
         TreeNode node = new TreeNode();
         node.Text = globeControl1.Globe.Layers[i].Caption;
         node.Tag  = globeControl1.Globe.Layers[i];
         treeView1.Nodes.Add(node);
     }
 }
 public FrmBatchUpadateColor(GeoScene.Globe.GSOGlobeControl globeControl)
 {
     InitializeComponent();
     mGlobeControl = globeControl;
 }
Пример #4
0
        public MainFrm()
        {
            InitializeComponent();

            globeControl1 = new GeoScene.Globe.GSOGlobeControl();
            dataMananger1 = new GeoScene.Engine.GSODataManager();

            panelGlobeControl.Controls.Add(globeControl1);
            globeControl1.Dock = DockStyle.Fill;

            layerTree.ImageList = treeImageList;
            layerTree.Dock = DockStyle.Fill;

            controlContainerItem2.Control = panelFind;
            panelFind.Dock = DockStyle.Fill;

            treeFind.ImageList = treeImageList;

            featureTooltip = new GSOBalloon(globeControl1.Handle);
            featureTooltip.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp";
            featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CX, 0);
            featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CY, 0);
            featureTooltip.SetSize(EnumSizeIndex.MARGIN_CX, 3);
            featureTooltip.SetSize(EnumSizeIndex.MARGIN_CY, 3);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_HEIGHT, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_WIDTH, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_MARGIN, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CX, 1);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CY, -1);
            featureTooltip.SetDirection(EnumToolTipDirection.TD_BOTTOMEDGE_LEFT);
            featureTooltip.EscapeSequencesEnabled = true;
            featureTooltip.HyperlinkEnabled = true;
            featureTooltip.Opaque = 30; //30;
            featureTooltip.MaxWidth = 300;
            featureTooltip.SetShadow(0, 0, 50, true, 0, 0);

            infoBalloon = new GSOBalloon(globeControl1.Handle);
            infoBalloon.SetColorBkType(EnumBkColorType.SILVER);
            infoBalloon.SetEffectBk(EnumBkEffect.HBUMP, 0);
            infoBalloon.SetBorder(Color.FromArgb(255, 171, 171, 171), 1, 1);
            infoBalloon.SetSize(EnumSizeIndex.ROUNDED_CX, 5);
            infoBalloon.SetSize(EnumSizeIndex.ROUNDED_CY, 5);
            infoBalloon.SetSize(EnumSizeIndex.ANCHOR_HEIGHT, 20);
            infoBalloon.SetSize(EnumSizeIndex.ANCHOR_WIDTH, 12);
            infoBalloon.SetShadow(3, 3, 50, true, 0, 0);
            infoBalloon.MaxWidth = 300;
            infoBalloon.CloseButtonVisible = true;

            balloonEx = new GSOBalloonEx(globeControl1.Handle);
            balloonEx.SetSize(EnumSizeIndexEx.ANCHOR_WIDTH, 30);
            balloonEx.SetColorBkType(EnumBkColorTypeEx.SILVER);
            balloonEx.SetEffectBk(EnumBkEffectEx.OUTRANGE, 10);
            balloonEx.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp";
        }
Пример #5
0
 public FrmBatchCreatePipeDitch(GSOGlobeControl _ctl)
 {
     ctl = _ctl;
     InitializeComponent();
 }
Пример #6
0
 public FrmPipedrain(GSOGlobeControl _ctl)
 {
     ctl = _ctl;
     InitializeComponent();
 }
Пример #7
0
 public FrmAddWell(GeoScene.Globe.GSOGlobeControl _globeControl1, GSODataSource _ds)
 {
     globeControl1 = _globeControl1;
     ds            = _ds;
     InitializeComponent();
 }
Пример #8
0
 public FrmPipedrain(GSOGlobeControl _ctl)
 {
     ctl = _ctl;
     InitializeComponent();
 }
Пример #9
0
 public FrmPipelineModelDB(GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #10
0
        public static GSOFeatures Table2Features(DataTable table, string currentQueryLayer, GeoScene.Globe.GSOGlobeControl globeControl1)
        {
            GSOFeatures features = new GSOFeatures();

            for (int i = 0; i < table.Rows.Count; i++)
            {
                DataRow row = table.Rows[i];

                string featureName = row["编号"].ToString();
                featureName = featureName.Trim();
                GSOLayer    layer        = globeControl1.Globe.Layers.GetLayerByCaption(currentQueryLayer);
                GSOFeatures tempfeatures = layer.GetFeatureByName(featureName, false);
                if (tempfeatures.Length > 0)
                {
                    features.Add(tempfeatures[0]);
                }
            }
            return(features);
        }
Пример #11
0
 public FrmPaiShui2DB(GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #12
0
 public FrmAddYuBiZiShp(GeoScene.Globe.GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #13
0
 public FrmShp2KML(GSOGlobeControl _ctl)
 {
     ctl = _ctl;
     InitializeComponent();
 }
Пример #14
0
 public FrmBatchUpadateFontOfMarkers(GeoScene.Globe.GSOGlobeControl globeControl)
 {
     InitializeComponent();
     mGlobeControl = globeControl;
 }
 public FrmNewDBFeatureDataset(GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #16
0
        public FrmBatchCreateModel(GeoScene.Globe.GSOGlobeControl _globeControl1)
        {
            InitializeComponent();

            globeControl1 = _globeControl1;
        }
Пример #17
0
 public FrmShp2KML(GSOGlobeControl _ctl)
 {
     ctl = _ctl;
     InitializeComponent();
 }
Пример #18
0
 public FrmPaiShui2DB(GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #19
0
        private ArrayList modeltypes = new ArrayList(); // 井的型号

        #endregion Fields

        #region Constructors

        public FrmBatchCreateModel(GeoScene.Globe.GSOGlobeControl _globeControl1)
        {
            InitializeComponent();

            globeControl1 = _globeControl1;
        }
Пример #20
0
 public FrmAddWellShp(GeoScene.Globe.GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
 public FrmPipelineModelDB(GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #22
0
        private ArrayList modeltypes = new ArrayList(); // 井的型号

        #endregion Fields

        #region Constructors

        public FrmAddWell(GeoScene.Globe.GSOGlobeControl _globeControl1,GSODataSource _ds)
        {
            globeControl1 = _globeControl1;
            ds = _ds;
            InitializeComponent();
        }
 public FrmMultiPipelineModelDB(GSOGlobeControl _globeControl)
 {
     globeControl1 = _globeControl;
     InitializeComponent();
 }
 public FrmBatchCreatePipeline(GSOGlobeControl _ctl)
 {
     ctl = _ctl;
     InitializeComponent();
 }
Пример #25
0
 public FrmAddValve(GeoScene.Globe.GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #26
0
 public FrmNewDBFeatureDataset(GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Пример #27
0
 public FrmMultiPipelineModelDB(GSOGlobeControl _globeControl)
 {
     globeControl1 = _globeControl;
     InitializeComponent();
 }