Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qplanetosm
提交
e51731b2
qplanetosm
项目概览
colorEagleStdio
/
qplanetosm
通知
118
Star
10
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
qplanetosm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e51731b2
编写于
4月 29, 2020
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Reduce warp items CPU cost .
上级
3c83a95a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
8 deletion
+23
-8
qtviewer_planetosm/qtviewer_planetosm_zh_CN.ts
qtviewer_planetosm/qtviewer_planetosm_zh_CN.ts
+1
-1
qtvplugin_geomarker/qtvplugin_geomarker.cpp
qtvplugin_geomarker/qtvplugin_geomarker.cpp
+21
-6
qtvplugin_geomarker/qtvplugin_geomarker_zh_CN.ts
qtvplugin_geomarker/qtvplugin_geomarker_zh_CN.ts
+1
-1
未找到文件。
qtviewer_planetosm/qtviewer_planetosm_zh_CN.ts
浏览文件 @
e51731b2
...
...
@@ -194,7 +194,7 @@
<
translation
>
可见
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
osm_frame_widget.cpp
"
line
=
"
4
33
"
/>
<
location
filename
=
"
osm_frame_widget.cpp
"
line
=
"
4
28
"
/>
<
source
>
save
to
image
<
/source
>
<
translation
>
保存到图像
<
/translation
>
<
/message
>
...
...
qtvplugin_geomarker/qtvplugin_geomarker.cpp
浏览文件 @
e51731b2
...
...
@@ -235,23 +235,38 @@ void qtvplugin_geomarker::cb_paintEvent( QPainter * pImage )
rect
.
width
(),
rect
.
height
()
);
//Warpping 180, -180. because longitude +180 and -180 is the same point,
// but the map is plat, -180 and + 180 is quite different positions, we
// should draw 3 times, to slove cross 180 drawing problems.
for
(
int
p
=
-
1
;
p
<=
1
;
++
p
)
if
(
!
too_many_items
())
{
//Warpping 180, -180. because longitude +180 and -180 is the same point,
// but the map is plat, -180 and + 180 is quite different positions, we
// should draw 3 times, to slove cross 180 drawing problems.
for
(
int
p
=
-
1
;
p
<=
1
;
++
p
)
{
QRectF
source
(
leftcenx
+
p
*
winsz
,
topceny
,
(
rightcenx
-
leftcenx
),
(
bottomceny
-
topceny
)
);
m_pScene
->
render
(
pImage
,
destin
,
source
);
}
}
else
{
QRectF
source
(
leftcenx
+
p
*
winsz
,
leftcenx
,
topceny
,
(
rightcenx
-
leftcenx
),
(
bottomceny
-
topceny
)
);
m_pScene
->
render
(
pImage
,
destin
,
source
);
}
//draw current tools
switch
(
m_currentTools
)
{
...
...
qtvplugin_geomarker/qtvplugin_geomarker_zh_CN.ts
浏览文件 @
e51731b2
...
...
@@ -308,7 +308,7 @@
<
/message
>
<
message
>
<
source
>
Level
Re
-
Coord
%
1
%%<
/source
>
<
translation
>
正在重新计算坐标
,
完成
%
1
%%<
/translation
>
<
translation
type
=
"
vanished
"
>
正在重新计算坐标
,
完成
%
1
%%<
/translation
>
<
/message
>
<
message
>
<
source
>
name
could
not
be
empty
.
<
/source
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录