VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanPosturePSR.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 
11 #pragma once
12 
14 #include <readerWriter/rwInt.h>
15 #include <readerWriter/rwReal.h>
18 
21 {
22 public:
23 
25  DtHumanPosturePSR(DtLocalObject* vrfObject,
26  const DtString& rwName = DtString::nullString(),
27  DtReaderWriterRegistry* parentRegistry = 0);
28 
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
35  virtual ~DtHumanPosturePSR();
36 
39 
42  const DtString& rwName = DtString::nullString(),
43  DtReaderWriterRegistry* parentRegistry = 0) const;
44 
47  virtual DtString type() const;
48 
51  virtual DtLifeformStaticPosture desiredStaticPosture() const;
52  virtual void setDesiredStaticPosture(const DtLifeformStaticPosture& posture);
54 
57  virtual float rollbackTransitionSpeed() const;
58  virtual void setRollbackTransitionSpeed( float transitionSpeed );
60 
63  virtual int rollbackTransitionSpeedDelay() const;
64  virtual void setRollbackTransitionSpeedDelay( int numTicks );
66 
67 public:
68 
70  static DtVrfProcessStateRepository* creator (const DtString& rwName,
71  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
72 
73 protected:
74 
78 
83 
86 
87 };
DtRwReal myRollbackTransitionSpeed
The previous transition speed for the entity. This is so the transition speed level can be restored a...
Definition: humanPosturePSR.h:82
Definition: readerWriterRegistry.h:39
DtRwInt myDesiredStaticPosture
The desired static posture for the entity. This is the posture that has been assigned by the user...
Definition: humanPosturePSR.h:77
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtLifeformStaticPosture
These are the available static postures for lifeform (human) entities. Static postures are equivalent...
Definition: lifeformStaticPostures.h:22
Description: Readable, Writable int.
Definition: rwInt.h:25
Contains the DtLifeformStaticPosture enumeration declaration.
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwInt myRollbackTransitionSpeedDelay
How many ticks to wait for rolling back the transition speed.
Definition: humanPosturePSR.h:85
Stores state data for the DtHumanPostureContoller.
Definition: humanPosturePSR.h:20
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)