public PolygonArtifact(String id, boolean fill) { super(id); setLevel(2); FILL_POLYGON = fill; }
PolygonArtifact polygonViz = new PolygonArtifact("SupportPolygon", true, Color.LIGHT_GRAY, supportPolygon); polygonViz.setLevel(1); graphicsListRegistry.registerArtifact("Contact State", polygonViz);
ConvexPolygon2D convexPolygon2d = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(points1)); polygon1.add(new PolygonArtifact("polygon" + 1, false, Color.BLACK, points1)); convexPolygon2ds.add(convexPolygon2d); polygon1.add(new PolygonArtifact("captureRegionPolygon", false, Color.red, points2)); polygon1.add(new PolygonArtifact("steppintStonesIntersectingCaptureRegion" + i, true, Color.green, steppintStonesIntersectingCaptureRegion.get(i)));
public PolygonArtifact(String id, boolean fill, Color color) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; }
polygon1.add(new PolygonArtifact("polygon" + i, false, Color.BLACK, steppingStones.getConvexPolygons().get(i))); polygon1.add(new PolygonArtifact("captureRegionPolygon", false, Color.blue, points)); polygon1.add(new PolygonArtifact("steppintStonesIntersectingCaptureRegion" + i, true, Color.green, convexPolygon2d2));
public PolygonArtifact(String id) { super(id); setLevel(2); }
convexPolygon2ds.add(polygon); polygon1.add(new PolygonArtifact("polygon" + i, false, Color.BLACK, polygon)); ConvexPolygon2D captureRegionPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(points)); polygon1.add(new PolygonArtifact("captureRegionPolygon", false, Color.red, captureRegionPolygon)); polygon1.add(new PolygonArtifact("steppintStonesIntersectingCaptureRegion" + i, true, Color.green, steppintStonesIntersectingCaptureRegion.get(i)));
public PolygonArtifact(String id) { super(id); setLevel(2); }
public PolygonArtifact(String id, boolean fill) { super(id); setLevel(2); FILL_POLYGON = fill; }
public PolygonArtifact(String id, boolean fill, Color color) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; }
public PolygonArtifact(String id, boolean fill, Color color, BoundingBox2d boundingBox2d) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; Point2d minPoint = new Point2d(); boundingBox2d.getMinPoint(minPoint); Point2d maxPoint = new Point2d(); boundingBox2d.getMaxPoint(maxPoint); Point2d leftUpper = new Point2d(minPoint.getX(), maxPoint.getY()); Point2d rightLower = new Point2d(maxPoint.getX(), minPoint.getY()); ArrayList<Point2d> points = new ArrayList<Point2d>(); points.add(minPoint); points.add(leftUpper); points.add(maxPoint); points.add(rightLower); setPoints(points); }
public PolygonArtifact(String id, boolean fill, Color color, BoundingBox2D boundingBox2d) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; Point2D minPoint = new Point2D(); boundingBox2d.getMinPoint(minPoint); Point2D maxPoint = new Point2D(); boundingBox2d.getMaxPoint(maxPoint); Point2D leftUpper = new Point2D(minPoint.getX(), maxPoint.getY()); Point2D rightLower = new Point2D(maxPoint.getX(), minPoint.getY()); ArrayList<Point2D> points = new ArrayList<Point2D>(); points.add(minPoint); points.add(leftUpper); points.add(maxPoint); points.add(rightLower); setPoints(points); }