Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OGC
dojo-3DPS-client
Commits
98582931
Commit
98582931
authored
Jul 15, 2020
by
athanasios
Browse files
bug fix
parent
f768a7c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/mappers/CesiumParametersMapper.js
View file @
98582931
...
...
@@ -6,12 +6,11 @@ define([
return
declare
(
null
,
{
constructor
:
function
()
{
let
viewer
=
CesiumViewer
.
getViewer
();
this
.
_scene
=
viewer
.
scene
;
this
.
_viewer
=
CesiumViewer
.
getViewer
();
},
cullingVolume2Url
:
function
()
{
let
planes
=
this
.
_
scene
.
frameState
.
cullingVolume
.
planes
;
let
planes
=
this
.
_
viewer
.
camera
.
frustum
.
_offCenterFrustum
.
_
cullingVolume
.
planes
;
let
result
=
[];
for
(
i
=
0
,
len
=
planes
.
length
;
i
<
len
;
i
++
)
{
result
.
push
(
planes
[
i
].
x
)
...
...
@@ -23,7 +22,7 @@ define([
},
camera2Url
:
function
()
{
let
camera
=
this
.
_
scene
.
frameState
.
camera
;
let
camera
=
this
.
_
viewer
.
camera
;
let
position
=
camera
.
position
;
let
direction
=
camera
.
direction
;
let
result
=
[];
...
...
@@ -37,9 +36,9 @@ define([
},
frustum2Url
:
function
()
{
let
near
=
this
.
_
scene
.
frameState
.
camera
.
frustum
.
_offCenterFrustum
.
near
;
let
top
=
this
.
_
scene
.
frameState
.
camera
.
frustum
.
_offCenterFrustum
.
top
;
let
right
=
this
.
_
scene
.
frameState
.
camera
.
frustum
.
_offCenterFrustum
.
right
;
let
near
=
this
.
_
viewer
.
camera
.
frustum
.
_offCenterFrustum
.
near
;
let
top
=
this
.
_
viewer
.
camera
.
frustum
.
_offCenterFrustum
.
top
;
let
right
=
this
.
_
viewer
.
camera
.
frustum
.
_offCenterFrustum
.
right
;
let
result
=
[];
result
.
push
(
near
);
result
.
push
(
top
);
...
...
@@ -48,8 +47,8 @@ define([
},
drawingBuffer2Url
:
function
()
{
let
width
=
this
.
_scene
.
frameState
.
context
.
drawingBufferWidth
;
let
height
=
this
.
_scene
.
frameState
.
context
.
drawingBufferHeight
;
let
width
=
this
.
_
viewer
.
scene
.
frameState
.
context
.
drawingBufferWidth
;
let
height
=
this
.
_
viewer
.
scene
.
frameState
.
context
.
drawingBufferHeight
;
let
result
=
[];
result
.
push
(
width
);
result
.
push
(
height
);
...
...
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