STK Graphics PrimitivesSend comments on this topic.
InitializeWithDatePositionColorAndTranslucency 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).
Color
A color of the path point.
Translucency
A value specifies the translucency of the path point.
Windows





Windows & Linux

Description

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

Syntax

[Visual Basic .NET]
Public Function InitializeWithDatePositionColorAndTranslucency( _
    ByVal PathPointDate As IAgDate, _
    ByVal Position As System.Array, _
    ByVal Color As System.Drawing.Color, _
    ByVal Translucency As Double _
) As IAgStkGraphicsPathPoint
[C#]
public IAgStkGraphicsPathPoint InitializeWithDatePositionColorAndTranslucency(
    IAgDate PathPointDate,
    System.Array Position,
    System.Drawing.Color Color,
    double Translucency
);
[Managed C++]
public: IAgStkGraphicsPathPoint^ InitializeWithDatePositionColorAndTranslucency(
    IAgDate ^ PathPointDate,
    System::Array ^ Position,
    uint Color,
    double Translucency
);
[Unmanaged C++]
public: HRESULT InitializeWithDatePositionColorAndTranslucency(
    IAgDate * PathPointDate,
    SAFEARRAY * * Position,
    uint Color,
    double Translucency,
    IAgStkGraphicsPathPoint ** ppRetVal
);
[Java]
public IAgStkGraphicsPathPoint initializeWithDatePositionColorAndTranslucency(
    IAgDate PathPointDate,
    AgSafeArray Position,
    long Color,
    double Translucency
);
[Python - STK API ]
def InitializeWithDatePositionColorAndTranslucency(self, PathPointDate:"IAgDate", Position:list, Color:agi.stk12.utilities.colors.Color, Translucency:float) -> "IAgStkGraphicsPathPoint":

Parameters

PathPointDate
A date of the path point.
Position
A position of the path point specified as a cartesian point (X/Y/Z).
Color
A color of the path point.
Translucency
A value specifies the translucency of the path point.

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.