VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanJoystickMovementController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 #include "vrfobjcore/simRadio.h"
17 
18 class DtString;
19 class DtSimManager;
21 class DtJoyDevice;
25 
32 {
33 public:
34 
38  DtSimManager* simManager, DtComponentDescriptor* desc,
39  DtReaderWriterRegistry * parentRegistry = 0);
40 
43 
46  virtual const char* type() const;
47 
49  virtual bool createPortGroups();
50 
52  virtual bool createPorts();
53 
57  static DtSimComponent * creator(const DtString& name,
58  DtVrfObject* owner,
59  DtSimManager* simManager,
60  DtComponentDescriptor* desc = 0,
61  DtReaderWriterRegistry* parentRegistry = 0);
62 
63 private:
64 
67 
71 
75 
76 protected:
77 
78  virtual void calcAndSetPortValues(const DtString& functionGroup, const DtString& function, double value, bool repeat);
79  virtual void joystickConnected();
80  virtual void joystickDisconnected();
81 
82  virtual void tick();
83 
84 protected:
85 
88 
91 
99 
101 
104 };
105 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
double mySpeedFactor
Definition: humanJoystickMovementController.h:103
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
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 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:42
Definition: readerWriterRegistry.h:39
DtHumanJoystickMovementController is a controller that enables joystick control of a human entity...
Definition: humanJoystickMovementController.h:31
virtual void joystickDisconnected()=0
Called when joystick is disconnected for this controller.
!!!!!!!!!!!! DtJoyDeviceControllerDescriptor
Definition: joyDeviceControllerDescriptor.h:93
virtual void joystickConnected()=0
Called when joystick is connected for this controller.
double myTurningRate
Definition: humanJoystickMovementController.h:102
virtual void tick()
This gives the thread of control to the component.
DtHumanMovementControlOutputPortGroup * myHumanMovementControlOutputPortGroup
Output Group Name: movement-control .
Definition: humanJoystickMovementController.h:90
virtual bool createPorts()
Called by init.
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
virtual bool createPortGroups()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat)=0
Override to set.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
An output port group that contains the ports necessary to control the movement of a human using the D...
Definition: humanMovementControlOutputPortGroup.h:22
DtHumanStateRepository * myHumanStateRepository
Definition: humanJoystickMovementController.h:100
Will manage basic functionality of a joystick controller.
Definition: joystickControllerInterface.h:23
DtBooleanOutputPort * myIsMovingPort
Output Port Name: is-moving Output Port Description: Indicates the entity is being actively moved by ...
Definition: humanJoystickMovementController.h:97

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)