![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2009 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: DtCigiIntersectionHandler.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 00012 00013 #ifndef DtCigiIntersectionHandler_H_ 00014 #define DtCigiIntersectionHandler_H_ 00015 00016 #include <vrvCigi/vrvCigi.h> 00017 00018 #include <vrvCore/DtUniqueID.h> 00019 00020 #include <vrvUtil/DtSignalConnectionManager.h> 00021 00022 class DtVector; 00023 00024 namespace makVrv 00025 { 00026 class DtDe; 00027 class DtCigiDriver; 00028 class DtCigiConnection; 00029 00036 class DT_DLL_VRVCIGI DtCigiIntersectionHandler 00037 { 00038 public: 00040 DtCigiIntersectionHandler(DtDe& de, DtCigiDriver& driver, 00041 DtCigiConnection& connection, bool usingThread); 00042 00044 virtual ~DtCigiIntersectionHandler(); 00045 00046 protected: 00049 virtual void slot_onHatHotRequest(DtUniqueID entityId, 00050 const DtVector& localPosition, unsigned int hotId, 00051 bool hatRequested, unsigned int lastHostFrameNumber); 00052 00066 virtual void performHatHotRequest(DtUniqueID entityId, 00067 const DtVector& localPosition, unsigned int hotId, 00068 bool hatRequested, unsigned int lastHostFrameNumber); 00069 00072 virtual void slot_onLineOfSightRequest(DtUniqueID srcId, 00073 const DtVector& srcLocation, DtUniqueID dstId, 00074 const DtVector& dstLocation, int losId, int hostFrame); 00075 00091 virtual void performLineOfSightRequest(DtUniqueID srcId, 00092 const DtVector& srcLocation, DtUniqueID dstId, 00093 const DtVector& dstLocation, int losId, int hostFrame); 00094 00101 virtual void setDatabaseCoordinateFromEntity(DtUniqueID entity, 00102 const DtVector& entityCoord, DtVector& databaseCoord); 00103 00108 virtual double groundHeight(const DtVector& currentLocal, bool& foundIntersection); 00109 00110 protected: 00111 DtDe& myDe; 00112 DtCigiDriver& myDriver; 00113 DtSignalConnectionManager myConnections; 00114 bool myUseThreadFlag; 00115 }; 00116 } 00117 00118 #endif