#include <CigiBaseLosVectReq.h>
Inheritance diagram for CigiBaseLosVectReq:
Public Types | |
Basic = 0 | |
Extended = 1 | |
Geodetic = 0 | |
Entity = 1 | |
enum | ReqTypeGrp { Basic = 0, Extended = 1 } |
enum | CoordSysGrp { Geodetic = 0, Entity = 1 } |
Public Member Functions | |
CigiBaseLosVectReq () | |
virtual | ~CigiBaseLosVectReq () |
virtual int | Pack (CigiBasePacket *Base, Cigi_uint8 *Buff, void *Spec) const =0 |
virtual int | Unpack (Cigi_uint8 *Buff, bool Swap, void *Spec)=0 |
virtual int | GetCnvt (CigiVersionID &CnvtVersion, CigiCnvtInfoType::Type &CnvtInfo) |
int | SetLosID (const Cigi_uint16 LosIDIn, bool bndchk=true) |
Cigi_uint16 | GetLosID (void) const |
int | SetVectEl (const float VectElIn, bool bndchk=true) |
float | GetVectEl (void) const |
int | SetMaxRange (const float MaxRangeIn, bool bndchk=true) |
float | GetMaxRange (void) const |
int | SetSrcLat (const double SrcLatIn, bool bndchk=true) |
double | GetSrcLat (void) const |
int | SetSrcLon (const double SrcLonIn, bool bndchk=true) |
double | GetSrcLon (void) const |
int | SetSrcAlt (const double SrcAltIn, bool bndchk=true) |
double | GetSrcAlt (void) const |
Protected Attributes | |
Cigi_uint16 | LosID |
ReqTypeGrp | ReqType |
CoordSysGrp | SrcCoordSys |
CoordSysGrp | ResponseCoordSys |
Cigi_uint8 | AlphaThresh |
Cigi_uint16 | EntityID |
float | VectAz |
float | VectEl |
float | MinRange |
float | MaxRange |
double | SrcXLat |
double | SrcYLon |
double | SrcZAlt |
Cigi_uint32 | Mask |
Cigi_uint8 | UpdatePeriod |
bool | ValidV1or2 |
Friends | |
class | CigiLosVectReqV1 |
class | CigiLosVectReqV2 |
class | CigiLosVectReqV3 |
class | CigiLosVectReqV3_2 |
Definition at line 83 of file CigiBaseLosVectReq.h.
The enumeration for the CigiBaseLosVectReq Group
Definition at line 105 of file CigiBaseLosVectReq.h.
The enumeration for the CigiBaseLosVectReq Group
Definition at line 96 of file CigiBaseLosVectReq.h.
CigiBaseLosVectReq::CigiBaseLosVectReq | ( | ) |
CigiBaseLosVectReq::~CigiBaseLosVectReq | ( | ) | [virtual] |
int CigiBaseLosVectReq::GetCnvt | ( | CigiVersionID & | CnvtVersion, | |
CigiCnvtInfoType::Type & | CnvtInfo | |||
) | [virtual] |
A virtual Conversion Information function. This function provides conversion information for this packet.
CnvtVersion | - The CIGI version to which this packet is being converted. | |
CnvtInfo | - The information needed for conversion |
Reimplemented from CigiBasePacket.
Definition at line 84 of file CigiBaseLosVectReq.cpp.
References CIGI_LOS_VECT_REQ_PACKET_ID_V2, CIGI_LOS_VECT_REQ_PACKET_ID_V3, CIGI_SUCCESS, CigiVersionID::CigiMajorVersion, CigiCnvtInfoType::CigiCnvtInfoStruct::CnvtPacketID, CigiCnvtInfoType::CigiCnvtInfoStruct::ProcID, and CigiProcessType::ProcStd.
00086 { 00087 CnvtInfo.ProcID = CigiProcessType::ProcStd; 00088 00089 // Note: CIGI_LOS_VECT_REQ_PACKET_ID_V1 & 00090 // CIGI_LOS_VECT_REQ_PACKET_ID_V2 are the same 00091 if(CnvtVersion.CigiMajorVersion < 3) 00092 CnvtInfo.CnvtPacketID = CIGI_LOS_VECT_REQ_PACKET_ID_V2; 00093 else 00094 CnvtInfo.CnvtPacketID = CIGI_LOS_VECT_REQ_PACKET_ID_V3; 00095 00096 return(CIGI_SUCCESS); 00097 }
Cigi_uint16 CigiBaseLosVectReq::GetLosID | ( | void | ) | const [inline] |
Gets the LosID value.
Definition at line 191 of file CigiBaseLosVectReq.h.
References LosID.
00191 { return(LosID); }
float CigiBaseLosVectReq::GetMaxRange | ( | void | ) | const [inline] |
Gets the MaxRange value.
Definition at line 229 of file CigiBaseLosVectReq.h.
References MaxRange.
00229 { return(MaxRange); }
double CigiBaseLosVectReq::GetSrcAlt | ( | void | ) | const [inline] |
Gets the SrcAlt value.
Definition at line 284 of file CigiBaseLosVectReq.h.
References SrcZAlt.
00284 { return(SrcZAlt); }
double CigiBaseLosVectReq::GetSrcLat | ( | void | ) | const [inline] |
Gets the SrcLat value.
Definition at line 246 of file CigiBaseLosVectReq.h.
References SrcXLat.
00246 { return(SrcXLat); }
double CigiBaseLosVectReq::GetSrcLon | ( | void | ) | const [inline] |
Gets the SrcLon value.
Definition at line 263 of file CigiBaseLosVectReq.h.
References SrcYLon.
00263 { return(SrcYLon); }
float CigiBaseLosVectReq::GetVectEl | ( | void | ) | const [inline] |
Gets the VectEl value.
Definition at line 208 of file CigiBaseLosVectReq.h.
References VectEl.
00208 { return(VectEl); }
virtual int CigiBaseLosVectReq::Pack | ( | CigiBasePacket * | Base, | |
Cigi_uint8 * | Buff, | |||
void * | Spec | |||
) | const [pure virtual] |
A pure virtual Pack function. This function is not implemented in this class.
Base | - A pointer to the instance of the packet to be packed. (Downcast to CigiBasePacket) | |
Buff | - A pointer to the current pack point. | |
Spec | - A pointer to special data. |
Implements CigiBasePacket.
Implemented in CigiLosVectReqV1, CigiLosVectReqV2, CigiLosVectReqV3, and CigiLosVectReqV3_2.
int CigiBaseLosVectReq::SetLosID | ( | const Cigi_uint16 | LosIDIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the LosID with bound checking control
LosIDIn | - Line Of Sight ID | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 182 of file CigiBaseLosVectReq.h.
References CIGI_SUCCESS, and LosID.
00183 { 00184 LosID = LosIDIn; 00185 return(CIGI_SUCCESS); 00186 }
int CigiBaseLosVectReq::SetMaxRange | ( | const float | MaxRangeIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the MaxRange with bound checking control
MaxRangeIn | - Maximum range of the vector | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 220 of file CigiBaseLosVectReq.h.
References CIGI_SUCCESS, and MaxRange.
00221 { 00222 MaxRange = MaxRangeIn; 00223 return(CIGI_SUCCESS); 00224 }
int CigiBaseLosVectReq::SetSrcAlt | ( | const double | SrcAltIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the SrcAlt with bound checking control
SrcAltIn | - Source or Starting Point Altitude | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 275 of file CigiBaseLosVectReq.h.
References CIGI_SUCCESS, and SrcZAlt.
00276 { 00277 SrcZAlt = SrcAltIn; 00278 return(CIGI_SUCCESS); 00279 }
int CigiBaseLosVectReq::SetSrcLat | ( | const double | SrcLatIn, | |
bool | bndchk = true | |||
) |
Sets the SrcLat with bound checking control
SrcLatIn | - Source or Starting Point Latitude | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 130 of file CigiBaseLosVectReq.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and SrcXLat.
00131 { 00132 00133 #ifndef CIGI_NO_BND_CHK 00134 if(bndchk && ((SrcLatIn < -90.0)||(SrcLatIn > 90.0))) 00135 { 00136 #ifndef CIGI_NO_EXCEPT 00137 throw CigiValueOutOfRangeException("SrcLat",(double)SrcLatIn,-90.0,90.0); 00138 #endif 00139 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00140 } 00141 #endif 00142 00143 SrcXLat = SrcLatIn; 00144 return(CIGI_SUCCESS); 00145 00146 }
int CigiBaseLosVectReq::SetSrcLon | ( | const double | SrcLonIn, | |
bool | bndchk = true | |||
) |
Sets the SrcLon with bound checking control
SrcLonIn | - Source or Starting Point Longitude | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 152 of file CigiBaseLosVectReq.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and SrcYLon.
00153 { 00154 00155 #ifndef CIGI_NO_BND_CHK 00156 if(bndchk && ((SrcLonIn < -180.0)||(SrcLonIn > 180.0))) 00157 { 00158 #ifndef CIGI_NO_EXCEPT 00159 throw CigiValueOutOfRangeException("SrcLon",(double)SrcLonIn,-180.0,180.0); 00160 #endif 00161 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00162 } 00163 #endif 00164 00165 SrcYLon = SrcLonIn; 00166 return(CIGI_SUCCESS); 00167 00168 }
int CigiBaseLosVectReq::SetVectEl | ( | const float | VectElIn, | |
bool | bndchk = true | |||
) |
Sets the VectEl with bound checking control
VectElIn | - Vector Elevation | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 108 of file CigiBaseLosVectReq.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and VectEl.
00109 { 00110 00111 #ifndef CIGI_NO_BND_CHK 00112 if(bndchk && ((VectElIn < -90.0)||(VectElIn > 90.0))) 00113 { 00114 #ifndef CIGI_NO_EXCEPT 00115 throw CigiValueOutOfRangeException("VectEl",(float)VectElIn,-90.0,90.0); 00116 #endif 00117 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00118 } 00119 #endif 00120 00121 VectEl = VectElIn; 00122 return(CIGI_SUCCESS); 00123 00124 }
virtual int CigiBaseLosVectReq::Unpack | ( | Cigi_uint8 * | Buff, | |
bool | Swap, | |||
void * | Spec | |||
) | [pure virtual] |
A pure virtual Unpack function. This function is not implemented in this class.
Buff | - A pointer to the current pack point. | |
Swap | - N/A for V1 & V2 | |
Spec | - A pointer to special data. |
Implements CigiBasePacket.
Implemented in CigiLosVectReqV1, CigiLosVectReqV2, CigiLosVectReqV3, and CigiLosVectReqV3_2.
friend class CigiLosVectReqV1 [friend] |
Definition at line 86 of file CigiBaseLosVectReq.h.
friend class CigiLosVectReqV2 [friend] |
Definition at line 87 of file CigiBaseLosVectReq.h.
friend class CigiLosVectReqV3 [friend] |
Definition at line 88 of file CigiBaseLosVectReq.h.
friend class CigiLosVectReqV3_2 [friend] |
Definition at line 89 of file CigiBaseLosVectReq.h.
Cigi_uint8 CigiBaseLosVectReq::AlphaThresh [protected] |
AlphaThresh
The Lowest Alpha level that will cause a response
Definition at line 326 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV3_2::Unpack(), and CigiLosVectReqV3::Unpack().
Cigi_uint16 CigiBaseLosVectReq::EntityID [protected] |
EntityID
The ID of the originating entity.
Definition at line 332 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV3_2::Unpack(), and CigiLosVectReqV3::Unpack().
Cigi_uint16 CigiBaseLosVectReq::LosID [protected] |
LosID
Line Of Sight ID
Definition at line 296 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), GetLosID(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), SetLosID(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
Cigi_uint32 CigiBaseLosVectReq::Mask [protected] |
Mask
The mask to specify which materials cause a response to be generated when intersected.
Definition at line 391 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV3_2::Unpack(), and CigiLosVectReqV3::Unpack().
float CigiBaseLosVectReq::MaxRange [protected] |
MaxRange
The Maximum range of the LOS vector.
Definition at line 357 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), GetMaxRange(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), SetMaxRange(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
float CigiBaseLosVectReq::MinRange [protected] |
MinRange
The Minimum range of the LOS vector that will cause an intersection response.
Definition at line 351 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), and CigiLosVectReqV2::Unpack().
ReqTypeGrp CigiBaseLosVectReq::ReqType [protected] |
ReqType
0-Basic
1-Extended Requests a specific type of result
Definition at line 304 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV3_2::SetReqType(), CigiLosVectReqV3::SetReqType(), CigiLosVectReqV3_2::Unpack(), and CigiLosVectReqV3::Unpack().
CoordSysGrp CigiBaseLosVectReq::ResponseCoordSys [protected] |
ResponseCoordSys
0-Geodetic
1-Entity The Coordinate system of the response intersection point.
Definition at line 320 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV3_2::SetResponseCoordSys(), CigiLosVectReqV3::SetResponseCoordSys(), CigiLosVectReqV3_2::Unpack(), and CigiLosVectReqV3::Unpack().
CoordSysGrp CigiBaseLosVectReq::SrcCoordSys [protected] |
SrcCoordSys
0-Geodetic
1-Entity The Coordinate system of the source or starting point.
Definition at line 312 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV3_2::SetSrcCoordSys(), CigiLosVectReqV3::SetSrcCoordSys(), CigiLosVectReqV3_2::Unpack(), and CigiLosVectReqV3::Unpack().
double CigiBaseLosVectReq::SrcXLat [protected] |
SrcLat
The latitude of the starting or source point. OR The offset of the starting or source point along the X axis of the originating entity.
Definition at line 366 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), GetSrcLat(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), SetSrcLat(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
double CigiBaseLosVectReq::SrcYLon [protected] |
SrcLon
The longitude of the starting or source point. OR The offset of the starting or source point along the Y axis of the originating entity.
Definition at line 375 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), GetSrcLon(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), SetSrcLon(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
double CigiBaseLosVectReq::SrcZAlt [protected] |
SrcAlt
The altitude of the starting or source point OR The offset of the starting or source point along the Z axis of the originating entity.
Definition at line 384 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), GetSrcAlt(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), SetSrcAlt(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
Cigi_uint8 CigiBaseLosVectReq::UpdatePeriod [protected] |
UpdatePeriod
The number of frames between each LOS update from the IG. If 0 - single shot
Definition at line 398 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
bool CigiBaseLosVectReq::ValidV1or2 [protected] |
ValidV1or2
Flag specifying the data is valid for CIGI version 1 or 2
Definition at line 404 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
float CigiBaseLosVectReq::VectAz [protected] |
VectAz
The Azimuth angle of the LOS vector
Definition at line 338 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), CigiLosVectReqV3_2::SetVectAz(), CigiLosVectReqV3::SetVectAz(), CigiLosVectReqV2::SetVectAz(), CigiLosVectReqV1::SetVectAz(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().
float CigiBaseLosVectReq::VectEl [protected] |
VectEl
The Elevation angle of the LOS vector
Definition at line 344 of file CigiBaseLosVectReq.h.
Referenced by CigiLosVectReqV1::CigiLosVectReqV1(), CigiLosVectReqV2::CigiLosVectReqV2(), CigiLosVectReqV3::CigiLosVectReqV3(), CigiLosVectReqV3_2::CigiLosVectReqV3_2(), GetVectEl(), CigiLosVectReqV3_2::Pack(), CigiLosVectReqV3::Pack(), CigiLosVectReqV2::Pack(), CigiLosVectReqV1::Pack(), SetVectEl(), CigiLosVectReqV3_2::Unpack(), CigiLosVectReqV3::Unpack(), CigiLosVectReqV2::Unpack(), and CigiLosVectReqV1::Unpack().