Graphics2DControlBase#
- class ansys.stk.core.stkx.Graphics2DControlBase#
AGI Map control.
Overview#
Set a reference to the splash logo graphic to be displayed in the control. |
|
Enter zoom-in mode. User must left click-and-drag mouse to define area to zoom. |
|
Zoom out to view a larger portion of a previously magnified map. |
|
Get detailed information about a mouse pick. |
|
Copy an existing Windowβs scene into this control. |
|
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). |
|
Get the window projected position for given values. |
|
Set mouse cursor to the selected cursor file. |
|
Restores mouse cursor back to normal. |
|
Set mouse cursor to the passed cursor handle. |
|
|
βββReturn an IUiAxGraphics2DCntrlEventHandler that is subscribed to handle events associated with this instance of Graphics2DControlBase.βββ |
The background color of the control. |
|
The splash logo graphic to be displayed in the control. |
|
Window identifier (for Connect commands). |
|
Reference to the STK X application object. |
|
If true, the splash logo is not shown. |
|
How the control handles drop operations. |
|
Do not use this property, as it is deprecated. The identifier of the vendor. |
|
Whether this control responds to mouse events. |
|
Return/sets the background color of the control. |
|
If true, sets the advance pick mode. |
|
Return true if in zoom in mode. |
|
The animated progress image type. |
|
The horizontal X offset for animated progress image. |
|
The vertical Y offset for animated progress image. |
|
The complete image file name/path for animated progress image. |
|
The X origin alignment for animated progress image. |
|
The Y origin alignment for animated progress image. |
|
Get or set the splash logo graphic file to be displayed in the control. |
|
Enable/disable pan mode for map control. |
Import detail#
from ansys.stk.core.stkx import Graphics2DControlBase
Property detail#
- property Graphics2DControlBase.picture: IPictureDisp#
The splash logo graphic to be displayed in the control.
- property Graphics2DControlBase.application: STKXApplication#
Reference to the STK X application object.
- property Graphics2DControlBase.ole_drop_mode: OLEDropMode#
How the control handles drop operations.
- property Graphics2DControlBase.vendor_id: str#
Do not use this property, as it is deprecated. The identifier of the vendor.
- property Graphics2DControlBase.mouse_mode: MouseMode#
Whether this control responds to mouse events.
- property Graphics2DControlBase.show_progress_image: ShowProgressImage#
The animated progress image type.
- property Graphics2DControlBase.progress_image_x_offset: int#
The horizontal X offset for animated progress image.
- property Graphics2DControlBase.progress_image_y_offset: int#
The vertical Y offset for animated progress image.
- property Graphics2DControlBase.progress_image_file: str#
The complete image file name/path for animated progress image.
- property Graphics2DControlBase.progress_image_x_origin: ProgressImageXOrigin#
The X origin alignment for animated progress image.
- property Graphics2DControlBase.progress_image_y_origin: ProgressImageYOrigin#
The Y origin alignment for animated progress image.
Method detail#
- Graphics2DControlBase.picture_put_reference(self, picture: IPictureDisp) None #
Set a reference to the splash logo graphic to be displayed in the control.
- Parameters:
picture :
IPictureDisp
- Returns:
- Graphics2DControlBase.zoom_in(self) None #
Enter zoom-in mode. User must left click-and-drag mouse to define area to zoom.
- Returns:
- Graphics2DControlBase.zoom_out(self) None #
Zoom out to view a larger portion of a previously magnified map.
- Returns:
- Graphics2DControlBase.pick_info(self, x: int, y: int) PickInfoData #
Get detailed information about a mouse pick.
- Graphics2DControlBase.copy_from_window_id(self, win_id: int) None #
Copy an existing Windowβs scene into this control.
- Graphics2DControlBase.rubber_band_pick_info(self, left: int, top: int, right: int, bottom: int) RubberBandPickInfoData #
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).
- Graphics2DControlBase.get_window_projected_position(self, lat: float, lon: float, alt: float, draw_coords: Graphics2DDrawCoordinates) WindowProjectionPosition #
Get the window projected position for given values.
- Graphics2DControlBase.set_mouse_cursor_from_file(self, cursor_file_name: str) None #
Set mouse cursor to the selected cursor file.