AGI STK Objects 11 Send comments on this topic.
IAgVeGfxAttributesCustom Interface
Windows






Windows & Linux

Description

Vehicle 2D graphics display based on custom intervals.

Object Model



Public Methods

Public Method DeconflictMethod to deconflict the custom intervals.

Public Properties

Public Property DefaultGet the default attributes.
Public Property IntervalsGet the custom intervals.
Public Property PreemptiveIntervalsOpt whether the hiding of graphics for a given interval affects that interval alone or causes the entire path display for that vehicle to disappear when you animate through the selected interval.

Interfaces

Implemented Interface
IAgVeGfxAttributes

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 

 

Configure custom intervals graphics
[C#]Copy Code
IAgVeGfxIntervalsCollection customIntervals = customAttributes.Intervals; 
 
// Add intervals 
customIntervals.Add("1 Jan 2012 12:00:00.000""1 Jan 2012 14:00:00.000"); 
customIntervals.Add("2 Jan 2012 01:00:00.000""2 Jan 2012 02:00:00.000"); 
 
// Deconflict intervals if necessary 
customAttributes.Deconflict(); 
 

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

Configure custom intervals graphics
[Visual Basic .NET]Copy Code
Dim customIntervals As IAgVeGfxIntervalsCollection = customAttributes.Intervals

' Add intervals
customIntervals.Add("1 Jan 2012 12:00:00.000", "1 Jan 2012 14:00:00.000")
customIntervals.Add("2 Jan 2012 01:00:00.000", "2 Jan 2012 02:00:00.000")

' Deconflict intervals if necessary
customAttributes.Deconflict()

Set 2D Display times to Custom and add intervals
[MATLAB]Copy Code
% IAgStkObjectRoot root: STK Object Model root 
% IAgSatellite satellite: Satellite object 
root.UnitPreferences.Item('DateFormat').SetCurrentUnit('EpSec'); 
graphics = satellite.Graphics; 
graphics.SetAttributesType('eAttributesCustom'); 
graphics.Attributes.Default.IsVisible = false; 
 
interval1 = graphics.Attributes.Intervals.Add(0,3600); 
interval1.GfxAttributes.IsVisible = true; 
interval1.GfxAttributes.Inherit = false; 
interval1.GfxAttributes.Line.Width = 1; 
interval1.GfxAttributes.Line.Style = 'eLongDash'; 
interval1.GfxAttributes.Color = 16711935; 
interval1.GfxAttributes.MarkerStyle = 'X'; 
 
interval2 = satellite.Graphics.Attributes.Intervals.Add(7200,86400); 
interval2.GfxAttributes.IsVisible = true; 
interval2.GfxAttributes.Inherit = false; 
interval2.GfxAttributes.Line.Width = 1; 
interval2.GfxAttributes.Line.Style = 'eDashed'; 
interval2.GfxAttributes.Color = 65280; 
interval2.GfxAttributes.MarkerStyle = 'Point'; 
 
 
Set 2D Display times to Custom and add intervals
[Python]Copy Code
# IAgStkObjectRoot root: STK Object Model root 
# IAgSatellite satellite: Satellite object 
root.UnitPreferences.Item('DateFormat').SetCurrentUnit('EpSec') 
graphics = satellite.Graphics 
graphics.SetAttributesType(2) # eAttributesCustom 
graphics.Attributes.Default.IsVisible = False 
 
interval1 = graphics.Attributes.Intervals.Add(0,3600) 
interval1.GfxAttributes.IsVisible = True 
interval1.GfxAttributes.Inherit = False 
interval1.GfxAttributes.Line.Width = 1 
interval1.GfxAttributes.Line.Style = 16 # eLongDash 
interval1.GfxAttributes.Color = 16711935 
interval1.GfxAttributes.MarkerStyle = 'X' 
 
interval2 = satellite.Graphics.Attributes.Intervals.Add(7200,86400) 
interval2.GfxAttributes.IsVisible = True 
interval2.GfxAttributes.Inherit = False 
interval2.GfxAttributes.Line.Width = 1 
interval2.GfxAttributes.Line.Style = 1 # eDashed 
interval2.GfxAttributes.Color = 65280 
interval2.GfxAttributes.MarkerStyle = 'Point' 
 
 

CoClasses that Implement IAgVeGfxAttributesCustom

© 2018 Analytical Graphics, Inc. All Rights Reserved.