STK X Send comments on this topic.
AgUiAxVOCntrl Object

Description

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.

Object Model








Public Methods

Public Method ApplyObjectEditing Commits changes when in 3D object editing mode.
Public Method CopyFromWinID

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.

Public Method PickInfo Get detailed information about a mouse pick.
Public Method RestoreMouseCursor Restores mouse cursor back to normal.
Public Method 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).
Public Method SetMouseCursorFromFile Sets mouse cursor to the selected cursor file.
Public Method SetMouseCursorFromHandle Sets mouse cursor to the passed cursor handle.
Public Method StartObjectEditing Enters into 3D object editing mode.
Public Method StopObjectEditing Ends 3D object editing mode.
Public Method ZoomIn Enter zoom-in mode. User must left click-and-drag mouse to define area to zoom.

Public Properties

Public Property 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.
Public Property Application Reference to the STK X application object.
Public Property BackColor The background color of the control.
Public Property DrawElements Elements to draw on the control.
Public Property InZoomMode Returns true if in zoom in mode.
Public Property IsObjectEditing Returns true if in 3D object editing mode.
Public Property MouseMode Whether this control responds to mouse events.
Public Property NoLogo If true, the splash logo is not shown.
Public Property OLEDropMode How the control handles drop operations.
Public Property Picture The splash logo graphic to be displayed in the control.
Public Property PictureFromFile The splash logo graphic file to be displayed in the control.
Public Property 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.
Public Property ProgressImageFile The complete image file name/path for animated progress image.
Public Property ProgressImageXOffset The horizontal X offset for animated progress image.
Public Property ProgressImageXOrigin The X origin alignment for animated progress image.
Public Property ProgressImageYOffset The vertical Y offset for animated progress image.
Public Property ProgressImageYOrigin The Y origin alignment for animated progress image.
Public Property ShowProgressImage The animated progress image type.
Public Property VendorID The identifier of the vendor.
Public Property WinID Window identifier (for Connect commands).

Events

Public Event Click Occurs when the user presses and then releases a mouse button over the control.
Public Event DblClick Occurs when the user presses and releases a mouse button and then presses and releases it again over the control.
Public Event KeyDown Occurs when the user presses a key while the control has the focus.
Public Event KeyPress Occurs when the user presses and releases a key or key combination that corresponds to an ANSI code.
Public Event KeyUp Occurs when the user releases a key while the control has the focus.
Public Event MouseDown Occur when the user presses a mouse button.
Public Event MouseMove Occurs when the mouse pointer is moved across the control.
Public Event MouseUp Occurs when the user releases a mouse button.
Public Event MouseWheel Occurs when the mouse wheel is rotated on the control.
Public Event OLEDragDrop Fired when a source component is dropped onto the control
Public Event OnObjectEditingApply Triggered when a 3D object editing changes are applied.
Public Event OnObjectEditingCancel Triggered when a 3D object edit mode is canceled.
Public Event OnObjectEditingStart Triggered when a 3D object enters in edit mode.
Public Event OnObjectEditingStop Triggered when a 3D object exits the edit mode.

Remarks

The Globe control can be created as any regular ActiveX control.

GUID {C1F8CA1F-D597-430E-944A-50D5D43E0A90}

 

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.

 

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK Engine for UNIX 11.2