Description
Basic 2D Graphics Attributes for a vehicle.
Public Properties
Color | Color in which vehicle marker, label and tracks are displayed. |
Inherit | Inherit certain 2D graphics settings from the scenario level. |
IsVisible | Show 2D Graphics for the vehicle. |
LabelVisible | Opt whether to display the vehicle's label. |
Line | Get the line display properties for the vehicle. |
MarkerStyle | Style of marker used to represent vehicle. |
CoClasses that Implement IAgVeGfxAttributesBasic
Example
Set a vehicle's graphics to basic
[C#] |
---|
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#] |
---|
// Change display
basicAttributes.IsVisible = true;
basicAttributes.Color = Color.Red;
basicAttributes.Line.Style = AgELineStyle.eDotted;
basicAttributes.Line.Width = AgELineWidth.e3;
basicAttributes.MarkerStyle = "Square";
|
|
Set a vehicle's graphics to basic
[Visual Basic .NET] |
---|
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] |
---|
' 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
[Python - STK API] |
---|
# IAgStkObjectRoot root: STK Object Model root
# IAgSatellite satellite: Satellite object
# Change the line width, style, color and marker
graphics = satellite.Graphics
graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesBasic)
attributes = graphics.Attributes
attributes.Inherit = False
attributes.Line.Width = AgELineWidth.e4
attributes.Line.Style = AgELineStyle.eLongDash
attributes.Color = Colors.Lime
attributes.MarkerStyle = r'C:\Program Files\AGI\STK 12\STKData\Pixmaps\MarkersWin\m010Satellite.bmp'
|
|
Set 2D Graphics display properties
[MATLAB] |
---|
% 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 12\STKData\Pixmaps\MarkersWin\m010Satellite.bmp';
|
|