VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundJoyTurretController.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;
21 
26 const char DtGroundJoyTurretControllerType[] = "ground-turret-joystick-controller";
27 
29 {
30 public:
31 
35  DtReaderWriterRegistry * parentRegistry = 0);
36 
38  virtual ~DtGroundJoyTurretController() 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 protected:
54 
55  virtual void calcAndSetPortValues(
56  const DtString& functionGroup, const DtString& function, double value, bool repeat) override;
57  virtual void joystickConnected() override;
58  virtual void joystickDisconnected() override;
59 
60 private:
63 
66  const DtGroundJoyTurretController& orig);
67 
70 };
71 
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtGroundJoyTurretController & operator=(const DtGroundJoyTurretController &orig)
assignment operator; not implemented
Definition: readerWriterRegistry.h:39
!!!!!!!!!!!! DtJoyDeviceControllerDescriptor
Definition: joyDeviceControllerDescriptor.h:93
const char DtGroundJoyTurretControllerType[]
DtGroundJoyTurretController is a controller used to enable joystick control of a turret.
Definition: groundJoyTurretController.h:26
DtTurretSlewController is a controller that has those capabilities common to all controllers that man...
Definition: turretSlewController.h:43
virtual void joystickDisconnected() override
Called when joystick is disconnected for this controller.
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:583
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual ~DtGroundJoyTurretController() override
destructor
virtual void joystickConnected() override
Called when joystick is connected for this controller.
Will manage basic functionality of a joystick controller. Implement pure virtual functions to respons...
Definition: joystickControllerInterface.h:23
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
Definition: groundJoyTurretController.h:28
DtGroundJoyTurretController()
default constructor; not implemented
A locally simulated VRF object.
Definition: localObject.h:98
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat) override
Override to set.

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)