SensorTargetCollection#

class ansys.stk.core.stkobjects.SensorTargetCollection#

Class defining the target collection for a target-pointing Sensor.

Overview#

item

Given an index, returns an SensorTarget interface.

add

Add a target.

remove

Remove a target given an index.

remove_target

Remove a target given the target’s name.

remove_all

Remove all targets in the collection.

add_object

Add a target to the collection.

remove_object

Remove a target from the collection.

count

The number of items in the collection.

_new_enum

Enumerates through the collection.

Import detail#

from ansys.stk.core.stkobjects import SensorTargetCollection

Property detail#

property SensorTargetCollection.count: int#

The number of items in the collection.

property SensorTargetCollection._new_enum: EnumeratorProxy#

Enumerates through the collection.

Method detail#

SensorTargetCollection.item(self, index: int) SensorTarget#

Given an index, returns an SensorTarget interface.

Parameters:

index : int

Returns:

SensorTarget

SensorTargetCollection.add(self, name: str) None#

Add a target.

Parameters:

name : str

Returns:

None

SensorTargetCollection.remove(self, index: int) None#

Remove a target given an index.

Parameters:

index : int

Returns:

None

SensorTargetCollection.remove_target(self, name: str) None#

Remove a target given the target’s name.

Parameters:

name : str

Returns:

None

SensorTargetCollection.remove_all(self) None#

Remove all targets in the collection.

Returns:

None

SensorTargetCollection.add_object(self, object: ISTKObject) None#

Add a target to the collection.

Parameters:

object : ISTKObject

Returns:

None

SensorTargetCollection.remove_object(self, object: ISTKObject) None#

Remove a target from the collection.

Parameters:

object : ISTKObject

Returns:

None