/// <summary> /// 创建可渲染的长方体 /// </summary> /// <param name="box">几何长方体</param> /// <param name="color">颜色</param> /// <returns>可渲染实体</returns> public static EarthView.World.Geometry3D.SimpleRenderableEx CreateBox(EarthView.World.Spatial.Geometry.Box box, EarthView.World.Spatial.Display.Icolor color) { IntPtr __ptr = EarthView_World_Geometry3D_CGeometry3DFactory_createBox_CSimpleRenderableEx_CBox_IColor(object.Equals(box, null) ? IntPtr.Zero : box.NativeObject, object.Equals(color, null) ? IntPtr.Zero : color.NativeObject); 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="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); }