AGI STK VGT 11 Send comments on this topic.
IsTypeSupported Method (IAgCrdnParameterSetFactory)
See Also  Example
EType





Description

Returns whether the specified type is supported.

Syntax

[Visual Basic .NET]
Public Function IsTypeSupported( _
   ByVal EType As AgECrdnParameterSetType _
) As Boolean

[C#]
public bool IsTypeSupported(
AgECrdnParameterSetType EType
);

[Managed C++]
public: bool IsTypeSupported(
AgECrdnParameterSetType EType
);

[Java]
public bool isTypeSupported(
AgECrdnParameterSetType EType
);

[Unmanaged C++]
public: HRESULT IsTypeSupported(
AgECrdnParameterSetType EType,
VARIANT_BOOL * ReturnValue
);

Parameters

EType
Member Value Description
eCrdnParameterSetTypeUnknown -1 Unknown or unsupported parameter set
eCrdnParameterSetTypeAttitude 0 A parameter set type is defined by identifying one set of axes in reference to another.
eCrdnParameterSetTypeGroundTrajectory 1 A parameter set type is defined by identifying location in reference central body.
eCrdnParameterSetTypeTrajectory 2 A parameter set type is defined by identifying location in reference coordinate system.
eCrdnParameterSetTypeOrbit 3 A parameter set type is defined by identifying orbiting point and its central body.
eCrdnParameterSetTypeVector 4 A parameter set type is defined by identifying vector in reference axes.

Example

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

 

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

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1