Commit 1bc497ef authored by legoc's avatar legoc
Browse files

Reviewed the call to scale energy

parent 5ef11b93
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment