Home | Trees | Indices | Help |
---|
|
Generate and place the map legend. Look for a space in the map that doesn't have any route items on it. Cheat by splitting the map into 9 squares (3x3) and check each square for ride items intersecting it. Choose the square with the least intersections, or an arbitrary one if there is a tie.
|
|||
LegendNode Holds one item in the legend, one item per legend line. |
|
|||
float ,float ,float ,float ,float ,float
|
|
||
float ,float ,float ,float ,float ,float
|
|
||
list of Box
|
|
||
|
|||
|
|||
list of Box
|
|
||
LegendNode,float ,float
|
|
||
|
|
|||
__package__ =
|
|
Split the map into three equal pieces going top to bottom.
|
Split the map into three equal pieces going left to right.
|
Create the boxes to check against. This is a 3x3 grid splitting the map into equal spaces.
|
Check the list of boxes to see which ones the point is in. It really should only be in one box since we divided the map evenly.
|
Check the list of boxes against all the point items in the ride. This includes segment waypoints, stops, pois, and parking. |
Check the map for a space to place the legend. |
Generate a LegendNode, and calculate a point below it. This allows us to generate the items and "walk" them down the page in the process. We end-up with legend items on successive lines on the map page.
|
Generate the legend items for the map for the given ride. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat May 1 23:03:30 2010 | http://epydoc.sourceforge.net |