/// <summary> /// Initializes a new instance of the <see cref= "T:WorldWind.ImageAccessor"/> class. /// </summary> /// <param name="permanentTextureDirectory"></param> /// <param name="textureSizePixels"></param> /// <param name="levelZeroTileSizeDegrees"></param> /// <param name="numberLevels"></param> /// <param name="imageFileExtension"></param> /// <param name="cacheDirectory"></param> /// <param name="imageTileService"></param> public ImageAccessor( string permanentTextureDirectory, int textureSizePixels, double levelZeroTileSizeDegrees, int numberLevels, string imageFileExtension, string cacheDirectory, ImageTileService imageTileService ) { m_dataDirectory = permanentTextureDirectory; m_textureSizePixels = textureSizePixels; m_levelZeroTileSizeDegrees = levelZeroTileSizeDegrees; m_numberLevels = numberLevels; ImageExtension = imageFileExtension; m_cacheDirectory = cacheDirectory; m_imageTileService = imageTileService; }
private void butNext_Click(object sender, EventArgs e) { if (ValidateChildren(ValidationConstraints.Enabled) && Validate()) { // if there are screens to go to.... if (butNext.Text.StartsWith("&N")) { tabCtl.TabPages.Clear(); tabCtl.TabPages.Add(m_tabPages[m_intCurrentTab]); } // otherwise else { // Make result available and close if (m_intCurrentTab == 3) { m_oServer = null; m_oTileServer = null; m_WmsURL = txtWmsServeURL.Text; } else if (m_intCurrentTab == 2) { //DAP m_oTileServer = null; m_WmsURL = ""; } else if (m_intCurrentTab == 1) { m_oServer = null; m_WmsURL = ""; string cacheDir = System.IO.Path.Combine(m_worldWind.WorldWindSettings.CachePath, txtName.Text); ImageTileService imageTileService = new ImageTileService(txtDatabaseName.Text, txtServerURL.Text, txtServerURL.Text); GeographicBoundingBox geoBox = new GeographicBoundingBox( Math.Round(Convert.ToDouble(numN.Value), 0), Math.Round(Convert.ToDouble(numS.Value), 0), Math.Round(Convert.ToDouble(numW.Value), 0), Math.Round(Convert.ToDouble(numE.Value), 0)); m_oTileServer = new LayerGeneration.QuadLayerBuilder( txtName.Text, Convert.ToInt32(numHeight.Value), chkTileServerUseTerrainMap.Checked, geoBox, numTileSize.Value, Convert.ToInt32(numLevels.Value), Convert.ToInt32(numImagePixelSize.Value), imageTileService,cmbTileServerFileExtension.Text, Convert.ToByte(chkShowOnAdd.Checked ? 255 : 0), m_worldWind.CurrentWorld, m_worldWind.WorldWindSettings.CachePath, m_worldWind.WorldWindSettings.CachePath, m_oParent); } Close(); } } // Change next to finish for those screens that end the wizard if (m_intCurrentTab != 0) { butNext.Text = "&OK"; } }
/// <summary> /// Initializes a new instance of the <see cref= "T:WorldWind.ImageAccessor"/> class. /// </summary> /// <param name="permanentTextureDirectory"></param> /// <param name="textureSizePixels"></param> /// <param name="levelZeroTileSizeDegrees"></param> /// <param name="numberLevels"></param> /// <param name="imageFileExtension"></param> /// <param name="cacheDirectory"></param> /// <param name="imageTileService"></param> public ImageAccessor( string permanentTextureDirectory, int textureSizePixels, double levelZeroTileSizeDegrees, int numberLevels, string imageFileExtension, string cacheDirectory, ImageTileService imageTileService ) { m_dataDirectory = permanentTextureDirectory; m_textureSizePixels = textureSizePixels; m_levelZeroTileSizeDegrees = levelZeroTileSizeDegrees; m_numberLevels = numberLevels; ImageExtension = imageFileExtension; m_cacheDirectory = cacheDirectory; m_imageTileService = imageTileService; }