[14312] | 1 | Index: ../trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java (revision 14199)
|
---|
| 4 | +++ ../trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java (revision 14200)
|
---|
| 5 | @@ -16,6 +16,7 @@
|
---|
| 6 | import android.widget.EditText;
|
---|
| 7 | import android.widget.FrameLayout;
|
---|
| 8 | import android.widget.SeekBar;
|
---|
| 9 | +import android.widget.SeekBar.OnSeekBarChangeListener;
|
---|
| 10 | import android.widget.TextView;
|
---|
| 11 | import android.widget.Toast;
|
---|
| 12 |
|
---|
| 13 | @@ -34,7 +35,7 @@
|
---|
| 14 | private SeekBar bar;
|
---|
| 15 | private TextView /*txtStatus,*/ txtValue;
|
---|
| 16 | private ColorMap colorMap;
|
---|
| 17 | -
|
---|
| 18 | + private int alpha;
|
---|
| 19 |
|
---|
| 20 | @Override
|
---|
| 21 | //------------------------------------------------------------------------------------------------
|
---|
| 22 | @@ -54,6 +55,26 @@
|
---|
| 23 | Button button = (Button) super.findViewById(R.id.button1);
|
---|
| 24 | frame = (FrameLayout)findViewById(R.id.frame);
|
---|
| 25 | button.setOnClickListener(this);
|
---|
| 26 | + bar.setOnSeekBarChangeListener(new OnSeekBarChangeListener()
|
---|
| 27 | + {
|
---|
| 28 | + public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser)
|
---|
| 29 | + {
|
---|
| 30 | + alpha = progress;
|
---|
| 31 | + }
|
---|
| 32 | +
|
---|
| 33 | + @Override
|
---|
| 34 | + public void onStartTrackingTouch(SeekBar seekBar) {
|
---|
| 35 | + // TODO Auto-generated method stub
|
---|
| 36 | +
|
---|
| 37 | + }
|
---|
| 38 | +
|
---|
| 39 | + @Override
|
---|
| 40 | + public void onStopTrackingTouch(SeekBar seekBar) {
|
---|
| 41 | + // TODO Auto-generated method stub
|
---|
| 42 | +
|
---|
| 43 | + }
|
---|
| 44 | + });
|
---|
| 45 | +
|
---|
| 46 |
|
---|
| 47 | //load up the ISSM library and create double buffer in java
|
---|
| 48 | //which later on will be pass for native allocation.
|
---|
| 49 | @@ -78,7 +99,6 @@
|
---|
| 50 | //------------------------------------------------------------------------------------------------
|
---|
| 51 | public void fillBuffer()
|
---|
| 52 | {
|
---|
| 53 | - double alpha=5;
|
---|
| 54 | issmNative.solveISSMModel(alpha,buff);
|
---|
| 55 | }
|
---|
| 56 | //------------------------------------------------------------------------------------------------
|
---|