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






Windows & Linux

Description

Basic 2D Graphics Attributes for a vehicle.

Object Model


Public Properties

Public Property ColorColor in which vehicle marker, label and tracks are displayed.
Public Property InheritInherit certain 2D graphics settings from the scenario level.
Public Property IsVisibleShow 2D Graphics for the vehicle.
Public Property LabelVisibleOpt whether to display the vehicle's label.
Public Property LineGet the line display properties for the vehicle.
Public Property MarkerStyleStyle of marker used to represent vehicle.

Interfaces

Implemented Interface
IAgVeGfxAttributes

Example

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 

 

Configure basic graphics
[C#]Copy Code
// Change display 
basicAttributes.IsVisible = true
basicAttributes.Color = Color.Red; 
basicAttributes.Line.Style =  <a href="STKUtil~Enumerations~AgELineStyle_EN.html">AgELineStyle</a>.eDotted; 
basicAttributes.Line.Width = AgELineWidth.e3; 
basicAttributes.MarkerStyle = "Square"
 

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

Configure basic graphics
[Visual Basic .NET]Copy Code
' Change display
basicAttributes.IsVisible = True
basicAttributes.Color = Color.Red
basicAttributes.Line.Style = AgELineStyle.eDotted
basicAttributes.Line.Width = AgELineWidth.e3
basicAttributes.MarkerStyle = "Square"

Set 2D Graphics display properties
[MATLAB]Copy Code
% IAgStkObjectRoot root: STK Object Model root 
% IAgSatellite satellite: Satellite object 
%Change the line width, style, color and marker 
 
graphics = satellite.Graphics; 
graphics.SetAttributesType('eAttributesBasic'); 
attributes = graphics.Attributes; 
attributes.Inherit = false; 
attributes.Line.Width = 3; 
attributes.Line.Style = 'eLongDash'; 
attributes.Color = 65280; 
attributes.MarkerStyle = 'C:\Program Files\AGI\STK 11\STKData\Pixmaps\MarkersWin\m010Satellite.bmp'; 
 
 
Set 2D Graphics display properties
[Python]Copy Code
# IAgStkObjectRoot root: STK Object Model root 
# IAgSatellite satellite: Satellite object 
#Change the line width, style, color and marker 
 
graphics = satellite.Graphics 
graphics.SetAttributesType(1) # eAttributesBasic 
attributes = graphics.Attributes 
attributes.Inherit = False 
attributes.Line.Width = 3 
attributes.Line.Style = 16 # eLongDash 
attributes.Color = 65280 
attributes.MarkerStyle = r'C:\Program Files\AGI\STK 11\STKData\Pixmaps\MarkersWin\m010Satellite.bmp' 
 
 

CoClasses that Implement IAgVeGfxAttributesBasic

© 2018 Analytical Graphics, Inc. All Rights Reserved.