Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
6ce3a7a8
Commit
6ce3a7a8
authored
Jul 13, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alignment code clean up, todo: error reporting and mode on/off by checkbox
parent
f2be9efd
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
252 additions
and
263 deletions
+252
-263
ic_explore_black_48dp_1x.png
js/images/ic_explore_black_48dp_1x.png
+0
-0
ic_explore_black_48dp_2x.png
js/images/ic_explore_black_48dp_2x.png
+0
-0
ui.css
js/ui.css
+15
-1
ui_align.js
js/ui_align.js
+209
-245
ui_init.js
js/ui_init.js
+19
-14
util_functions.js
js/util_functions.js
+2
-2
test.html
test.html
+7
-1
No files found.
js/images/ic_explore_black_48dp_1x.png
0 → 100644
View file @
6ce3a7a8
624 Bytes
js/images/ic_explore_black_48dp_2x.png
0 → 100644
View file @
6ce3a7a8
1.19 KB
js/ui.css
View file @
6ce3a7a8
...
...
@@ -188,7 +188,7 @@ html, body, #x3d_wrapper {
}
#align_button
{
background-image
:
url('images/
align
.png')
;
background-image
:
url('images/
ic_explore_black_48dp_1x
.png')
;
background-size
:
32px
32px
;
background-repeat
:
no-repeat
;
...
...
@@ -307,4 +307,18 @@ html, body, #x3d_wrapper {
user-select
:
none
;
}
#aa1_dialog
{
position
:
absolute
;
top
:
2px
;
left
:
2px
;
background
:
rgba
(
256
,
256
,
256
,
1
);
padding
:
5px
;
}
#aa1_dialog
td
{
padding
:
0px
5px
;
}
#aa1_dialog
button
{
margin
:
0px
5px
;
}
js/ui_align.js
View file @
6ce3a7a8
This diff is collapsed.
Click to expand it.
js/ui_init.js
View file @
6ce3a7a8
...
...
@@ -58,7 +58,7 @@ var SETTINGS = {
'path'
:
"1487451413_967079"
,
'version'
:
"v1"
,
'experimental'
:
false
,
'edit'
:
fals
e
,
'edit'
:
tru
e
,
'files'
:
{
'x3d'
:
""
,
'x3d_background'
:
""
,
...
...
@@ -722,6 +722,15 @@ function leaf_drag_marker(){
var
p1_ll
=
Camera
.
_latlng
;
var
p2_ll
=
Camera
.
draggedMarker
.
_latlng
;
leaf_update_x3dom_marker
(
p1_ll
,
p2_ll
,
index
);
X3DOMObject
.
displayMarkInfo
(
index
);
}
}
function
leaf_update_x3dom_marker
(
p1_ll
,
p2_ll
,
index
){
var
mark
=
Data
.
markers
[
index
];
mark
.
latitude
=
p2_ll
.
lat
;
...
...
@@ -739,12 +748,8 @@ function leaf_drag_marker(){
mark
.
d_map
=
distance
;
X3DOMObject
.
displayMarkInfo
(
index
);
X3DOMObject
.
Marker
.
place
(
mark
.
x
,
mark
.
y
,
mark
.
z
,
"my-sph-"
+
index
);
}
}
function
leaf_translation_v1
(
p0
,
p1
){
...
...
js/util_functions.js
View file @
6ce3a7a8
...
...
@@ -41,7 +41,7 @@ function convert_color_l2x(color){
/*
* azimuth by geo coords
*/
/*
function
getAzimuth2
(
p1
,
p2
){
//p1 - start point
...
...
@@ -58,7 +58,7 @@ function getAzimuth2(p1,p2){
return
azimuth
;
}
*/
/*
* azimuth by canvas coords
*/
...
...
test.html
View file @
6ce3a7a8
...
...
@@ -64,7 +64,13 @@
<div
id=
'help_wrapper'
>
<div
id=
'menu_button'
></div>
<div
id=
'help_button'
>
?
</div>
<div
id=
'align_button'
class=
'experimental'
></div>
<div
id=
'align_button'
title=
'Run alignment algorithm for camera heading and location using markers.
Instructions:
1. Use approximate location control on the map to change initial approximation for the algorithm.
2. Place at least 3 markers on the 3D model (ctrl+click) - drag to position more precisely.
3. Move all markers on the map to update their location - drag to position more precisely.
4. Click this button - the results will appear in a dialog window with "apply"/"cancel"
5. To save the result click upload button (Initial location and heading) in the menu.'
class=
'edit'
></div>
</div>
<div
id=
'info-wrapper'
>
<div
id=
'window-info'
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment