VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundJoyMoveController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 #include "vrfobjcore/simRadio.h"
16 
17 class DtString;
20 
21 
28 {
29 public:
30 
35  DtReaderWriterRegistry * parentRegistry = 0);
36 
38  virtual ~DtGroundJoyMoveController();
39 
42  virtual const char* type() const;
43 
47  static DtSimComponent * creator(const DtString& name,
48  DtLocalObject* owner,
49  DtSimulationServices* simManager,
50  DtComponentDescriptor* desc = 0,
51  DtReaderWriterRegistry* parentRegistry = 0);
52 
53  virtual bool collisionDetected();
54 
55 private:
56 
59 
62  const DtGroundJoyMoveController& orig);
63 
66  const DtGroundJoyMoveController& orig);
67 
68 protected:
69  virtual bool detectCollision();
70 
71  // Process colliding with a lifeform. Default will destroy if the lifeform shares
72  // the same parent as the vehicle
73  virtual void collideWithLifeform(const DtSimObject*);
74 
75  virtual void calcAndSetPortValues(const DtString& functionGroup, const DtString& function, double value, bool repeat);
76  virtual void joystickConnected();
77  virtual void joystickDisconnected();
78 
79 protected:
82 
85  bool myBreaking;
86 
88 };
89 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
bool myBreaking
Definition: groundJoyMoveController.h:85
DtManagedObjectListConstPtr myPlatformsList
Definition: groundJoyMoveController.h:87
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
const DtGroundAutoControllerComponent & operator=(const DtGroundAutoControllerComponent &orig)
assignment operator; not implemented
bool myCollisionDetected
Definition: groundJoyMoveController.h:83
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
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.
bool myInternalCollisionDetected
Definition: groundJoyMoveController.h:84
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
int myCurrentGear
Definition: groundJoyMoveController.h:80
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat)=0
Override to set.
DtBoost::shared_ptr< const DtManagedObjectList > DtManagedObjectListConstPtr
Typedef for a shared pointer to a const DtOrgViewManagedObjectList. These lists are used within VR-Fo...
Definition: managedObjectList.h:35
int myJoystickGear
Definition: groundJoyMoveController.h:81
DtGroundJoyMoveController is a controller that enables joystick control of a ground vehicle...
Definition: groundJoyMoveController.h:27
Will manage basic functionality of a joystick controller. Implement pure virtual functions to respons...
Definition: joystickControllerInterface.h:23
DtGroundAutoControllerComponent is a base controller that holds capabilitites common to all automotiv...
Definition: groundAutoControllerComponent.h:34
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)