Packagenet.systemeD.potlatch2.tools
Classpublic class Parallelise

Tool to create a parallel copy of an existing way. First call the constructor Parallelise() passing it the way that will be parallelised. This performs some initialisation. Then call draw(), passing it an offset, as many times as you like. Each time it recomputes the parallel way. There is no finalisation.

This is intended to work with the SelectedParallelWay controller state.



Public Properties
 PropertyDefined by
  parallelWay : Way
Parallelise
Public Methods
 MethodDefined by
  
Initialises parallelisation process, adding an entry to global undo stack.
Parallelise
  
draw(offset:Number):void
Compute the shape of the parallel way, implicitly causing it to be drawn if onscreen.
Parallelise
Property detail
parallelWayproperty
public var parallelWay:Way
Constructor detail
Parallelise()constructor
public function Parallelise(way:Way)

Initialises parallelisation process, adding an entry to global undo stack.

Parameters
way:Way — The way to be duplicated.
Method detail
draw()method
public function draw(offset:Number):void

Compute the shape of the parallel way, implicitly causing it to be drawn if onscreen. Closed ways are ok.

Parameters
offset:Number — How far, in lon/latp units, should the parallel way be. Can be negative.