Examples of Polygon


Examples of engine.geometry.Polygon

                default:
                    throw new UnsupportedOperationException("Unknown tile!");
            }

            if (!vertices.isEmpty()) {
                polygon = new Polygon(vertices);
                Transform.translate(polygon, column, row);
                Transform.scale(polygon, WIDTH, HEIGHT);
            }
        }
        return polygon;
View Full Code Here

Examples of gov.nasa.worldwind.render.Polygon

        length = 2;
        distanceToBow = 2;
        distanceToStern = 2;
        a = b = c = d = 1;
//        safetyBubble = new SafetyBubble(-1, null, length, beam);
        hull = new Polygon();
        predictedRoute = new ArrayList<Position>(200);
        trail = new LinkedList<gov.nasa.worldwind.geom.Position>();
        visibleTrail = new Polyline(trail);
        visibleTrail.setColor(Color.WHITE);
        visibleTrail.setLineWidth(2.0);
View Full Code Here

Examples of gov.nasa.worldwind.render.airspaces.Polygon

        {
        }

        public Airspace createAirspace(WorldWindow wwd, boolean fitShapeToViewport)
        {
            Polygon poly = new Polygon();
            poly.setAttributes(getDefaultAttributes());
            poly.setValue(AVKey.DISPLAY_NAME, getNextName(toString()));
            poly.setAltitudes(0.0, 0.0);
            poly.setTerrainConforming(true, false);
            this.initializePolygon(wwd, poly, fitShapeToViewport);

            return poly;
        }
View Full Code Here

Examples of gps.garmin.img.structure.data.Polygon

        seek(treFatBlock.getSubfileOffset() + treHeader.getPolygonOverviewSectionOffset());
        int numberOfPolygons =
            treHeader.getPolygonOverviewSectionLength() /
            treHeader.getPolygonOverviewRecordsSize();
        for (int i = 0; i < numberOfPolygons; i++) {
            Polygon polygon = new Polygon();
            polygon.setNumber(i + 1);

            // Polygon type
            nextByte()// fixme, siempre es por default? no se usa el byte?
            polygon.setType(PolygonType.DEFAULT);

            // Maximum level
            polygon.setMaximumLevelWherePresent(nextByte());

            if (treHeader.getPolygonOverviewRecordsSize() == 3) {
                skipBytes(1);
            }
View Full Code Here

Examples of it.polito.appeal.traci.protocol.Polygon

    super(dis, dos, commandID, objectID, varID);
  }

  @Override
  protected Path2D readValue(Command resp) throws TraCIException {
    return new Polygon(resp.content(), true).getShape();
  }
View Full Code Here

Examples of java.awt.Polygon

      g.setColor(oldColor);
    }

    private Polygon getArrow() {
      if (mArrow == null) {
        mArrow = new Polygon();
        if (mDirection == ScrollDirection.UP) {
          mArrow.addPoint((int) (getSize().width / 2.0 - 6.0 + 0.5), (int) (getSize().height / 2.0 + 3.0 + 0.5));
          mArrow.addPoint((int) (getSize().width / 2.0 + 6.0 + 0.5), (int) (getSize().height / 2.0 + 3.0 + 0.5));
          mArrow.addPoint((int) (getSize().width / 2.0 + 0.5), (int) (getSize().height / 2.0 - 4.0 + 0.5));
        } else {
View Full Code Here

Examples of java.awt.Polygon

  /**
   * @see Graphics#drawPolygon(int[], int[], int)
   */
  public void drawPolygon(final int[] xPoints, final int[] yPoints, final int nPoints)
  {
    final Polygon poly = new Polygon();
    for (int i = 0; i < nPoints; i++)
    {
      poly.addPoint(xPoints[i], yPoints[i]);
    }
    draw(poly);
  }
View Full Code Here

Examples of java.awt.Polygon

  /**
   * @see Graphics#fillPolygon(int[], int[], int)
   */
  public void fillPolygon(final int[] xPoints, final int[] yPoints, final int nPoints)
  {
    final Polygon poly = new Polygon();
    for (int i = 0; i < nPoints; i++)
    {
      poly.addPoint(xPoints[i], yPoints[i]);
    }
    fill(poly);
  }
View Full Code Here

Examples of java.awt.Polygon

   * @see Graphics#drawPolyline
   */
  public void drawPolygon(final int[] xPoints, final int[] yPoints,
                          final int nPoints)
  {
    parent.draw(new Polygon(xPoints, yPoints, nPoints));
  }
View Full Code Here

Examples of java.awt.Polygon

   * @see Graphics#drawPolygon(int[], int[], int)
   */
  public void fillPolygon(final int[] xPoints, final int[] yPoints,
                          final int nPoints)
  {
    parent.fill(new Polygon(xPoints, yPoints, nPoints));
  }
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.