IVehicleGraphics2DAttributesBasic#

class ansys.stk.core.stkobjects.IVehicleGraphics2DAttributesBasic#

Bases: IVehicleGraphics2DAttributes

Basic 2D Graphics Attributes for a vehicle.

Overview#

inherit

Inherit certain 2D graphics settings from the scenario level.

show_graphics

Show 2D Graphics for the vehicle.

color

Color in which vehicle marker, label and tracks are displayed.

marker_style

Style of marker used to represent vehicle.

show_label

Opt whether to display the vehicle’s label.

line

Get the line display properties for the vehicle.

Examples#

Set 2D Graphics display properties

# STKObjectRoot root: STK Object Model root
# Satellite satellite: Satellite object
# Change the line width, style, color and marker

graphics = satellite.graphics
graphics.set_attributes_type(VehicleGraphics2DAttributeType.BASIC)
attributes = graphics.attributes
attributes.inherit = False
attributes.line.width = LineWidth.WIDTH4
attributes.line.style = LineStyle.LONG_DASH
attributes.color = Colors.Lime
if os.name == "nt":
    installPath = r"C:\Program Files\AGI\STK 12"
else:
    installPath = os.environ["STK_INSTALL_DIR"]
attributes.marker_style = os.path.join(installPath, "STKData", "Pixmaps", "MarkersWin", "m010Satellite.bmp")

Import detail#

from ansys.stk.core.stkobjects import IVehicleGraphics2DAttributesBasic

Property detail#

property IVehicleGraphics2DAttributesBasic.inherit: bool#

Inherit certain 2D graphics settings from the scenario level.

property IVehicleGraphics2DAttributesBasic.show_graphics: bool#

Show 2D Graphics for the vehicle.

property IVehicleGraphics2DAttributesBasic.color: Color#

Color in which vehicle marker, label and tracks are displayed.

property IVehicleGraphics2DAttributesBasic.marker_style: str#

Style of marker used to represent vehicle.

property IVehicleGraphics2DAttributesBasic.show_label: bool#

Opt whether to display the vehicle’s label.

property IVehicleGraphics2DAttributesBasic.line: VehicleGraphics2DLine#

Get the line display properties for the vehicle.