![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: conAnalogIOPort.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef DtConstrainedAnalogInputPort_H_ 00016 #define DtConstrainedAnalogInputPort_H_ 00017 00018 00019 #include "vrfobjcore/analogIOPort.h" 00020 00026 #include "vrfobjcore/vrfobjcoreDefines.h" 00027 class DT_DLL_vrfobjcore DtConstrainedAnalogInputPort : public DtAnalogInputPort 00028 { 00029 public: 00030 DtConstrainedAnalogInputPort(const DtString& portName); 00031 virtual ~DtConstrainedAnalogInputPort(); 00032 00035 virtual void receiveData(DtPortData* data); 00036 00038 virtual void setMinValue(double minVal); 00039 virtual double minValue() const; 00040 00041 virtual void setMaxValue(double maxVal); 00042 virtual double maxValue() const; 00043 00044 protected: 00045 double myMaxValue; 00046 double myMinValue; 00047 }; 00048 00054 class DT_DLL_vrfobjcore DtConstrainedAnalogOutputPort : public DtAnalogOutputPort 00055 { 00056 public: 00057 DtConstrainedAnalogOutputPort(const DtString& portName); 00058 virtual ~DtConstrainedAnalogOutputPort(); 00059 00063 virtual void setValue(double value); 00064 00067 virtual void setMinValue(double minVal); 00068 virtual double minValue() const; 00069 virtual void setMaxValue(double maxVal); 00070 virtual double maxValue() const; 00072 00073 protected: 00074 double myMaxValue; 00075 double myMinValue; 00076 }; 00077 00078 #endif