VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanTurnToController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
14 
15 class DtSimMessage;
19 
26 {
27 private:
34 public:
36  DtHumanTurnToController(const DtString& name, DtVrfObject* owner,
37  DtSimManager* simManager, DtComponentDescriptor* desc=0,
38  DtReaderWriterRegistry *parentRegistry=0);
39 
41  virtual ~DtHumanTurnToController();
42 
44  virtual bool init();
45 
47  virtual const char* type() const;
48 
50  virtual void tick();
51 
55  static void turnToHeadingCallback(DtSimMessage * msg, void * usr);
56  virtual void processTurnToHeadingTask(DtSimMessage * msg);
57 
59  virtual void registerTaskMsgCallbacks();
60 
62  static DtSimComponent* creator(const DtString& name, DtVrfObject* owner,
63  DtSimManager* simManager, DtComponentDescriptor* desc=0,
64  DtReaderWriterRegistry* parentRegistry=0);
65 
67  virtual bool createPortGroups();
68 
70  virtual bool createPorts();
71 
73  virtual void clearTask();
74 
75 protected:
77  virtual double headingToFace();
78 
79 protected:
80 
82 
83  DtHumanMovementControlOutputPortGroup* myHumanMovementControlOutputPortGroup;
85 
93 
95 };
96 
DtBooleanOutputPort * myIsMovingPort
Output Port Name: is-moving Output Port Description: Indicates the entity is being actively moved by ...
Definition: humanTurnToController.h:91
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Description: This repository holds all information that is common to all the forms of humans within t...
Definition: humanStateRepository.h:32
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
DtHumanStateRepository * myHumanStateRepository
Definition: humanTurnToController.h:94
DtHumanTurnToController.
Definition: humanTurnToController.h:25
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
virtual bool createPorts()
Called by init.
virtual bool createPortGroups()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
An output port group that contains the ports necessary to control the movement of a human using the D...
Definition: humanMovementControlOutputPortGroup.h:22

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)