VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfExtDiGuyStateRepository.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2019 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vl/diGuyObjectStateRepository.h>
13 
14 /*
15  Notes: this class has to be here, in VrfVrlExt, and not in VR-Vantage, so that
16  versions of it for DIS and the various HLAs will be automatically generated.
17  This doesn't matter for the code specific to this class, but we can't inherit
18  from DtDIGuyObjectStateRepository without the network protocol being properly
19  defined in compiler variables.
20 */
21 
22 class DtExerciseConn;
23 
26 {
27 public:
28 
32 
34 
37 
39  virtual DtStateRepository* clone( bool copy ) const;
40 
43 
44  virtual void setAction( const DtString& action );
45  virtual void setAction( const DtString& action, bool paused, double speed = 0.0 );
46  virtual void setActionWithOffset( const DtString& val, bool paused, double speed = 0.0,
47  bool useActionPositioning = false, const DtVector& offset = DtVector(0,0,0) );
48 
49  virtual bool useActionPositioning() const;
50  virtual const DtVector& actionOffset() const;
51 
52  virtual void setBodyWeight( double val );
53  virtual double bodyWeight() const;
54 
56 
58  virtual void printDataToStream( std::ostream& stream ) const;
59 
62  static DtDIGuyObjectStateRepository* create();
63 
64  // Registers the decoders needed for DI-Guy
65  static void registerExtensions( DtExerciseConn *exConn );
66 
67 protected:
68 
71  double myBodyWeight;
72 
73 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)