VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIntersectorAttachableUpdater.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 <vrvCore/vrvCore.h>
15 
16 #include <matrix/vlVector.h>
17 #include <matrix/vlTaitBryan.h>
18 
19 #include <unordered_map>
20 
21 namespace makVrv
22 {
23  class DtIntersectorsContainer;
24 
32  {
33  public:
34 
37 
40 
47 
50  virtual void update( double simTime ) override;
51 
54  virtual void setIntersectorEnabled( bool enabled );
55 
58  virtual void setModelSet( DtModelSetId modelSet );
59 
62  virtual void setSourceElementId( DtElementID sourceElementId );
63 
64  protected:
65 
68  virtual void setVertexPosition( int vtx, const DtVector& position ) override;
69 
72  virtual void setVertexOrientation( int vtx, const DtTaitBryan& orientation ) override;
76  virtual void runIntersectorAndClip();
77 
80  virtual void applyPendingVertices();
81 
82  protected:
83 
88 
89  std::unordered_map<int, DtVector> myPendingPositions;
90  std::unordered_map<int, DtTaitBryan> myPendingOrientations;
91  };
92 }
DtModelSetId myModelSet
Definition: DtIntersectorAttachableUpdater.h:86
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
A DtIntersectorAttachableUpdater extends DtAttachableUpdater with scene intersection support...
Definition: DtIntersectorAttachableUpdater.h:31
Contains the makVrv::DtAttachableUpdater class declaration.
bool myIntersectorEnabled
Definition: DtIntersectorAttachableUpdater.h:85
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
std::unordered_map< int, DtVector > myPendingPositions
Definition: DtIntersectorAttachableUpdater.h:89
DtIntersectorsContainer * myIntersectors
Definition: DtIntersectorAttachableUpdater.h:84
A DtAttachableUpdater updates a scene an object that can be positioned in the scene by (possibly) att...
Definition: DtAttachableUpdater.h:35
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
std::unordered_map< int, DtTaitBryan > myPendingOrientations
Definition: DtIntersectorAttachableUpdater.h:90
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtElementID mySourceElementId
Definition: DtIntersectorAttachableUpdater.h:87
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
DtModelSetId
Definition: DtModelSetEnums.h:19
Contains various enum classes relating to model sets.
Contains DLL export macros.

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)