AGI STK VGT 11 Send comments on this topic.
IAgCrdnAngleFactory Interface
Windows






Windows & Linux

Description

A Factory object to create angles.

Object Model


Public Methods

Public Method CreateCreates a VGT angle using specified name, description and type.
Public Method IsTypeSupportedReturns true if the type is supported.

Example

Create an angle between two planes.
[C#]Copy Code
//Create an angle between two planes. 
IAgCrdnAngleBetweenPlanes angle = (IAgCrdnAngleBetweenPlanes)provider.Angles.Factory.Create( 
    "AngleName""Angle from one plane to another.", AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes); 
 

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

 

Create an angle between two planes.
[Visual Basic .NET]Copy Code
'Create an angle between two planes.
Dim angle As IAgCrdnAngleBetweenPlanes = DirectCast(provider.Angles.Factory.Create("AngleName", "Angle from one plane to another.", AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes), IAgCrdnAngleBetweenPlanes)

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

© 2018 Analytical Graphics, Inc. All Rights Reserved.