AGI STK VGT 11 Send comments on this topic.
IsTypeSupported Method (IAgCrdnAngleFactory)
See Also  Example
Type
Specify an angle type.





Description

Returns true if the type is supported.

Syntax

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

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

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

[Java]
public bool isTypeSupported(
AgECrdnAngleType Type
);

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

Parameters

Type
Member Value Description
eCrdnAngleTypeUnknown -1 Unknown or unsupported type.
eCrdnAngleTypeBetweenVectors 0 An angle between two vectors.
eCrdnAngleTypeBetweenPlanes 1 An angle between two planes.
eCrdnAngleTypeDihedralAngle 2 An angle between two vectors about an axis.
eCrdnAngleTypeRotation 3 Angle of the shortest rotation between the two specified axes.
eCrdnAngleTypeToPlane 4 An angle between a vector and a plane.
eCrdnAngleTypeTemplate 5 Represents a VGT angle created from a template. This type of angle is not creatable.
Specify an angle type.

Example

Determine if the specified angle type is supported.
[C#] Copy Code
// Check if the specified angle type is supported. 
if (provider.Angles.Factory.IsTypeSupported(angleType)) 

    //Create an Angle with the supported Type 
    IAgCrdnAngle angle = provider.Angles.Factory.Create( 
        "MyAngle"string.Empty, 
        angleType); 

 

Determine if the specified angle type is supported.
[Visual Basic .NET] Copy Code
' Check if the specified angle type is supported.
If provider.Angles.Factory.IsTypeSupported(angleType) Then
    'Create an Angle with the supported Type
    Dim angle As IAgCrdnAngle = provider.Angles.Factory.Create("MyAngle", String.Empty, angleType)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1