AGI STK Graphics 11 Send comments on this topic.
InitializeWithDatePositionAndColor Method (IAgStkGraphicsPathPointFactory)
See Also  Example
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.





Description

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

Syntax

[Visual Basic .NET]
Public Function InitializeWithDatePositionAndColor( _
   ByVal PathPointDate As IAgDate, _
   ByRef Position As System.Array, _
   ByVal Color As System.Drawing.Color _
) As IAgStkGraphicsPathPoint

[C#]
public IAgStkGraphicsPathPoint InitializeWithDatePositionAndColor(
IAgDate PathPointDate,
ref System.Array Position,
System.Drawing.Color Color
);

[Managed C++]
public: IAgStkGraphicsPathPoint^ InitializeWithDatePositionAndColor(
IAgDate ^ PathPointDate,
System::Array ^^ Position,
uint ^ Color
);

[Java]
public IAgStkGraphicsPathPoint initializeWithDatePositionAndColor(
IAgDate PathPointDate,
Object[] Position,
long Color
);

[Unmanaged C++]
public: HRESULT InitializeWithDatePositionAndColor(
IAgDate * PathPointDate,
SAFEARRAY ** Position,
uint * Color,
IAgStkGraphicsPathPoint ** ReturnValue
);

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.

Example

Shows the format of the Position parameter when creating a path point.
[C#] Copy Code
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] Copy Code
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)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1