Ejemplo n.º 1
0
        private void FrmCamOriInWorld_Load(object sender, EventArgs e)
        {
            //初始化图层列表
            IEnumLayer pEnumLayer = pMapControl.Map.get_Layers(null, true);

            pEnumLayer.Reset();
            ILayer pLayer = null;

            while ((pLayer = pEnumLayer.Next()) != null)
            {
                if (pLayer is IRasterLayer)
                {
                    cmbDEMlayer.Items.Add(pLayer.Name);
                }
            }
            //初始化zg全局段回调函数
            zg_m_call = new VecCallBack(OutLouVec);
            Register_CallBack_Vec(zg_m_call);
        }
Ejemplo n.º 2
0
 public static extern void Register_CallBack_Vec([MarshalAs(UnmanagedType.FunctionPtr)] VecCallBack call);
Ejemplo n.º 3
0
 private void FrmSkylinePara_Load(object sender, EventArgs e)
 {
     //初始化zg全局段回调函数
     zg_m_call = new VecCallBack(OutLouVec);
     Register_CallBack_Vec(zg_m_call);
 }