VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiIntersectionHandler.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCigi/vrvCigi.h>
15 
16 #include <vrvCore/DtUniqueID.h>
17 #include <vrvCore/DtIntersector.h>
18 
21 
22 #include <matrix/vlVector.h>
23 #include <matrix/geodeticCoord.h>
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtCigiConnection;
29  class DtCigiLosRequest;
30  class DtCigiLosBasicResponse;
31  class DtCigiLosExtendedResponse;
32  class DtIntersectorResult;
33  class DtIntersectorsContainer;
34  class DtCoordinateSystem;
35 
43  {
44  public:
46 
48  virtual ~DtCigiIntersectionHandler();
49 
50  public:
51  // Properties for CIGI intersectors
53  {
55  : myEnableWaveIntersections( false )
56  , myMaxWaveIntersectionCount( -1 )
57  , myWaveIntersectionCount( 0 )
58  , myNodesToIntersect( DtIntersector::AllNodes )
59  {
60  };
61 
62  int myMaxWaveIntersectionCount;
66  };
67 
80  virtual void setEnableDynamicWaveIntersections( int intersectionTypeToApplyTo, bool onOff, int numberOfIntersections );
81 
87  virtual void slot_renderSetEnableDynamicWaveIntersections( int intersectionTypeToApplyTo, bool onOff, int numberOfIntersections );
88 
90  virtual void setHatHotWaveIntersectionProps( DtCigiIntersectorProperties hatHotConfig );
91  virtual const DtCigiIntersectorProperties& hatHotIntersectorProps() const;
92  virtual void setLosWaveIntersectionProps( DtCigiIntersectorProperties losConfig );
93  virtual const DtCigiIntersectorProperties& losIntersectorProps() const;
94  virtual void setCollisionWaveIntersectionProps( DtCigiIntersectorProperties collisionConfig );
95  virtual const DtCigiIntersectorProperties& collisionIntersectorProps() const;
97  protected:
100 
103  virtual void slot_onHatHotRequest( DtHatHotResponder::DtHatHotRequestData* request, bool takeOwnership );
104 
109  virtual void performHatHotRequest( DtHatHotResponder::DtHatHotRequestData* request );
110 
113  virtual void slot_lineOfSightCheckRequest(DtCigiLosRequest* request, bool takeOwnership);
114 
119  virtual void performLineOfSightRequest(DtCigiLosRequest* request );
120 
124  virtual void slot_onCollisionSegmentCheckRequest( DtCollisionResponder::DtCollisionSegmentDefinitionData* request);
125 
130  virtual void performCollisionSegmentRequest( DtCollisionResponder::DtCollisionSegmentDefinitionData* request );
131 
138  virtual void setDatabaseCoordinateFromEntity(DtUniqueID entity,
139  const DtVector& entityCoord, DtVector& databaseCoord);
140 
146  virtual void setEntityCoordinateFromDatabase(DtUniqueID entity,
147  const DtVector& databaseCoord, DtVector& entityCoord);
148 
150  virtual void setGeodeticCoordinateFromDatabase(const DtVector& from,
151  DtGeodeticCoord& to);
152 
156  virtual void getNormalAzAndEl(const DtVector& databaseCoord, const DtVector& normal,
157  float& normalAz, float& normalEl);
158 
163  virtual double groundHeight(const DtVector& currentLocal, bool& foundIntersection);
164 
172  virtual double groundHeightExtended( const DtVector& currentLocal, bool& foundIntersection,
173  float& normalAzimuth, float& normalElevation, int& elementType );
174 
179  virtual void generateLosBasicResponse(DtCigiLosBasicResponse* losResponse);
180 
185  virtual void generateLosExtendedResponse(DtCigiLosExtendedResponse* losResponse);
186 
190  virtual void generateHatHotResponse( const DtHatHotResponder::DtHatHotResponseData* hatHotReponse );
191 
195  virtual void generateCollisionSegmentResponse( DtCollisionResponder::DtCollisionSegmentResponseData* collResponse);
196 
198  virtual void slot_coordinateSystemChanged();
199  protected:
200  virtual DtCigiLosBasicResponse* createBasicResponse(const DtVector& start, DtIntersectorResult& result,
201  unsigned int respCount, DtCigiLosRequest* req);
202 
203  virtual DtCigiLosBasicResponse* createBasicNoIsectResponse(DtCigiLosRequest* req);
204 
205  virtual DtCigiLosExtendedResponse* createExtendedResponse(const DtVector& start, DtIntersectorResult& result,
206  unsigned int respCount, DtCigiLosRequest* req);
207 
208  virtual DtCigiLosExtendedResponse* createExtendedNoIsectResponse(DtCigiLosRequest* req);
209 
211  virtual bool shouldUseWaveIntersections( DtCigiIntersectorProperties& props );
212 
214  virtual void incrementWaveIntersectionCount( DtCigiIntersectorProperties& props );
215 
216  protected:
220 
222 
226 
230  };
231 
235  {
236  public:
239 
242 
244  static DtCigiIntersectionHandlerCreator& instance( DtDe& de );
245 
247  virtual DtCigiIntersectionHandler* create( DtCigiConnection& connection ) const;
248 
249  protected:
251  };
252 }
253 
IntersectProperties
The IntersectProperties enum is a flag set that indicates the types of nodes to be considered for int...
Definition: DtIntersector.h:32
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Definition: DtCigiIntersectionHandler.h:52
This class handles all of the intersection processing for HAT/HOT, LOS , and Collision segment reques...
Definition: DtCigiIntersectionHandler.h:42
Creator class for the DtCigiIntersectionHandler.
Definition: DtCigiIntersectionHandler.h:234
DtIntersector is an abstract class that provides the interface for requesting intersections with the ...
Definition: DtIntersector.h:26
int myWaveIntersectionCount
Definition: DtCigiIntersectionHandler.h:63
Utility class that contains intersectors for all model sets in the system (3d, xr, 2d) Use an object of this class when all models sets can be possibly needed. When you know which model set you need, you can just use the DtIntersectorCreator to create an intersector for a model set Models sets corresponding to 3d, xr and 2d are created by default (these correspond to values of 0, 1 and 5) Additional model sets can be registered with DtIntersectorsContainer::registerModelSet.
Definition: DtIntersectorsContainer.h:37
Descriptor for a single intersection result.
Definition: DtIntersectorResult.h:21
DtIntersector::IntersectProperties myNodesToIntersect
Definition: DtCigiIntersectionHandler.h:64
DtDe & myDe
Definition: DtCigiIntersectionHandler.h:250
DtCigiIntersectorProperties myHatHotIntersectorProps
Definition: DtCigiIntersectionHandler.h:227
Struct for HatHotResponseData. Unused in this class, used by intersection handler and the networkIO...
Definition: DtHatHotResponder.h:72
Contains DLL export macros.
A DtCigiIntersectionHandler processes CIGI LOS Requests and packages the results into instances of th...
Definition: DtCigiLosExtendedResponse.h:29
Struct for Cigi Collision Request Data.
Definition: DtCollisionResponder.h:62
Contains makVrv::DtCollisionResponder &amp; creator class.
Contains makVrv::DtVirtualBaseClass class.
Contains makVrv:DtIntersector class.
DtCigiConnection & myCigiConnection
Definition: DtCigiIntersectionHandler.h:218
Struct for Collision Response Data.
Definition: DtCollisionResponder.h:78
bool myEnableWaveIntersections
Definition: DtCigiIntersectionHandler.h:65
Struct storage for the HatHotRequest Data Passed to the DtCigiIntersectionHandler for processing...
Definition: DtHatHotResponder.h:59
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtCigiIntersectorProperties myCollisionIntersectorProps
Definition: DtCigiIntersectionHandler.h:229
Contains makVrv::DtHatHotResponder class.
A DtCigiIntersectionHandler processes CIGI LOS Requests and packages the results into instances of th...
Definition: DtCigiLosBasicResponse.h:27
This class is responsible for the actual processing of CIGI data. This holds the entity visualizer...
Definition: DtCigiConnection.h:58
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtSignalConnectionManager myConnections
Definition: DtCigiIntersectionHandler.h:219
DtCigiIntersectorProperties()
Definition: DtCigiIntersectionHandler.h:54
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
DtCoordinateSystem * myCoordinateSystem
local clone of the system wide coordinate system. for thread safety.
Definition: DtCigiIntersectionHandler.h:225
DtCigiIntersectorProperties myLosIntersectorProps
Definition: DtCigiIntersectionHandler.h:228
Base class to provide boost signal/slot management.
A DtLosResponder processes CIGI LOS Segment Request and LOS Vector Request messages and packages them...
Definition: DtCigiLosRequest.h:26
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
#define DT_DLL_VRVCIGI
Definition: vrvCigi.h:19
DtIntersectorsContainer * myIntersectors
Definition: DtCigiIntersectionHandler.h:221
DtDe & myDe
Definition: DtCigiIntersectionHandler.h:217

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)