VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiBaseDiGuyEndGesture.h
Go to the documentation of this file.
1 
5 
6 #pragma once
7 
9 
10 #include <CigiBaseVariableSizePckt.h>
11 
12 #include <string>
13 
14 
15 namespace makCigiExt
16 {
18 
19  // This is the size of the FIXED portion of the packet
21 
23 
24  // This is the size of the FIXED portion of the packet
26 
27  //=========================================================
32  {
33  public:
34 
35  //==> Management
36 
37  //=========================================================
41 
42  //=========================================================
45  virtual ~DtCigiBaseDiGuyEndGesture(void);
46 
47  //=========================================================
51 
52  //=========================================================
55  DtCigiBaseDiGuyEndGesture& operator=(const DtCigiBaseDiGuyEndGesture& BaseIn);
56 
57  //==> Buffer Packing/Unpacking
58 
59  //=========================================================
70  virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const = 0;
71 
72  //=========================================================
82  virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec) = 0;
83 
84  //=========================================================
92  { return(PacketSize + refPacket.GetVariableDataSize()); }
93 
94  //==> Accessing Member Variable Values functions
95 
96  //+> EntityID
97 
98  //=========================================================
108  int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
109  {
110  myEntityID = EntityIDIn;
111  return(CIGI_SUCCESS);
112  }
113 
114  //=========================================================
120  Cigi_uint16 GetEntityID(void) const { return(myEntityID); }
121 
122  //+> PostureEn
123 
124  //=========================================================
132  int SetRampDownEn(const bool RampDownEnIn, bool bndchk=true)
133  {
134  myRampDownEn = RampDownEnIn;
135  return(CIGI_SUCCESS);
136  }
137 
138  //=========================================================
141  bool GetRampDownEn(void) const { return(myRampDownEn); }
142 
143  //+> Ramp Down
144 
145  //=========================================================
154  int SetRampDown(const double RampDownIn, bool bndchk=true);
155 
156  //=========================================================
160  double GetRampDown(void) const { return(myRampDown); }
161 
162  //+> Gesture
163 
166  int SetGesture(const std::string &GestureIn, bool bndchk=true);
167 
170  int GetGestureSize(void) const { return(VariableDataSize); }
171 
172  //=========================================================
175  const std::string & GetGesture(void) const { return(myGesture); }
176 
177  protected:
178 
179  Cigi_uint16 myEntityID;
180  double myRampDown;
182  std::string myGesture;
183 
184  //=========================================================
189  static const int MaxCharCnt = 221;
190  };
191 }
192 
double myRampDown
Definition: DtCigiBaseDiGuyEndGesture.h:180
std::string myGesture
Definition: DtCigiBaseDiGuyEndGesture.h:182
Contains DLL export macros.
const int CIGI_DI_GUY_END_GESTURE_PACKET_SIZE
Definition: DtCigiBaseDiGuyEndGesture.h:20
bool GetRampDownEn(void) const
Gets the RampDownEn value.
Definition: DtCigiBaseDiGuyEndGesture.h:141
const int CIGI_DI_GUY_END_GESTURE_PACKET_ID_V4
Definition: DtCigiBaseDiGuyEndGesture.h:22
Cigi_uint16 GetEntityID(void) const
Gets the Entity ID value.
Definition: DtCigiBaseDiGuyEndGesture.h:120
const int CIGI_DI_GUY_END_GESTURE_PACKET_SIZE_V4
Definition: DtCigiBaseDiGuyEndGesture.h:25
const int CIGI_DI_GUY_END_GESTURE_PACKET_ID
Definition: DtCigiBaseDiGuyEndGesture.h:17
bool myRampDownEn
Definition: DtCigiBaseDiGuyEndGesture.h:181
int GetGestureSize(void) const
Definition: DtCigiBaseDiGuyEndGesture.h:170
int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
Sets the Entity ID with bound checking control.
Definition: DtCigiBaseDiGuyEndGesture.h:108
double GetRampDown(void) const
Gets the Repetitions value.
Definition: DtCigiBaseDiGuyEndGesture.h:160
#define DT_DLL_MAKCIGIEXTENSIONS
Definition: makCigiExtensions.h:17
const std::string & GetGesture(void) const
Gets the Animation (Action) string.
Definition: DtCigiBaseDiGuyEndGesture.h:175
virtual int GetTruePacketSize(CigiBaseVariableSizePckt &refPacket)
A virtual function to determine the size that the packet will take up when packed.
Definition: DtCigiBaseDiGuyEndGesture.h:91
int SetRampDownEn(const bool RampDownEnIn, bool bndchk=true)
Sets the RampDownEn with bound checking control.
Definition: DtCigiBaseDiGuyEndGesture.h:132
The base end gesture class for all packets.
Definition: DtCigiBaseDiGuyEndGesture.h:30
Cigi_uint16 myEntityID
Definition: DtCigiBaseDiGuyEndGesture.h:179

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)