Exemplo n.º 1
0
                    /// <summary>
                    /// 构造函数
                    /// </summary>
                    ///<param "textureName">纹理名称</param>
                    ///<param "textureName">角度大小</param>
                    public Sun(string textureName, ref EarthView.World.Spatial.Math.Degree sunTextureAngularSize) : base(CreatedWhenConstruct.CWC_NotToCreate)
                    {
                        NameValuePairList list             = new NameValuePairList();
                        BasePtr           valuetextureName = new BasePtr(textureName);

                        list.Add("textureName", valuetextureName.PtrVal);
                        BasePtr valuesunTextureAngularSize = new BasePtr(sunTextureAngularSize);

                        list.Add("sunTextureAngularSize", valuesunTextureAngularSize.PtrVal);
                        Create("CSun", list);
                        RegisterCallBack();
                        this.needDispose = true;
                        GlobalTraceInfoMap.Put(this);
                    }
Exemplo n.º 2
0
                    /// <summary>
                    /// 构造函数
                    /// </summary>
                    ///<param "moonTextureName">材质名称</param>
                    ///<param "angularSize">角度</param>
                    ///<returns></returns>
                    public Moon(string moonTextureName, EarthView.World.Spatial.Math.Degree angularSize) : base(CreatedWhenConstruct.CWC_NotToCreate)
                    {
                        NameValuePairList list = new NameValuePairList();
                        BasePtr           valuemoonTextureName = new BasePtr(moonTextureName);

                        list.Add("moonTextureName", valuemoonTextureName.PtrVal);
                        BasePtr valueangularSize = new BasePtr(angularSize);

                        list.Add("angularSize", valueangularSize.PtrVal);
                        Create("CMoon", list);
                        RegisterCallBack();
                        this.needDispose = true;
                        GlobalTraceInfoMap.Put(this);
                    }
                    /// <summary>
                    /// 获取相控阵雷达垂直方向威力间隔
                    /// </summary>
                    /// <returns>相控阵雷达垂直方向威力间隔(角度值)</returns>
                    public EarthView.World.Spatial.Math.Degree GetVerticalAngleDelta()
                    {
                        IntPtr __ptr = EarthView_IndustryEngine_MilitaryEngine_RadarLibrary_CPARadarCharacter_getVerticalAngleDelta_CDegree(this.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Math.Degree;
                            csObj.BindNativeObject(__ptr, "CDegree");
                        }
                        return(csObj);
                    }
Exemplo n.º 4
0
                    /// <summary>
                    /// 获取月亮大小,以视域角度为单位
                    /// </summary>
                    ///<returns>视域角度</returns>
                    public EarthView.World.Spatial.Math.Degree GetMoonTextureAngularSize()
                    {
                        IntPtr __ptr = EarthView_World_Spatial_Effect3D_CMoon_getMoonTextureAngularSize_CDegree(this.NativeObject);

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

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial.Math.Degree;
                            csObj.BindNativeObject(__ptr, "CDegree");
                        }
                        return(csObj);
                    }
                    /// <summary>
                    /// 创建相控阵雷达垂直威力面
                    /// </summary>
                    /// <param name="verticalSpan">垂直方向跨度</param>
                    /// <param name="verticalNum">垂直方向威力数据分布</param>
                    /// <param name="overaweDistance">雷达威力范围</param>
                    /// <returns>相控阵雷达垂直威力面</returns>
                    public static EarthView.IndustryEngine.MilitaryEngine.RadarLibrary.RadarSection CreateRadarSection(EarthView.World.Spatial.Math.Degree verticalAngleSpan, int verticalNum, double overaweDistance)
                    {
                        IntPtr __ptr = EarthView_IndustryEngine_MilitaryEngine_RadarLibrary_CPARadarCharacter_createRadarSection_CRadarSection_CDegree_ev_int32_ev_real64(object.Equals(verticalAngleSpan, null) ? IntPtr.Zero : verticalAngleSpan.NativeObject, ref verticalNum, ref overaweDistance);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.IndustryEngine.MilitaryEngine.RadarLibrary.RadarSection csObj = new EarthView.IndustryEngine.MilitaryEngine.RadarLibrary.RadarSection(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "CRadarSection");
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.IndustryEngine.MilitaryEngine.RadarLibrary.RadarSection;
                            csObj.BindNativeObject(__ptr, "CRadarSection");
                        }
                        return(csObj);
                    }
 /// <summary>
 /// 设置相控阵雷达垂直方向威力间隔,只有设置了垂直威力范围后才有效
 /// </summary>
 /// <param name="value">相控阵雷达垂直方向威力间隔(角度值)</param>
 public void SetVerticalAngleDelta(EarthView.World.Spatial.Math.Degree value)
 {
     EarthView_IndustryEngine_MilitaryEngine_RadarLibrary_CPARadarCharacter_setVerticalAngleDelta_void_CDegree(this.NativeObject, object.Equals(value, null) ? IntPtr.Zero : value.NativeObject);
 }
 /// <summary>
 /// 设置扫描体跨度
 /// </summary>
 /// <param name="degree">扫描体跨度(角度值)</param>
 public void SetScannerHorizontalAngleSpan(EarthView.World.Spatial.Math.Degree degree)
 {
     EarthView_IndustryEngine_MilitaryEngine_RadarLibrary_CMSRadarCharacter_setScannerHorizontalAngleSpan_void_CDegree(this.NativeObject, object.Equals(degree, null) ? IntPtr.Zero : degree.NativeObject);
 }
                /// <summary>
                /// 创建可渲染的旋转体边框
                /// </summary>
                /// <param name="volume">几何旋转体</param>
                /// <param name="interval">旋转间隔</param>
                /// <param name="color">颜色</param>
                /// <param name="sideClosed">是否封闭</param>
                /// <returns>可渲染实体</returns>
                public static EarthView.World.Geometry3D.SimpleRenderableEx CreateVolumeFrame(EarthView.World.Spatial.Geometry.RevolvingVolume volume, EarthView.World.Spatial.Math.Degree interval, EarthView.World.Spatial.Display.Icolor color, bool sideClosed)
                {
                    IntPtr __ptr = EarthView_World_Geometry3D_CGeometry3DFactory_createVolumeFrame_CSimpleRenderableEx_CRevolvingVolume_CDegree_IColor_ev_bool(object.Equals(volume, null) ? IntPtr.Zero : volume.NativeObject, object.Equals(interval, null) ? IntPtr.Zero : interval.NativeObject, object.Equals(color, null) ? IntPtr.Zero : color.NativeObject, Convert.ToByte(sideClosed));

                    if (__ptr == IntPtr.Zero)
                    {
                        return(null);
                    }
                    EarthView.World.Geometry3D.SimpleRenderableEx csObj = new EarthView.World.Geometry3D.SimpleRenderableEx(CreatedWhenConstruct.CWC_NotToCreate);
                    csObj.BindNativeObject(__ptr, "CSimpleRenderableEx");
                    IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Geometry3D.SimpleRenderableEx;
                        csObj.BindNativeObject(__ptr, "CSimpleRenderableEx");
                    }
                    return(csObj);
                }
 /// <summary>
 /// 添加单点
 /// </summary>
 /// <param name="ptName">单点名称</param>
 /// <param name="worldPos">单点世界坐标</param>
 /// <param name="heading">偏北角(以局部坐标系下Z轴代表地球表面正北方向</param>
 /// <param name="iconPath">图标文件路径</param>
 /// <param name="size">单点像素大小</param>
 /// <param name="faceToCamera">是否始终朝向相机显示</param>
 /// <param name="showAsPixel">是否以像素模式显示,显示大小不跟随镜头发生变化</param>
 public void AddPoint3d(string ptName, EarthView.World.Spatial.Math.Vector3 worldPos, EarthView.World.Spatial.Math.Degree heading, string iconPath, float size, bool faceToCamera, bool showAsPixel)
 {
     EarthView_IndustryEngine_IndustryGraphic_CMultiTexturePoint3d_addPoint3d_void_EVString_CVector3_CDegree_EVString_float_bool_bool(this.NativeObject, ptName, object.Equals(worldPos, null) ? IntPtr.Zero : worldPos.NativeObject, object.Equals(heading, null) ? IntPtr.Zero : heading.NativeObject, iconPath, ref size, ref faceToCamera, ref showAsPixel);
 }
 /// <summary>
 /// 根据名称设置状态
 /// </summary>
 /// <param name="ptName">单点名称</param>
 /// <param name="worldPos">单点世界坐标</param>
 /// <param name="heading">单点偏北角</param>
 public void SetStatus(string ptName, EarthView.World.Spatial.Math.Vector3 worldPos, EarthView.World.Spatial.Math.Degree heading)
 {
     EarthView_IndustryEngine_IndustryGraphic_CMultiTexturePoint3d_setStatus_void_EVString_CVector3_CDegree(this.NativeObject, ptName, object.Equals(worldPos, null) ? IntPtr.Zero : worldPos.NativeObject, object.Equals(heading, null) ? IntPtr.Zero : heading.NativeObject);
 }