building blocks for drawing the race line around the course

#story[1087]
This commit is contained in:
hba56
2017-08-07 12:47:55 +12:00
parent 4195d41814
commit 62752c142a
2 changed files with 20 additions and 0 deletions
@@ -1,6 +1,7 @@
package visualiser.model;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.image.Image;
import javafx.scene.paint.Color;
@@ -9,6 +10,7 @@ import javafx.scene.transform.Rotate;
import network.Messages.Enums.BoatStatusEnum;
import shared.dataInput.RaceDataSource;
import shared.model.GPSCoordinate;
import shared.model.Leg;
import shared.model.Mark;
import shared.model.RaceClock;
@@ -516,6 +518,17 @@ public class ResizableRaceCanvas extends ResizableCanvas {
}
/**
* draws a transparent line around the course that shows the paths boats must travel
*/
public void drawRaceLine(){
List<Leg> legs = this.visualiserRace.getLegs();
for (Leg leg: legs) {
//todo calculate and draw line around this leg
}
}
/**
* Draws the race boundary image onto the canvas.