STK ObjectsSend comments on this topic.
SetAttributesType Method (IAgGreatArcGraphics)
See Also
Attributes
Windows





Windows & Linux

Description

Set the 2D Graphics attributes type for the vehicle.

Syntax

[Visual Basic .NET]
Public Sub SetAttributesType( _
    ByVal Attributes As AgEVeGfxAttributes _
)
[C#]
public void SetAttributesType(
    AgEVeGfxAttributes Attributes
);
[Managed C++]
public: void SetAttributesType(
    AgEVeGfxAttributes Attributes
);
[Unmanaged C++]
public: HRESULT SetAttributesType(
    AgEVeGfxAttributes Attributes
);
[Java]
public void setAttributesType(
    AgEVeGfxAttributes Attributes
);
[Python - STK API ]
def SetAttributesType(self, Attributes:"AgEVeGfxAttributes") -> None:

Parameters

Attributes

See Also

Example

Set a vehicle's graphics to custom intervals
[C#]
if (graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesCustom))
{
    // Set graphics to custom
    graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesCustom);

    // Get IAgVeGfxAttributesCustom interface
    IAgVeGfxAttributesCustom customAttributes = graphics.Attributes as IAgVeGfxAttributesCustom;

    // adjust the custom intervals graphics
}
Set a vehicle's graphics to basic
[C#]
if (graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesBasic))
{
    // Set graphics to basic
    graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesBasic);

    // Get IAgVeGfxAttributesBasic interface
    IAgVeGfxAttributesBasic basicAttributes = graphics.Attributes as IAgVeGfxAttributesBasic;

    // adjust the basic graphics
}
Set a vehicle's graphics to access intervals
[C#]
if (graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesAccess))
{
    // Set graphics to access intervals
    graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesAccess);

    // Get IAgVeGfxAttributesAccess interface
    IAgVeGfxAttributesAccess accessAttributes = graphics.Attributes as IAgVeGfxAttributesAccess;

    // adjust the access intervals graphics
}
Set a vehicle's graphics to custom intervals
[Visual Basic .NET]
If graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesCustom) Then
	' Set graphics to custom
	graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesCustom)

	' Get IAgVeGfxAttributesCustom interface

		' adjust the custom intervals graphics
	Dim customAttributes As IAgVeGfxAttributesCustom = TryCast(graphics.Attributes, IAgVeGfxAttributesCustom)
End If
Set a vehicle's graphics to basic
[Visual Basic .NET]
If graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesBasic) Then
	' Set graphics to basic
	graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesBasic)

	' Get IAgVeGfxAttributesBasic interface

		' adjust the basic graphics
	Dim basicAttributes As IAgVeGfxAttributesBasic = TryCast(graphics.Attributes, IAgVeGfxAttributesBasic)
End If
Set a vehicle's graphics to access intervals
[Visual Basic .NET]
If graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesAccess) Then
	' Set graphics to access intervals
	graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesAccess)

	' Get IAgVeGfxAttributesAccess interface

		' adjust the access intervals graphics
	Dim accessAttributes As IAgVeGfxAttributesAccess = TryCast(graphics.Attributes, IAgVeGfxAttributesAccess)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.