示例#1
0
 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
 public final void visitSceneryModel(final SceneryModel model) {
   ModelState state = getCachedState(scenery_model_visitor, model);
   addToRenderList(state);
   if (!picking) {
     if (model.getShadowDiameter() > 0f) default_shadow_renderer.addToShadowList(state);
   }
 }
示例#3
0
 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);
 }
示例#4
0
 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);
 }
示例#5
0
 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);
 }