public ext_class() { this.tile = new tile_class(); this.subtile = new tile_class(); this.latlong_area = new latlong_area_class(); this.latlong_center = new latlong_class(); }
public override latlong_area_class calc_latlong_area_by_tile(latlong_class latlong, tile_class tile, double zoom, int resolution, Vector2 bresolution, Vector2 offset) { float num = Mathf.Pow((float)2, (float)((double)19 - zoom)); zoom = (double)19; resolution = (int)((float)resolution * num); bresolution *= num; latlong_area_class latlong_area_class = new latlong_area_class(); map_pixel_class map_pixel_class = this.latlong_to_pixel2(latlong, zoom); Vector2 vector = new Vector2((float)0, (float)0); map_pixel_class.x += (double)((float)(tile.x * resolution) + offset.x); map_pixel_class.y += (double)((float)(tile.y * resolution) + offset.y); if (tile.x > 0) { map_pixel_class.x += (double)num; vector.x = num; } if (tile.y > 0) { map_pixel_class.y += (double)num; vector.y = num; } latlong_class latlong_class = this.pixel_to_latlong2(map_pixel_class, zoom); latlong_area_class.latlong1 = latlong_class; map_pixel_class.x += (double)(bresolution.x - vector.x); map_pixel_class.y += (double)(bresolution.y - vector.y); latlong_class = this.pixel_to_latlong2(map_pixel_class, zoom); latlong_area_class.latlong2 = latlong_class; return(latlong_area_class); }
public override latlong_area_class calc_latlong_area_by_tile2(latlong_class latlong, tile_class tile, double zoom, int resolution, Vector2 bresolution) { latlong_area_class latlong_area_class = new latlong_area_class(); map_pixel_class map_pixel_class = this.latlong_to_pixel2(latlong, zoom); Vector2 vector = new Vector2((float)0, (float)0); map_pixel_class.x += (double)(tile.x * resolution); map_pixel_class.y += (double)(tile.y * resolution); latlong_class latlong_class = this.pixel_to_latlong2(map_pixel_class, zoom); latlong_area_class.latlong1 = latlong_class; map_pixel_class.x += (double)bresolution.x; map_pixel_class.y += (double)bresolution.y; latlong_class = this.pixel_to_latlong2(map_pixel_class, zoom); latlong_area_class.latlong2 = latlong_class; return(latlong_area_class); }
public map_class() { this.active = true; this.button_parameters = true; this.button_image_editor = true; this.button_region = true; this.button_image_export = true; this.button_heightmap_export = true; this.button_settings = true; this.alpha = 0.65f; this.region = new List <map_region_class>(); this.preimage_edit = new preimage_edit_class(); this.tex2_tile = new tile_class(); this.tex3_tile = new tile_class(); this.elExt = new List <ext_class>(); this.texExt = new List <ext_class>(); this.time_start_elExt = new List <float>(); this.time_start_texExt = new List <float>(); this.export_texExt = 8; this.export_elExt = 16; this.export_heightmap_area = new latlong_area_class(); this.export_image_area = new latlong_area_class(); this.export_pullIndex = new tile_class(); this.export_heightmap_continue = true; this.export_heightmap = new map_export_class(); this.export_image = new map_export_class(); this.export_image_continue = true; this.export_jpg_quality = 100; this.export_jpg = true; this.color = Color.red; this.bingKey = new List <map_key_class>(); this.mouse_sensivity = (float)2; this.warnings = true; this.track_tile = true; this.make_region_popup(); }
public map_class() { this.active = true; this.button_parameters = true; this.button_image_editor = true; this.button_region = true; this.button_image_export = true; this.button_heightmap_export = true; this.button_settings = true; this.alpha = 0.65f; this.region = new List<map_region_class>(); this.preimage_edit = new preimage_edit_class(); this.tex2_tile = new tile_class(); this.tex3_tile = new tile_class(); this.elExt = new List<ext_class>(); this.texExt = new List<ext_class>(); this.time_start_elExt = new List<float>(); this.time_start_texExt = new List<float>(); this.export_texExt = 8; this.export_elExt = 16; this.export_heightmap_area = new latlong_area_class(); this.export_image_area = new latlong_area_class(); this.export_pullIndex = new tile_class(); this.export_heightmap_continue = true; this.export_heightmap = new map_export_class(); this.export_image = new map_export_class(); this.export_image_continue = true; this.export_jpg_quality = 100; this.export_jpg = true; this.color = Color.red; this.bingKey = new List<map_key_class>(); this.mouse_sensivity = (float)2; this.warnings = true; this.track_tile = true; this.make_region_popup(); }