Package org.codemap

Examples of org.codemap.DigitalElevationModel


    }

    @Override
    protected HillShading computeValue(ProgressMonitor monitor, Arguments arguments) {
        MapInstance mapInstance = arguments.nextOrFail();
        DigitalElevationModel elevationModel = arguments.nextOrFail();
        return computeValue(monitor, mapInstance, elevationModel);
    }
View Full Code Here


    }

    private DigitalElevationModel computeValue(ProgressMonitor monitor, MapInstance map, MapScheme<Boolean> hills) {
        DEMAlgorithm algorithm = new DEMAlgorithm();
        algorithm.setMap(processMap(map));
        return new DigitalElevationModel(algorithm.call());
    }
View Full Code Here

    @Override
    protected Image computeValue(ProgressMonitor monitor, Arguments arguments) {
        MapInstance mapInstance = arguments.nextOrNull();
        if (mapInstance == null) return null;

        DigitalElevationModel elevationModel = getCurrentElevationModel(arguments, mapInstance);
        HillShading hillShading = getCurrentHillShading(arguments, mapInstance);
        MapScheme<MColor> colors = getCurrentColorScheme(arguments);
        return computeValue(monitor, mapInstance, elevationModel, hillShading, colors);
    }
View Full Code Here

        if (colors == null) colors = MapScheme.with(MColor.HILLGREEN);
        return colors;
    }

    private DigitalElevationModel getCurrentElevationModel(Arguments arguments, MapInstance mapInstance) {
        DigitalElevationModel elevationModel = arguments.nextOrNull();
        if (elevationModel != null && mapInstance.getWidth() != elevationModel.getSize())
            elevationModel = null;
        return elevationModel;
    }
View Full Code Here

TOP

Related Classes of org.codemap.DigitalElevationModel

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.