mirror of https://github.com/rusefi/RomRaider.git
Editor Interpolate Updates:
- Extended support for 2D and 3D axis interpolation. - Base Table verticalInterpolate now calls horizontalInterpolate (Used by 1D vertical axis).
This commit is contained in:
parent
c0a26c93db
commit
0ff2371e56
|
@ -1109,6 +1109,7 @@ public abstract class Table extends JPanel implements Serializable {
|
|||
}
|
||||
|
||||
public void verticalInterpolate() {
|
||||
horizontalInterpolate();
|
||||
}
|
||||
|
||||
public void horizontalInterpolate() {
|
||||
|
|
|
@ -303,6 +303,24 @@ public class Table2D extends Table {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void interpolate() {
|
||||
super.interpolate();
|
||||
this.getAxis().interpolate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void verticalInterpolate() {
|
||||
super.verticalInterpolate();
|
||||
this.getAxis().verticalInterpolate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void horizontalInterpolate() {
|
||||
super.horizontalInterpolate();
|
||||
this.getAxis().horizontalInterpolate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLiveDataSupported() {
|
||||
return !isNullOrEmpty(axis.getLogParam());
|
||||
|
|
|
@ -809,6 +809,8 @@ public class Table3D extends Table {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Interpolate y axis in case the y axis in selected.
|
||||
this.getYAxis().verticalInterpolate();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -841,6 +843,8 @@ public class Table3D extends Table {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Interpolate x axis in case the x axis in selected.
|
||||
this.getXAxis().horizontalInterpolate();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -180,13 +180,13 @@ public class TableFrame extends JInternalFrame implements InternalFrameListener,
|
|||
getTable().refreshCompare();
|
||||
|
||||
} else if (e.getSource() == menu.getInterp()) {
|
||||
table.interpolate();
|
||||
getTable().interpolate();
|
||||
|
||||
} else if (e.getSource() == menu.getVertInterp()) {
|
||||
table.verticalInterpolate();
|
||||
getTable().verticalInterpolate();
|
||||
|
||||
} else if (e.getSource() == menu.getHorizInterp()) {
|
||||
table.horizontalInterpolate();
|
||||
getTable().horizontalInterpolate();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue