private void computeObjCoord(Canvas3D canvas, Point2d winCoord, Point3d objCoord, Transform3D localToImagePlate) { // Back transform this pt. from window to object coordinates // Assumes this method is ALWAYS called after computeWinCoord has been // called. computeWinCoord calculates the Vworld to Image Plate Xform. // This method simply uses it without recomputing it. canvas.getPixelLocationInImagePlate(winCoord.x, winCoord.y, objCoord.z, objCoord); // Get image plate to object coord transform // inv(P x M) localToImagePlate.invert(); localToImagePlate.transform(objCoord); }
canvas.getPixelLocationInImagePlate(0, 0, lu); toIpInverse.transform(lu); toCamera.transform(lu); canvas.getPixelLocationInImagePlate(canvas.getWidth(), canvas.getHeight(), rl); toIpInverse.transform(rl);
canvas.getPixelLocationInImagePlate(xpos,ypos,mousePosn); if (canvas.getView().getProjectionPolicy() == View.PARALLEL_PROJECTION) {
this.save_ypos = ypos; canvas.getCenterEyeInImagePlate(eyePosn); canvas.getPixelLocationInImagePlate(xpos,ypos,mousePosn); canvas.getPixelLocationInImagePlate (xpos+1, ypos, deltaImgPlate);
this.save_ypos = ypos; canvas.getCenterEyeInImagePlate(eyePosn); canvas.getPixelLocationInImagePlate(xpos,ypos,mousePosn); canvas.getPixelLocationInImagePlate (xpos+1, ypos, deltaImgPlate);