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

Description

Initializes a new instance.

Syntax

[Visual Basic .NET]
Public Function InitializeWithData( _
   ByRef Position() As Variant, _
   ByVal Orientation As IAgOrientation, _
   ByVal FieldOfViewHorizontal As Double, _
   ByVal FieldOfViewVertical As Double, _
   ByVal NearPlane As Double, _
   ByVal FarPlane As Double _
) As IAgStkGraphicsProjection

Parameters

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

Example

Shows the format of the Position parameter when creating a projection.
[C#] Copy Code
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] Copy Code
Dim position As Array = New Object() {31378.1, 0, 0}

Dim projection As IAgStkGraphicsProjection = sceneManager.Initializers.Projection.InitializeWithData(position, orientation, 200, 200, 20, 10000)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK 11.1 Programming Interface