Packagenet.systemeD.potlatch2.tools
Classpublic class Circularise

Tool to transform a closed way of at least 3 distinct points into a circular shape, inserting more nodes as necessary. Call only the static function circularise().



Public Methods
 MethodDefined by
  
Circularise(way:Way, map:Map, performAction:Function)
Circularise
  
circularise(way:Way, map:Map, performAction:Function):void
[static] Carries out the circularisation of a way.
Circularise
Constructor detail
Circularise()constructor
public function Circularise(way:Way, map:Map, performAction:Function)Parameters
way:Way
 
map:Map
 
performAction:Function
Method detail
circularise()method
public static function circularise(way:Way, map:Map, performAction:Function):void

Carries out the circularisation of a way.

Parameters
way:Way — The way to be made round: must be closed, must have at least 3 distinct points.
 
map:Map — The map that the way belongs to.
 
performAction:Function — A function that will be passed a CompositeUndoableAction representing the transformation. In other words, a function that will push the result onto an undo stack.