Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
vEXP
Commits
1bc497ef
Commit
1bc497ef
authored
May 18, 2020
by
legoc
Browse files
Reviewed the call to scale energy
parent
5ef11b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/client/views/3D/trajectory-view.js
View file @
1bc497ef
...
...
@@ -196,6 +196,15 @@ class TrajectoryView3D extends View3D {
// Change the scale on the z direction to change the length of the energy lines.
this
.
_energyScaleGroup
.
scale
.
z
=
clientSettings
.
energyScale
;
// Iterate on the trajectory lines.
for
(
let
id
in
this
.
_trajectoryLines
)
{
// Update the lines
let
hklLine
=
this
.
_trajectoryLines
[
id
].
hkl
;
hklLine
.
updateLine
();
let
energyLine
=
this
.
_trajectoryLines
[
id
].
energy
;
energyLine
.
updateLine
();
}
}
update3DLocal
()
{
...
...
@@ -208,20 +217,6 @@ class TrajectoryView3D extends View3D {
this
.
_energyTranslationGroup
.
translateZ
(
-
scalarWorldToView
(
dE
));
}
scaleEnergy
(
value
)
{
// Iterate on the trajectory lines.
for
(
let
id
in
this
.
_trajectoryLines
)
{
let
hklLine
=
this
.
_trajectoryLines
[
id
].
hkl
;
// Scale only lines that are ki or kf.
if
(
hklLine
.
type
===
'
ki
'
||
hklLine
.
type
===
'
kf
'
)
{
let
energyLine
=
this
.
_trajectoryLines
[
id
].
energy
;
energyLine
.
scale
(
value
);
}
}
}
changeDisplayMode
()
{
if
(
displayMode
.
view
==
Constants
.
DisplayMode
.
SPE
)
{
this
.
_hklViewGroup
.
visible
=
false
;
...
...
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