Question: Some API methods don't work with MaskType set to "Both"

I set "Mask Type" to "Both" in FV. When I call one of the following: SetMasksVisible(..,mode,..), SetRingsVisible(..,mode,..), SetFlightAltitudeFeet(..,mode,..), SetMasksVisible2(..,mode,..), they look to work if a "mode" parameter is 0 (which, I assume, is Engagement), but they won't work if the "mode" parameter is 1 (Detection). Is that correct behavior?

Thanks.

Environment

FalconView Version: FalconView 4.1
Interface:
Language: C# VS 2005

-- YanManevich - 07 Aug 2008

Answer

I tested this with a simple program like this and it worked fine:

  • LONG id;
  • threat->Add( overlay, 1507, fLat++, fLon++, _bstr_t("test" ), &id );
  • threat->SetRingsVisible( overlay, id, 1, VARIANT_TRUE );
  • threat->RefreshFalconView( overlay );

The mode you pass into the function is independant of the user interface buttons. If you pass in a detection mode (1) and do not have the detection button set, then you will not see a detection ring. The user interface buttons allow someone to toggle detection and engagement modes without having to explicitly turn on and off masks and rings, etc.