parent
3ca62e6c2b
commit
cfdbf5896f
@ -0,0 +1,18 @@
|
|||||||
|
package visualiser.layout;
|
||||||
|
|
||||||
|
import javafx.scene.paint.Color;
|
||||||
|
import javafx.scene.paint.PhongMaterial;
|
||||||
|
import javafx.scene.shape.Cylinder;
|
||||||
|
import javafx.scene.transform.Rotate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by jjg64 on 19/09/17.
|
||||||
|
*/
|
||||||
|
public class BoatHighlight extends Subject3D {
|
||||||
|
|
||||||
|
public BoatHighlight(double radius, Color color) {
|
||||||
|
super(new Cylinder(radius,0),0);
|
||||||
|
getMesh().getTransforms().add(new Rotate(-90, Rotate.X_AXIS));
|
||||||
|
getMesh().setMaterial(new PhongMaterial(color));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue