Examples of CADRG


Examples of com.bbn.openmap.proj.CADRG

        }

        if (saveGraphicsForRedraw && oldProj instanceof CADRG
                && newProj instanceof CADRG) {

            CADRG cadrg1 = (CADRG) oldProj;
            CADRG cadrg2 = (CADRG) newProj;
            if (cadrg1.getScale() != cadrg2.getScale()
                    || cadrg1.getZone() != cadrg2.getZone()) {
                setGraphicList(null);
            }
            // else set graphic list escapes deletion...
        } else {
            setGraphicList(null);
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

            frameProvider.setViewAttributes(viewAttributes);
        }

        Projection cadrgProj = projection;
        if (!(projection instanceof CADRG)) {
            cadrgProj = new CADRG(projection.getCenter(), projection.getScale(), projection.getWidth(), projection.getHeight());

            Point ulp = cadrgProj.forward(projection.getUpperLeft());
            Point lrp = cadrgProj.forward(projection.getLowerRight());

            int w = (int) Math.abs(lrp.getX() - ulp.getX());
            int h = (int) Math.abs(lrp.getY() - ulp.getY());

            // float cadrgScale =
            // ProjMath.getScale(projection.getUpperLeft(),
            // projection.getLowerRight(),
            // cadrgProj);

            cadrgProj = new CADRG(projection.getCenter(), projection.getScale(), w, h);
        }

        // Fetch the list with a CADRG projection, generate it with
        // the real projection.
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

        // This should be checked by the caller.
        if (!(proj instanceof CADRG)) {
            if (viewAttributes.requireProjection) {
                return new OMGraphicList();
            } else {
                viewAttributes.proj = new CADRG(proj.getCenter(), proj.getScale(), proj.getWidth(), proj.getHeight());
            }
        } else {
            viewAttributes.proj = (CADRG) proj;
        }
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

        currentCache = getCurrentCache(uniqueID);
        currentViewAttributes = getCurrentViewAttributes(uniqueID);
        currentCache.setViewAttributes(currentViewAttributes);

        LatLonPoint llpoint = new LatLonPoint(p.center.lat, p.center.lon);
        CADRG proj = new CADRG(llpoint, p.scale, p.width, p.height);

        Vector vector = currentCache.getCoverage(ullat,
                ullon,
                lrlat,
                lrlon,
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

        currentCache = getCurrentCache(uniqueID);
        currentViewAttributes = getCurrentViewAttributes(uniqueID);
        currentCache.setViewAttributes(currentViewAttributes);

        LatLonPoint llpoint = new LatLonPoint(p.center.lat, p.center.lon);
        CADRG proj = new CADRG(llpoint, p.scale, p.width, p.height);
        Vector vector = currentCache.getCatalogCoverage(ullat,
                ullon,
                lrlat,
                lrlon,
                proj,
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

                    System.out.println("----- All Keys -------");
                    gtfFile.dumpTags(gtfFile.getGtfDirectory().getFields());
                    System.out.println("------------");

                    CADRG crg = new CADRG(new com.bbn.openmap.LatLonPoint(0f, 0f), 1500000, 600, 600);

                    final OMRaster omsr = new OMRaster(0, 0, bi);
                    omsr.generate(crg);

                    java.awt.Frame window = new java.awt.Frame(filePath) {
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

                "RpfCoverageManager: Getting catalog coverage from RpfFrameProvider");
        if (proj == null || frameProvider == null) {
            return new Vector();
        }

        CADRG cadrg;
        if (proj instanceof CADRG) {
            cadrg = (CADRG) proj;
        } else {
            cadrg = new CADRG(proj.getCenter(), proj.getScale(), proj.getWidth(), proj.getHeight());
        }

        Vector[] hemisphereData;

        if (ProjMath.isCrossingDateline(ullon, lrlon, proj.getScale())) {
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

            //          }
        }
        float lat = df.dsi.lat_origin + .5f;
        float lon = df.dsi.lon_origin + .5f;

        CADRG crg = new CADRG(new com.bbn.openmap.LatLonPoint(lat, lon), 1500000, 600, 600);
        final OMRaster ras = df.getOMRaster(crg);

        // Pushes the image to the left top of the frame.
        crg.setHeight(ras.getHeight());
        crg.setWidth(ras.getWidth());

        ras.generate(crg);

        java.awt.Frame window = new java.awt.Frame(args[0]) {
            public void paint(java.awt.Graphics g) {
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

            // }
        }
        float lat = df.dsi.lat_origin + .5f;
        float lon = df.dsi.lon_origin + .5f;

        CADRG crg = new CADRG(new com.bbn.openmap.LatLonPoint(lat, lon), 1500000, 600, 600);

        final com.bbn.openmap.omGraphics.OMRaster ras = df.getOMRaster(crg);

        java.awt.Frame window = new java.awt.Frame(args[0]) {
            public void paint(java.awt.Graphics g) {
View Full Code Here

Examples of com.bbn.openmap.proj.CADRG

                    WorldFileImageReader wfir = new WorldFileImageReader(fileURL);

                    BufferedImage bi = wfir.getBufferedImage();

                    CADRG crg = new CADRG(new com.bbn.openmap.LatLonPoint(0f, 0f), 1500000, 600, 600);

                    final OMRaster omsr = new OMRaster(0, 0, bi);
                    omsr.generate(crg);

                    java.awt.Frame window = new java.awt.Frame(filePath) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.