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






Windows & Linux

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
MemberValueDescription
eCrdnSystemTypeUnknown-1Unknown or unsupported system type.
eCrdnSystemTypeAssembled0A system assembled from an origin point and a set of reference axes.
eCrdnSystemTypeOnSurface1A system with an origin on the surface of the central body with topocentric axes rotated on a clock angle.
eCrdnSystemTypeTemplate2Represents 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

© 2019 Analytical Graphics, Inc. All Rights Reserved.