/** * Updates the appearance of this obstacle path. */ protected void updateAppearance() { this.getAttributes().setOutlineMaterial(new Material(ObstacleColor.getColor(activeCost))); // TODO: elements could change color, transparency or even an associated image/icon }
dpAttrs.setOutlineMaterial(Material.WHITE); dpAttrs.setOutlineWidth(2d);
dpAttrs.setOutlineMaterial(Material.WHITE); dpAttrs.setOutlineWidth(2d);
/** * 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); }
dpAttrs.setOutlineMaterial(Material.BLACK); dpAttrs.setOutlineWidth(2d);