Examples of transform()


Examples of org.nlogo.api.Matrix3D.transform()

            double[] leaf = ((Protractor3D) (world3D.protractor())).towardsVector
                (root.xcor(), root.ycor(), root.zcor(),
                    t.xcor(), t.ycor(), t.zcor(), true);
            htrans.transform(leaf, out, 1);
            ptrans.transform(out, out, 1);
            rtrans.transform(out, out, 1);
            double nx = t.xcor + (out[0] - leaf[0]);
            double ny = t.ycor + (out[1] - leaf[1]);
            double nz = t.zcor + (out[2] - leaf[2]);

            Set<Turtle3D> snapshot = seenTurtles;

Examples of org.objectweb.medor.optim.api.QueryTransformer.transform()

        }
        QueryTree optimizedQT = qt;
        QueryTransformer queryTransformer = new BasicQueryRewriter(rules);
        IndexesGenerator indexesGenerator = new IndexesGenerator();
        try {
            optimizedQT = queryTransformer.transform(optimizedQT);
            if (debug) {
                logger.log(BasicLevel.DEBUG, "Query optimized");
                QueryTreePrinter.printQueryTree(optimizedQT, logger);
            }
            optimizedQT = indexesGenerator.transform(optimizedQT);

Examples of org.objectweb.medor.optim.lib.BasicQueryRewriter.transform()

        }
        QueryTree optimizedQT = qt;
        QueryTransformer queryTransformer = new BasicQueryRewriter(rules);
        IndexesGenerator indexesGenerator = new IndexesGenerator();
        try {
            optimizedQT = queryTransformer.transform(optimizedQT);
            if (debug) {
                logger.log(BasicLevel.DEBUG, "Query optimized");
                QueryTreePrinter.printQueryTree(optimizedQT, logger);
            }
            optimizedQT = indexesGenerator.transform(optimizedQT);

Examples of org.objectweb.medor.optim.lib.IndexesGenerator.transform()

            optimizedQT = queryTransformer.transform(optimizedQT);
            if (debug) {
                logger.log(BasicLevel.DEBUG, "Query optimized");
                QueryTreePrinter.printQueryTree(optimizedQT, logger);
            }
            optimizedQT = indexesGenerator.transform(optimizedQT);
        } catch (Exception e) {
            throw new MedorException("Impossible to optimize the query", e);
        }

        pncParams = JormQueryTreeHelper.getRequiredPNameManagers(optimizedQT);

Examples of org.openetcs.datadictionary.transform.ITransformer.transform()

    if (files != null && files.length > 0) {
      Job job = new Job("Generating DataDictionary") {
        protected IStatus run(IProgressMonitor monitor) {
          Arrays.sort(files);         
          ITransformer transformer = TransformServiceFactory.createTransformer();
          boolean res = transformer.transform(dialog.getProjectName(), dialog.getModelName(), files, monitor, ITransformer.LOG_WARN);
          return res ? Status.OK_STATUS : Status.CANCEL_STATUS;
        }
      };
      job.setPriority(Job.SHORT);
      job.schedule();

Examples of org.opengis.geometry.Envelope.transform()

                } else if (ext instanceof GeographicBoundingBox) {
                    GeographicBoundingBox gbb = (GeographicBoundingBox) ext;
                    ReferencedEnvelope env = new ReferencedEnvelope(DefaultGeographicCRS.WGS84);
                    env.expandToInclude(gbb.getWestBoundLongitude(), gbb.getNorthBoundLatitude());
                    env.expandToInclude(gbb.getEastBoundLongitude(), gbb.getSouthBoundLatitude());
                    env = env.transform(crs, true);
                    if (env.getMinX() < xmin)
                        xmin = env.getMinX();
                    if (env.getMaxX() > xmax)
                        xmax = env.getMaxX();
                    if (env.getMinY() < ymin)

Examples of org.opengis.geometry.primitive.Ring.transform()

    while (iter.hasNext()) {
      Ring thisRing = (Ring) iter.next();
     
      // exterior Ring should be first element in the list
      if (newExterior == null) {
        newExterior = (Ring) thisRing.transform(newCRS, transform );
      }
      else {
        newInteriors.add((Ring) thisRing.transform(newCRS, transform));
      }
    }

Examples of org.opengis.referencing.operation.MathTransform.transform()

        MathTransform transform = CRS.findMathTransform(BC_ALBERS, WGS84);
        DirectPosition here = new DirectPosition2D(BC_ALBERS, 1187128, 395268);
        DirectPosition there = new DirectPosition2D(WGS84, -123.47009173007372, 48.54326498732153);

        DirectPosition check = transform.transform(here, new GeneralDirectPosition(WGS84));
        double delta = Math.abs(check.getOrdinate(0) - there.getOrdinate(0))
                + Math.abs(check.getOrdinate(1) - there.getOrdinate(1));
        if (delta > 0.0001) {
            String msg = "Referencing failed to transformation with expected accuracy: Off by " + delta + "\n" + check + "\n" + there; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
            System.out.println(msg);

Examples of org.opengis.referencing.operation.MathTransform1D.transform()

                    } else {
                        if (!toGeo) {
                            // We are going to convert geophysics values to packed ones.
                            transform = transform.inverse();
                        }
                        offset = transform.transform(0);
                        scale  = transform.derivative(Double.NaN);
                        if (isNaN(scale) || isNaN(offset)) {
                            // One category doesn't use a linear transformation. We can't deal with
                            // that with "Rescale" or "Piecewise". Fallback on our "SampleTranscode".
                            canRescale   = false;

Examples of org.opengis.referencing.operation.MathTransform2D.transform()

            Point gridP = new Point();
            Point2D.Double geoP = new Point2D.Double();
            int[] covValue = new int[1];
            for (gridP.y = 0; gridP.y < gridDim.height; gridP.y++) {
                for (gridP.x = 0; gridP.x < gridDim.width; gridP.x++) {
                    mt.transform(gridP, geoP);
                }

                cov.evaluate(geoP, covValue);
                if (covValue[0] != 0) {
                    assertTrue(rects.get(covValue[0]).contains(geoP.x, geoP.y));
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.