AGI STK Objects 11 Send comments on this topic.
IAgVeGfxAttributesAccess Interface





Description

Vehicle 2D Graphics display based on access intervals.

Object Model




Public Properties

Public Property AccessObjects Returns the collection of objects used for the access.
Public Property DuringAccess Returns the collection of gfx attributes used during the access.
Public Property NoAccess Returns the collection of gfx attributes used when there is no access.

Interfaces

Implemented Interface
IAgVeGfxAttributes

Example

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 

 

Configure access intervals graphics
[C#] Copy Code
accessAttributes.AccessObjects.Add("Satellite/sat1"); 
 
accessAttributes.DuringAccess.IsVisible = true
accessAttributes.DuringAccess.Color = Color.Yellow; 
accessAttributes.NoAccess.IsVisible = true
accessAttributes.NoAccess.Color = Color.Red; 
 

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

Configure access intervals graphics
[Visual Basic .NET] Copy Code
accessAttributes.AccessObjects.Add("Satellite/sat1")

accessAttributes.DuringAccess.IsVisible = True
accessAttributes.DuringAccess.Color = Color.Yellow
accessAttributes.NoAccess.IsVisible = True
accessAttributes.NoAccess.Color = Color.Red

CoClasses that Implement IAgVeGfxAttributesAccess

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1