/** * Constructs an obstacle path with the specified waypoint positions. * * @param positions the waypoint positions of this obstacle path */ public ObstaclePath(Iterable<? extends Position> positions) { super(positions); this.setAttributes(new BasicShapeAttributes()); this.getAttributes().setOutlineOpacity(0.75); this.getAttributes().setOutlineWidth(2d); this.getAttributes().setEnableLighting(true); this.getAttributes().setDrawInterior(false); this.getAttributes().setDrawOutline(true); this.getAttributes().setOutlineMaterial(Material.PINK); this.setAltitudeMode(WorldWind.ABSOLUTE); this.setPathType(AVKey.GREAT_CIRCLE); this.setShowPositions(true); }