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






Windows & Linux

Description

A Factory object to create vectors.

Object Model





Public Methods

Public Method CreateCreates a VGT vector using specified name, description and type.
Public Method CreateCrossProductVectorCreates a cross product C = A x B.
Public Method CreateDisplacementVectorCreates a displacement vector.
Public Method CreateVectorPluginFromDisplayNameCreate a vector component based on a COM vector plugin. For information how to implement and register VGT plugins, see
Public Method IsTypeSupportedReturns true if the type is supported.

Public Properties

Public Property AvailableVectorPluginDisplayNamesAn array of display names associated with available vector plugins. The elements of the array are strings. Display names are used to create VGT vectors based on COM plugins using method.

Example

Create a vector.perpendicular to the plane in which the angle is defined.
[C#]Copy Code
// Create a vector.perpendicular to the plane in which the angle is defined. 
IAgCrdnVectorAngleRate vector = (IAgCrdnVectorAngleRate)provider.Vectors.Factory.Create( 
    "myVector"
    "a vector.perpendicular to the plane in which the angle is defined.", AgECrdnVectorType.eCrdnVectorTypeAngleRate); 
 

Determine if the specified vector type is supported.
[C#]Copy Code
//Check if the specified vector type is supported. 
if (provider.Vectors.Factory.IsTypeSupported(vectorType)) 

    // Create a custom vector. 
    IAgCrdnVector vector = provider.Vectors.Factory.Create( 
        "myVector"string.Empty, vectorType); 

 

Create a vector.perpendicular to the plane in which the angle is defined.
[Visual Basic .NET]Copy Code
' Create a vector.perpendicular to the plane in which the angle is defined.
Dim vector As IAgCrdnVectorAngleRate = DirectCast(provider.Vectors.Factory.Create("myVector", "a vector.perpendicular to the plane in which the angle is defined.", AgECrdnVectorType.eCrdnVectorTypeAngleRate), IAgCrdnVectorAngleRate)

Determine if the specified vector type is supported.
[Visual Basic .NET]Copy Code
'Check if the specified vector type is supported.
If provider.Vectors.Factory.IsTypeSupported(vectorType) Then
    ' Create a custom vector.
    Dim vector As IAgCrdnVector = provider.Vectors.Factory.Create("myVector", String.Empty, vectorType)
End If

© 2018 Analytical Graphics, Inc. All Rights Reserved.