Brendan Chen 943434 Posted November 19, 2010 at 05:30 AM Posted November 19, 2010 at 05:30 AM Hi all, I've been looking at the SDK header in detail, and came to implement some functions, only to find that I can't figure out how to use the functions. I realised there are functions from CAircraftFlightPlan cl[Mod - Happy Thoughts] that are called: GetArrivalRwy() and GetDepartureRwy(). But I couldn't figure out where and how I would set the departure or arrival runways for an aircraft in code? When I select CSectorElement::GetComponentName(int Index) or CSectorElement::GetRunwayName(int Index), what is this 'Index'? Why is it only 0 and 1? What does 0 and 1 represent? Is there an inbuilt function for STCA that I might be able to call when conflict arise? Or must I write the detection manually? I would like to display the predicted track (with ETA and waypoint name), is there a function which will be able to automatically display that when called? Or the track will need to be manually coded? Also I would like to create some UI interfaces with a scrollbar on the right, basically work like AddPopupList() function and AddListElement() function, except doing that for a custom-drawn UI widgets, how would that be implemented? Finally, is there a function within the SDK which allows me to determine whether a certain point is within a region? Example would be whether an aircraft is inside a CTA or FIR? I've came across the function CSectorElement::GetPosition(), but not sure on whether the function will do what I've described... Could someone please shed some light on these questions please? Regards, Brendan Chen VATPRC Tech Support You make the difference! Link to comment Share on other sites More sharing options...
Todor Atanasov 878664 Posted November 19, 2010 at 10:48 AM Posted November 19, 2010 at 10:48 AM - You can't, these two functions only get the data. In the next release you will be able to set the values. - Because every Runway has two directions you have to specify which one you need, 0 or 1, depending on how they were defined in the sct file. - No there is no STCA function for the plugins, SATCAS, TAAATS and EuroCat 2000 plugins all have their own custom STCA functions. So you have to build one own. - You can simply use ES flight track and simply change it's tag item from ES. - You have email about that. - You have to make a custom function for that too, in Internet there are plenty of codes for determining if a point is inside a region. EuroScope BETA Tester/Board of Designers Link to comment Share on other sites More sharing options...
Brendan Chen 943434 Posted November 20, 2010 at 10:35 PM Author Posted November 20, 2010 at 10:35 PM Thanks for that Todor, will have a look through the example you sent. I have just came across another 2 questions: How can I bring up the flight plan dialogue box by code? Also is there a way to access the ATIS information letter (e.g. A, B, C...)? Thanks. Brendan Chen VATPRC Tech Support You make the difference! Link to comment Share on other sites More sharing options...
Gergely Csernak Posted December 5, 2010 at 05:20 PM Posted December 5, 2010 at 05:20 PM You can use the CRadarScreen :: StartTagFunction to open the FP dialog. But no access to the ATIS letter at the moment. Gergely. EuroScope developer Link to comment Share on other sites More sharing options...
Recommended Posts