AGI STK VGT 11 Send comments on this topic.
IAgCrdnParameterSetFactory Interface
Windows






Windows & Linux

Description

The factory is used to create instances of available parameter set types.

Object Model







Public Methods

Public Method CreateCreates and registers a parameter set using specified name and description.
Public Method CreateParameterSetAttitudeCreates a parameter set defined by identifying one set of axes in reference to another.
Public Method CreateParameterSetGroundTrajectoryCreates a parameter set defined by identifying location in reference central body.
Public Method CreateParameterSetOrbitCreates a parameter set defined by identifying orbiting point and its central body.
Public Method CreateParameterSetTrajectoryCreates a parameter set defined by identifying location in reference coordinate system.
Public Method CreateParameterSetVectorCreates a parameter set defined by identifying vector in reference axes.
Public Method IsTypeSupportedReturns whether the specified type is supported.

Example

Create an attitude parameter set.
[C#]Copy Code
//Create an attitude parameter set. 
IAgCrdnParameterSetAttitude parameterSet = (IAgCrdnParameterSetAttitude)provider.ParameterSets.Factory.Create( 
    "ParameterSetName""Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude); 
 

Determine if the specified parameter set type is supported.
[C#]Copy Code
// Check if the specified parameter set type is supported. 
if (provider.ParameterSets.Factory.IsTypeSupported(parameterSetType)) 

    //Create a ParameterSet with the supported Type 
    IAgCrdnParameterSet parameterSet = provider.ParameterSets.Factory.Create( 
        "MyParameterSet"string.Empty, 
        parameterSetType); 

 

Create an attitude parameter set.
[Visual Basic .NET]Copy Code
'Create an attitude parameter set.
Dim parameterSet As IAgCrdnParameterSetAttitude = DirectCast(provider.ParameterSets.Factory.Create("ParameterSetName", "Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude), IAgCrdnParameterSetAttitude)

Determine if the specified parameter set type is supported.
[Visual Basic .NET]Copy Code
' Check if the specified parameter set type is supported.
If provider.ParameterSets.Factory.IsTypeSupported(parameterSetType) Then
    'Create a ParameterSet with the supported Type
    Dim parameterSet As IAgCrdnParameterSet = provider.ParameterSets.Factory.Create("MyParameterSet", String.Empty, parameterSetType)
End If

© 2018 Analytical Graphics, Inc. All Rights Reserved.