Topics
Getting Started
Cmd Line Opts
Tcl/Tk Version
X/Motif Version
NS Plugin Version
ActiveX Version
•   Embed in IE
•   Embed in PPT
•   Navigation
Configuration
Creating Data
OAA Interface
   
Go to FAQ
 

Digital Earth > TerravisionTM > User Guide > ActiveX

Embedding The TerraVision ActiveX Component in PPT

You can embed the TerraVision ActiveX control inside your PowerPoint slides to give you the capability to perform live, 3D flythroughs in your presentations. In order to do this, you must first install the TerraVision Plugins. This will deal with registering the TerraVision ActiveX control with your system.

Once installed, you can insert a TerraVision object in PowerPoint a couple of different ways. First, you can go to the "Insert" menu and select the "Object..." option. Scrolling down the list of possible object types, you should find the TerraVision Control. Select this entry and click OK.

Insert TerraVision Object

Alternatively, you can use PowerPoint's Control Toolbox and click over the icon for adding an ActiveX control.

Insert TerraVision Control

Once you have selected to insert the TerraVision object, you drag select the region on your slide that you want the control to occupy. If you go to Slideshow mode now, then you will see the TerraVision window with a message saying that it is waiting for datasets. One way to tell the control which datasets to load is by sending it an event, for example, from a button click event. To do this, you should create a Command Button control from the Control Toolbox. You can then attach a script to this button by double clicking on it. Enter a script such as:

Private Sub CommandButton1_Click()
  Rem Load the sfbay terrain model from some web server
  tvDemo.loadTerrain "http://..../sfbay.oi" "http://..../sfbay.dem"
  tvDemo.startRendering
End Sub
In this script, we assume that you will fill in valid http or local disk URLs to your desired datasets. Also, note that we reference the TerraVision control via the name "tvDemo". In your slides, this name must match the "(Name)" property that you associate with the TerraVision control. You can modify this and many other properties by right clicking over the TerraVision control and selecting the Properties option. You will then be presented with a dialog as follows, where you can select and change any of the displayed entries.

TerraVision Control Properties

 

 

Copyright ©2000 SRI International. All rights reserved.

For more information, please contact: digital-earth@ai.sri.com.
Last updated: Thursday, 08-Mar-2001 13:02:46 PST.