STK Vector Geometry ToolSend comments on this topic.
IAgCrdnVectorFactory Interface

Description

A Factory object to create vectors.

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 CreateVectorPluginFromDisplayName method.

Example

Create a vector.perpendicular to the plane in which the angle is defined.
[C#]
// 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#]
//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]
' 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]
'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
© 2024 Analytical Graphics, Inc. All Rights Reserved.