![]() |
VR-Forces Developer's Guide
|
Instances of DtConstrainedDualAxisAnalogOutputPort are output ports through which data producers can send information values from a device such as a joystick that has two axes of motion. It represents this by creating two DtConstrainedAnalogPorts called myXValue and myYValue. Both are constrained to the range -1.0 to 1.0 by default.

Public Member Functions | |
| DtConstrainedDualAxisAnalogOutputPort (const DtString &portName) | |
| virtual | ~DtConstrainedDualAxisAnalogOutputPort () |
| virtual void | setMinXValue (double minVal) |
| virtual double | minXValue () const |
| virtual void | setMaxXValue (double maxVal) |
| virtual double | maxXValue () const |
| virtual void | setMinYValue (double minVal) |
| virtual double | minYValue () const |
| virtual void | setMaxYValue (double maxVal) |
| virtual double | maxYValue () const |
| void | setXValue (double value) |
| void | setYValue (double value) |
Public Member Functions inherited from DtDualAxisAnalogOutputPort | |
| DtDualAxisAnalogOutputPort (const DtString &portName) | |
| virtual | ~DtDualAxisAnalogOutputPort () |
| virtual const DtString | type () const |
| virtual void | createPortData () |
| virtual double | XValue () const |
| virtual double | YValue () const |
Public Member Functions inherited from DtOutputPort | |
| DtOutputPort (const DtString &portName) | |
| virtual | ~DtOutputPort () |
| virtual bool | init () |
| virtual const DtString & | name () const |
| virtual void | sendData () |
| virtual void | addConnection (DtPortConnection *conn) |
| virtual void | removeConnection (DtPortConnection *conn) |
| virtual bool | attemptToActivate () |
| virtual bool | attemptToActivateAtLowestPriority () |
| virtual bool | canActivate () const |
| virtual void | deactivate () |
| virtual void | allowDeactivation () |
| virtual bool | active () const |
| virtual const DtList * | connectionList () const |
| virtual void | setConnectionPriority (int priority) |
| virtual DtPortData * | data () |
| virtual const DtPortData * | data () const |
| virtual bool | enabled () const |
| virtual void | setEnabled (bool flag) |
Protected Attributes | |
| double | myMaxXValue |
| double | myMinXValue |
| double | myMaxYValue |
| double | myMinYValue |
Protected Attributes inherited from DtOutputPort | |
| DtString | myName |
| bool | myEnabled |
| DtPortData * | myData |
| DtList | myConnectionList |
| DtConstrainedDualAxisAnalogOutputPort::DtConstrainedDualAxisAnalogOutputPort | ( | const DtString & | portName | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets x value to the port, and sends the data if it is different from the current value.
Reimplemented from DtDualAxisAnalogOutputPort.
|
virtual |
Sets y value to the port, and sends the data if it is different from the current value.
Reimplemented from DtDualAxisAnalogOutputPort.
|
protected |
|
protected |
|
protected |
|
protected |