![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: conDualAxisAnalogIOPort.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef DtConstrainedDualAxisInputPort_H_ 00016 #define DtConstrainedDualAxisInputPort_H_ 00017 00018 #include "vrfobjcore/dualAxisAnalogIOPort.h" 00019 #include "vrfobjcore/portData.h" 00020 00026 #include "vrfobjcore/vrfobjcoreDefines.h" 00027 class DT_DLL_vrfobjcore DtConstrainedDualAxisAnalogInputPort : public DtDualAxisAnalogInputPort 00028 { 00029 public: 00030 DtConstrainedDualAxisAnalogInputPort(const DtString& portName); 00031 virtual ~DtConstrainedDualAxisAnalogInputPort(); 00032 00035 virtual void receiveData(DtPortData* data); 00036 00037 virtual void setMinXValue(double minVal); 00038 virtual double minXValue() const; 00039 00040 virtual void setMaxXValue(double maxVal); 00041 virtual double maxXValue() const; 00042 00043 virtual void setMinYValue(double minVal); 00044 virtual double minYValue() const; 00045 00046 virtual void setMaxYValue(double maxVal); 00047 virtual double maxYValue() const; 00048 00049 protected: 00050 double myMaxXValue; 00051 double myMinXValue; 00052 double myMaxYValue; 00053 double myMinYValue; 00054 }; 00055 00061 class DT_DLL_vrfobjcore DtConstrainedDualAxisAnalogOutputPort : public DtDualAxisAnalogOutputPort 00062 { 00063 public: 00064 DtConstrainedDualAxisAnalogOutputPort(const DtString& portName); 00065 virtual ~DtConstrainedDualAxisAnalogOutputPort(); 00066 00067 virtual void setMinXValue(double minVal); 00068 virtual double minXValue() const; 00069 00070 virtual void setMaxXValue(double maxVal); 00071 virtual double maxXValue() const; 00072 00073 virtual void setMinYValue(double minVal); 00074 virtual double minYValue() const; 00075 00076 virtual void setMaxYValue(double maxVal); 00077 virtual double maxYValue() const; 00078 00079 void setXValue(double value); 00080 void setYValue(double value); 00081 00082 protected: 00083 double myMaxXValue; 00084 double myMinXValue; 00085 double myMaxYValue; 00086 double myMinYValue; 00087 }; 00088 00089 #endif