![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: turretJoystickDesc.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef DtTurretJoyDeviceControllerDescriptor_H_ 00016 #define DtTurretJoyDeviceControllerDescriptor_H_ 00017 00018 #include "vrfobjparam/compDesc.h" 00019 #include "vrfutil/rwBoolean.h" 00020 #include "vrfutil/rwInt.h" 00021 00024 #include "vrfobjparam/vrfobjparamDefines.h" 00025 class DT_DLL_vrfobjparam DtTurretJoyDeviceControllerDescriptor : public DtComponentDescriptor 00026 { 00027 public: 00029 DtTurretJoyDeviceControllerDescriptor(const DtString& name, 00030 DtReaderWriterRegistry* parentRegistry = NULL); 00031 DtTurretJoyDeviceControllerDescriptor(const DtSymbolString& name, 00032 DtReaderWriterRegistry* parentRegistry = NULL); 00033 00035 virtual ~DtTurretJoyDeviceControllerDescriptor(); 00036 00038 DtTurretJoyDeviceControllerDescriptor( 00039 const DtTurretJoyDeviceControllerDescriptor& orig, 00040 DtReaderWriterRegistry* parentRegistry = NULL); 00041 00043 DtTurretJoyDeviceControllerDescriptor& operator=( 00044 const DtTurretJoyDeviceControllerDescriptor& orig); 00045 00046 virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* 00047 parentRegistry = NULL) const; 00048 00051 virtual DtString type() const; 00052 00053 00056 virtual int slewAxis() const; 00057 virtual void setSlewAxis(int axis); 00059 00060 00063 virtual bool invertSlewAxis() const; 00064 virtual void setInvertSlewAxis(bool invert); 00066 00068 static DtComponentDescriptor * creator(); 00069 00070 protected: 00072 virtual void setDefaults(); 00073 00075 virtual void copyValues(const DtTurretJoyDeviceControllerDescriptor& orig); 00076 00077 protected: 00079 DtTurretJoyDeviceControllerDescriptor(); 00080 00081 protected: 00082 00086 00090 DtRwInt mySlewAxis; 00091 00095 DtRwBoolean myInvertSlewAxis; 00096 00098 00100 static const char theSlewAxisName[]; 00101 static const char theInvertSlewAxisName[]; 00102 }; 00103 00104 #endif