/// <summary>
                    /// 获得第n份子高度范围
                    /// </summary>
                    /// <param name="index">子高度范围序号</param>
                    /// <returns>子高度范围</returns>
                    public EarthView.World.Spatial.Effect3D.HeightRange GetSubHeightRange(int index)
                    {
                        IntPtr __ptr = EarthView_World_Spatial_Effect3D_CHeightRange_getSubHeightRange_CHeightRange_ev_int32(this.NativeObject, index);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial.Effect3D.HeightRange csObj = new EarthView.World.Spatial.Effect3D.HeightRange(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "CHeightRange");
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Effect3D.HeightRange;
                            csObj.BindNativeObject(__ptr, "CHeightRange");
                        }
                        return(csObj);
                    }
                    public bool IsIntersect(EarthView.World.Spatial.Effect3D.HeightRange range)
                    {
                        byte ret = EarthView_World_Spatial_Effect3D_CHeightRange_isIntersect_bool_CHeightRange(this.NativeObject, object.Equals(range, null) ? IntPtr.Zero : range.NativeObject);

                        return(Convert.ToBoolean(ret));
                    }
Esempio n. 3
0
 /// <summary>
 /// 设置高度范围
 /// </summary>
 /// <param name = "height">高度范围</param>
 /// <returns></returns>
 public void SetHeightRange(EarthView.World.Spatial.Effect3D.HeightRange height)
 {
     EarthView_World_Spatial_Effect3D_CWind_setHeightRange_void_CHeightRange(this.NativeObject, object.Equals(height, null) ? IntPtr.Zero : height.NativeObject);
 }