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
a82eda19
Commit
a82eda19
authored
Nov 16, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
8f7da472
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
45 deletions
+49
-45
x3dom_deltas.js
js/x3dom_deltas.js
+49
-45
No files found.
js/x3dom_deltas.js
View file @
a82eda19
function
Av_func
(
mark
,
pars
){
var
theLastMovedMarker
=
null
;
function
x3dom_delta_markers
(){
// what's the last dragged marker? (over map?)
// see leaflet_init.js
var
index
=
theLastMovedMarker
;
var
marker
=
Data
.
markers
[
index
];
console
.
log
(
marker
);
var
Camera
=
Map
.
marker
;
// calling this function
Av_f
({
map
:
{
lat
:
marker
.
latitude
,
lng
:
marker
.
longitude
,
alt
:
marker
.
altitude
},
model
:
{
x
:
marker
.
x
,
y
:
marker
.
y
,
z
:
marker
.
z
}
},
{
lat
:
Data
.
camera
.
kml
.
latitude
,
lng
:
Data
.
camera
.
kml
.
longitude
,
alt
:
Data
.
camera
.
kml
.
altitude
,
heading
:
Data
.
camera
.
kml
.
heading
,
tilt
:
Data
.
camera
.
kml
.
tilt
,
roll
:
Data
.
camera
.
kml
.
roll
}
);
/*
var e1_c = new x3dom.fields.SFVec3f(marker.x,marker.y,marker.z);
x3dom_draw_line("x0","red", e1_c, e1_c.add(new x3dom.fields.SFVec3f(50, 0, 0)));
x3dom_draw_line("y0","green", e1_c, e1_c.add(new x3dom.fields.SFVec3f( 0,50, 0)));
x3dom_draw_line("z0","blue", e1_c, e1_c.add(new x3dom.fields.SFVec3f( 0, 0,50)));
x3dom_draw_line("x1","red", new x3dom.fields.SFVec3f(0,0,0), new x3dom.fields.SFVec3f(50, 0, 0));
x3dom_draw_line("y1","green", new x3dom.fields.SFVec3f(0,0,0), new x3dom.fields.SFVec3f( 0,50, 0));
x3dom_draw_line("z1","blue", new x3dom.fields.SFVec3f(0,0,0), new x3dom.fields.SFVec3f( 0, 0,50));
*/
return
0
;
}
function
Av_f
(
mark
,
pars
){
/*
/*
...
@@ -193,52 +236,13 @@ function Av_func(mark,pars){
...
@@ -193,52 +236,13 @@ function Av_func(mark,pars){
// Is it correct? The direction seems right for close and far objects
// Is it correct? The direction seems right for close and far objects
//
//
return vector
return
Av
;
}
}
var
theLastMovedMarker
=
null
;
function
Av_df_dx
(){
console
.
log
(
"Welcome to dAv/dx"
);
function
x3dom_delta_markers
(){
};
// what's the last dragged marker? (over map?)
// see leaflet_init.js
var
index
=
theLastMovedMarker
;
var
marker
=
Data
.
markers
[
index
];
console
.
log
(
marker
);
var
Camera
=
Map
.
marker
;
// calling this function
Av_func
({
map
:
{
lat
:
marker
.
latitude
,
lng
:
marker
.
longitude
,
alt
:
marker
.
altitude
},
model
:
{
x
:
marker
.
x
,
y
:
marker
.
y
,
z
:
marker
.
z
}
},
{
lat
:
Data
.
camera
.
kml
.
latitude
,
lng
:
Data
.
camera
.
kml
.
longitude
,
alt
:
Data
.
camera
.
kml
.
altitude
,
heading
:
Data
.
camera
.
kml
.
heading
,
tilt
:
Data
.
camera
.
kml
.
tilt
,
roll
:
Data
.
camera
.
kml
.
roll
}
);
/*
var e1_c = new x3dom.fields.SFVec3f(marker.x,marker.y,marker.z);
x3dom_draw_line("x0","red", e1_c, e1_c.add(new x3dom.fields.SFVec3f(50, 0, 0)));
x3dom_draw_line("y0","green", e1_c, e1_c.add(new x3dom.fields.SFVec3f( 0,50, 0)));
x3dom_draw_line("z0","blue", e1_c, e1_c.add(new x3dom.fields.SFVec3f( 0, 0,50)));
x3dom_draw_line("x1","red", new x3dom.fields.SFVec3f(0,0,0), new x3dom.fields.SFVec3f(50, 0, 0));
x3dom_draw_line("y1","green", new x3dom.fields.SFVec3f(0,0,0), new x3dom.fields.SFVec3f( 0,50, 0));
x3dom_draw_line("z1","blue", new x3dom.fields.SFVec3f(0,0,0), new x3dom.fields.SFVec3f( 0, 0,50));
*/
return
0
;
}
/*
/*
e is an object
e is an object
...
...
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