VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanUseDoorController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
17 #include <vrfNavigation/navArea.h>
18 
20 class DtScriptedTaskTask;
23 class DtVectorOutputPort;
26 
32 {
33 private:
40 public:
43  DtSimulationServices* simManager, DtComponentDescriptor* desc=0, DtReaderWriterRegistry *parentRegistry=0);
44 
46  virtual ~DtHumanUseDoorController();
47 
49  virtual bool init();
50 
52  virtual const char* type() const;
53 
55  virtual void tick();
56 
58  static DtSimComponent* creator(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
59  DtComponentDescriptor* desc=0, DtReaderWriterRegistry* parentRegistry=0);
60 
61 protected:
62 
63  static void setAutomaticDoorClosingCallback(DtSimMessage* msg, void* usrData);
64  virtual void processSetAutomaticDoorClosing(DtSimMessage* msg);
65 
67  virtual bool isDoorNavTag(const DtNavTag& navTag) const;
68 
70  virtual DtVector findDoor();
71 
73  virtual bool isDoorOpen(const DtVector& doorLoc);
74 
76  virtual bool createPortGroups();
77 
79  virtual bool createPorts();
80 
82  virtual DtHumanUseDoorControllerPSR* createPSR();
83 
84  virtual bool usingNavBot() const;
85 
86  virtual bool taskVisualizationsActive() const;
87  virtual void updateTaskVisualizations();
88 
89  virtual void processNavigationInterfaceChanged();
90 
91 protected:
92 
94 
98 
101 
108 
111 
114 
121 
128 
130 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtHumanUseDoorControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: humanUseDoorController.h:97
DtHumanUseDoorControllerDescriptor * myUseDoorDescriptor
The descriptor.
Definition: humanUseDoorController.h:100
DtBooleanOutputPort * myIsMovingPort
Output Port Name: is-moving Output Port Description: Indicates the entity is being actively moved by ...
Definition: humanUseDoorController.h:120
Description: This repository holds all information that is common to all the forms of humans within t...
Definition: humanStateRepository.h:33
This is the DtVrfObjectNavInterface subclass for objects which are actively querying the navigation s...
Definition: activeBotNavInterface.h:27
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
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:49
Definition: readerWriterRegistry.h:39
virtual bool taskVisualizationsActive() const
Returns true if task visualizations are currently active for this component. Default behavior for tas...
VR-Forces wrapper for Gameware NavTag. Note: This class keeps only a pointer to the data...
Definition: navDataTag.h:87
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
Calls setRadio()
DtVector myDoorCheckPt2
For debug use only.
Definition: humanUseDoorController.h:105
DtBooleanOutputPort * myUseCollisionAvoidancePort
Output Port Name: use-collision-avoidance Output Port Description: Indicates whether or not this cont...
Definition: humanUseDoorController.h:127
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick. Implemented by subclasses. ...
Definition: simComponent.h:436
Specialized classes.
Definition: scriptedTaskTask.h:274
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
DtHumanUseDoorControllerPSR is a process state repository which holds state variables for the DtHuman...
Definition: humanUseDoorControllerPSR.h:32
File: simMsg.h.
Definition: simMessage.h:35
Instances of DtHumanUseDoorControllerDescriptor are used to specify the parameters for a DtHumanUseDo...
Definition: humanUseDoorControllerDescriptor.h:18
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...
DtActiveBotNavInterface * myNavInterface
Definition: humanUseDoorController.h:93
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
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
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
bool myDoorIntersect
For debug use only.
Definition: humanUseDoorController.h:106
DtHumanMovementControlOutputPortGroup * myHumanMovementControlOutputPortGroup
Output Group Name: movement-control .
Definition: humanUseDoorController.h:113
An output port group that contains the ports necessary to control the movement of a human using the D...
Definition: humanMovementControlOutputPortGroup.h:22
DtHumanUseDoorController is a controller that models opening and closing doors as the character passe...
Definition: humanUseDoorController.h:31
DtVector myDoorCheckPt1
For debug use only.
Definition: humanUseDoorController.h:104
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)