Tuesday, August 16, 2016

MTS

I have looked through MTS code.

Summarizing trial 1

The main goal for this project is integrating MTS application into Mechanix application. We will be able to use Mechanix program on online shortly. MTS app will be used as one type of UIs (user interactions) while a user is solving a problem by drawing a truss.

Specifically, MTS is mainly utilized as menu selection.
MTS consists of index slider and finger pad. (MTS consists of two functional subcomponents: the index pad, which behaves a relative slider for the selected parameter, and the finger pad  that determines the currently selected parameter based on the number of fingers making contact with it.)

This design operates in two modes, the parameter adjustment and the parameter set selection mode. 

Placing a index finger on the index slider, the user have three functions to control by a single tap, double taps, and moving back and forth.
A single tap selects the parameter set.


About code: index slider part

Adjustment mode (index finger)
Set selection mode (middle, ring, and little fingers)

A single tap occurs ShowParamSetMenu(); double taps occurs ShowParameterMenu().

Function ShowParamSetMenu() _showingParamSet = true
Function ShowParameterMenu() _showingParamSet = false

In function 'HandleAdjustmentVisual()'
if (_showingParamSet)
   HandleParameterMenuAdjustmentVisual(out pauseMovement, out animateMovement) 
else
   HandleParameterMenuAdjustmentVisual()