mirror of https://github.com/rusefi/RomRaider.git
updated with initial interpolating 3d for linux
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@280 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
15257a6378
commit
6ac2d95faf
Binary file not shown.
|
@ -249,9 +249,10 @@ public class TableToolBar extends JToolBar implements MouseListener, ItemListene
|
||||||
float[] rowValues = new float[valueCount];
|
float[] rowValues = new float[valueCount];
|
||||||
for(int i = 0; i < valueCount; i++){
|
for(int i = 0; i < valueCount; i++){
|
||||||
DataCell theCell = tableData[i][j];
|
DataCell theCell = tableData[i][j];
|
||||||
float theValue = (float)theCell.getValue();
|
rowValues[i] = (float)theCell.getValue();
|
||||||
BigDecimal finalRoundedValue = new BigDecimal(theValue).setScale(2,BigDecimal.ROUND_HALF_UP);
|
//float theValue = (float)theCell.getValue();
|
||||||
rowValues[i] = finalRoundedValue.floatValue();
|
//BigDecimal finalRoundedValue = new BigDecimal(theValue).setScale(2,BigDecimal.ROUND_HALF_UP);
|
||||||
|
//rowValues[i] = finalRoundedValue.floatValue();
|
||||||
}
|
}
|
||||||
graphValues.add(rowValues);
|
graphValues.add(rowValues);
|
||||||
}
|
}
|
||||||
|
@ -266,9 +267,10 @@ public class TableToolBar extends JToolBar implements MouseListener, ItemListene
|
||||||
double[] xValues = new double[length];
|
double[] xValues = new double[length];
|
||||||
|
|
||||||
for(int i = 0; i < length; i++){
|
for(int i = 0; i < length; i++){
|
||||||
double theValue = dataCells[i].getValue();
|
xValues[i] = dataCells[i].getValue();
|
||||||
BigDecimal finalRoundedValue = new BigDecimal(theValue).setScale(2,BigDecimal.ROUND_HALF_UP);
|
//double theValue = dataCells[i].getValue();
|
||||||
xValues[i] = finalRoundedValue.doubleValue();
|
//BigDecimal finalRoundedValue = new BigDecimal(theValue).setScale(2,BigDecimal.ROUND_HALF_UP);
|
||||||
|
//xValues[i] = finalRoundedValue.doubleValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gather y/z axis values
|
//Gather y/z axis values
|
||||||
|
@ -302,9 +304,12 @@ public class TableToolBar extends JToolBar implements MouseListener, ItemListene
|
||||||
graphFrame.setDefaultCloseOperation(JInternalFrame.HIDE_ON_CLOSE);
|
graphFrame.setDefaultCloseOperation(JInternalFrame.HIDE_ON_CLOSE);
|
||||||
ECUEditorManager.getECUEditor().rightPanel.add(graphFrame);
|
ECUEditorManager.getECUEditor().rightPanel.add(graphFrame);
|
||||||
*/
|
*/
|
||||||
|
double maxV = ((Table3D)table).getScale().getMax();
|
||||||
|
double minV = ((Table3D)table).getScale().getMin();
|
||||||
//TODO Remove this when above is working
|
//TODO Remove this when above is working
|
||||||
Graph3dFrameManager.openGraph3dFrame(graphValues, xValues, yValues,xLabel, yLabel, zLabel, table.getName());
|
System.out.println("Scale: "+maxV+","+minV);
|
||||||
|
|
||||||
|
Graph3dFrameManager.openGraph3dFrame(graphValues, 0.0, 13.01, xValues, yValues, xLabel, yLabel, zLabel, table.getName());
|
||||||
GraphData.addGraphDataListener(this);
|
GraphData.addGraphDataListener(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue