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






Windows & Linux

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
MemberValueDescription
eCrdnAngleTypeUnknown-1Unknown or unsupported type.
eCrdnAngleTypeBetweenVectors0An angle between two vectors.
eCrdnAngleTypeBetweenPlanes1An angle between two planes.
eCrdnAngleTypeDihedralAngle2An angle between two vectors about an axis.
eCrdnAngleTypeRotation3Angle of the shortest rotation between the two specified axes.
eCrdnAngleTypeToPlane4An angle between a vector and a plane.
eCrdnAngleTypeTemplate5Represents 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

© 2019 Analytical Graphics, Inc. All Rights Reserved.