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

Contains class declarations for DtConstrainedAnalogInputPort and DtConstrainedAnalogOutputPort. More...

Inheritance diagram for DtConstrainedAnalogInputPort:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtConstrainedAnalogInputPort (const DtString &portName)
virtual ~DtConstrainedAnalogInputPort ()
virtual void receiveData (DtPortData *data)
 Overridden from base class to constrain data as it arrives to within min and max.
virtual void setMinValue (double minVal)
 If you forget to set min and max, all values will be constrained to 0.
virtual double minValue () const
virtual void setMaxValue (double maxVal)
virtual double maxValue () const

Protected Attributes

double myMaxValue
double myMinValue

Detailed Description

Contains class declarations for DtConstrainedAnalogInputPort and DtConstrainedAnalogOutputPort.

Instances of DtConstrianedAnalogInputPort are input ports that accept DtAnalogPortData as the data type, but will allow values only within the specified min max range. The default minimum and maximum values are 0.0.

Note:
It is possible to connect an unconstrained analog output port to this port.

Constructor & Destructor Documentation


Member Function Documentation

virtual void DtConstrainedAnalogInputPort::receiveData ( DtPortData data) [virtual]

Overridden from base class to constrain data as it arrives to within min and max.

Reimplemented from DtAnalogInputPort.

virtual void DtConstrainedAnalogInputPort::setMinValue ( double  minVal) [virtual]

If you forget to set min and max, all values will be constrained to 0.

virtual double DtConstrainedAnalogInputPort::minValue ( ) const [virtual]
virtual void DtConstrainedAnalogInputPort::setMaxValue ( double  maxVal) [virtual]
virtual double DtConstrainedAnalogInputPort::maxValue ( ) const [virtual]

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)