⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matchfilter.java

📁 openmap java写的开源数字地图程序. 用applet实现,可以像google map 那样放大缩小地图.
💻 JAVA
字号:
/** *  */package com.bbn.openmap.geo;public interface MatchFilter {    /**     * do inexpensive comparisons to determine if the two elements     * might intersect.     *      * @return true iff further checks might yield intersection.     */    boolean preConsider(GeoExtent seg, GeoExtent region);    /**     * the distance (in radians) to consider two objects to be     * interacting, that is, intersecting for our purposes.     *      * @return the maximum distance to consider touching. Must be     *         non-negative.     */    double getHRange();    //    // implementations    //    public static class MatchParametersMF implements MatchFilter {        protected double hrange = 0.0;        public MatchParametersMF(MatchParameters params) {            // initialize search parameters from method calls            hrange = params.horizontalRange();        }        public MatchParametersMF(double hrange, int[] vrange, long[] trange) {            this.hrange = hrange;        }        public double getHRange() {            return hrange;        }        public boolean preConsider(GeoExtent seg, GeoExtent region) {            return true;        }    }    public static class ExactMF implements MatchFilter {        public double getHRange() {            return 0.0;        }        public boolean preConsider(GeoExtent seg, GeoExtent region) {            return true;        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -