![]() |
VR-Forces 4.0.4 Class Documentation
|
DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing values to the range specified by min and max. More...

Public Member Functions | |
| DtConstrainedAnalogOutputPort (const DtString &portName) | |
| virtual | ~DtConstrainedAnalogOutputPort () |
| virtual void | setValue (double value) |
| Overridden from base class to constrian the value to within max and min. | |
| virtual void | setMinValue (double minVal) |
| The default minimum and maximum values are set to 0.0. | |
| virtual double | minValue () const |
| The default minimum and maximum values are set to 0.0. | |
| virtual void | setMaxValue (double maxVal) |
| The default minimum and maximum values are set to 0.0. | |
| virtual double | maxValue () const |
| The default minimum and maximum values are set to 0.0. | |
Protected Attributes | |
| double | myMaxValue |
| double | myMinValue |
DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing values to the range specified by min and max.
It outputs DtAnalogPortData, can be connected to any port which accepts this data type, not only a DtConstrainedAnalogInputPort.
| DtConstrainedAnalogOutputPort::DtConstrainedAnalogOutputPort | ( | const DtString & | portName | ) |
| virtual DtConstrainedAnalogOutputPort::~DtConstrainedAnalogOutputPort | ( | ) | [virtual] |
| virtual void DtConstrainedAnalogOutputPort::setValue | ( | double | value | ) | [virtual] |
Overridden from base class to constrian the value to within max and min.
Arguments passed to setValue() are clipped to fall within the specified constraints.
Reimplemented from DtAnalogOutputPort.
| virtual void DtConstrainedAnalogOutputPort::setMinValue | ( | double | minVal | ) | [virtual] |
The default minimum and maximum values are set to 0.0.
| virtual double DtConstrainedAnalogOutputPort::minValue | ( | ) | const [virtual] |
The default minimum and maximum values are set to 0.0.
| virtual void DtConstrainedAnalogOutputPort::setMaxValue | ( | double | maxVal | ) | [virtual] |
The default minimum and maximum values are set to 0.0.
| virtual double DtConstrainedAnalogOutputPort::maxValue | ( | ) | const [virtual] |
The default minimum and maximum values are set to 0.0.
double DtConstrainedAnalogOutputPort::myMaxValue [protected] |
double DtConstrainedAnalogOutputPort::myMinValue [protected] |