Exemple #1
0
                protected void EarthView_World_Graphic_CScriptLoader_parseScript_void_DataStreamPtr_EVString_Function(IntPtr stream, ref IntPtr groupName)
                {
                    EarthView.World.Core.DataStreamPtr csobj_stream = new EarthView.World.Core.DataStreamPtr(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_stream.BindNativeObject(stream, "DataStreamPtr");
                    csobj_stream.Delegate = true;
                    IClassFactory csobj_streamClassFactory = GlobalClassFactoryMap.Get(csobj_stream.GetCppInstanceTypeName());

                    if (csobj_streamClassFactory != null)
                    {
                        csobj_stream.Delegate = true;
                        csobj_stream          = csobj_streamClassFactory.Create() as EarthView.World.Core.DataStreamPtr;
                        csobj_stream.BindNativeObject(stream, "DataStreamPtr");
                        csobj_stream.Delegate = true;
                    }
                    string strgroupName = Marshal.PtrToStringAnsi(groupName);

                    ClassFactory.FreeString(ref groupName);

                    ParseScript(ref csobj_stream, strgroupName);
                }
Exemple #2
0
 /// <summary>
 /// 解析RenderSystemCapabilities脚本文件,并将其添加到RenderSystemCapabilitiesManager::_addRenderSystemCapabilities中
 /// </summary>
 /// <param name=""></param>
 /// <returns></returns>
 public void ParseScript(ref EarthView.World.Core.DataStreamPtr stream)
 {
     EarthView_World_Graphic_CRenderSystemCapabilitiesSerializer_parseScript_void_DataStreamPtr(this.NativeObject, object.Equals(stream, null) ? IntPtr.Zero : stream.NativeObject);
 }
Exemple #3
0
                /// <summary>
                /// 构造函数
                /// </summary>
                /// <param name="scenemanager">场景管理器</param>
                /// <param name="type">点类型</param>
                /// <param name="estimatedCount">预设点个数</param>
                /// <param name="texture">纹理图片流</param>
                /// <returns></returns>
                public ScreenPolygon(EarthView.World.Graphic.SceneManager ref_scenemanager, ref EarthView.World.Core.DataStreamPtr texture) : base(CreatedWhenConstruct.CWC_NotToCreate)
                {
                    NameValuePairList list = new NameValuePairList();
                    BasePtr           valueref_scenemanager = new BasePtr(ref_scenemanager);

                    list.Add("ref_scenemanager", valueref_scenemanager.PtrVal);
                    BasePtr valuetexture = new BasePtr(texture);

                    list.Add("texture", valuetexture.PtrVal);
                    Create("CScreenPolygonProxy", list);
                    if (!"EarthView.World.Geometry3D.ScreenPolygon".Equals(((Object)this).GetType().ToString()))
                    {
                        this.SetCustomExtend(true);
                    }
                    RegisterCallBack();
                    this.needDispose = true;
                    GlobalTraceInfoMap.Put(this);
                }
Exemple #4
0
 public virtual void ParseScript(ref EarthView.World.Core.DataStreamPtr stream, string groupName)
 {
     EarthView_World_Graphic_CScriptLoader_parseScript_void_DataStreamPtr_EVString(this.NativeObject, object.Equals(stream, null) ? IntPtr.Zero : stream.NativeObject, groupName);
 }