VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanFaceTargetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 
16 class DtAnalogInputPort;
17 
25 {
26 
27 public:
28 
32  DtLocalObject* owner,
33  DtSimulationServices* simManager,
34  DtComponentDescriptor* desc = 0,
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
38  virtual ~DtHumanFaceTargetController() override;
39 
40  virtual bool init() override;
41 
44  virtual const char* type() const override;
45 
46  virtual void tick() override;
47 
51  static DtSimComponent * creator(const DtString& name,
52  DtLocalObject* owner,
53  DtSimulationServices* simManager,
54  DtComponentDescriptor* desc = 0,
55  DtReaderWriterRegistry* parentRegistry = 0);
56 
57 protected:
58 
60  virtual bool createPortGroups() override;
61 
63  virtual bool createPorts() override;
64 
65  virtual bool createFaceDirectionPort();
66 
67 private:
68 
71 
75 
78  const DtHumanFaceTargetController & orig);
79 
80 
81 protected:
82 
84 
85 
93 
96 
99 
101 };
#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
DtHumanMovementControlOutputPortGroup * myHumanMovementControlOutputPortGroup
Output Group Name: movement-control .
Definition: humanFaceTargetController.h:95
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
bool myIsControllingFacing
For detecting change, for debugging output.
Definition: humanFaceTargetController.h:98
virtual bool init() override
Calls setRadio()
This class is part of the human movement model which takes a heading as an input port, and stops the entity and faces it in the specified direction for as long as there is any data on the input port. Control is only taken by this controller when there is data on the aimingDirection input port. Uses Descriptor Type: DtComponentDescriptor.
Definition: humanFaceTargetController.h:24
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
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Contains class declarations for DtAnalogInputPort, DtAnalogOutputPort, and DtAnalogPortData.
Definition: analogIOPort.h:25
DtAnalogInputPort * myFaceDirectionPort
Input Port Name: aim-direction Input Port Description: Specifies the heading in which the entity shou...
Definition: humanFaceTargetController.h:92
An output port group that contains the ports necessary to control the movement of a human using the D...
Definition: humanMovementControlOutputPortGroup.h:22
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)