/// <summary> /// 构造函数 /// </summary> /// <param name="ref_pTerrainLayer"> 地形图层或图层组CTerrainLayer、CLocalTerrainLayer、CTerrainGroupLayer</param> public AltitudeListener(EarthView.World.Spatial3D.Atlas.Iterrainlayer ref_pTerrainLayer) : base(CreatedWhenConstruct.CWC_NotToCreate) { NameValuePairList list = new NameValuePairList(); BasePtr valueref_pTerrainLayer = new BasePtr(ref_pTerrainLayer); list.Add("ref_pTerrainLayer", valueref_pTerrainLayer.PtrVal); Create("CAltitudeListenerProxy", list); if (!"EarthView.World.Spatial3D.Analysis.AltitudeListener".Equals(((Object)this).GetType().ToString())) { this.SetCustomExtend(true); } RegisterCallBack(); this.needDispose = true; GlobalTraceInfoMap.Put(this); }
/// <summary> /// 设置地形图层或图层组 /// </summary> /// <param name="ref_pTerrainLayer">地形图层或图层组</param> public void SetTerrainLayer(EarthView.World.Spatial3D.Atlas.Iterrainlayer ref_pTerrainLayer) { EarthView_World_Spatial3D_Analysis_CAltitudeListener_setTerrainLayer_void_ITerrainLayer(this.NativeObject, object.Equals(ref_pTerrainLayer, null) ? IntPtr.Zero : ref_pTerrainLayer.NativeObject); }