TerraExplorer Events

TerraExplorer implements the standard IConnectionPoint as its outgoing interface and allows clients to receive events that it generates. TerraExplorer provides an extensive set of events available to clients, allowing them to know when the user performs operations on objects (i.e. edits them or flies to them) or intercepts messages before they are sent to their destination containers (allowing the client to modify them or to display them himself). Controlling the camera or objects on the terrain continuously (in a smooth movement) is also made possible with the help of the OnFrame() event. A client can update the position of the objects/camera in each frame by handling this event.

 

Handling events from a scripting language is very simple (See “Handling TerraExplorer events”). ATL also provides an easy way for a C++ client to connect to the _ITerraExplorerEvents4 outgoing interface (See “Handling TerraExplorer events”).