IVehicleGraphics2DAttributesBasic#
- class ansys.stk.core.stkobjects.IVehicleGraphics2DAttributesBasic#
Bases: IVehicleGraphics2DAttributes
Basic 2D Graphics Attributes for a vehicle.
Overview#
Inherit certain 2D graphics settings from the scenario level. |
|
Show 2D Graphics for the vehicle. |
|
Color in which vehicle marker, label and tracks are displayed. |
|
Style of marker used to represent vehicle. |
|
Opt whether to display the vehicleβs label. |
|
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.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.