Description
Set the 2D Graphics attributes type for the vehicle.
Syntax
Parameters
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
|
|