Package org.codemap

Examples of org.codemap.HillShading


    private HillShading computeValue(ProgressMonitor monitor, MapInstance mapInstance, DigitalElevationModel elevationModel) {
        ShadeAlgorithm hsa = new ShadeAlgorithm();
        hsa.setMap(mapInstance);
        double[][] shading = hsa.call();
       
        return new HillShading(shading);
    }
View Full Code Here


    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

            elevationModel = null;
        return elevationModel;
    }

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

TOP

Related Classes of org.codemap.HillShading

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.