STK Graphics PrimitivesSend comments on this topic.
InitializeWithDateAndPosition Method (IAgStkGraphicsPathPointFactory)
See Also
PathPointDate
A date of the path point.
Position
A position of the path point specified as a cartesian point (X/Y/Z).
Windows





Windows & Linux

Description

Initializes a new path point with the given date and position.

Syntax

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

Parameters

PathPointDate
A date of the path point.
Position
A position of the path point specified as a cartesian point (X/Y/Z).

See Also

Example

Shows the format of the Position parameter when creating a path point.
[C#]
Array position = new object[]
{
    1089235,
    -4800930,
    4046386
};

IAgStkGraphicsPathPoint path = sceneManager.Initializers.PathPoint.InitializeWithDateAndPosition(
    root.ConversionUtility.NewDate("UTCG", ((IAgScenario)root.CurrentScenario).StartTime.ToString()), 
    ref position);
Shows the format of the Position parameter when creating a path point.
[Visual Basic .NET]
Dim position As Array = New Object() {1089235, -4800930, 4046386}

Dim path As IAgStkGraphicsPathPoint = sceneManager.Initializers.PathPoint.InitializeWithDateAndPosition(root.ConversionUtility.NewDate("UTCG", DirectCast(root.CurrentScenario, IAgScenario).StartTime.ToString()), position)
© 2024 Analytical Graphics, Inc. All Rights Reserved.