VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAimableAttachableUpdater.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>
14 #include <vrvCore/DtUniqueID.h>
15 
17 
18 #include <matrix/vlVector.h>
19 
20 namespace makVrv
21 {
22  class DtCoordinateSystem;
23  class DtDe;
24 
30  {
31  public:
32 
35 
37  virtual ~DtAimableAttachableUpdater();
38 
39  public:
42  DtAimableAttachableUpdater() = delete;
45  DtAimableAttachableUpdater& operator=( const DtAimableAttachableUpdater& ) = delete;
46  DtAimableAttachableUpdater& operator=( const DtAimableAttachableUpdater&& ) = delete;
48 
49  public:
51  virtual void update( double simTime );
52 
54  virtual void setTargetObject( DtElementID targetId );
55 
57  virtual void setTargetLocation( double x, double y, double z );
58  virtual void setTargetLocationOffset(const DtVector& offset);
59 
62  virtual void setDesiredOrientationOffset( double psi, double theta, double phi );
63  protected:
65  virtual void slot_coordinateSystemChanged();
66  virtual void slot_targetSceneObjectToBeDeleted(const DtUniqueID& id);
67  virtual void convertTargetLocationOffset(DtVector& targetPosition, DtTaitBryan& targetOrientation, DtVector& offset);
68  protected:
71  DtVector myTargetLocation;
74 
78 
79  // When the class is destructed, the scene object may or may not
80  // exist. Using a separate connection variable makes it possible to
81  // 'disconnect' even if the scene object has been deleted.
82  boost::signalslib::connection myTargetSceneObjectConnection;
83 
86  };
87 
88 }
A DtAimableAttachableUpdater is used to update a scene object that can be positioned and oriented in ...
Definition: DtAimableAttachableUpdater.h:29
boost::signalslib::connection myTargetSceneObjectConnection
Definition: DtAimableAttachableUpdater.h:82
DtVector myTargetLocationOffset
Definition: DtAimableAttachableUpdater.h:72
Contains the makVrv::DtAttachableUpdater class declaration.
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
DtCoordinateSystem * myCoordinateSystem
local clone of the system wide coordinate system. for thread safety.
Definition: DtAimableAttachableUpdater.h:77
A DtAttachableUpdater updates a scene an object that can be positioned in the scene by (possibly) att...
Definition: DtAttachableUpdater.h:35
bool myIsTargetingLocation
Definition: DtAimableAttachableUpdater.h:85
bool myIsTargetingObject
Definition: DtAimableAttachableUpdater.h:84
DtElementID myTargetId
Definition: DtAimableAttachableUpdater.h:69
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtSceneObject * myTargetSceneObject
Definition: DtAimableAttachableUpdater.h:70
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Base class to provide boost signal/slot management.
DtVector myTargetLocation
Definition: DtAimableAttachableUpdater.h:71
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
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
voidpf uLong offset
Definition: ioapi.h:42
DtTaitBryan myDesiredOrientationOffset
Definition: DtAimableAttachableUpdater.h:73
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)