VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
endGestureInterHLA.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 #if DtHLA
13 
14 //#include <vl/dllExport.h>
16 
17 class DtExerciseConn;
18 class DtEndGestureInter;
19 
21 typedef void (*DtEndGestureInterCb) (DtEndGestureInter* inter,
22  void* usr);
23 
27 class DT_DLL_VL DtEndGestureInter : public DtInteractionWithEncDec
28 {
29 public:
30 
32  DtEndGestureInter();
33 
35  virtual ~DtEndGestureInter() override;
36 
38  DtEndGestureInter(const DtEndGestureInter& orig);
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:
100  DtString myTarget;
101  DtString myGestureName;
102  float myRampdownTime;
103 
104 };
105 
106 
107 
108 #endif
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:63
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
Instances of DtString are used to represent strings.
Definition: vlString.h:38

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)