VR-Forces 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() override;
39 
42  virtual const char* type() const override;
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(
76  const DtString& functionGroup, const DtString& function, double value, bool repeat) override;
77  virtual void joystickConnected() override;
78  virtual void joystickDisconnected() override;
79 
80 protected:
83 
86  bool myBreaking;
87 
89 };
90 
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
bool myBreaking
Definition: groundJoyMoveController.h:86
DtManagedObjectListConstPtr myPlatformsList
Definition: groundJoyMoveController.h:88
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
std::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
Definition: readerWriterRegistry.h:39
const DtGroundAutoControllerComponent & operator=(const DtGroundAutoControllerComponent &orig)
assignment operator; not implemented
bool myCollisionDetected
Definition: groundJoyMoveController.h:84
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:85
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
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:80
int myCurrentGear
Definition: groundJoyMoveController.h:81
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat)=0
Override to set.
int myJoystickGear
Definition: groundJoyMoveController.h:82
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.
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)