Examples of pixelToWorld()


Examples of org.locationtech.udig.project.internal.render.impl.ViewportModelImpl.pixelToWorld()

                            lastx -= xdiff;
                            lasty -= ydiff;    
                        }
                        lastx -= xdiff;
                        lasty -=ydiff;
                        Coordinate newCoo = vm.pixelToWorld(lastx, lasty);
                        vm.setIsBoundsChanging(false);
                        vm.setCenter(newCoo);
                    }});
               
//                SetViewportCenterCommand cmd = new SetViewportCenterCommand(newLoc);
View Full Code Here

Examples of org.locationtech.udig.project.render.IViewportModel.pixelToWorld()

        Filter filterSelectedFeatures;
        Envelope bound;
        // select features using the drawn bbox
        IViewportModel viewportModel = getContext().getMap().getViewportModel();
        Coordinate startPoint = viewportModel.pixelToWorld(mergeContext.getBBoxStartPoint().x,
                mergeContext.getBBoxStartPoint().y);
        Coordinate endPoint = viewportModel.pixelToWorld(xyMouse.x, xyMouse.y);

        if (startPoint.equals2D(endPoint)) {
            // when it was a click(start and end coordinates are equal)
View Full Code Here

Examples of org.locationtech.udig.project.render.IViewportModel.pixelToWorld()

        Envelope bound;
        // select features using the drawn bbox
        IViewportModel viewportModel = getContext().getMap().getViewportModel();
        Coordinate startPoint = viewportModel.pixelToWorld(mergeContext.getBBoxStartPoint().x,
                mergeContext.getBBoxStartPoint().y);
        Coordinate endPoint = viewportModel.pixelToWorld(xyMouse.x, xyMouse.y);

        if (startPoint.equals2D(endPoint)) {
            // when it was a click(start and end coordinates are equal)
            // get a little bbox around this point.
            bound = getContext().getBoundingBox(xyMouse, 3);
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.