VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
endGestureInterHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
15 #include <vl/interactionWithEncDec.h>
16 
17 class DtExerciseConn;
18 class DtEndGestureInter;
19 
21 typedef void (*DtEndGestureInterCb) (DtEndGestureInter* inter,
22  void* usr);
23 
28 {
29 public:
30 
33 
35  virtual ~DtEndGestureInter() override;
36 
39 
41  DtEndGestureInter& operator=(const DtEndGestureInter& orig);
42 
44  virtual void printData() const override;
45 
47  virtual void printDataToStream(std::ostream &stream) const override;
48 
49 
51  virtual void setTarget(const DtString& val);
52 
54  virtual const DtString& target() const;
55 
57  virtual void setGestureName(const DtString& val);
58 
60  virtual const DtString& gestureName() const;
61 
62 
64  virtual void setRampdownTime(float val);
65 
67  virtual float rampdownTime() const;
68 
69 
71  virtual const char *name() const override { return "DtEndGestureInter"; }
72 
73 public:
74 
77  static DtInteraction* create();
78 
81  static void addCallback(DtExerciseConn* conn,
82  DtEndGestureInterCb cb, void* usr,
83  DtDDMRegionSP region = DtDDMRegionSP());
84  static void removeCallback(DtExerciseConn* conn,
85  DtEndGestureInterCb cb, void* usr,
86  DtDDMRegionSP region = DtDDMRegionSP());
87 
88 protected:
89  virtual const char *
90  interactionClassToUse(DtExerciseConn *exConn) const override;
91 
92  virtual DtInteractionDecoder *
93  createDecoder(DtExerciseConn *exConn) const override;
94 
95  virtual DtInteractionEncoder *
96  createEncoder(DtExerciseConn *exConn) const override;
97 
98 
99 protected:
103 
104 };
105 
106 
107 
108 #endif
Instances of DtEndGestureInter are used to store state data for DIGuyInteraction.EndGesture interacti...
Definition: endGestureInterHLA.h:27
float myRampdownTime
Definition: endGestureInterHLA.h:102
DtString myGestureName
Definition: endGestureInterHLA.h:101
DtString myTarget
Definition: endGestureInterHLA.h:100
voidpf stream
Definition: ioapi.h:39
void(* DtEndGestureInterCb)(DtEndGestureInter *inter, void *usr)
DtEndGestureInter callback function signature.
Definition: endGestureInterHLA.h:21
virtual const char * name() const override
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Definition: endGestureInterHLA.h:71
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)