Question: What function can be used to handle displaying Icons for MULTIPLE Lat/Long updates?

Anyone have a tutorial (preferrably in C#) that shows how Falcon View processes multiple updates from an external source i.e. a simple, custom-written Publisher that fires Lat/Long events?? When the Listener receives the Update, I want to call FalconView to display the an Icon at the Lat/Long.

It seems like the tutorials on here show a "one-time" creation of a custom object for a custom layer i.e. displaying 'Hello World' or creating a Line after clicking a button, so I'm not sure what method would be called by the Listener.

I think I need to create a custom Layer (or LayerEditor??...or both??) that can display a custom Icon at multiple Lat/Longs, and the icon should be clickable so a window can be displayed with more info(similar to how clicking on the existing "Airport" icon brings up a window with more details about that airport."

In C#, what needs to be done to make a DLL 'COM-visible' so I can add a Key to the Registry, etc. Finally, when using C#, what class name has to be entered into the 'classId' string in the Registry when adding a new Key for a new Layer/LayerEditor? The class that implements the Layer Interface? LayerEditor?? Interface? Callback Interface?

As a general question, whats a good way to separate my code? Separate files for each of the FalconView interfaces?

Thanks for any help/guidance!

Environment

FalconView Version: FalconView 4.0.1

Interface:

Language: C# VS 2005

-- Matt Woolley - 17 Jul 2007

Answer

You might want to take a look at the sample under the IThreatFeed. It uses the IThreat interface to track multiple objects.

If you are asking how to architect yor code, I would normally set up a buffer with two threads so the drawing is in a different thread from the system reading from your port.

  1. Each time a new message comes in, one thread (which has no GUI interaction), sticks the message in the queue.
  2. The second thread reads the queue and retrieves all of the entries, adds them to FalconView then calls refresh and then goes to sleep for a couple seconds.

We wrote a new overlay which we call the "RealTimeTracker?" which does essentially this but stores the data in a quadtree for fats retrieval, it also optimized the symbol drawing by maintaining a cache of images in memory so each symbol is fast to draw. I hope to publish the interface and possibly code at some point but I would need to clear it with the government.

In C# there is a check box on your project settings that sets COM Visible. I forget the exact line of code that it ends up adding you your code.