Floating Point Control Type A – step 0031 – February 2010

1 Purpose of SrrControlFloatA

SrrTrains Controls are a multiplayer-capable means for building user interfaces of cabs in SrrTrains vehicles.

The floating point control type A provides the ability to globally maintain a floating point state of a control, to request a concrete value at any scene instance and to request increasing or decreasing the value at any scene instance.

Currently this control can be practically used to set the constant velocity in the SrrWagon2axA specific vehicle prototype.

SrrControlFloatA creates and uses a network sensor with the streamName/networkSensorId Srr Vehicle <objId>.

2 User Interface of SrrControlFloatA (uiObj)

SrrControlFloatA is an external prototype that is available at the directory srr/.

<ProtoDeclare name="SrrControlFloatA">

<ProtoInterface>

<field accessType='inputOutput' name='objType' type='SFString' value='SrrControlFloatA'/>

<field accessType='inputOutput' name='version' type='SFFloat' value='0.0031'/>

<field accessType='inputOutput' name='parentCab' type='SFNode'/>

<field accessType='inputOnly' name='basicInitialization' type='SFInt32'/>

<field accessType='inputOutput' name='basicallyInitialized' type='SFNode'/>

<field accessType='inputOutput' name='initialValue' type='SFFloat' value='0.0'/>

<field accessType='inputOutput' name='value' type='SFFloat'/>

<field accessType='inputOnly' name='requestValue' type='SFFloat'/>

<field accessType='inputOnly' name='incValue' type='SFFloat'/>

<field accessType='inputOnly' name='decValue' type='SFFloat'/>

</ProtoInterface>

The fields parentCab, basicInitialization and basicallyInitialized are used in the SRR framework and in other SRR objects internally and need not be described here.

In initialValue you can set the initial value of the control.

The field value outputs the actual value of the control, synchronized for all scene instances.

With requestValue, a scene instance can request a specific value, and with incValue and decValue, a scene instance can request to modify the value of the control.