VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanPostureController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
17 
19 class DtSimMessage;
20 class DtHumanPosturePSR;
21 
35 {
36 private:
43 public:
45  DtHumanPostureController(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager, DtComponentDescriptor* desc=0, DtReaderWriterRegistry *parentRegistry=0);
46 
48  virtual ~DtHumanPostureController();
49 
51  virtual bool init();
52 
54  virtual const char* type() const;
55 
57  virtual void tick();
58 
62  static DtSimComponent * creator(const DtString& name,
63  DtLocalObject* owner,
64  DtSimulationServices* simManager,
65  DtComponentDescriptor* desc = 0,
66  DtReaderWriterRegistry* parentRegistry = 0);
67 
68 protected:
69 
75  virtual bool createPSR();
76 
77  virtual bool createPorts();
78 
79  static void setPostureCallback(DtSimMessage* msg, void* usr);
80  virtual void processSetPosture(DtSimMessage* msg);
81 
82  static void setAppearanceCallback(DtSimMessage* msg, void* usr);
83  virtual void processSetAppearance(DtSimMessage* msg);
84 
85 protected:
87 
91 };
92 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
DtHumanPostureController is a controller that manages the setting of static postures for an individua...
Definition: humanPostureController.h:34
DtHumanPosturePSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: humanPostureController.h:90
DtIntegerOutputPort * myStaticPostureOutputPort
Definition: humanPostureController.h:86
File: simMsg.h.
Definition: simMessage.h:35
Contains the DtLifeformStaticPosture enumeration declaration.
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Instances of DtIntegerOutputPort are output ports through which data producers can send integer value...
Definition: integerIOPort.h:45
Stores state data for the DtHumanPostureContoller.
Definition: humanPosturePSR.h:20
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)