Examples of screenToWorldCoords()


Examples of jsky.coords.CoordinateConverter.screenToWorldCoords()

        for (int iy = 0; iy < ny; iy++) {
            for (int ix = 0; ix < nx; ix++) {
                x = (int) size.getX() * ix / (nx - 1);
                y = (int) size.getY() * iy / (ny - 1);
                p = new Point2D.Double(x, y);
                converter.screenToWorldCoords(p, false);
                plon = p.getX();
                plat = p.getY();
                lon[iy][ix] = plon;
                lat[iy][ix] = plat;
            }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.screenToWorldCoords()

        double lat[][] = new double[ny][nx];
        Point2D.Double p;
        for (int iy = 0; iy < ny; iy++) {
            for (int ix = 0; ix < nx; ix++) {
                p = new Point2D.Double(ix, iy);
                converter.screenToWorldCoords(p, false);
                lon[iy][ix] = p.x;
                lat[iy][ix] = p.y;
            }
        }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.screenToWorldCoords()

        }

        // get the center position
        Point2D.Double center = new Point2D.Double(r.getX() + r.getWidth() / 2.,
                                                   r.getY() + r.getHeight() / 2.);
        wcs.screenToWorldCoords(center, false);
        double equinox = wcs.getEquinox();
        WorldCoords centerPos = new WorldCoords(center, equinox);

        // get the radius in arcmin
        Point2D.Double p = new Point2D.Double(r.getX(), r.getY());
View Full Code Here

Examples of jsky.coords.CoordinateConverter.screenToWorldCoords()

        double equinox = wcs.getEquinox();
        WorldCoords centerPos = new WorldCoords(center, equinox);

        // get the radius in arcmin
        Point2D.Double p = new Point2D.Double(r.getX(), r.getY());
        wcs.screenToWorldCoords(p, false);
        WorldCoords origin = new WorldCoords(p, equinox);
        double radius = centerPos.dist(origin);

        // get the image width and height in arcmin
        Point2D.Double dims = new Point2D.Double(r.getWidth(), r.getHeight());
View Full Code Here

Examples of jsky.coords.CoordinateConverter.screenToWorldCoords()

        WorldCoords origin = new WorldCoords(p, equinox);
        double radius = centerPos.dist(origin);

        // get the image width and height in arcmin
        Point2D.Double dims = new Point2D.Double(r.getWidth(), r.getHeight());
        wcs.screenToWorldCoords(dims, true);
        double width = dims.x * 60; // convert deg to arcmin
        double height = dims.y * 60;

        // set the values in the query panel
        CatalogQueryPanel catalogQueryPanel = getCatalogQueryPanel();
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.