STK Graphics PrimitivesSend comments on this topic.
InitializeWithPosAndSize Method (IAgStkGraphicsScreenOverlayFactory)
See Also
Position
An array with a size of 4 that represents the position of the overlay. The elements are in the order x position, y position, x Screen Overlay Unit, y Screen Overlay Unit.
Size
An array with a size of 4 that represents the size of the overlay. The elements are in the order width, height, width Screen Overlay Unit, height Screen Overlay Unit.
Windows





Windows & Linux

Description

Initializes the overlay with the specified position and size.

Syntax

[Visual Basic .NET]
Public Function InitializeWithPosAndSize( _
    ByVal Position As System.Array, _
    ByVal Size As System.Array _
) As IAgStkGraphicsScreenOverlay
[C#]
public IAgStkGraphicsScreenOverlay InitializeWithPosAndSize(
    System.Array Position,
    System.Array Size
);
[Managed C++]
public: IAgStkGraphicsScreenOverlay^ InitializeWithPosAndSize(
    System::Array ^ Position,
    System::Array ^ Size
);
[Unmanaged C++]
public: HRESULT InitializeWithPosAndSize(
    SAFEARRAY * * Position,
    SAFEARRAY * * Size,
    IAgStkGraphicsScreenOverlay ** ppRetVal
);
[Java]
public IAgStkGraphicsScreenOverlay initializeWithPosAndSize(
    AgSafeArray Position,
    AgSafeArray Size
);
[Python - STK API ]
def InitializeWithPosAndSize(self, Position:list, Size:list) -> "IAgStkGraphicsScreenOverlay":

Parameters

Position
An array with a size of 4 that represents the position of the overlay. The elements are in the order x position, y position, x Screen Overlay Unit, y Screen Overlay Unit.
Size
An array with a size of 4 that represents the size of the overlay. The elements are in the order width, height, width Screen Overlay Unit, height Screen Overlay Unit.

See Also

Example

Shows the format of the Position and Size parameters when creating a screen overlay.
[C#]
Array position = new object[]
{
    0,
    0,
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels,
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels
};

Array size = new object[]
{
    100,
    200,
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels,
    AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels
};

IAgStkGraphicsScreenOverlay screenOverlay = sceneManager.Initializers.ScreenOverlay.InitializeWithPosAndSize(ref position, ref size);
Shows the format of the Position and Size parameters when creating a screen overlay.
[Visual Basic .NET]
Dim position As Array = New Object() {0, 0, AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels, AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels}

Dim size As Array = New Object() {100, 200, AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels, AgEStkGraphicsScreenOverlayUnit.eStkGraphicsScreenOverlayUnitPixels}

Dim screenOverlay As IAgStkGraphicsScreenOverlay = sceneManager.Initializers.ScreenOverlay.InitializeWithPosAndSize(position, size)
© 2024 Analytical Graphics, Inc. All Rights Reserved.