Modify

Opened 14 years ago

Closed 14 years ago

#2667 closed enhancement (fixed)

[PATCH] Add support for dash patterns

Reported by: Daeron Owned by: ulfl
Priority: minor Milestone:
Component: Internal mappaint style Version: latest
Keywords: Cc:

Description

This patch adds support for dash patterns in line rendering, i.e. it is now possible to define the widths of the dashes and gaps separately, and more complicated patterns also are possible.

I've also changed the style of barrier=bollard to use this new feature, as a proof of concept. It now shows as 3 pixel squares spaced 9 pixels apart.

Attachments (4)

dashpattern.diff (6.3 KB) - added by Daeron 14 years ago.
dashpattern2.diff (7.1 KB) - added by Daeron 14 years ago.
Updated patch
dashpattern3.diff (6.8 KB) - added by Daeron 14 years ago.
Forgot to remove some debug prints
dashpattern4.patch (6.8 KB) - added by Daeron 14 years ago.
Small correction

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by Daeron

Attachment: dashpattern.diff added

Changed 14 years ago by Daeron

Attachment: dashpattern2.diff added

Updated patch

comment:1 Changed 14 years ago by Daeron

Added an updated patch, there were possibility for IllegalArgumentException if the pattern consisted only of zeros.

Changed 14 years ago by Daeron

Attachment: dashpattern3.diff added

Forgot to remove some debug prints

comment:2 Changed 14 years ago by stoecker

Component: CoreInternal mappaint style
Owner: changed from team to ulfl

Changed 14 years ago by Daeron

Attachment: dashpattern4.patch added

Small correction

comment:3 Changed 14 years ago by stoecker

Resolution: fixed
Status: newclosed

In r1635.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain ulfl.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.