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 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(
ref 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
);

[Java]
public IAgStkGraphicsProjection initializeWithData(
Object[] 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 ** ReturnValue
);

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 All Rights Reserved.

STK Programming Interface 11.0.1