当前位置: 首页 > news >正文

做网站 站内搜索引擎书签图片

做网站 站内搜索引擎,书签图片,微信公众号如何快速涨粉,自字网站建设教程视频前文链接#xff1a;QGraphicsView实现简易地图7『异步加载-多瓦片-无底图』 前7篇的地图加载#xff0c;都采用最少瓦片数量的算法#xff0c;即用最少数量的瓦片覆盖视口#xff0c;以获得最快的加载速度。但是这样会带来一个问题#xff0c;那就是每当移动地图时#…前文链接QGraphicsView实现简易地图7『异步加载-多瓦片-无底图』 前7篇的地图加载都采用最少瓦片数量的算法即用最少数量的瓦片覆盖视口以获得最快的加载速度。但是这样会带来一个问题那就是每当移动地图时视口周边的瓦片才会加载这样会造成地图的延时甚至卡顿而这会令用户感到非常反感。为此需要在之前的算法上进行改进加载覆盖视口的最少瓦片后立即加载视口周边瓦片加载过的瓦片离开视口后不再删除以加快下次进入视口后的渲染。 1、动态演示效果 2、获取视口及周边瓦片代码以视口宽高的一半向四周扩展 QRect CommonUtility::getViewAndAroundTileCoords(int tempTileTop, int tileLeft, int tempTileBottom, int tileRight, int level, vectorTileCoord vecTileCoord) {// 1 视口for (int row tempTileTop; row tempTileBottom; row){for (int col tileLeft; col tileRight; col){vecTileCoord.push_back(TileCoord(col, row));}}int mapSize pow(2, level);int tileW tileRight - tileLeft 1;int tileH tempTileBottom - tempTileTop 1;int tempTileT, tempTileL, tempTileB, tempTileR;int tileT, tileL, tileB, tileR;// 2 上侧tileT tempTileT qMax(tempTileTop - tileH / 2, 0);tempTileB tempTileTop - 1;tempTileL qMax(tileLeft - tileW / 2, 0); tempTileR qMin(tileRight tileW / 2, mapSize - 1);for (int row tempTileT; row tempTileB; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}// 3 下侧tempTileT tempTileBottom 1;tileB tempTileB qMin(tempTileBottom tileH / 2, mapSize - 1);tempTileL qMax(tileLeft - tileW / 2, 0);tempTileR qMin(tileRight tileW / 2, mapSize - 1);for (int row tempTileT; row tempTileB; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}// 4 左侧tileL tempTileL qMax(tileLeft - tileW / 2, 0);tempTileR tileLeft - 1;for (int row tempTileTop; row tempTileBottom; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}// 5 右侧tempTileL tileRight 1;tileR tempTileR qMin(tileRight tileW / 2, mapSize - 1);for (int row tempTileTop; row tempTileBottom; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}return QRect(tileL, tileT, (tileR - tileL 1), (tileB - tileT 1)); }
http://www.hkea.cn/news/14360193/

相关文章:

  • 做网站维护需要什么证书wordpress 免费版广告
  • 网站招聘顾问做啥的自己做的网站手机不能看
  • 高端汽车网站建设新媒体营销案例分析
  • 网站建设 验收北京企业网站开发费用
  • 含山县查询建设工程的网站淘宝店铺去哪里买
  • 怎么做网站生意做化验的网站
  • 潍坊seo建站行业网站搭建
  • 服装网站建设策划企业云邮箱
  • 明年做哪些网站能致富网站设计 分辨率
  • 企业门户网站建设现状设计制作小车一微课
  • 定制棺材网站wordpress 登陆验证码插件
  • 天河网站(建设信科网络)深圳高端写字楼
  • 网站建设实训体会蓝色网站建设
  • 做网站自己申请域名还是建站公司杭州发布官网
  • 请收网址999938seo快速排名博客
  • 网站标题具体怎样优化wordpress log文件
  • 常熟做网站的共享充电宝app开发
  • 网站建设与管理素材网站开发遵循的原则
  • 时尚网站模板网站开发服务器怎么选
  • 网站建设总体上可划分为两个阶段酒类网站建设
  • 淘宝网站建设与规划西昌做网站
  • 大数据专业主要学什么网站优化有前途吗
  • 北京网站建公司新闻平面设计图片 作品集
  • 做设计.不抠图网站佛山网站优化包年
  • 海口市住房与城乡建设厅网站优化外包哪里好
  • 基金会网站开发方案最便宜建站
  • 石家庄网站建设云图亚马逊做外贸英文网站
  • 提供网站建设出售建筑网片产品资料
  • 常用企业客户资料网站杨凌做网站的
  • 网站建设制作价格秦皇岛建设网站公司