Esempio n. 1
0
 void
 AddCircle(Airspaces &airspace_database)
 {
   AbstractAirspace *as = new AirspaceCircle(Center, Radius);
   as->set_properties(Name, Type, Base, Top);
   airspace_database.insert(as);
 }
Esempio n. 2
0
 void
 AddPolygon(Airspaces &airspace_database)
 {
   AbstractAirspace *as = new AirspacePolygon(points);
   as->set_properties(Name, Type, Base, Top);
   airspace_database.insert(as);
 }
Esempio n. 3
0
void airspace_random_properties(AbstractAirspace& as) {
  AirspaceClass_t Type = (AirspaceClass_t)(rand()%15);
  AIRSPACE_ALT base;
  AIRSPACE_ALT top;
  base.Altitude = fixed(rand()%2000);
  top.Altitude = base.Altitude+fixed(rand()%3000);
  as.set_properties(_T("hello"), Type, base, top);
}
Esempio n. 4
0
 void
 AddPolygon(Airspaces &airspace_database)
 {
   AbstractAirspace *as = new AirspacePolygon(points);
   as->set_properties(Name, Type, Base, Top);
   as->set_radio(Radio);
   as->set_days(days_of_operation);
   airspace_database.insert(as);
 }