Package org.osm2world.core.target.common.rendering.OrthoTilesUtil

Examples of org.osm2world.core.target.common.rendering.OrthoTilesUtil.CardinalDirection


    if (projection.isOrthographic() &&
        abs(camera.getViewDirection().xz().angle() % (PI/2)) < 0.01 ) {
     
      /* faster sorting for cardinal directions */
     
      CardinalDirection closestCardinal = closestCardinal(camera.getViewDirection().xz().angle());
     
      if (closestCardinal.isOppositeOf(currentPrimitiveSortDirection)) {
       
        Collections.reverse(transparentPrimitives);
       
      } else if (closestCardinal != currentPrimitiveSortDirection) {
       
View Full Code Here


    if (projection.isOrthographic() &&
        abs(camera.getViewDirection().xz().angle() % (PI/2)) < 0.01 ) {
     
      /* faster sorting for cardinal directions */
     
      CardinalDirection closestCardinal = closestCardinal(camera.getViewDirection().xz().angle());
     
      if (closestCardinal.isOppositeOf(currentPrimitiveSortDirection)) {
     
        Collections.reverse(transparentPrimitives);
       
      } else if (closestCardinal != currentPrimitiveSortDirection) {
         
View Full Code Here

            args.getOviewFrom());
       
      } else if (args.isOviewBoundingBox()) {
       
        double angle = args.getOviewAngle();
        CardinalDirection from = args.getOviewFrom();
       
        Collection<VectorXZ> pointsXZ = new ArrayList<VectorXZ>();
        for (LatLonEle l : args.getOviewBoundingBox()) {
          pointsXZ.add(results.getMapProjection().calcPos(l.lat, l.lon));
        }
View Full Code Here

          JOptionPane.showInputDialog(viewerFrame, "tile x"));
      int tileY = Integer.parseInt(
          JOptionPane.showInputDialog(viewerFrame, "tile y"));
      int angle = Integer.parseInt(
          JOptionPane.showInputDialog(viewerFrame, "view angle"));
      CardinalDirection from = CardinalDirection.valueOf(
          JOptionPane.showInputDialog(viewerFrame, "from cardinal direction"));
     
      AxisAlignedBoundingBoxXZ tileBounds =
        data.getConversionResults().getMapData().getDataBoundary();
     
View Full Code Here

TOP

Related Classes of org.osm2world.core.target.common.rendering.OrthoTilesUtil.CardinalDirection

Copyright © 2018 www.massapicom. 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.