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





Description

Basic 2D Graphics Attributes for a vehicle.

Object Model


Public Properties

Public Property Color Color in which vehicle marker, label and tracks are displayed.
Public Property Inherit Inherit certain 2D graphics settings from the scenario level.
Public Property IsVisible Show 2D Graphics for the vehicle.
Public Property LabelVisible Opt whether to display the vehicle's label.
Public Property Line Get the line display properties for the vehicle.
Public Property MarkerStyle Style 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.chm::/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'; 
 
 

CoClasses that Implement IAgVeGfxAttributesBasic

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1