AGI STK VGT 11 Send comments on this topic.
IsTypeSupported Method (IAgCrdnSystemFactory)
See Also  Example
Type
A system type.





Description

Returns true if the specified system type is supported.

Syntax

[Visual Basic .NET]
Public Function IsTypeSupported( _
   ByVal Type As AgECrdnSystemType _
) As Boolean

[C#]
public bool IsTypeSupported(
AgECrdnSystemType Type
);

[Managed C++]
public: bool IsTypeSupported(
AgECrdnSystemType Type
);

[Java]
public bool isTypeSupported(
AgECrdnSystemType Type
);

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

Parameters

Type
Member Value Description
eCrdnSystemTypeUnknown -1 Unknown or unsupported system type.
eCrdnSystemTypeAssembled 0 A system assembled from an origin point and a set of reference axes.
eCrdnSystemTypeOnSurface 1 A system with an origin on the surface of the central body with topocentric axes rotated on a clock angle.
eCrdnSystemTypeTemplate 2 Represents a VGT system created from a template. This type of system is not creatable.
A system type.

Example

Determine if the specified System type is supported.
[C#] Copy Code
// Check if the specified system type is supported. 
if (provider.Systems.Factory.IsTypeSupported(SystemType)) 

    //Create a System with supported Type 
    IAgCrdnSystem system = provider.Systems.Factory.Create("SystemName"
        string.Empty, SystemType); 

 

Determine if the specified System type is supported.
[Visual Basic .NET] Copy Code
' Check if the specified system type is supported.
If provider.Systems.Factory.IsTypeSupported(SystemType) Then
    'Create a System with supported Type
    Dim system As IAgCrdnSystem = provider.Systems.Factory.Create("SystemName", String.Empty, SystemType)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1