VR-Forces 4.0.4 Class Documentation
include/vrfmodel/fixWingJoyCtl.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: fixWingJoyCtl.h,v $ $Revision: 1.21 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00014 
00015 #ifndef DtFixedWingJoyFlightController_H_
00016 #define DtFixedWingJoyFlightController_H_
00017 
00018 #include "vrfmodel/fixWngPltCtl.h"
00019 #include "vrfobjcore/simRadio.h"
00020 
00021 class DtString;
00022 class DtSimManager;
00023 class DtFixedWingJoyDeviceControllerDescriptor;
00024 class DtJoyDevice;
00025 
00026 
00031 #include "vrfmodel/vrfmodelDefines.h"
00032 class DT_DLL_vrfmodel DtFixedWingJoyFlightController : public DtFixedWingPilotController
00033 {
00034 
00035 public:
00036 
00039    DtFixedWingJoyFlightController(const DtString& name, 
00040       DtVrfObject* owner,
00041       DtSimManager* simManager, 
00042       DtComponentDescriptor* desc = 0,
00043       DtReaderWriterRegistry* parentRegistry = 0);
00044 
00046    virtual ~DtFixedWingJoyFlightController();
00047 
00049    virtual void setComponentDescriptor(DtComponentDescriptor *descriptor);
00050 
00052    virtual void tick();
00053 
00056    virtual DtString type() const;
00057 
00058    static void setJoyDeviceSwitchCallbacks(DtSimMessage * msg, void * usrData);
00059 
00060    virtual void processSetJoyDeviceSwitch(DtSimMessage * msg);
00061 
00062    virtual void calcAndSetPortValues();
00063 
00064    virtual bool joystickEnabled() const;
00065 
00069    static DtSimComponent * creator(const DtString& name, 
00070       DtVrfObject* owner,
00071       DtSimManager* simManager, 
00072       DtComponentDescriptor* desc = 0,
00073       DtReaderWriterRegistry* parentRegistry = 0);
00074 
00075 protected:
00076 
00078    DtFixedWingJoyFlightController();
00079 
00081    DtFixedWingJoyFlightController(
00082       const DtFixedWingJoyFlightController& orig);
00083 
00085    DtFixedWingJoyFlightController& operator=(
00086       const DtFixedWingJoyFlightController& orig);
00087 
00089    virtual void initializeJoyDevice();
00090 
00092    virtual void setRadio(DtSimRadio * radio);
00093 
00094 protected:
00095 
00096    const DtFixedWingJoyDeviceControllerDescriptor* 
00097       myJoyDeviceControllerDescriptor;
00098    bool myJoystickEnabled;
00099    DtJoyDevice * myJoyDevice;
00100    bool myInitialized;
00101 
00102 };
00103 
00104 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)