WSF
WsfZoneSet Class Reference

#include <WsfZoneSet.hpp>

Inheritance diagram for WsfZoneSet:
Collaboration diagram for WsfZoneSet:

Public Member Functions

 WsfZoneSet ()
 Constructor.
WsfZoneSetoperator= (const WsfZoneSet &)=delete
 ~WsfZoneSet () override
 Destructor.
WsfZoneClone () const override
 Standard Clone() method.
void Initialize (const WsfScenario &aScenario) override
bool ProcessInput (UtInput &aInput) override
bool PointIsInside (WsfSimulation *aSimulationPtr, const double aViewedPointWCS[3], const double aEyePointWCS[3], const double aLookHeading, const double aDeltaDownRange=0.0) override
WsfGeoPoint Reference () override
 return the geopoint of the reference point
WsfZoneGetZoneAtIndex (int aIndex)
int GetNumZones () const
WsfZoneGetExclusionZoneAtIndex (const int aIndex)
int GetNumExclusionZones () const
double CheckIntersections (const double aLLA1[3], const double aLLA2[3]) override
void DebugDrawZone (WsfDraw &aDraw) override
 draw the zone using WsfDraw
void DebugDrawCentroid (WsfDraw &aDraw) override
 draw the centroid using WsfDraw in an x
void DebugDrawBounds (WsfDraw &aDraw) override
 draw the bounding box using WsfDraw
Public Member Functions inherited from WsfZone
 WsfZone ()
WsfZoneoperator= (const WsfZone &)=delete
 ~WsfZone () override=default
WsfComponentCloneComponent () const override
int GetComponentInitializationOrder () const override
WsfStringId GetComponentName () const override
const int * GetComponentRoles () const override
void * QueryInterface (int aRole) override
void ComponentParentChanged (WsfPlatform *aPlatformPtr) override
WsfPlatformGetPlatform () const
bool Initialize (double aSimTime) override
virtual bool GetLatLonExtrema (double &aSouthernLat, double &aWesternLon, double &aNorthernLat, double &aEasternLon) const
void SetGlobalName (WsfStringId aGlobalName)
 Set the global model that this zone was cloned from.
WsfStringId GetGlobalName () const
virtual double Area ()
virtual WsfGeoPoint Centroid ()
virtual void MaxPoint (double &aX, double &aY, double &aAlt)
virtual void MinPoint (double &aX, double &aY, double &aAlt)
virtual void DrawBounds (WsfDraw &aDraw)
virtual void DrawCentroid (WsfDraw &aDraw)
virtual void Draw (WsfDraw &aDraw)
virtual void DrawRelative (WsfDraw &aDraw, const double aEyePointWCS[3], const double aLookHeading)
virtual void DebugDrawZoneRelative (WsfDraw &aDraw, const double aEyePointWCS[3], const double aLookHeading)
virtual const std::map< WsfStringId, double > & GetModifierList () const
 Get the modifier list for WsfZoneAttenuation.
virtual double ModifierValue (const std::string &aModifierName) const
 returns the value of the modifier matching the given name
bool IsInitialized () const
void SetFillColor (const std::string &aColor)
void SetFillColor (const UtColor &aColor)
void SetLineColor (const std::string &aColor)
void SetLineColor (const UtColor &aColor)
virtual ut::optional< UtColor > GetFillColor () const
virtual ut::optional< UtColor > GetLineColor () const
Public Member Functions inherited from WsfObject
 WsfObject ()
 This is the constructor for the WsfObject class.
 ~WsfObject () override
 This is the destructor for the WsfObject class.
const char * GetScriptClassName () const override
const std::string & GetType () const
WsfStringId GetTypeId () const
 Get the string ID of the 'type' of the object.
void SetType (WsfStringId aType)
const std::string & GetBaseType () const
WsfStringId GetBaseTypeId () const
const TypeListGetTypeList () const
bool IsA_TypeOf (WsfStringId aType) const
WsfObjectoperator= (const WsfObject &aRhs)
 Assignment operator.
template<typename T>
void Serialize (T &aBuff)
 For XIO (de)serialization.
const std::string & GetName () const
WsfStringId GetNameId () const
void SetName (WsfStringId aName)
Public Member Functions inherited from WsfComponentT< WsfPlatform >
 WsfComponentT ()
 WsfComponentT (const WsfComponentT &) noexcept
WsfComponentToperator= (const WsfComponentT &) noexcept
 ~WsfComponentT () override=default
ParentTypeGetComponentParent () const
void SetComponentParent (ParentType *aParentPtr)
Public Member Functions inherited from WsfComponent
virtual ~WsfComponent ()=default
template<typename T>
bool QueryInterfaceT (T *&aRolePtr)
bool ComponentHasRole (int aRole)
 Returns true if the component has the specified role.
virtual bool PreInitialize (double aSimTime)
virtual bool Initialize2 (double aSimTime)
virtual void PreInput ()
Public Member Functions inherited from WsfAuxDataEnabled
 WsfAuxDataEnabled ()=default
 WsfAuxDataEnabled (const WsfAuxDataEnabled &aSrc)=default
WsfAuxDataEnabledoperator= (const WsfAuxDataEnabled &aRhs)
 WsfAuxDataEnabled (WsfAuxDataEnabled &&)=default
WsfAuxDataEnabledoperator= (WsfAuxDataEnabled &&)=default
virtual ~WsfAuxDataEnabled () noexcept
void SetAuxData (const WsfAttributeContainer &aAuxData)
void DeleteAuxData ()
 Delete the aux data container from the object.
void MergeAuxData (const WsfAuxDataEnabled &aSrc)
 Merge the object's aux data with aux data from an existing object.
void UpdateAuxData (const WsfAuxDataEnabled &aSrc)
 Update the object's aux data with aux data from an existing object.
bool HasAuxData () const
 Returns true if this object has aux data.
bool ProcessInput (UtInput &aInput)
template<typename T>
void Serialize (T &aBuff)
 (De)serialization for XIO
WsfAttributeContainerGetAuxData ()
const WsfAttributeContainerGetAuxData () const noexcept
const WsfAttributeContainerGetAuxDataConst () const noexcept

Protected Member Functions

 WsfZoneSet (const WsfZoneSet &aSrc)
 Copy constructor (for Clone()).
bool ConstructZoneDatabase ()
 WsfZone (const WsfZone &aSrc)
 Copy constructor (for Clone()).
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).

Additional Inherited Members

Public Types inherited from WsfObject
typedef std::vector< WsfStringIdTypeList
 The list of types returned by GetTypeList.
Public Types inherited from WsfComponentT< WsfPlatform >
typedef WsfPlatform ParentType
 This is needed to support the WsfComponentList template.
Static Public Attributes inherited from WsfZone
static constexpr const char * cTYPE_KIND = "zone"
static constexpr double cUNSPECIFIED = 1.0E20
static constexpr double cHUGE = 9.9E20
static constexpr double cSMALL = -9.9E20
Static Public Attributes inherited from WsfAuxDataEnabled
static UtCallbackListN< void(const WsfAuxDataEnabled *)> AuxDataAccessed
static UtCallbackListN< void(const WsfAuxDataEnabled *)> AuxDataDestroyed
WsfPlatformmPlatformPtr
std::map< WsfStringId, double > mModifierList
double mMinAlt
double mMaxAlt
double mMinX
double mMaxX
double mMinY
double mMaxY
double mArea
Point mCentroid
bool mIsInitialized

Detailed Description

An zone that is a set of zones.

This zone construct represents the union of a collection of zones. A point is considered to be in the zone if it is in any of the member zones.

Constructor & Destructor Documentation

◆ WsfZoneSet() [1/2]

WsfZoneSet::WsfZoneSet ( )

Constructor.

References WsfZone::WsfZone().

Referenced by Clone(), operator=(), and WsfZoneSet().

◆ ~WsfZoneSet()

WsfZoneSet::~WsfZoneSet ( )
override

Destructor.

◆ WsfZoneSet() [2/2]

WsfZoneSet::WsfZoneSet ( const WsfZoneSet & aSrc)
protected

Copy constructor (for Clone()).

Copy constructor.

References for(), if(), WsfZone::WsfZone(), and WsfZoneSet().

Member Function Documentation

◆ CheckIntersections()

double WsfZoneSet::CheckIntersections ( const double aLLA1[3],
const double aLLA2[3] )
overridevirtual

Reimplemented from WsfZone.

◆ Clone()

WsfZone * WsfZoneSet::Clone ( ) const
overridevirtual

Standard Clone() method.

Implements WsfZone.

References WsfZone::WsfZone(), and WsfZoneSet().

◆ ConstructZoneDatabase()

bool WsfZoneSet::ConstructZoneDatabase ( )
protected

Referenced by Initialize().

◆ DebugDrawBounds()

void WsfZoneSet::DebugDrawBounds ( WsfDraw & aDraw)
overridevirtual

◆ DebugDrawCentroid()

void WsfZoneSet::DebugDrawCentroid ( WsfDraw & aDraw)
overridevirtual

◆ DebugDrawZone()

void WsfZoneSet::DebugDrawZone ( WsfDraw & aDraw)
overridevirtual

draw the zone using WsfDraw

Reimplemented from WsfZone.

◆ GetExclusionZoneAtIndex()

WsfZone * WsfZoneSet::GetExclusionZoneAtIndex ( const int aIndex)

References WsfZone::WsfZone().

◆ GetNumExclusionZones()

int WsfZoneSet::GetNumExclusionZones ( ) const
inline

◆ GetNumZones()

int WsfZoneSet::GetNumZones ( ) const
inline

◆ GetZoneAtIndex()

WsfZone * WsfZoneSet::GetZoneAtIndex ( int aIndex)

◆ Initialize()

void WsfZoneSet::Initialize ( const WsfScenario & aScenario)
overridevirtual

This method is called to initialize the zone for use. This form is called from scenario initialization for globally defined zones.

Reimplemented from WsfZone.

References ConstructZoneDatabase(), wsf::TerrainInterface::Get(), and WsfZone::mIsInitialized.

◆ operator=()

WsfZoneSet & WsfZoneSet::operator= ( const WsfZoneSet & )
delete

◆ PointIsInside()

bool WsfZoneSet::PointIsInside ( WsfSimulation * aSimulationPtr,
const double aViewedPointWCS[3],
const double aEyePointWCS[3],
const double aLookHeading,
const double aDeltaDownRange = 0.0 )
overridevirtual

Is the point inside the zone?

Parameters
aSimulationPtrthe simulation
aViewedPointWCSthe point which is being tested for containment in the zone.
aEyePointWCSis the potential reference point for a relative Zone.
aLookHeadingthe current heading (for relative references)
aDeltaDownRangeis an (optional) delta to slide the Zone away from the eyepoint. (Used to adjust the Zone location for off-design conditions.)
Returns
'true' if the point is inside the Zone or 'false' otherwise.

Reimplemented from WsfZone.

References WsfZone::mIsInitialized.

◆ ProcessInput()

bool WsfZoneSet::ProcessInput ( UtInput & aInput)
overridevirtual

Process input from a generic source.

Examine the current input command. If it is NOT one of the commands recognized by this class then it simply returns 'false'. If it is one of the commands recognized by this class then it processes the command and returns 'true'.

Parameters
aInputa reference to a UtInput object.
Returns
'true' if the command was one recognized by the class or 'false' if not.
Exceptions
UtInput::ExceptionBase(or an object derived from it) if the command was recognized but contains some sort of error.
Note
If a derived class does not recognize the command (i.e.: the return value is false) then it should call the base class ProcessInput method. This chain should continue until either the command is recognized or the top-level base class is encountered.

Reimplemented from WsfZone.

References WsfZone::mModifierList, and WsfZone::ProcessInput().

◆ Reference()

WsfGeoPoint WsfZoneSet::Reference ( )
overridevirtual

return the geopoint of the reference point

Implements WsfZone.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved