#include <CigiBasePositionReq.h>
Inheritance diagram for CigiBasePositionReq:
Definition at line 73 of file CigiBasePositionReq.h.
The enumeration for the CigiBasePositionReq Group
Definition at line 106 of file CigiBasePositionReq.h.
00107 { 00108 Geodetic=0, 00109 ParentEntity=1, 00110 Submodel=2 00111 };
The enumeration for the CigiBasePositionReq Group
Definition at line 94 of file CigiBasePositionReq.h.
00095 { 00096 Entity=0, 00097 ArtPart=1, 00098 View=2, 00099 ViewGrp=3, 00100 MotionTracker=4 00101 };
The enumeration for the CigiBasePositionReq Group
Definition at line 85 of file CigiBasePositionReq.h.
00086 { 00087 OneShot=0, 00088 Continuous=1 00089 };
CigiBasePositionReq::CigiBasePositionReq | ( | ) |
CigiBasePositionReq::~CigiBasePositionReq | ( | ) | [virtual] |
Cigi_uint8 CigiBasePositionReq::GetArtPartID | ( | void | ) | const [inline] |
Gets the ArtPartID value.
Definition at line 214 of file CigiBasePositionReq.h.
References ArtPartID.
00214 { return(ArtPartID); }
int CigiBasePositionReq::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 85 of file CigiBasePositionReq.cpp.
References CIGI_POSITION_REQ_PACKET_ID_V3, CIGI_SUCCESS, CigiVersionID::CigiMajorVersion, CigiCnvtInfoType::CigiCnvtInfoStruct::CnvtPacketID, CigiCnvtInfoType::CigiCnvtInfoStruct::ProcID, CigiProcessType::ProcNone, and CigiProcessType::ProcStd.
00087 { 00088 if(CnvtVersion.CigiMajorVersion < 3) 00089 { 00090 CnvtInfo.ProcID = CigiProcessType::ProcNone; 00091 CnvtInfo.CnvtPacketID = 0; 00092 } 00093 else 00094 { 00095 CnvtInfo.ProcID = CigiProcessType::ProcStd; 00096 CnvtInfo.CnvtPacketID = CIGI_POSITION_REQ_PACKET_ID_V3; 00097 } 00098 00099 return(CIGI_SUCCESS); 00100 }
CoordSysGrp CigiBasePositionReq::GetCoordSys | ( | void | ) | const [inline] |
Gets the CoordSys value.
Definition at line 275 of file CigiBasePositionReq.h.
References CoordSys.
00275 { return(CoordSys); }
ObjectClassGrp CigiBasePositionReq::GetObjectClass | ( | void | ) | const [inline] |
Gets the ObjectClass value.
Definition at line 255 of file CigiBasePositionReq.h.
References ObjectClass.
00255 { return(ObjectClass); }
Cigi_uint16 CigiBasePositionReq::GetObjectID | ( | void | ) | const [inline] |
Gets the ObjectID value.
Definition at line 193 of file CigiBasePositionReq.h.
References ObjectID.
00193 { return(ObjectID); }
UpdateModeGrp CigiBasePositionReq::GetUpdateMode | ( | void | ) | const [inline] |
Gets the UpdateMode value.
Definition at line 233 of file CigiBasePositionReq.h.
References UpdateMode.
00233 { return(UpdateMode); }
virtual int CigiBasePositionReq::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 CigiPositionReqV3.
int CigiBasePositionReq::SetArtPartID | ( | const Cigi_uint8 | ArtPartIDIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the ArtPartID with bound checking control
ArtPartIDIn | - Articulated Part ID | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 205 of file CigiBasePositionReq.h.
References ArtPartID, and CIGI_SUCCESS.
00206 { 00207 ArtPartID = ArtPartIDIn; 00208 return(CIGI_SUCCESS); 00209 }
int CigiBasePositionReq::SetCoordSys | ( | const CoordSysGrp | CoordSysIn, | |
bool | bndchk = true | |||
) |
Sets the CoordSys with bound checking control
CoordSysIn | - Coordinate system used Geodetic=0 ParentEntity=1 Submodel=2 | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 155 of file CigiBasePositionReq.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and CoordSys.
00156 { 00157 00158 #ifndef CIGI_NO_BND_CHK 00159 if(bndchk && ((CoordSysIn < 0)||(CoordSysIn > 2))) 00160 { 00161 #ifndef CIGI_NO_EXCEPT 00162 throw CigiValueOutOfRangeException("CoordSys",(CoordSysGrp)CoordSysIn,0,2); 00163 #endif 00164 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00165 } 00166 #endif 00167 00168 CoordSys = CoordSysIn; 00169 return(CIGI_SUCCESS); 00170 00171 }
int CigiBasePositionReq::SetObjectClass | ( | const ObjectClassGrp | ObjectClassIn, | |
bool | bndchk = true | |||
) |
Sets the ObjectClass with bound checking control
ObjectClassIn | - Type of Object Entity=0 ArtPart=1 View=3 ViewGrp=4 MotionTracker=5 | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 133 of file CigiBasePositionReq.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and ObjectClass.
00134 { 00135 00136 #ifndef CIGI_NO_BND_CHK 00137 if(bndchk && ((ObjectClassIn < 0)||(ObjectClassIn > 5))) 00138 { 00139 #ifndef CIGI_NO_EXCEPT 00140 throw CigiValueOutOfRangeException("ObjectClass",(ObjectClassGrp)ObjectClassIn,0,5); 00141 #endif 00142 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00143 } 00144 #endif 00145 00146 ObjectClass = ObjectClassIn; 00147 return(CIGI_SUCCESS); 00148 00149 }
int CigiBasePositionReq::SetObjectID | ( | const Cigi_uint16 | ObjectIDIn, | |
bool | bndchk = true | |||
) | [inline] |
Sets the ObjectID with bound checking control
ObjectIDIn | - Object ID | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 184 of file CigiBasePositionReq.h.
References CIGI_SUCCESS, and ObjectID.
00185 { 00186 ObjectID = ObjectIDIn; 00187 return(CIGI_SUCCESS); 00188 }
int CigiBasePositionReq::SetUpdateMode | ( | const UpdateModeGrp | UpdateModeIn, | |
bool | bndchk = true | |||
) |
Sets the UpdateMode with bound checking control
UpdateModeIn | - Update mode OneShot=0 Continuous=1 | |
bndchk | - Enables (true) or disables (false) bounds checking. |
Definition at line 111 of file CigiBasePositionReq.cpp.
References CIGI_ERROR_VALUE_OUT_OF_RANGE, CIGI_SUCCESS, and UpdateMode.
00112 { 00113 00114 #ifndef CIGI_NO_BND_CHK 00115 if(bndchk && ((UpdateModeIn < 0)||(UpdateModeIn > 1))) 00116 { 00117 #ifndef CIGI_NO_EXCEPT 00118 throw CigiValueOutOfRangeException("UpdateMode",(UpdateModeGrp)UpdateModeIn,0,1); 00119 #endif 00120 return(CIGI_ERROR_VALUE_OUT_OF_RANGE); 00121 } 00122 #endif 00123 00124 UpdateMode = UpdateModeIn; 00125 return(CIGI_SUCCESS); 00126 00127 }
virtual int CigiBasePositionReq::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 CigiPositionReqV3.
friend class CigiPositionReqV1 [friend] |
Definition at line 76 of file CigiBasePositionReq.h.
friend class CigiPositionReqV2 [friend] |
Definition at line 77 of file CigiBasePositionReq.h.
friend class CigiPositionReqV3 [friend] |
Definition at line 78 of file CigiBasePositionReq.h.
Cigi_uint8 CigiBasePositionReq::ArtPartID [protected] |
ArtPartID
Articulated Part ID
Definition at line 293 of file CigiBasePositionReq.h.
Referenced by CigiPositionReqV3::CigiPositionReqV3(), GetArtPartID(), CigiPositionReqV3::Pack(), SetArtPartID(), and CigiPositionReqV3::Unpack().
CoordSysGrp CigiBasePositionReq::CoordSys [protected] |
CoordSys
Coordinate System used. 0-Geodetic
1-ParentEntity
2-Submodel
Definition at line 324 of file CigiBasePositionReq.h.
Referenced by CigiPositionReqV3::CigiPositionReqV3(), GetCoordSys(), CigiPositionReqV3::Pack(), SetCoordSys(), and CigiPositionReqV3::Unpack().
ObjectClassGrp CigiBasePositionReq::ObjectClass [protected] |
ObjectClass
Type of object
0-Entity
1-ArtPart
3-View
4-ViewGrp
5-MotionTracker
Definition at line 314 of file CigiBasePositionReq.h.
Referenced by CigiPositionReqV3::CigiPositionReqV3(), GetObjectClass(), CigiPositionReqV3::Pack(), SetObjectClass(), and CigiPositionReqV3::Unpack().
Cigi_uint16 CigiBasePositionReq::ObjectID [protected] |
ObjectID
Object ID
Definition at line 287 of file CigiBasePositionReq.h.
Referenced by CigiPositionReqV3::CigiPositionReqV3(), GetObjectID(), CigiPositionReqV3::Pack(), SetObjectID(), and CigiPositionReqV3::Unpack().
UpdateModeGrp CigiBasePositionReq::UpdateMode [protected] |
UpdateMode
Update mode
0-OneShot
1-Continuous
Definition at line 302 of file CigiBasePositionReq.h.
Referenced by CigiPositionReqV3::CigiPositionReqV3(), GetUpdateMode(), CigiPositionReqV3::Pack(), SetUpdateMode(), and CigiPositionReqV3::Unpack().