Property | Type | Description | |
---|---|---|---|
OnClick | ClickOnCanvas |
Method | Description | |
---|---|---|
ClearCanvas ( ) : void |
Clear the entire canvas
|
|
DrawCell ( |
||
DrawCircle ( |
||
DrawCircle ( |
||
DrawDistrict ( |
||
DrawLine ( |
Draw a line from point 1 to point 2
|
|
DrawLine ( Voronoi line, |
||
DrawPoint ( |
Add a point to the canvas
|
|
DrawPolygon ( IList |
||
DrawPolygon ( |
||
DrawRectangle ( |
Draw Rectangle from a point and width and height
|
|
DrawRectangle ( |
||
DrawRoad ( Road road, Color linecolor, Color startColor, Color endColor, bool drawStartEnd = true, int width = 1 ) : void | ||
DrawService ( Canvas drawCanvas ) : System.Collections.Generic |
Create a new DrawService and hook up the events
|
|
DrawText ( string text, Color c, |
||
DrawTriangle ( |
||
DrawTriangle ( Triangle t, Color c ) : void |
Method | Description | |
---|---|---|
OnCanvasMouseDown ( object sender, System e ) : void |
On mouse Down event
|
public DrawCell ( |
||
cell | ||
c | ||
bFill | bool | |
bBorder | bool | |
return | void |
public DrawCircle ( |
||
cr | ||
c | ||
return | void |
public DrawCircle ( |
||
p | ||
radius | double | |
c | ||
return | void |
public DrawDistrict ( |
||
district | ||
c | ||
bDrawRoads | bool | |
bDrawCells | bool | |
return | void |
public DrawLine ( |
||
p1 | ||
p2 | ||
c | ||
thick | int | |
return | void |
public DrawLine ( Voronoi line, |
||
line | Voronoi | |
c | ||
thick | int | |
return | void |
public DrawPoint ( |
||
p | ||
radius | double | |
c | ||
return | void |
public DrawPolygon ( IList |
||
points | IList |
|
c | ||
return | void |
public DrawPolygon ( |
||
t | ||
c | ||
return | void |
public DrawRectangle ( |
||
p | ||
width | int | |
height | int | |
c | Color | |
return | void |
public DrawRectangle ( |
||
rect | ||
c | Color | |
return | void |
public DrawRoad ( Road road, Color linecolor, Color startColor, Color endColor, bool drawStartEnd = true, int width = 1 ) : void | ||
road | Road | |
linecolor | Color | |
startColor | Color | |
endColor | Color | |
drawStartEnd | bool | |
width | int | |
return | void |
public DrawService ( Canvas drawCanvas ) : System.Collections.Generic | ||
drawCanvas | Canvas | |
return | System.Collections.Generic |
public DrawText ( string text, Color c, |
||
text | string | |
c | Color | |
position | ||
return | void |
public DrawTriangle ( |
||
p1 | ||
p2 | ||
p3 | ||
c | Color | |
return | void |
public DrawTriangle ( Triangle t, Color c ) : void | ||
t | Triangle | |
c | Color | |
return | void |