|
WSF
|
A class for defining a zone. More...
#include <WsfZoneDefinition.hpp>


Public Types | |
| enum | RelativeToType { cOBSERVER , cINTERNAL } |
| enum | ShapeType { cNO_SHAPE , cCIRCULAR , cELLIPTICAL , cPOLYGONAL , cSPHERICAL } |
| Public Types inherited from WsfObject | |
| typedef std::vector< WsfStringId > | TypeList |
| The list of types returned by GetTypeList. | |
| Public Types inherited from WsfComponentT< WsfPlatform > | |
| typedef WsfPlatform | ParentType |
| This is needed to support the WsfComponentList template. | |
Public Member Functions | |
| WsfZoneDefinition () | |
| WsfZoneDefinition (const WsfZoneDefinition &aSrc) | |
| WsfZoneDefinition & | operator= (const WsfZoneDefinition &)=delete |
| ~WsfZoneDefinition () override=default | |
| WsfZone * | Clone () const override |
| The standard Clone() method (virtual copy constructor). | |
| bool | PointIsInside (WsfSimulation *aSimulationPtr, const double aViewedPointWCS[3], const double aEyePointWCS[3], const double aLookHeading, const double aDeltaDownRange=0.0) override |
| double | CheckIntersections (const double aLLA1[3], const double aLLA2[3]) override |
| void | Initialize (const WsfScenario &aScenario) override |
| bool | ProcessInput (UtInput &aInput) override |
| void | UpdateReference (const WsfSimulation &aSimulation) |
| Update the geometric reference point for the zone from the simulation. | |
| void | SetReference (UtEntity &aReference) |
| Set the geometric reference point for the zone. | |
| void | SetReference (const WsfGeoPoint &aReference, double aReferenceHeading) |
| Set the geometric reference point for the zone. | |
| void | SetReference (double aReferenceWCS[3], double aReferenceHeading) |
| Set the geometric reference point for the zone. | |
| void | SetReference (double aReferenceLat, double aReferenceLon, double aReferenceHeading) |
| Set the geodetic reference point for the zone. | |
| WsfGeoPoint | Reference () override |
| return the geopoint of the reference point | |
| void | SetShapeType (ShapeType aType) |
| void | SetRelativeType (RelativeToType aType) |
| void | SetAltBounds (double aMinAlt, double aMaxAlt) |
| void | SetRadialBounds (double aMinRadius, double aMaxRadius) |
| void | SetAngleBounds (double aStartAngle, double aStopAngle) |
| void | SetEllipticalAxes (double aLatAxisLen, double aLonAxisLen) |
| void | SetPolyPoints (const std::vector< WsfGeoPoint > &aPoints) |
| void | SetPolyPointsRelative (const std::vector< UtVec3d > &aPoints) |
| const std::vector< WsfZone::Point > & | GetPoints () const |
| void | GetPoints (std::vector< WsfGeoPoint > &aPoints) const |
| ut::optional< UtColor > | GetFillColor () const override |
| ut::optional< UtColor > | GetLineColor () const override |
| ShapeType | GetShapeType () const |
| RelativeToType | GetRelativeType () const |
| WsfStringId | GetReferencePlatformName () const |
| double | GetReferenceLat () const |
| double | GetReferenceLon () const |
| bool | IsNegative () const |
| Returns true the zone is a 'negative' zone and returns the opposite value for PointIsInside(). | |
| bool | HasAbsoluteLatLon () const |
| void | SetPointsAreLatLon (bool aValue) |
| bool | PointsAreLatLon () |
| bool | GetLatLonExtrema (double &aSouthernLat, double &aWesternLon, double &aNorthernLat, double &aEasternLon) const override |
| double | GetRadius () const |
| double | GetMinRadius () const |
| double | GetReferenceHeading () const |
| double | GetLatAxisLength () const |
| double | GetLonAxisLength () const |
| void | GetAngleBounds (double &aStartAngle, double &aStopAngle) const |
| void | GetAltBounds (double &aMinAlt, double &aMaxAlt) const |
| WsfPlatform * | GetReferencePlatform (WsfSimulation *aSimulationPtr) const |
| void | VerticesIn (double aMinX, double aMinY, double aMaxX, double aMaxY, std::vector< Point > &aPointsVector) const |
| void | Draw (WsfDraw &aDraw) override |
| void | DrawRelative (WsfDraw &aDraw, const double aEyePointWCS[3], const double aLookHeading) override |
| void | DrawCentroid (WsfDraw &aDraw) override |
| draw the centroid using WsfDraw in an x | |
| void | DrawBounds (WsfDraw &aDraw) override |
| draw the bounding box using WsfDraw | |
| void | DebugDrawZone (WsfDraw &aDraw) override |
| draw the zone using WsfDraw | |
| void | DebugDrawZoneRelative (WsfDraw &aDraw, const double aEyePointWCS[3], const double aLookHeading) override |
| void | DebugDrawCentroid (WsfDraw &aDraw) override |
| draw the centroid using WsfDraw in an x | |
| void | DebugDrawBounds (WsfDraw &aDraw) override |
| draw the bounding box using WsfDraw | |
| bool | WithinPolygonSides (const double aXorLatValue, const double aYorLonValue) const |
| Public Member Functions inherited from WsfZone | |
| WsfZone () | |
| WsfZone & | operator= (const WsfZone &)=delete |
| ~WsfZone () override=default | |
| WsfComponent * | CloneComponent () 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 |
| WsfPlatform * | GetPlatform () const |
| bool | Initialize (double aSimTime) override |
| 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 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) |
| 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 TypeList & | GetTypeList () const |
| bool | IsA_TypeOf (WsfStringId aType) const |
| WsfObject & | operator= (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 | |
| WsfComponentT & | operator= (const WsfComponentT &) noexcept |
| ~WsfComponentT () override=default | |
| ParentType * | GetComponentParent () 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 | |
| WsfAuxDataEnabled & | operator= (const WsfAuxDataEnabled &aRhs) |
| WsfAuxDataEnabled (WsfAuxDataEnabled &&)=default | |
| WsfAuxDataEnabled & | operator= (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 | |
| WsfAttributeContainer & | GetAuxData () |
| const WsfAttributeContainer & | GetAuxData () const noexcept |
| const WsfAttributeContainer & | GetAuxDataConst () const noexcept |
Protected Member Functions | |
| void | AddPoint (const Point &aPoint) |
| WsfZone (const WsfZone &aSrc) | |
| Copy constructor (for Clone()). | |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
Additional Inherited Members | |
| 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 |
| WsfPlatform * | mPlatformPtr |
| std::map< WsfStringId, double > | mModifierList |
| double | mMinAlt |
| double | mMaxAlt |
| double | mMinX |
| double | mMaxX |
| double | mMinY |
| double | mMaxY |
| double | mArea |
| Point | mCentroid |
| bool | mIsInitialized |
A class for defining a zone.
| WsfZoneDefinition::WsfZoneDefinition | ( | ) |
References cNO_SHAPE, cOBSERVER, WsfZone::cUNSPECIFIED, and WsfZone::WsfZone().
Referenced by Clone(), operator=(), ProcessInput(), WsfCodedZone::WsfCodedZone(), and WsfZoneDefinition().
| WsfZoneDefinition::WsfZoneDefinition | ( | const WsfZoneDefinition & | aSrc | ) |
References WsfZone::WsfZone(), and WsfZoneDefinition().
|
overridedefault |
References WsfZone::WsfZone().
|
protected |
Add (:at, Lon) the points of a polygonal zone shape.
| aPoint | a point to be added (in clockwise order) of a polyognal zone shape. |
Referenced by WsfCodedZone::ProcessInput(), and WsfCodedZone::WsfCodedZone().
|
overridevirtual |
Reimplemented from WsfZone.
References cSPHERICAL.
|
overridevirtual |
The standard Clone() method (virtual copy constructor).
Implements WsfZone.
References WsfZone::WsfZone(), and WsfZoneDefinition().
Referenced by UT_DEFINE_SCRIPT_METHOD(), and UT_DEFINE_SCRIPT_METHOD().
|
overridevirtual |
draw the bounding box using WsfDraw
Reimplemented from WsfZone.
References DrawBounds(), WsfDraw::SetColor(), WsfDraw::SetDuration(), and WsfDraw::SetLineSize().
|
overridevirtual |
draw the centroid using WsfDraw in an x
Reimplemented from WsfZone.
References DrawCentroid(), WsfDraw::SetColor(), WsfDraw::SetDuration(), and WsfDraw::SetLineSize().
|
overridevirtual |
draw the zone using WsfDraw
Reimplemented from WsfZone.
References Draw(), WsfDraw::SetColor(), WsfDraw::SetDuration(), and WsfDraw::SetLineSize().
|
overridevirtual |
Reimplemented from WsfZone.
References DrawRelative(), WsfDraw::SetColor(), WsfDraw::SetDuration(), and WsfDraw::SetLineSize().
|
overridevirtual |
Draw the zone using WsfDraw
| aDraw | The draw object to be written to |
Reimplemented from WsfZone.
References WsfDraw::BeginLines(), cPOLYGONAL, WsfZone::cUNSPECIFIED, WsfDraw::End(), WsfDraw::GetDrawManager(), WsfSimulationExtension::GetSimulation(), WsfZone::mMaxAlt, WsfZone::mMinAlt, UpdateReference(), and WsfDraw::VertexLLA().
Referenced by DebugDrawZone(), and DrawRelative().
|
overridevirtual |
draw the bounding box using WsfDraw
Reimplemented from WsfZone.
References WsfDraw::BeginLines(), cPOLYGONAL, WsfDraw::End(), WsfZone::mMaxX, WsfZone::mMaxY, WsfZone::mMinX, WsfZone::mMinY, and WsfDraw::VertexLLA().
Referenced by DebugDrawBounds().
|
overridevirtual |
draw the centroid using WsfDraw in an x
Reimplemented from WsfZone.
References WsfDraw::BeginLines(), cPOLYGONAL, WsfDraw::End(), WsfZone::mCentroid, and WsfDraw::VertexLLA().
Referenced by DebugDrawCentroid().
|
overridevirtual |
Reimplemented from WsfZone.
References WsfDraw::BeginLines(), cINTERNAL, cPOLYGONAL, Draw(), WsfDraw::End(), and WsfDraw::VertexWCS().
Referenced by DebugDrawZoneRelative().
| void WsfZoneDefinition::GetAltBounds | ( | double & | aMinAlt, |
| double & | aMaxAlt ) const |
References WsfZone::mMaxAlt, and WsfZone::mMinAlt.
Referenced by ZoneUtils::WithinAltitudeBounds().
| void WsfZoneDefinition::GetAngleBounds | ( | double & | aStartAngle, |
| double & | aStopAngle ) const |
References WsfZone::cUNSPECIFIED.
Referenced by ZoneUtils::GetLatLonPoints(), and ZoneUtils::PointIsInAngularExtents().
|
overridevirtual |
Reimplemented from WsfZone.
References WsfZone::GetFillColor().
| double WsfZoneDefinition::GetLatAxisLength | ( | ) | const |
Referenced by ZoneUtils::GetDistanceFromEllipseToPoint(), and ZoneUtils::GetLatLonPoints().
|
overridevirtual |
Returns true if the zone points represent (Lat, Lon), false otherwise. Only if true is returned, argument values represent the lower left and upper right corners of the zone extrema.
Reimplemented from WsfZone.
References cCIRCULAR, cELLIPTICAL, cPOLYGONAL, and cSPHERICAL.
Referenced by ZoneUtils::GetExtraDistanceBasedOnShape().
|
overridevirtual |
Reimplemented from WsfZone.
References WsfZone::GetLineColor().
| double WsfZoneDefinition::GetLonAxisLength | ( | ) | const |
| double WsfZoneDefinition::GetMinRadius | ( | ) | const |
|
inline |
Referenced by WsfZoneRouteFinder::AvoidZone(), WsfNavigationMesh::DebugDrawZones(), WsfPathFinder::DebugDrawZones(), WsfPathFinder::FindClosestValidPoint(), WsfNavigationMesh::GetCellZoneInteraction(), ZoneUtils::GetLatLonPoints(), WsfNavigationMesh::ProcessInput(), WsfPathFinder::ProcessInput(), WsfZoneRouteFinder::RouteAroundZones(), UT_DEFINE_SCRIPT_METHOD(), and VerticesIn().
| void WsfZoneDefinition::GetPoints | ( | std::vector< WsfGeoPoint > & | aPoints | ) | const |
returns an array of geopoints that make up the vertices of the zone ***** currently doesn't support altitude
| double WsfZoneDefinition::GetRadius | ( | ) | const |
| double WsfZoneDefinition::GetReferenceHeading | ( | ) | const |
|
inline |
|
inline |
| WsfPlatform * WsfZoneDefinition::GetReferencePlatform | ( | WsfSimulation * | aSimulationPtr | ) | const |
References WsfSimulation::GetPlatformByIndex(), WsfSimulation::GetPlatformByName(), and platformPtr.
Referenced by ZoneUtils::RecalcCentroid().
|
inline |
|
inline |
Referenced by WsfZoneRouteFinder::AvoidZone(), ZoneUtils::GetDistanceFromPointToZone(), ZoneUtils::GetDistanceFromPointToZoneCenter(), ZoneUtils::GetLatLonPoints(), ZoneUtils::GetZoneCentroid(), ZoneUtils::isProjectedInsideZone2Points(), ZoneUtils::isProjectedInsideZonePointHeading(), ZoneUtils::isProjectedInsideZonePosVel(), UT_DEFINE_SCRIPT_METHOD(), and UT_DEFINE_SCRIPT_METHOD().
|
inline |
Referenced by WsfZoneRouteFinder::AvoidZone(), ZoneUtils::GetClosestPointInZone(), ZoneUtils::GetDistanceFromEllipseToPoint(), ZoneUtils::GetDistanceFromPointToZone(), ZoneUtils::GetExtraDistanceBasedOnShape(), ZoneUtils::GetLatLonPoints(), ZoneUtils::GetZoneCentroid(), and UT_DEFINE_SCRIPT_METHOD().
|
inline |
|
overridevirtual |
Initializes and validates the attributes of the zone shape.
Reimplemented from WsfZone.
References cINTERNAL, cNO_SHAPE, cPOLYGONAL, WsfZone::cUNSPECIFIED, WsfObject::GetName(), WsfZone::mIsInitialized, WsfZone::mMaxAlt, WsfZone::mMaxX, WsfZone::mMaxY, WsfZone::mMinAlt, WsfZone::mMinX, WsfZone::mMinY, WsfZone::mModifierList, and ok.
|
inline |
Returns true the zone is a 'negative' zone and returns the opposite value for PointIsInside().
|
delete |
References WsfZoneDefinition().
|
overridevirtual |
Is the point inside the zone?
| aSimulationPtr | the simulation |
| aViewedPointWCS | the point which is being tested for containment in the zone. |
| aEyePointWCS | is the potential reference point for a relative Zone. |
| aLookHeading | the current heading (for relative references) |
| aDeltaDownRange | is an (optional) delta to slide the Zone away from the eyepoint. (Used to adjust the Zone location for off-design conditions.) |
Reimplemented from WsfZone.
References WsfSimulation::GetPlatformByIndex(), WsfSimulation::GetPlatformByName(), platformPtr, and SetReference().
Referenced by WsfPathFinder::FindClosestValidPoint(), WsfNavigationMesh::GetCellZoneInteraction(), ZoneUtils::GetClosestPointInZone(), ZoneUtils::GetDistanceFromPointToZone(), ZoneUtils::isProjectedInsideZone2Points(), and UT_DEFINE_SCRIPT_METHOD().
|
inline |
Referenced by WsfZoneRouteFinder::AvoidZone().
|
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'.
| aInput | a reference to a UtInput object. |
| UtInput::ExceptionBase | (or an object derived from it) if the command was recognized but contains some sort of error. |
Reimplemented from WsfZone.
References cCIRCULAR, cELLIPTICAL, cINTERNAL, cNO_SHAPE, cPOLYGONAL, cSPHERICAL, WsfZone::cUNSPECIFIED, WsfScenario::FindType(), WsfScenario::FromInput(), WsfZone::mMaxAlt, WsfZone::mMinAlt, WsfZone::mModifierList, WsfZone::ProcessInput(), success, and WsfZoneDefinition().
|
overridevirtual |
return the geopoint of the reference point
Implements WsfZone.
Referenced by ZoneUtils::GetZoneCentroid(), and UT_DEFINE_SCRIPT_METHOD().
| void WsfZoneDefinition::SetAltBounds | ( | double | aMinAlt, |
| double | aMaxAlt ) |
Set the altitude bounds of the zone shape.
| aMinAlt | the minimum altitude limit of the zone shape. |
| aMaxAlt | the maximum altitude limit of the zone shape. |
References WsfZone::cUNSPECIFIED, WsfZone::mIsInitialized, WsfZone::mMaxAlt, and WsfZone::mMinAlt.
| void WsfZoneDefinition::SetAngleBounds | ( | double | aStartAngle, |
| double | aStopAngle ) |
Set the radial angle bounds of the zone shape.
| aStartAngle | the minimum radial angle limit of the zone shape. |
| aStopAngle | the maximum radial angle limit of the zone shape. |
References WsfZone::cUNSPECIFIED, and WsfZone::mIsInitialized.
| void WsfZoneDefinition::SetEllipticalAxes | ( | double | aLatAxisLen, |
| double | aLonAxisLen ) |
Set the elliptical axes of the zone shape.
| aLatAxisLen | the latitude axis of an elliptical zone shape. |
| aLonAxisLen | the longitude axis of an elliptical zone shape. |
References WsfZone::mIsInitialized.
|
inline |
Referenced by WsfCodedZone::ProcessInput(), and WsfCodedZone::WsfCodedZone().
| void WsfZoneDefinition::SetPolyPoints | ( | const std::vector< WsfGeoPoint > & | aPoints | ) |
Set the points / vertices of a polygonal zone shape.
| aPoints | the points (in clockwise order) of a polyognal zone shape. |
References WsfZone::cHUGE, cINTERNAL, cPOLYGONAL, WsfZone::cSMALL, WsfZone::cUNSPECIFIED, WsfZone::mIsInitialized, WsfZone::mMaxX, WsfZone::mMaxY, WsfZone::mMinX, and WsfZone::mMinY.
Referenced by UT_DEFINE_SCRIPT_METHOD().
| void WsfZoneDefinition::SetPolyPointsRelative | ( | const std::vector< UtVec3d > & | aPoints | ) |
References WsfZone::cHUGE, cOBSERVER, WsfZone::cSMALL, WsfZone::mIsInitialized, WsfZone::mMaxX, WsfZone::mMaxY, WsfZone::mMinX, and WsfZone::mMinY.
| void WsfZoneDefinition::SetRadialBounds | ( | double | aMinRadius, |
| double | aMaxRadius ) |
Set the radial range bounds of the zone shape.
| aMinRadius | the minimum radial range limit of the zone shape. |
| aMaxRadius | the maximum radial range limit of the zone shape. |
References WsfZone::cUNSPECIFIED, and WsfZone::mIsInitialized.
Referenced by WsfZoneReference::Initialize().
| void WsfZoneDefinition::SetReference | ( | const WsfGeoPoint & | aReference, |
| double | aReferenceHeading ) |
Set the geometric reference point for the zone.
Set the geometric reference point for the zone. (There are 4 different forms of the same method.)
| aReference | the geopoint where the zone will be placed. |
| aReferenceHeading | the new heading at which the zone will be oriented. |
References cINTERNAL, WsfGeoPoint::GetLat(), WsfGeoPoint::GetLon(), and SetReference().
| void WsfZoneDefinition::SetReference | ( | double | aReferenceLat, |
| double | aReferenceLon, | ||
| double | aReferenceHeading ) |
Set the geodetic reference point for the zone.
Set the geometric reference point for the zone. (There are 4 different forms of the same method.)
| aReferenceLat | the latitude at which the zone will be placed. |
| aReferenceLon | the longitude at which the zone will be placed. |
| aReferenceHeading | the new heading at which the zone will be oriented. |
References cINTERNAL, and SetReference().
| void WsfZoneDefinition::SetReference | ( | double | aReferenceWCS[3], |
| double | aReferenceHeading ) |
Set the geometric reference point for the zone.
Set the geometric reference point for the zone. (There are 4 different forms of the same method.)
| aReferenceWCS | the world coordinates where the zone will be placed. |
| aReferenceHeading | the new heading at which the zone will be oriented. |
References cINTERNAL, and SetReference().
| void WsfZoneDefinition::SetReference | ( | UtEntity & | aReference | ) |
Set the geometric reference point for the zone.
Set the geometric reference point for the zone. (There are 4 different forms of the same method.)
| aReference | the UtEntity at a location where the zone will be placed. |
References cINTERNAL, and SetReference().
Referenced by PointIsInside(), SetReference(), SetReference(), SetReference(), SetReference(), and UpdateReference().
| void WsfZoneDefinition::SetRelativeType | ( | RelativeToType | aType | ) |
Set the relative type of the zone, which specifies it's relative or fixed location.
| aType | the new enumerated relative type of the zone. |
References WsfZone::mIsInitialized.
| void WsfZoneDefinition::SetShapeType | ( | ShapeType | aType | ) |
Set the shape type of the zone.
| aType | the new enumerated shape type of the zone. |
References WsfZone::mIsInitialized.
Referenced by WsfZoneReference::Initialize(), WsfCodedZone::ProcessInput(), and WsfCodedZone::WsfCodedZone().
| void WsfZoneDefinition::UpdateReference | ( | const WsfSimulation & | aSimulation | ) |
Update the geometric reference point for the zone from the simulation.
Update the relevant reference platform for the zone from the simulation.
| aSimulation | A reference to the simulation object. |
References WsfZone::cUNSPECIFIED, WsfSimulation::GetPlatformByIndex(), WsfSimulation::GetPlatformByName(), platformPtr, and SetReference().
Referenced by Draw(), and UT_DEFINE_SCRIPT_METHOD().
| void WsfZoneDefinition::VerticesIn | ( | double | aMinX, |
| double | aMinY, | ||
| double | aMaxX, | ||
| double | aMaxY, | ||
| std::vector< Point > & | aPointsVector ) const |
References GetPoints().
| bool WsfZoneDefinition::WithinPolygonSides | ( | const double | aXorLatValue, |
| const double | aYorLonValue ) const |