TerraExplorer Events

TerraExplorer provides an extensive set of events for 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.

Events should be handled according to the way your environment handles COM events. SeeOpening a Project in C#” for an example of usage of the += operator in C# and “Opening a Project in JavaScript” for an example of the AttachEvent in JavaScript.

Note:    When working in C# out of process, events may be received on a thread other than the subscribing one. When executing UI work in event callback, make sure to transfer control to the UI thread.