VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtConstrainedAnalogOutputPort Class Reference

DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing values to the range specified by min and max. More...

Inheritance diagram for DtConstrainedAnalogOutputPort:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

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.


Member Data Documentation


The documentation for this class was generated from the following file:

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)