STK Graphics PrimitivesSend comments on this topic.
InitializeWithData Method (IAgStkGraphicsProjectionFactory)
See Also
Position
An array containing the cartesian position (in the order x, y, z) of the .
Orientation
The defining the orientation of the .
FieldOfViewHorizontal
The horizontal field of view associated with the .
FieldOfViewVertical
The vertical field of view associated with the .
NearPlane
The near plane associated with the .
FarPlane
The far plane associated with the .
Windows





Windows & Linux

Description

Initializes a new instance.

Syntax

[Visual Basic .NET]
Public Function InitializeWithData( _
    ByVal Position As System.Array, _
    ByVal Orientation As IAgOrientation, _
    ByVal FieldOfViewHorizontal As Double, _
    ByVal FieldOfViewVertical As Double, _
    ByVal NearPlane As Double, _
    ByVal FarPlane As Double _
) As IAgStkGraphicsProjection
[C#]
public IAgStkGraphicsProjection InitializeWithData(
    System.Array Position,
    IAgOrientation Orientation,
    double FieldOfViewHorizontal,
    double FieldOfViewVertical,
    double NearPlane,
    double FarPlane
);
[Managed C++]
public: IAgStkGraphicsProjection^ InitializeWithData(
    System::Array ^ Position,
    IAgOrientation ^ Orientation,
    double FieldOfViewHorizontal,
    double FieldOfViewVertical,
    double NearPlane,
    double FarPlane
);
[Unmanaged C++]
public: HRESULT InitializeWithData(
    SAFEARRAY * * Position,
    IAgOrientation * Orientation,
    double FieldOfViewHorizontal,
    double FieldOfViewVertical,
    double NearPlane,
    double FarPlane,
    IAgStkGraphicsProjection ** ppRetVal
);
[Java]
public IAgStkGraphicsProjection initializeWithData(
    AgSafeArray Position,
    IAgOrientation Orientation,
    double FieldOfViewHorizontal,
    double FieldOfViewVertical,
    double NearPlane,
    double FarPlane
);
[Python - STK API]
def InitializeWithData(self, Position:list, Orientation:"IAgOrientation", FieldOfViewHorizontal:float, FieldOfViewVertical:float, NearPlane:float, FarPlane:float) -> "IAgStkGraphicsProjection":

Parameters

Position
An array containing the cartesian position (in the order x, y, z) of the .
Orientation
The defining the orientation of the .
FieldOfViewHorizontal
The horizontal field of view associated with the .
FieldOfViewVertical
The vertical field of view associated with the .
NearPlane
The near plane associated with the .
FarPlane
The far plane associated with the .

See Also

Example

Shows the format of the Position parameter when creating a projection.
[C#]
Array position = new object[]
{
    31378.1,
    0,
    0
};

IAgStkGraphicsProjection projection = sceneManager.Initializers.Projection.InitializeWithData(
    ref position,
    orientation,
    200,
    200,
    20,
    10000);
Shows the format of the Position parameter when creating a projection.
[Visual Basic .NET]
Dim position As Array = New Object() {31378.1, 0, 0}

Dim projection As IAgStkGraphicsProjection = sceneManager.Initializers.Projection.InitializeWithData(position, orientation, 200, 200, 20, 10000)
© 2021 Analytical Graphics, Inc. All Rights Reserved.