Package fr.soleil.salsa.entity.scan2D

Examples of fr.soleil.salsa.entity.scan2D.IRange2DX


     */
    @Override
    public void notifyFromValueChanged(String value, int iPosition, int jPosition, boolean deltaLock) {
        if (!this.actuatorModelsList.isEmpty()) {
            // .setBeginPosition(beginPosition);
            IRange2DX range = getRange(jPosition);
            ITrajectory2DX trajectory = getTrajectory(range, iPosition);
            this.computeBeginPositionChange(trajectory, Double.valueOf(value), deltaLock);
        }
    }
View Full Code Here


     * Called when end value changes.
     */
    @Override
    public void notifyToValueChanged(String value, int iPosition, int jPosition, boolean deltaLock) {
        if (!this.actuatorModelsList.isEmpty()) {
            IRange2DX range = getRange(jPosition);
            ITrajectory2DX trajectory = getTrajectory(range, iPosition);
            this.computeEndPositionChange(trajectory, Double.valueOf(value), deltaLock);
        }
    }
View Full Code Here

                    tmp2d.setScanAddOn(new ScanAddOnImp());
                    tmp2d.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig2D) tmp2d).setDimensionX(new Dimension2DXImpl());

                    // Creates one X range for a new 2D config.
                    IRange2DX xRangeToAdd = new Range2DXImpl();
                    xRangeToAdd.setDimension(((IConfig2D) tmp2d).getDimensionX());
                    xRangeToAdd.setIntegrationTime(1.0);
                    xRangeToAdd.setStepsNumber(1);
                    ((IConfig2D) tmp2d).getDimensionX().getRangesList().add(xRangeToAdd);

                    // Creates one Y range for a new 2D config.
                    ((IConfig2D) tmp2d).setDimensionY(new Dimension2DYImpl());
                    Range2DYImpl yRangeToAdd = new Range2DYImpl();
View Full Code Here

                    config = new Config2DImpl();
                    config.setScanAddOn(new ScanAddOnImp());
                    config.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig2D) config).setDimensionX(new Dimension2DXImpl());
                    // Creates one X range for a new 2D config.
                    IRange2DX xRangeToAdd = new Range2DXImpl();
                    xRangeToAdd.setDimension(((IConfig2D) config).getDimensionX());
                    xRangeToAdd.setIntegrationTime(1.0);
                    xRangeToAdd.setStepsNumber(1);
                    ((IConfig2D) config).getDimensionX().getRangesList().add(xRangeToAdd);
                    // Creates one Y range for a new 2D config.
                    ((IConfig2D) config).setDimensionY(new Dimension2DYImpl());
                    Range2DYImpl yRangeToAdd = new Range2DYImpl();
                    yRangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
View Full Code Here

     * Set the range.
     *
     * @param range
     */
    public void setRange(IRange2DX range) {
        IRange2DX oldValue = baseBean.getRange();
        baseBean.setRange(range);
        firePropertyChange("range", oldValue, range);
    }
View Full Code Here

                    config = new Config2DImpl();
                    config.setScanAddOn(new ScanAddOnImp());
                    config.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig2D) config).setDimensionX(new Dimension2DXImpl());
                    // Creates one X range for a new 2D config.
                    IRange2DX xRangeToAdd = new Range2DXImpl();
                    xRangeToAdd.setDimension(((IConfig2D) config).getDimensionX());
                    xRangeToAdd.setIntegrationTime(1.0);
                    xRangeToAdd.setStepsNumber(1);
                    ((IConfig2D) config).getDimensionX().getRangesList().add(xRangeToAdd);
                    // Creates one Y range for a new 2D config.
                    ((IConfig2D) config).setDimensionY(new Dimension2DYImpl());
                    Range2DYImpl yRangeToAdd = new Range2DYImpl();
                    yRangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
View Full Code Here

     */
    public void refresh() {
        if ((this.rangeModelsList != null) && (this.actuatorModelsList != null) && (view != null)) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                IRange2DX r = ((IConfig2D) config).getDimensionX().getRangesList().get(j);
                view.setIntegrationTime(j, r.getIntegrationTime() + "");
                view.setStepNumber(j, r.getStepsNumber() + "");
            }

            for (int i = 0; i < ((IConfig2D) config).getDimensionX().getRangesList().size(); i++)
                for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().get(i)
                        .getTrajectoriesList().size(); j++) {
View Full Code Here

     */
    public void read() {
        if ((this.config != null) && (view != null)) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                IRange2DX r = ((IConfig2D) config).getDimensionX().getRangesList().get(j);
                r.setIntegrationTime(Double.valueOf(view.getIntegrationTime(j)));
                r.setStepsNumber(Integer.valueOf(view.getStepNumber(j)));
            }

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                for (int i = 0; i < ((IConfig2D) config).getDimensionX().getActuatorsList().size(); i++) {

View Full Code Here

        ITrajectory2DX trajectoryImpl = getPartialTrajectory(trajectory);

        ITrajectory2DX trajectoryResult = (ITrajectory2DX) Config2DApi
                .computeIntegrationTimeChange(trajectoryImpl);

        IRange2DX rangeResult = trajectoryResult.getRange();
        swapRange(range, rangeResult);

        write();
        refresh();
    }
View Full Code Here

        ITrajectory2DX trajectoryImpl = getPartialTrajectory(trajectory);

        ITrajectory2DX trajectoryResult = (ITrajectory2DX) Config2DApi.computeStepsNumberChange(
                trajectoryImpl, false, 0.0);

        IRange2DX rangeResult = trajectoryResult.getRange();
        swapRange(range, rangeResult);

        write();
        refresh();
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scan2D.IRange2DX

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.