Package fr.soleil.comete.util

Examples of fr.soleil.comete.util.NumberMatrix


                  // loop because of autoboxing
                  for (int i = 0; i < storage2.length; i++) {
                    dataArray[i] = storage2[i];
                  }

                  NumberMatrix matrix = new NumberMatrix();
                  matrix.setFlatValues(dataArray, dimY, dimX);
                  imageViewer.setData(matrix);

                  viewer = (JComponent) imageViewer.getComponent();
                }
                else if (data.getElementType().equals(short.class)
                    || data.getElementType().equals(int.class)) {
                  // TODO sysout SMA
                  // System.out.println("case short");
                  int[] storage2 = (int[]) storage;

                  Number[] dataArray = new Number[storage2.length];
                  // loop because of autoboxing
                  for (int i = 0; i < storage2.length; i++) {
                    dataArray[i] = Integer.valueOf(storage2[i]);
                  }

                  NumberMatrix matrix = new NumberMatrix();
                  matrix.setFlatValues(dataArray, dimY, dimX);
                  imageViewer.setData(matrix);

                  viewer = (JComponent) imageViewer.getComponent();
                }
                else {
View Full Code Here


    public NumberMatrix getData() {
        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        NumberMatrix data;
        IScanResult scanResult = getScanResult();
        if (scanResult != null) {
            data = convertScanResultToNumberMatrix(scanResult);
        }
        else {
View Full Code Here

                    valuesMatrix[row][column] = scanPointsMatrix[row][column].getTime();
                }
            }
        }

        NumberMatrix matrix = new NumberMatrix();
        matrix.setName("Scan result");
        matrix.setValues(valuesMatrix);

        return matrix;
    }
View Full Code Here

    @Override
    public NumberMatrix readData() {
        if(report.getDimensionType() != DimensionType.IMAGE) {
            return null;
        }
        NumberMatrix matrix = new NumberMatrix();
        matrix.setName(actuator.getName());
        matrix.setValues(report.getReadImageData());
        return matrix;
    }
View Full Code Here

    @Override
    public NumberMatrix readData() {
        if(report.getDimensionType() != DimensionType.IMAGE) {
            return null;
        }
        NumberMatrix matrix = new NumberMatrix();
        matrix.setName(sensor.getName());
        matrix.setValues(report.getReadImageData());
        return matrix;
    }
View Full Code Here

    public NumberMatrix getData() {
        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        NumberMatrix data;
        IScanResult scanResult = getScanResult();
        if (scanResult != null) {
            data = convertScanResultToNumberMatrix(scanResult);
        }
        else {
View Full Code Here

                    valuesMatrix[row][column] = scanPointsMatrix[row][column].getTime();
                }
            }
        }

        NumberMatrix matrix = new NumberMatrix();
        matrix.setName("Scan result");
        matrix.setValues(valuesMatrix);

        return matrix;
    }
View Full Code Here

    public NumberMatrix getData() {
        noReadCycles = 0;
        if (!autoRefresh && !inError) {
            setAutoRefresh(true);
        }
        NumberMatrix data;
        IScanResult scanResult = getScanResult();
        if (scanResult != null) {
            data = convertScanResultToNumberMatrix(scanResult);
        }
        else {
View Full Code Here

                    valuesMatrix[row][column] = scanPointsMatrix[row][column].getTime();
                }
            }
        }

        NumberMatrix matrix = new NumberMatrix();
        matrix.setName("Scan result");
        matrix.setValues(valuesMatrix);

        return matrix;
    }
View Full Code Here

    @Override
    public NumberMatrix readData() {
        if (report.getDimensionType() != DimensionType.IMAGE) {
            return null;
        }
        NumberMatrix matrix = new NumberMatrix();
        matrix.setName(actuator.getName());
        matrix.setValues(report.getReadImageData());
        return matrix;
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.util.NumberMatrix

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.