Modify

Opened 15 years ago

Closed 15 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 15 years ago.
dashpattern2.diff (7.1 KB ) - added by Daeron 15 years ago.
Updated patch
dashpattern3.diff (6.8 KB ) - added by Daeron 15 years ago.
Forgot to remove some debug prints
dashpattern4.patch (6.8 KB ) - added by Daeron 15 years ago.
Small correction

Download all attachments as: .zip

Change History (7)

by Daeron, 15 years ago

Attachment: dashpattern.diff added

by Daeron, 15 years ago

Attachment: dashpattern2.diff added

Updated patch

comment:1 by Daeron, 15 years ago

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

by Daeron, 15 years ago

Attachment: dashpattern3.diff added

Forgot to remove some debug prints

comment:2 by stoecker, 15 years ago

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

by Daeron, 15 years ago

Attachment: dashpattern4.patch added

Small correction

comment:3 by stoecker, 15 years ago

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.