AGI STK Objects 11 Send comments on this topic.
SetAttributesType Method (IAgGreatArcGraphics)
See Also  Example
Attributes





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
);

[Java]
public  setAttributesType(
AgEVeGfxAttributes Attributes
);

[Unmanaged C++]
public: HRESULT SetAttributesType(
AgEVeGfxAttributes Attributes
);

Parameters

Attributes
Member Value Description
eAttributesUnknown -1 Unknown.
eAttributesAccess 0 Display based on access periods.
eAttributesBasic 1 Basic display.
eAttributesCustom 2 Display based on custom intervals.
eAttributesRealtime 3 Display based on real time data state.
eAttributesTimeComponents 4 Display based on Timeline events, intervals, time arrays, interval lists and interval collections.

Example

Set a vehicle's graphics to custom intervals
[C#] Copy Code
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#] Copy Code
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#] Copy Code
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] Copy Code
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] Copy Code
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] Copy Code
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

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1