VR-Forces 4.0.4 Class Documentation
Public Member Functions
DtTargetSelectionCriteria Class Reference

DtTargetSelectionCriteria. More...

Inheritance diagram for DtTargetSelectionCriteria:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtTargetSelectionCriteria (const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
 constructor
 DtTargetSelectionCriteria (const DtTargetSelectionCriteria &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
DtTargetSelectionCriteriaoperator= (const DtTargetSelectionCriteria &orig)
 assignment
virtual ~DtTargetSelectionCriteria ()
 destructor
virtual DtTargetPriorityListpriorityList ()
 Accessor/mutator for myTargetPriorityList.
virtual const
DtTargetPriorityList
priorityList () const
 Accessor/mutator for myTargetPriorityList.
virtual int maxTargets () const
 Accessor/mutator for myMaxTargets.
virtual void setMaxTargets (int num)
 Accessor/mutator for myMaxTargets.
virtual
DtRwSpatialFilterContainer
targetRegion ()
 Accessor/mutator for myTargetRegion.
virtual const
DtRwSpatialFilterContainer
targetRegion () const
 Accessor/mutator for myTargetRegion.
virtual bool fireWithSpotReportOnly () const
virtual void setFireWithSpotReportOnly (bool value)

Protected Attributes

parameters

These parameters are available for setting in the OPD files.

DtTargetPriorityList myTargetPriorityList
 Parameter Name: target-priorities
Parameter Description: List of object types provides acceptable types of objects to use as targets, and well as what types should be considered higher priority than other types.
DtRwInt myMaxTargets
 Parameter Name: max-targets
Parameter Description: Maximum number of targets to output to this weapon system simultaneously.
DtRwSpatialFilterContainer myTargetRegion
 Parameter Name: target-region
Parameter Description: Region (in relation to the host entity) in which this weapon should attempt target objects.
DtRwBoolean myFireWithSpotReportOnly
 Parameter Name: fire-with-spot-report-only
Parameter Description: If true, the entity will use this weapon to fire on targets that it has received data on only though spot reports.

Detailed Description

DtTargetSelectionCriteria.

Defines a criteria for choosing targets for a single weapon system. This class stores all the information about what targets should be considered valid for a particular weapon, and a prioritizing order for those targets.


Constructor & Destructor Documentation

constructor

copy constructor

destructor


Member Function Documentation

DtTargetSelectionCriteria& DtTargetSelectionCriteria::operator= ( const DtTargetSelectionCriteria orig)

assignment

Accessor/mutator for myTargetPriorityList.

Accessor/mutator for myTargetPriorityList.

virtual int DtTargetSelectionCriteria::maxTargets ( ) const [virtual]

Accessor/mutator for myMaxTargets.

virtual void DtTargetSelectionCriteria::setMaxTargets ( int  num) [virtual]

Accessor/mutator for myMaxTargets.

Accessor/mutator for myTargetRegion.

Accessor/mutator for myTargetRegion.


Member Data Documentation

Parameter Name: target-priorities
Parameter Description: List of object types provides acceptable types of objects to use as targets, and well as what types should be considered higher priority than other types.


Parameter Default Value: Empty list.

Parameter Name: max-targets
Parameter Description: Maximum number of targets to output to this weapon system simultaneously.

Value of -1 indicates no limit.
Parameter Default Value: -1

Parameter Name: target-region
Parameter Description: Region (in relation to the host entity) in which this weapon should attempt target objects.

Only objects within the defined region are valid. If no region is defined, all targets are valid. Spatial filters can be combined with logical and/or/not operators as well.
Example 1: Every entity within 4000 meters of this entity.
(in-range
(range 4000.000000)
)
Example 2: Every entity within 4000 meters of this entity, and within the defined frustum of the facing direction of the entity.
(and
(in-range
(range 4000.000000)
)
(in-frustum
(az-max 1.0472)
(az-min -1.0472)
(el-max 1.5708)
(el-min -1.5708)
)
)
Custom geometry filters can be created though the toolkit.
See documentation for DtRwSpatialFilter for more information.
Parameter Default Value:

Parameter Name: fire-with-spot-report-only
Parameter Description: If true, the entity will use this weapon to fire on targets that it has received data on only though spot reports.

Otherwise, a sensor located on the entity is required to see the target before selecting it as a valid target for this weapon. Parameter Default Value: false.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)