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
bdc1185e
Commit
bdc1185e
authored
Jun 08, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ reset view
parent
79751523
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
12 deletions
+34
-12
ui_init.js
js/ui_init.js
+2
-0
ui_menu.js
js/ui_menu.js
+14
-3
test.html
test.html
+18
-9
No files found.
js/ui_init.js
View file @
bdc1185e
...
...
@@ -314,6 +314,8 @@ function x3d_initial_camera_placement(){
var
viewpoint
=
$
(
Scene
.
element
).
find
(
"Viewpoint"
);
viewpoint
.
attr
(
"orientation"
,
AA
[
0
].
toString
()
+
" "
+
AA
[
1
]);
viewpoint
.
attr
(
"position"
,
Rc_w
.
e3
().
toString
());
viewpoint
.
attr
(
"centerOfRotation"
,
Rc_w
.
e3
().
toString
());
}
...
...
js/ui_menu.js
View file @
bdc1185e
...
...
@@ -60,9 +60,9 @@ function menu_init(){
// changing a checkbox will not close menu
menu
.
on
(
'click'
,
function
(
e
){
var
class1
=
$
(
e
.
target
).
hasClass
(
"my-check-box
"
);
var
class2
=
$
(
e
.
target
).
hasClass
(
"input"
);
if
(
!
class1
&&!
class2
){
var
test
=
$
(
e
.
target
).
hasClass
(
"donothide
"
);
if
(
!
test
){
menu
.
hide
();
}
});
...
...
@@ -86,6 +86,8 @@ function menu_init(){
shiftspeed_init
();
marker_size_color_init
();
reset_view_init
();
}
function
crosshair_init
(){
...
...
@@ -128,3 +130,12 @@ function marker_size_color_init(){
}
function
reset_view_init
(){
$
(
"#reset_view"
).
on
(
'click'
,
function
(){
x3d_initial_camera_placement
();
x3d_mouseMove
();
Scene
.
resize
();
});
}
\ No newline at end of file
test.html
View file @
bdc1185e
...
...
@@ -65,39 +65,48 @@
<table>
<tr>
<td>
Show marker info (satellite vs 3D model distalnce)
</td>
<td><input
id=
'markinfo'
type=
'checkbox'
class=
'my-check-box'
/></td>
<td><input
id=
'markinfo'
type=
'checkbox'
class=
'my-check-box
donothide
'
/></td>
</tr>
<tr>
<td>
Show view info (x, y, z, azimuth, elevation, skew)
</td>
<td><input
id=
'viewinfo'
type=
'checkbox'
class=
'my-check-box'
/></td>
<td><input
id=
'viewinfo'
type=
'checkbox'
class=
'my-check-box
donothide
'
/></td>
</tr>
<tr>
<td>
Show more info (hitting ray: id, x, y, z, d
<sub>
xz
</sub>
, d
<sub>
xyz
</sub>
)
</td>
<td><input
id=
'moreinfo'
type=
'checkbox'
class=
'my-check-box'
/></td>
<td><input
id=
'moreinfo'
type=
'checkbox'
class=
'my-check-box
donothide
'
/></td>
</tr>
<tr>
<td>
Show crosshair
</td>
<td><input
id=
'crosshair'
type=
'checkbox'
class=
'my-check-box'
/></td>
<td><input
id=
'crosshair'
type=
'checkbox'
class=
'my-check-box
donothide
'
/></td>
</tr>
<tr>
<td>
Show pointer marker (green sphere over 3D scene)
</td>
<td><input
id=
'pointer'
type=
'checkbox'
class=
'my-check-box'
/></td>
<td><input
id=
'pointer'
type=
'checkbox'
class=
'my-check-box
donothide
'
/></td>
</tr>
<tr>
<td>
Highlight 3D elements on mouse over
</td>
<td><input
id=
'highlight'
type=
'checkbox'
class=
'my-check-box'
/></td>
<td><input
id=
'highlight'
type=
'checkbox'
class=
'my-check-box
donothide
'
/></td>
</tr>
<tr>
<td>
View's parallel shift speed
</td>
<td><input
id=
'shiftspeed'
type=
'text'
class=
'input'
/></td>
<td><input
id=
'shiftspeed'
type=
'text'
class=
'input
donothide
'
/></td>
</tr>
<tr>
<td>
3D marker diameter, m
</td>
<td><input
id=
'markersize'
type=
'text'
class=
'input'
/></td>
<td><input
id=
'markersize'
type=
'text'
class=
'input
donothide
'
/></td>
</tr>
<tr>
<td>
3D marker color
</td>
<td><input
id=
'markercolor'
type=
'text'
class=
'input'
/></td>
<td><input
id=
'markercolor'
type=
'text'
class=
'input donothide'
/></td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td><button
id=
'reset_view'
class=
'donothide'
>
Reset view
</button></td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td><button>
Close
</button></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