The 3D Globe window control.
By default, you can use the mouse in the following ways to manipulate the 3D Graphics window:
- Double-click the left mouse button on any spot on the globe to display the latitude and longitude of the selected spot. The latitude and longitude are shown in the scenario lat-lon units which can be found and changed in the Scenario > Basic > Units properties window.
- Use the left mouse button to rotate the globe.
- Use the right mouse button to zoom in and out. You can also zoom into a portion of the 3D Graphics window by clicking the zoom button and then using the left mouse button to drag out a region to view on the 3D Graphics window.
- Use the Shift-left mouse button to pan and tilt the virtual camera; that is, keep the camera in a fixed point in space and change its orientation.
- Use the mouse and the 3D Object Editor to edit an object in the 3D Graphics window.
The mouse works as follows in Grab mode:
- Moving the mouse while the left button is depressed rotates the globe.
- Moving the mouse while the right button is depressed zooms in and out.
- Moving the mouse while the left button and shift key are depressed grabs the central globe and rotates it.
- When you go into Grab mode, you are placed in the lat/lon/alt view mode, if you are not already in it.
If the Constrained "Up" Vector is selected on the View From/To dialog box, the view may shift slightly to keep the "up" vector up.
|ApplyObjectEditing||Commits changes when in 3D object editing mode.|
Copies an existing window's scene into this control. The Window ID of the source window can be obtained from the WinID on this control.
|PickInfo||Get detailed information about a mouse pick.|
|RestoreMouseCursor||Restores mouse cursor back to normal.|
|RubberBandPickInfo||Get detailed information about a rubber-band mouse pick. The values must be within the VO window (0 to width-1 for left and right, 0 to height-1 for top and bottom).|
|SetMouseCursorFromFile||Sets mouse cursor to the selected cursor file.|
|SetMouseCursorFromHandle||Sets mouse cursor to the passed cursor handle.|
|StartObjectEditing||Enters into 3D object editing mode.|
|StopObjectEditing||Ends 3D object editing mode.|
|ZoomIn||Enter zoom-in mode. User must left click-and-drag mouse to define area to zoom.|
|AdvancedPickMode||When set to True, appends
the extended information as described below to the strings returned
by ObjPath property of AgPickInfoData.
- For MTO objects, track ID associated with a Multi-Track is returned. For instance: "/Application/STK/Scenario/Test/MTO/tle-08747 2", where 2 is the track ID associated with a Multi-Track Object.
- For primitives, the associated primitive ID is returned.
|Application||Reference to the STK X application object.|
|BackColor||The background color of the control.|
|DrawElements||Elements to draw on the control.|
|InZoomMode||Returns true if in zoom in mode.|
|IsObjectEditing||Returns true if in 3D object editing mode.|
|MouseMode||Whether this control responds to mouse events.|
|NoLogo||If true, the splash logo is not shown.|
|OLEDropMode||How the control handles drop operations.|
|Picture||The splash logo graphic to be displayed in the control.|
|PictureFromFile||The splash logo graphic file to be displayed in the control.|
|PptPreloadMode||Sets/gets special mode for loading a scenario into a Globe control when it is hosted in a Powerpoint slide. When set, the loaded scenario is kept around as the user navigates back and forth between slides in a Powerpoint presentation.|
|ProgressImageFile||The complete image file name/path for animated progress image.|
|ProgressImageXOffset||The horizontal X offset for animated progress image.|
|ProgressImageXOrigin||The X origin alignment for animated progress image.|
|ProgressImageYOffset||The vertical Y offset for animated progress image.|
|ProgressImageYOrigin||The Y origin alignment for animated progress image.|
|ShowProgressImage||The animated progress image type.|
|VendorID||The identifier of the vendor.|
|WinID||Window identifier (for Connect commands).|
|Click||Occurs when the user presses and then releases a mouse button over the control.|
|DblClick||Occurs when the user presses and releases a mouse button and then presses and releases it again over the control.|
|KeyDown||Occurs when the user presses a key while the control has the focus.|
|KeyPress||Occurs when the user presses and releases a key or key combination that corresponds to an ANSI code.|
|KeyUp||Occurs when the user releases a key while the control has the focus.|
|MouseDown||Occur when the user presses a mouse button.|
|MouseMove||Occurs when the mouse pointer is moved across the control.|
|MouseUp||Occurs when the user releases a mouse button.|
|MouseWheel||Occurs when the mouse wheel is rotated on the control.|
|OLEDragDrop||Fired when a source component is dropped onto the control|
|OnObjectEditingApply||Triggered when a 3D object editing changes are applied.|
|OnObjectEditingCancel||Triggered when a 3D object edit mode is canceled.|
|OnObjectEditingStart||Triggered when a 3D object enters in edit mode.|
|OnObjectEditingStop||Triggered when a 3D object exits the edit mode.|
The Globe control can be created as any regular ActiveX control.
The STK Objects library is also available with STK X. You can instantiate the root object and from it navigate and manipulate the STK scenario. Please see STK Objects for more details.
Click here for instructions on adding STK X controls to a Visual Studio project.