MTOTrackPointCollection#

class ansys.stk.core.stkobjects.MTOTrackPointCollection#

MTO track point list.

Overview#

add

Add a new element to the collection. Time uses DateFormat Dimension.

add_point

Add a new element to the collection using specified point data. Time uses DateFormat Dimension. Latitude/Longitude use Angle Dimension. Altitude uses Distance Dimension.

extend

Extend the track with the specified point data.

insert_point

Insert a point into the track point collection. Uses the time to determine where the point should be inserted. This is slower than AddPoint, AddPoints or Extend.

item

Given an index, returns an element in the collection.

load_points

Load MTO track points.

remove_all

Remove all elements from the collection.

remove_at

Remove an element from the collection using a specified index.

_new_enum

Return an enumerator that can iterate through the collection.

count

Return the number of elements in a collection.

recycling

Recycling is used for optimizing performance in iterative modification or addition of elements in a particular collection (see Remarks section for this property).

Import detail#

from ansys.stk.core.stkobjects import MTOTrackPointCollection

Property detail#

property MTOTrackPointCollection._new_enum: EnumeratorProxy#

Return an enumerator that can iterate through the collection.

property MTOTrackPointCollection.count: int#

Return the number of elements in a collection.

property MTOTrackPointCollection.recycling: bool#

Recycling is used for optimizing performance in iterative modification or addition of elements in a particular collection (see Remarks section for this property).

Method detail#

MTOTrackPointCollection.add(self, time: Any) MTOTrackPoint#

Add a new element to the collection. Time uses DateFormat Dimension.

Parameters:

time : Any

Returns:

MTOTrackPoint

MTOTrackPointCollection.add_point(self, time: Any, latitude: float, longitude: float, altitude: float) MTOTrackPoint#

Add a new element to the collection using specified point data. Time uses DateFormat Dimension. Latitude/Longitude use Angle Dimension. Altitude uses Distance Dimension.

Parameters:

time : Any

latitude : float

longitude : float

altitude : float

Returns:

MTOTrackPoint

MTOTrackPointCollection.extend(self, time_vals: list, lat_vals: list, lon_vals: list, alt_vals: list) None#

Extend the track with the specified point data.

Parameters:

time_vals : list

lat_vals : list

lon_vals : list

alt_vals : list

Returns:

None

MTOTrackPointCollection.insert_point(self, time: Any, latitude: float, longitude: float, altitude: float) None#

Insert a point into the track point collection. Uses the time to determine where the point should be inserted. This is slower than AddPoint, AddPoints or Extend.

Parameters:

time : Any

latitude : float

longitude : float

altitude : float

Returns:

None

MTOTrackPointCollection.item(self, index: int) MTOTrackPoint#

Given an index, returns an element in the collection.

Parameters:

index : int

Returns:

MTOTrackPoint

MTOTrackPointCollection.load_points(self, mto_track_points: str) None#

Load MTO track points.

Parameters:

mto_track_points : str

Returns:

None

MTOTrackPointCollection.remove_all(self) None#

Remove all elements from the collection.

Returns:

None

MTOTrackPointCollection.remove_at(self, index: int) None#

Remove an element from the collection using a specified index.

Parameters:

index : int

Returns:

None