STK Vector Geometry ToolSend comments on this topic.
IAgCrdnConditionFactory Interface

Description

The factory creates condition components.

Public Methods

Public Method CreateCreates and registers a condition using specified name, description and type.
Public Method CreateConditionCombinedCreates a condition which combines multiple conditions.
Public Method CreateConditionPointInVolumeCreates a condition for point in volume.
Public Method CreateConditionScalarBoundsCreates a condition placing bounds on specified scalar.
Public Method IsTypeSupportedReturns whether the specified type is supported.

Example

Create a condition defined by determining if input scalar is within specified bounds.
[C#]
//Create a condition from a scalar.
IAgCrdnConditionScalarBounds condition = (IAgCrdnConditionScalarBounds)provider.Conditions.Factory.Create(
    "ConditionName", "Condition from a scalar.", AgECrdnConditionType.eCrdnConditionTypeScalarBounds);
Determine if the specified condition type is supported.
[C#]
// Check if the specified condition type is supported.
if (provider.Conditions.Factory.IsTypeSupported(conditionType))
{
    //Create a Condition with the supported Type
    IAgCrdnCondition condition = provider.Conditions.Factory.Create(
        "MyCondition", string.Empty,
        conditionType);
}
Create a condition defined by determining if input scalar is within specified bounds.
[Visual Basic .NET]
'Create a condition from a scalar.
Dim condition As IAgCrdnConditionScalarBounds = DirectCast(provider.Conditions.Factory.Create("ConditionName", "Condition from a scalar.", AgECrdnConditionType.eCrdnConditionTypeScalarBounds), IAgCrdnConditionScalarBounds)
Determine if the specified condition type is supported.
[Visual Basic .NET]
' Check if the specified condition type is supported.
If provider.Conditions.Factory.IsTypeSupported(conditionType) Then
	'Create a Condition with the supported Type
	Dim condition As IAgCrdnCondition = provider.Conditions.Factory.Create("MyCondition", String.Empty, conditionType)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.