public static EarthView.World.Spatial3D.Dataset.ModelOctreeManager NewDatasourceModelOctreeManager(EarthView.World.Core.Database.SqlDatabase db, string datasourceName, EarthView.World.Spatial.Math.AxisAlignedBox box, uint maxDepth, bool autoInit)
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CModelOctreeManager_newDatasourceModelOctreeManager_CModelOctreeManager_CSqlDatabase_EVString_CAxisAlignedBox_ev_uint32_ev_bool(object.Equals(db, null) ? IntPtr.Zero : db.NativeObject, datasourceName, object.Equals(box, null) ? IntPtr.Zero : box.NativeObject, maxDepth, Convert.ToByte(autoInit));

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial3D.Dataset.ModelOctreeManager csObj = new EarthView.World.Spatial3D.Dataset.ModelOctreeManager(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "CModelOctreeManager");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial3D.Dataset.ModelOctreeManager;
                            csObj.BindNativeObject(__ptr, "CModelOctreeManager");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
                    public static EarthView.World.Spatial3D.Dataset.ModelOctreeManager NewDatasetModelOctreeManagerWithCache(string web, EarthView.World.Spatial.Evspatialserver pNetServer, EarthView.World.Spatial.Evbasemodeldataset pNetDataset, EarthView.World.Spatial.Evbasemodellayerinfo pNetDatasetInfo, EarthView.World.Spatial.Math.AxisAlignedBox box, uint maxDepth, string cacheFolder, bool autoInit)
                    {
                        IntPtr __ptr = EarthView_World_Spatial3D_Dataset_CModelOctreeManager_newDatasetModelOctreeManagerWithCache_CModelOctreeManager_EVString_CEVSpatialServer_CEVBaseModelDataset_CEVBaseModelLayerInfo_CAxisAlignedBox_ev_uint32_EVString_ev_bool(web, object.Equals(pNetServer, null) ? IntPtr.Zero : pNetServer.NativeObject, object.Equals(pNetDataset, null) ? IntPtr.Zero : pNetDataset.NativeObject, object.Equals(pNetDatasetInfo, null) ? IntPtr.Zero : pNetDatasetInfo.NativeObject, object.Equals(box, null) ? IntPtr.Zero : box.NativeObject, maxDepth, cacheFolder, Convert.ToByte(autoInit));

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Spatial3D.Dataset.ModelOctreeManager csObj = new EarthView.World.Spatial3D.Dataset.ModelOctreeManager(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "CModelOctreeManager");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Spatial3D.Dataset.ModelOctreeManager;
                            csObj.BindNativeObject(__ptr, "CModelOctreeManager");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }