VehicleGraphics2DAttributesCustom#

class ansys.stk.core.stkobjects.VehicleGraphics2DAttributesCustom#

Bases: IVehicleGraphics2DAttributes, IVehicleGraphics2DAttributesDisplayState

Vehicle 2D graphics display based on custom intervals.

Overview#

deconflict

Deconflict the custom intervals.

default

Get the default attributes.

intervals

Get the custom intervals.

preemptive_intervals

Opt whether the hiding of graphics for a given interval affects that interval alone or causes the entire path display for that vehicle to disappear when you animate through the selected interval.

Examples#

Set 2D Display times to Custom and add intervals

# STKObjectRoot root: STK Object Model root
# Satellite satellite: Satellite object
root.units_preferences.item("DateFormat").set_current_unit("EpSec")
graphics = satellite.graphics
graphics.set_attributes_type(VehicleGraphics2DAttributeType.CUSTOM)
graphics.attributes.default.show_graphics = False

interval1 = graphics.attributes.intervals.add(0, 3600)
interval1.graphics_2d_attributes.show_graphics = True
interval1.graphics_2d_attributes.inherit = False
interval1.graphics_2d_attributes.line.width = LineWidth.WIDTH2
interval1.graphics_2d_attributes.line.style = LineStyle.LONG_DASH
interval1.graphics_2d_attributes.color = Colors.Fuchsia
interval1.graphics_2d_attributes.marker_style = "X"

interval2 = satellite.graphics.attributes.intervals.add(7200, 86400)
interval2.graphics_2d_attributes.show_graphics = True
interval2.graphics_2d_attributes.inherit = False
interval2.graphics_2d_attributes.line.width = LineWidth.WIDTH2
interval2.graphics_2d_attributes.line.style = LineStyle.DASHED
interval2.graphics_2d_attributes.color = Colors.Lime
interval2.graphics_2d_attributes.marker_style = "Point"

Import detail#

from ansys.stk.core.stkobjects import VehicleGraphics2DAttributesCustom

Property detail#

property VehicleGraphics2DAttributesCustom.default: IVehicleGraphics2DAttributesBasic#

Get the default attributes.

property VehicleGraphics2DAttributesCustom.intervals: VehicleGraphics2DIntervalsCollection#

Get the custom intervals.

property VehicleGraphics2DAttributesCustom.preemptive_intervals: bool#

Opt whether the hiding of graphics for a given interval affects that interval alone or causes the entire path display for that vehicle to disappear when you animate through the selected interval.

Method detail#

VehicleGraphics2DAttributesCustom.deconflict(self) None#

Deconflict the custom intervals.

Returns:

None