Package fr.soleil.salsa.entity.scan2D

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


        trajectoryImpl.setDelta(delta);

        ITrajectory2DX result = (ITrajectory2DX) Config2DApi.computeDeltaChange(trajectoryImpl,
                false, 0.0);

        IRange2DX resultRange = result.getRange();
        IRange2DX range = trajectory.getRange();
        range.setStepsNumber(resultRange.getStepsNumber());
        range.setIntegrationTime(resultRange.getIntegrationTime());
        swapRange(range, resultRange);

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


            rangeToAdd.setDimension(((IConfig2D) config).getDimensionX());
            rangeToAdd.setIntegrationTime(1.0);
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionX().getRangesList().add(rangeToAdd);
            IRange2DX range = ((IConfig2D) config).getDimensionX().getRangesList()
                    .get(((IConfig2D) config).getDimensionX().getRangesList().size() - 1);
            ((Range2DXModel) range).addListener(listenerRange2DX);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                Trajectory2DXModel trajectory2DXModelToAdd = new Trajectory2DXModel();
                trajectory2DXModelToAdd.setBeginPosition(0.0);
                trajectory2DXModelToAdd.setEndPosition(0.0);
                trajectory2DXModelToAdd.setDelta(0.0);
                trajectory2DXModelToAdd.setRelative(false);
                trajectory2DXModelToAdd.setSpeed(0.0);

                rangeToAdd.getTrajectoriesList().add(trajectory2DXModelToAdd);
                trajectory2DXModelToAdd.setRange(rangeToAdd);
                trajectory2DXModelToAdd.setActuator(actuatorModelsList.get(i));

                ((Trajectory2DXModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DX);

            }
            if (view != null) {
                view.addRange();
View Full Code Here

     * Called when integration time value changes.
     */
    @Override
    public void notifyIntegrationTimeChange(String value, int jPosition) {
        if (!this.actuatorModelsList.isEmpty()) {
            IRange2DX range = getRange(jPosition);
            this.computeIntegrationTimeChange(range, Double.valueOf(value));
        }
        else {
            this.rangeModelsList.get(jPosition).setIntegrationTime(Double.valueOf(value));
        }
View Full Code Here

     */
    @Override
    public void notifyNumberOfStepsChange(String value, int jPosition) {
        if (!this.actuatorModelsList.isEmpty()) {

            IRange2DX range = getRange(jPosition);
            this.computeStepsNumberChange(range, Integer.valueOf(value));
        }
        else {
            this.rangeModelsList.get(jPosition).setStepsNumber(Integer.valueOf(value));
        }
View Full Code Here

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

    }

    @Override
    public void notifyRelativeChanged(boolean relative, int iPosition, int jPosition) {
        if (!this.actuatorModelsList.isEmpty()) {
            IRange2DX range = getRange(jPosition);
            ITrajectory2DX trajectory = getTrajectory(range, iPosition);
            computeRelativeChange(trajectory, relative);
        }
    }
View Full Code Here

    }

    @Override
    public void notifyDeltaConstantChanged(boolean deltaConstant, int iPosition, int jPosition) {
        if (!this.actuatorModelsList.isEmpty()) {
            IRange2DX range = getRange(jPosition);
            ITrajectory2DX trajectory = getTrajectory(range, iPosition);
            computeDeltaConstantChange(trajectory, deltaConstant);
        }
    }
View Full Code Here

     */
    @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

     * 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

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.