STK X Send comments on this topic.
AgUiAx2DCntrl Object

Description

The 2D Map window control.

By default, you can use the mouse in the following ways to interact with the 2D Graphics window:

  • The latitude and longitude of the cursor position on the 2D map window is displayed in the status bar. To activate the status bar select View > Status Bar from the Menu bar. 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.
  • Select the Zoom In button on the default toolbar or 2D window default tool bar and drag it across the area of the 2D map window you want to zoom in to. Using the Zoom In button changes the map center.
  • Click on the Zoom Out button on the default toolbar or 2D window default toolbar to zoom out of the 2D window one zoom level. You can continue to click the Zoom Out button until the 2D map fills the display window.
  • Use the mouse scroll wheel to zoom in and out of the 2D map window. Using the mouse scroll wheel does not add any zoom levels to the zoom stack so after zooming in using the mouse scroll wheel hitting the Zoom Out button will zoom all the way out to a global view.
  • To move the central body in grab mode, click the Grab Globe button on the default toolbar or the 2D window default toolbar and click and drag in the 2D window. To leave grab mode, click the Grab Globe button again.

Object Model








Public Methods

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 GetWindowProjectedPosition Get the window projected position for given values.
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 2D 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 ZoomIn Enter zoom-in mode. User must left click-and-drag mouse to define area to zoom.
Public Method ZoomOut Zoom out to view a larger portion of a previously magnified map.

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 Satellites, the event ID for graphics time event is returned.
Public Property Application Reference to the STK X application object.
Public Property BackColor The background color of the control.
Public Property InZoomMode Returns true if in zoom in 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 PanModeEnabled Enables/disables pan mode for map control.
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 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 Occur 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

Remarks

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

GUID {5920236B-C284-44A3-8A33-93B65FB5CDBC}

 

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.

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1