Compute the size of the views for printing
The constructor
Name | Type | Description |
---|---|---|
route | Route | The route to print |
maxViewSize | ViewSize | The view size |
The greatest possible view size
A reference to the printed route
See comments in the code
Name | Type | Description |
---|---|---|
currentView | PrintView | The current view |
firstItineraryPoint | ItineraryPoint | The first ItineraryPoint |
lastItineraryPoint | ItineraryPoint | The last ItineraryPoint |
Compute the different views needed to print the maps
Test if currentView is only a point. If yes an intermediatePoint is computed to extend the view to the maximun possible
Name | Type | Description |
---|---|---|
currentView | PrintView | The current view |
firstItineraryPoint | ItineraryPoint | The first ItineraryPoint |
lastItineraryPoint | ItineraryPoint | The last ItineraryPoint |
Compute if the line defined by firstItineraryPoint lastItineraryPoint is horizontal or vertical. If yes, the intersection of the line and currentView is returned
Name | Type | Description |
---|---|---|
currentView | PrintView | The current view |
firstItineraryPoint | ItineraryPoint | The first ItineraryPoint |
lastItineraryPoint | ItineraryPoint | The last ItineraryPoint |
Test if itineraryPoint is on the frame of currentView
Name | Type | Description |
---|---|---|
currentView | PrintView | The current view |
itineraryPoint | ItineraryPoint | The ItineraryPoint to test |