예제 #1
0
파일: AirportModel.java 프로젝트: bily/fsxp
 public void addAntennaToNDB(NDBModel model) {
   SceneryModel sceneryModel = new SceneryModel();
   sceneryModel.setShouldNotify(false);
   sceneryModel.setName("{5911c52a-dd21-4673-a3c7-c95c922e5aaf}");
   sceneryModel.setLatLon((LatLonPoint) model.getLatLon().clone());
   sceneryModel.setShouldNotify(true);
   addSceneryModel(sceneryModel);
 }
예제 #2
0
파일: AirportModel.java 프로젝트: bily/fsxp
 public void addStationToParking(TaxiwayParkingModel model) {
   Rectangle2D square = ((java.awt.geom.Ellipse2D.Float) model.getParkingCircle()).getBounds2D();
   SceneryModel sceneryModel = new SceneryModel();
   sceneryModel.setShouldNotify(false);
   sceneryModel.setName("{0da416ee-c523-4d81-a562-9ce503f28468}");
   sceneryModel.setHeading(model.getHeading());
   java.awt.geom.Point2D.Float point =
       new java.awt.geom.Point2D.Float(
           (float) (square.getX() + square.getWidth() / 2D),
           (float) (square.getY() + square.getHeight() / 2D));
   java.awt.geom.Point2D.Float sceneryPoint =
       Utilities.rotatePoint(
           point,
           new java.awt.geom.Point2D.Float(
               (float) (square.getX() + square.getWidth() / 2D),
               (float) (square.getY() - 27.5D * (double) scale)),
           model.getHeading());
   sceneryModel.setLatLon(
       Utilities.getLatLonForPixel(
           model.getCenterPoint().getLat(),
           model.getCenterPoint().getLon(),
           sceneryPoint.getX(),
           sceneryPoint.getY(),
           scale));
   sceneryModel.setShouldNotify(true);
   addSceneryModel(sceneryModel);
 }
예제 #3
0
파일: AirportModel.java 프로젝트: bily/fsxp
 public void addStationToVOR(VORModel model) {
   SceneryModel sceneryModel = new SceneryModel();
   sceneryModel.setShouldNotify(false);
   if (model.getDmeOnly()) sceneryModel.setName("{ffbf01ac-2d33-4444-869a-0e1e48cdf2c3}");
   else if (model.getDme()) sceneryModel.setName("{3a5affe1-5cb6-43e9-b5d3-00dfc3b86e78}");
   else sceneryModel.setName("{ffbf01ac-2d33-4444-869a-0e1e48cdf2c3}");
   sceneryModel.setLatLon((LatLonPoint) model.getLatLon().clone());
   sceneryModel.setShouldNotify(true);
   System.out.println("test");
   addSceneryModel(sceneryModel);
 }
예제 #4
0
파일: AirportModel.java 프로젝트: bily/fsxp
 public void addLocalizerToILS(ILSModel model) {
   SceneryModel sceneryModel = new SceneryModel();
   sceneryModel.setShouldNotify(false);
   sceneryModel.setName("{fe978b1b-6b2f-4898-9e5d-a008e8675ed4}");
   sceneryModel.setHeading(model.getHeading());
   sceneryModel.setLatLon((LatLonPoint) model.getLatLon().clone());
   sceneryModel.setShouldNotify(true);
   addSceneryModel(sceneryModel);
 }