VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiBaseDiGuyEndGesture.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2020 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <CigiBaseVariableSizePckt.h>
15 
16 #include <string>
17 
18 
19 namespace makCigiExt
20 {
22 
23  // This is the size of the FIXED portion of the packet
25 
27 
28  // This is the size of the FIXED portion of the packet
30 
31  //=========================================================
36  {
37  public:
38 
39  //==> Management
40 
41  //=========================================================
45 
46  //=========================================================
49  virtual ~DtCigiBaseDiGuyEndGesture(void);
50 
51  //=========================================================
55 
56  //=========================================================
59  DtCigiBaseDiGuyEndGesture& operator=(const DtCigiBaseDiGuyEndGesture& BaseIn);
60 
61  //==> Buffer Packing/Unpacking
62 
63  //=========================================================
74  virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const = 0;
75 
76  //=========================================================
86  virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec) = 0;
87 
88  //=========================================================
96  { return(PacketSize + refPacket.GetVariableDataSize()); }
97 
98  //==> Accessing Member Variable Values functions
99 
100  //+> EntityID
101 
102  //=========================================================
112  int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
113  {
114  myEntityID = EntityIDIn;
115  return(CIGI_SUCCESS);
116  }
117 
118  //=========================================================
124  Cigi_uint16 GetEntityID(void) const { return(myEntityID); }
125 
126  //+> PostureEn
127 
128  //=========================================================
136  int SetRampDownEn(const bool RampDownEnIn, bool bndchk=true)
137  {
138  myRampDownEn = RampDownEnIn;
139  return(CIGI_SUCCESS);
140  }
141 
142  //=========================================================
145  bool GetRampDownEn(void) const { return(myRampDownEn); }
146 
147  //+> Ramp Down
148 
149  //=========================================================
158  int SetRampDown(const double RampDownIn, bool bndchk=true);
159 
160  //=========================================================
164  double GetRampDown(void) const { return(myRampDown); }
165 
166  //+> Gesture
167 
170  int SetGesture(const std::string &GestureIn, bool bndchk=true);
171 
174  int GetGestureSize(void) const { return(VariableDataSize); }
175 
176  //=========================================================
179  const std::string & GetGesture(void) const { return(myGesture); }
180 
181  protected:
182 
183  Cigi_uint16 myEntityID;
184  double myRampDown;
186  std::string myGesture;
187 
188  //=========================================================
193  static const int MaxCharCnt = 221;
194  };
195 }
196 
double myRampDown
Definition: DtCigiBaseDiGuyEndGesture.h:184
std::string myGesture
Definition: DtCigiBaseDiGuyEndGesture.h:186
Contains DLL export macros.
const int CIGI_DI_GUY_END_GESTURE_PACKET_SIZE
Definition: DtCigiBaseDiGuyEndGesture.h:24
bool GetRampDownEn(void) const
Gets the RampDownEn value.
Definition: DtCigiBaseDiGuyEndGesture.h:145
const int CIGI_DI_GUY_END_GESTURE_PACKET_ID_V4
Definition: DtCigiBaseDiGuyEndGesture.h:26
Cigi_uint16 GetEntityID(void) const
Gets the Entity ID value.
Definition: DtCigiBaseDiGuyEndGesture.h:124
const int CIGI_DI_GUY_END_GESTURE_PACKET_SIZE_V4
Definition: DtCigiBaseDiGuyEndGesture.h:29
const int CIGI_DI_GUY_END_GESTURE_PACKET_ID
Definition: DtCigiBaseDiGuyEndGesture.h:21
bool myRampDownEn
Definition: DtCigiBaseDiGuyEndGesture.h:185
int GetGestureSize(void) const
Definition: DtCigiBaseDiGuyEndGesture.h:174
int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true)
Sets the Entity ID with bound checking control.
Definition: DtCigiBaseDiGuyEndGesture.h:112
double GetRampDown(void) const
Gets the Repetitions value.
Definition: DtCigiBaseDiGuyEndGesture.h:164
#define DT_DLL_MAKCIGIEXTENSIONS
Definition: makCigiExtensions.h:17
const std::string & GetGesture(void) const
Gets the Animation (Action) string.
Definition: DtCigiBaseDiGuyEndGesture.h:179
virtual int GetTruePacketSize(CigiBaseVariableSizePckt &refPacket)
A virtual function to determine the size that the packet will take up when packed.
Definition: DtCigiBaseDiGuyEndGesture.h:95
int SetRampDownEn(const bool RampDownEnIn, bool bndchk=true)
Sets the RampDownEn with bound checking control.
Definition: DtCigiBaseDiGuyEndGesture.h:136
The base end gesture class for all packets.
Definition: DtCigiBaseDiGuyEndGesture.h:34
Cigi_uint16 myEntityID
Definition: DtCigiBaseDiGuyEndGesture.h:183

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)