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





Description

A Factory object to create angles.

Object Model


Public Methods

Public Method Create Creates a VGT angle using specified name, description and type.
Public Method IsTypeSupported Returns 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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1