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
2d602c00
Commit
2d602c00
authored
Sep 02, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ manual position/orientation dialog: inactive
parent
bd0558f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
0 deletions
+58
-0
ui.css
js/ui.css
+10
-0
ui_init.js
js/ui_init.js
+3
-0
ui_menu.js
js/ui_menu.js
+40
-0
viewer.html
viewer.html
+5
-0
No files found.
js/ui.css
View file @
2d602c00
...
...
@@ -295,6 +295,16 @@ html, body, #x3d_wrapper {
text-align
:
center
;
}
#window-extrainfo
{
z-index
:
10
;
background
:
rgba
(
220
,
220
,
220
,
1
);
border
:
0px
solid
rgba
(
100
,
100
,
100
,
0.5
);
border-radius
:
1px
;
color
:
black
;
font-size
:
16px
;
margin-bottom
:
2px
;
}
#window-error
{
z-index
:
10
;
background
:
rgba
(
256
,
256
,
256
,
1
);
...
...
js/ui_init.js
View file @
2d602c00
...
...
@@ -61,6 +61,7 @@ var SETTINGS = {
'version'
:
""
,
'experimental'
:
false
,
'edit'
:
false
,
'manualposor'
:
false
,
'files'
:
{
'x3d'
:
""
,
'kml'
:
""
...
...
@@ -108,6 +109,8 @@ function parseURL(){
case
"ver"
:
SETTINGS
.
version
=
parameters
[
i
][
1
];
break
;
case
"edit"
:
SETTINGS
.
edit
=
true
;
break
;
case
"manualposor"
:
SETTINGS
.
manualposor
=
true
;
break
;
case
"experimental"
:
SETTINGS
.
experimental
=
true
;
break
;
// case "kml": SETTINGS.kml = parameters[i][1]; break;
}
...
...
js/ui_menu.js
View file @
2d602c00
...
...
@@ -107,6 +107,7 @@ function menu_init(){
save_rating_init
();
editmode_init
();
extra_models_init
();
manualposor_init
();
$
(
"#global_coordinates"
).
on
(
'click'
,
function
(){
ui_hideMessage
(
"window-markinfo"
);
...
...
@@ -291,6 +292,45 @@ function editmode_init(){
}
function
manualposor_init
(){
$
(
"#window-extrainfo"
).
html
([
'<div>'
,
' <table id=
\'
mpr_table
\'
>'
,
' <tr>'
,
' <th></th>'
,
' <th colspan=
\'
3
\'
>position, m</th>'
,
' <th colspan=
\'
3
\'
>orientation, °</th>'
,
' </tr>'
,
' <tr>'
,
' <th>Model</th>'
,
' <th>x</th>'
,
' <th>y</th>'
,
' <th>z</th>'
,
' <th>azimuth</th>'
,
' <th>elevation</th>'
,
' <th>skew</th>'
,
' </tr>'
,
' </table>'
,
'</div>'
].
join
(
'
\
n'
));
if
(
SETTINGS
.
manualposor
){
$
(
"#window-extrainfo"
).
show
();
}
else
{
$
(
"#window-extrainfo"
).
hide
();
}
$
(
"#manualposor"
).
on
(
'click'
,
function
(){
if
(
SETTINGS
.
manualposor
){
$
(
"#window-extrainfo"
).
show
();
}
else
{
$
(
"#window-extrainfo"
).
hide
();
}
});
}
function
controls_showhide
(){
if
(
!
SETTINGS
.
experimental
){
...
...
viewer.html
View file @
2d602c00
...
...
@@ -102,6 +102,7 @@ Instructions:
<div
id=
'window-error'
></div>
<div
id=
'window-viewinfo'
></div>
<div
id=
'window-markinfo'
></div>
<div
id=
'window-extrainfo'
></div>
<div
id=
'window-info'
></div>
</div>
<div
id=
'menu-content'
>
...
...
@@ -171,6 +172,10 @@ Instructions:
<td
title=
'Adjust initial location and orientation'
>
Edit mode
</td>
<td><input
id=
'edit'
type=
'checkbox'
class=
'my-check-box donothide'
/></td>
</tr>
<tr
class=
'edit'
title=
'also works for multiple loaded models'
>
<td>
Manual position and orientation dialog
</td>
<td><input
id=
'manualposor'
type=
'checkbox'
class=
'my-check-box donothide'
/></td>
</tr>
<tr
class=
'edit'
>
<td
title=
''
>
Import coordinates from another model
</td>
<td><input
id=
'model_name'
type=
'text'
class=
'input donothide'
placeholder=
'model name'
/></td>
...
...
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