Revision e3eab072
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DEffect.java | ||
---|---|---|
240 | 240 |
|
241 | 241 |
if( mSta1 !=null ) |
242 | 242 |
{ |
243 |
float f1 = ((int)(mSta1.getX()*100))/100.0f;
|
|
243 |
float f1 = ((int)(mSta1.get1()*100))/100.0f;
|
|
244 | 244 |
text += " "+f1; |
245 | 245 |
} |
246 | 246 |
|
247 | 247 |
if( mSta2 !=null ) |
248 | 248 |
{ |
249 |
float f1 = ((int)(mSta2.getX()*100))/100.0f;
|
|
250 |
float f2 = ((int)(mSta2.getY()*100))/100.0f;
|
|
249 |
float f1 = ((int)(mSta2.get1()*100))/100.0f;
|
|
250 |
float f2 = ((int)(mSta2.get2()*100))/100.0f;
|
|
251 | 251 |
text += " ("+f1+","+f2+")"; |
252 | 252 |
} |
253 | 253 |
|
254 | 254 |
if( mSta3 !=null ) |
255 | 255 |
{ |
256 |
float f1 = ((int)(mSta3.getX()*100))/100.0f;
|
|
257 |
float f2 = ((int)(mSta3.getY()*100))/100.0f;
|
|
258 |
float f3 = ((int)(mSta3.getZ()*100))/100.0f;
|
|
256 |
float f1 = ((int)(mSta3.get1()*100))/100.0f;
|
|
257 |
float f2 = ((int)(mSta3.get2()*100))/100.0f;
|
|
258 |
float f3 = ((int)(mSta3.get3()*100))/100.0f;
|
|
259 | 259 |
text += " ("+f1+","+f2+","+f3+")"; |
260 | 260 |
} |
261 | 261 |
|
262 | 262 |
if( mSta4 !=null ) |
263 | 263 |
{ |
264 |
float f1 = ((int)(mSta4.getX()*100))/100.0f;
|
|
265 |
float f2 = ((int)(mSta4.getY()*100))/100.0f;
|
|
266 |
float f3 = ((int)(mSta4.getZ()*100))/100.0f;
|
|
267 |
float f4 = ((int)(mSta4.getW()*100))/100.0f;
|
|
264 |
float f1 = ((int)(mSta4.get1()*100))/100.0f;
|
|
265 |
float f2 = ((int)(mSta4.get2()*100))/100.0f;
|
|
266 |
float f3 = ((int)(mSta4.get3()*100))/100.0f;
|
|
267 |
float f4 = ((int)(mSta4.get4()*100))/100.0f;
|
|
268 | 268 |
text += " ("+f1+","+f2+","+f3+","+f4+")"; |
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
if( mSta5 !=null ) |
272 | 272 |
{ |
273 |
float f1 = ((int)(mSta5.getX()*100))/100.0f;
|
|
274 |
float f2 = ((int)(mSta5.getY()*100))/100.0f;
|
|
275 |
float f3 = ((int)(mSta5.getZ()*100))/100.0f;
|
|
276 |
float f4 = ((int)(mSta5.getW()*100))/100.0f;
|
|
277 |
float f5 = ((int)(mSta5.getV()*100))/100.0f;
|
|
273 |
float f1 = ((int)(mSta5.get1()*100))/100.0f;
|
|
274 |
float f2 = ((int)(mSta5.get2()*100))/100.0f;
|
|
275 |
float f3 = ((int)(mSta5.get3()*100))/100.0f;
|
|
276 |
float f4 = ((int)(mSta5.get4()*100))/100.0f;
|
|
277 |
float f5 = ((int)(mSta5.get5()*100))/100.0f;
|
|
278 | 278 |
text += " ("+f1+","+f2+","+f3+","+f4+","+f5+")"; |
279 | 279 |
} |
280 | 280 |
|
... | ... | |
307 | 307 |
|
308 | 308 |
private void setCenterText() |
309 | 309 |
{ |
310 |
int f0 = (int)mCenterSta.getX();
|
|
311 |
int f1 = (int)mCenterSta.getY();
|
|
312 |
int f2 = (int)mCenterSta.getZ();
|
|
310 |
int f0 = (int)mCenterSta.get1();
|
|
311 |
int f1 = (int)mCenterSta.get2();
|
|
312 |
int f2 = (int)mCenterSta.get3();
|
|
313 | 313 |
|
314 | 314 |
mTextCenter.setText("center ("+f0+","+f1+","+f2+")"); |
315 | 315 |
} |
... | ... | |
347 | 347 |
|
348 | 348 |
private void setRegionText() |
349 | 349 |
{ |
350 |
int f0 = (int)mRegionSta.getX();
|
|
351 |
int f1 = (int)mRegionSta.getY();
|
|
352 |
int f2 = (int)mRegionSta.getZ();
|
|
353 |
int f3 = (int)mRegionSta.getW();
|
|
350 |
int f0 = (int)mRegionSta.get1();
|
|
351 |
int f1 = (int)mRegionSta.get2();
|
|
352 |
int f2 = (int)mRegionSta.get3();
|
|
353 |
int f3 = (int)mRegionSta.get4();
|
|
354 | 354 |
|
355 | 355 |
mTextRegion.setText("region ("+f0+","+f1+","+f2+","+f3+")"); |
356 | 356 |
} |
... | ... | |
541 | 541 |
seek[i].setProgress( mInterRegion[i] ); |
542 | 542 |
} |
543 | 543 |
|
544 |
act.setRegion(mRegionSta.getX(),mRegionSta.getY(),mRegionSta.getZ());
|
|
544 |
act.setRegion(mRegionSta.get1(),mRegionSta.get2(),mRegionSta.get3());
|
|
545 | 545 |
|
546 | 546 |
return mRegion; |
547 | 547 |
} |
... | ... | |
574 | 574 |
seek[i].setProgress( mInterCenter[i] ); |
575 | 575 |
} |
576 | 576 |
|
577 |
act.setCenter(mCenterSta.getX(),mCenterSta.getY(),mCenterSta.getZ());
|
|
577 |
act.setCenter(mCenterSta.get1(),mCenterSta.get2(),mCenterSta.get3());
|
|
578 | 578 |
|
579 | 579 |
return mCenter; |
580 | 580 |
} |
... | ... | |
671 | 671 |
|
672 | 672 |
act.setSupportsCenter(mName.supportsCenter()); |
673 | 673 |
act.setSupportsRegion(mName.supportsRegion()); |
674 |
act.setCenter(mCenterSta.getX(),mCenterSta.getY(),mCenterSta.getZ());
|
|
675 |
act.setRegion(mRegionSta.getX(),mRegionSta.getY(),mRegionSta.getZ());
|
|
674 |
act.setCenter(mCenterSta.get1(),mCenterSta.get2(),mCenterSta.get3());
|
|
675 |
act.setRegion(mRegionSta.get1(),mRegionSta.get2(),mRegionSta.get3());
|
|
676 | 676 |
} |
677 | 677 |
} |
678 | 678 |
|
Also available in: Unified diff
Simplify Statics.